.cart-anchor { position: relative; flex-shrink: 0; }
.cart-preview {
  position: absolute;
  z-index: 25;
  top: 100%;
  inset-inline-end: 0;
  width: min(350px, calc(100vw - 32px));
  max-height: min(440px, calc(100vh - 145px));
  overflow-y: auto;
  padding: 18px;
  background: #faf9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgb(47 26 36 / 18%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.cart-anchor:hover .cart-preview,
.cart-anchor:focus-within .cart-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.preview-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.preview-title strong { font-size: 16px; }
.preview-title small { color: var(--muted); }
.preview-empty { margin: 16px 0 4px; color: var(--muted); font-size: 14px; }
.preview-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.preview-item img { width: 42px; height: 46px; flex-shrink: 0; object-fit: contain; }
.preview-item span { flex: 1; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.preview-item b { font: 600 13px 'DM Sans', sans-serif; white-space: nowrap; }
.preview-more { display: block; padding-block: 10px; color: var(--muted); font-size: 12px; }
.preview-total { display: flex; justify-content: space-between; gap: 12px; padding-block: 13px; font-weight: 700; }
.preview-open { display: flex; width: 100%; }
.cart-fly-image { position: fixed; z-index: 1000; width: 54px; height: 54px; object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgb(45 24 35 / 24%); pointer-events: none; will-change: transform, opacity; }
.cart-bump { animation: cart-bump .45s cubic-bezier(.34, 1.56, .64, 1); }
b.cart-bump { animation-name: cart-count-pop; }
@keyframes cart-bump { 35% { transform: scale(1.12); } 70% { transform: scale(.97); } }
@keyframes cart-count-pop { 40% { transform: scale(1.45); } }
.cart-land-ring { position: fixed; z-index: 999; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid var(--brand); border-radius: 50%; pointer-events: none; animation: cart-land-ring .5s ease-out forwards; }
@keyframes cart-land-ring { from { transform: scale(.4); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

.nav-command, .location-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 14px; }
.nav-command [data-icon], .location-trigger [data-icon] { width: 18px; height: 18px; }
.location-trigger { max-width: 245px; color: var(--brand); font-weight: 600; }
.location-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-location { display: none; }

.flow-dialog { width: min(480px, calc(100% - 32px)); max-height: min(88vh, 760px); max-height: min(88dvh, 760px); overflow: hidden; border-radius: 8px; background: #faf9f7; }
.flow-dialog[open] { display: flex; flex-direction: column; }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.flow-head h2 { font-size: 23px; line-height: 1.35; }
.flow-body { overflow-y: auto; padding: 20px; }
.flow-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.location-action { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; background: #f3e4e9; color: var(--brand); border: 1px solid #e2c6d0; border-radius: 7px; font-weight: 700; }
.location-action [data-icon] { width: 20px; height: 20px; }
#locationStatus { margin: 12px 0; min-height: 22px; }
.map-link { display: inline-flex; color: var(--brand); text-decoration: underline; min-height: 44px; align-items: center; }
#addressForm { display: grid; gap: 10px; margin-top: 12px; }
#addressForm label { font-size: 14px; font-weight: 600; }
#addressInput { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 16px; }
#addressForm .button, #checkoutConfirm { width: 100%; }
.order-empty { padding: 25px 10px; text-align: center; color: var(--muted); }
.order-record { padding: 17px 0; border-bottom: 1px solid var(--line); }
.order-record:first-child { padding-top: 0; }
.order-top, .order-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.order-top strong { font-size: 15px; }
.order-top time, .order-status { font-size: 12px; color: var(--muted); }
.order-record p { margin: 7px 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.order-status { color: var(--brand); }
.order-total { margin-top: 10px; font-weight: 700; }
.checkout-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.checkout-line span { overflow-wrap: anywhere; }
.checkout-line b { white-space: nowrap; font: 600 13px 'DM Sans', sans-serif; }
.checkout-address { margin: 16px 0; padding: 13px; background: #f0ebea; border-radius: 6px; font-size: 14px; overflow-wrap: anywhere; }
.checkout-address strong { display: block; margin-bottom: 4px; }
.checkout-address button { min-height: 40px; padding: 0; color: var(--brand); text-decoration: underline; }
.checkout-total { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 700; }
#checkoutForm { display: grid; gap: 8px; padding-top: 15px; }
#checkoutForm label { font-size: 13px; font-weight: 700; }
#checkoutForm input, #checkoutForm textarea { width: 100%; min-height: 44px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: 16px var(--font); }
#checkoutForm textarea { min-height: 76px; resize: vertical; }
.checkout-error { margin: 0; color: #a12d40; font-size: 13px; }
#cartSummary .checkout-launch { width: 100%; margin-top: 10px; }
#cartSummary #cartContinue { margin-top: 8px; background: transparent; color: var(--ink); border: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav-main { gap: 15px; }
  .nav-command { white-space: nowrap; }
  .location-trigger { max-width: 175px; }
}
@media (max-width: 680px) {
  .cart-preview { display: none; }
  .mobile-location { display: block; border-top: 1px solid var(--line); }
  .mobile-location .location-trigger { width: 100%; max-width: none; min-height: 43px; justify-content: flex-start; text-align: start; font-size: 13px; }
  .mobile-location .location-chevron { margin-inline-start: auto; font-size: 20px; line-height: 1; }
  .mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding-inline: 6px; }
  .mobile-nav-link { font-size: 11px; white-space: nowrap; }
  .mobile-nav-link > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  html { scroll-padding-top: 145px; }
  .flow-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 88vh; max-height: 88dvh; margin: 0; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .flow-body { padding: 18px; }
  .flow-head { padding: 16px 18px; }
  .flow-head h2 { font-size: 21px; }
}
@media (max-width: 430px) {
  .benefits { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 10px; }
  .benefits > div { flex-direction: row; justify-content: flex-start; gap: 11px; padding: 7px 4px; text-align: start; font-size: 13px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-preview { transition: none; }
  .cart-bump, b.cart-bump { animation: none; }
}

.stock-label{display:block;color:#a12d40;font-size:13px;font-weight:700;line-height:1.6}.success-message{font-size:18px;line-height:1.9;margin:20px 0}#successReference{font-size:22px}html[data-theme="dark"] .stock-label{color:#ff9ca9}

.promo-banner{margin:35px 0;border-radius:18px;overflow:hidden;border:1px solid var(--line)}.promo-banner a{display:block}.promo-banner img{display:block;width:100%;height:auto}.promo-banner a:focus-visible{outline:3px solid var(--yellow);outline-offset:-4px}
