/* ════════════════════════════════════════════════════════════════
   SPACENOVA — Checkout, Basket Drawer, Mobile Panel, Success
   Rewritten for elegance, breathing room, and design consistency
   ════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   NAV FIX
   ══════════════════════════════════════════ */
#main-nav { padding: 0 !important; }
.nav-inner {
  display: flex; align-items: center; width: 100%; height: 100%;
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(16px,3vw,28px); gap: 12px;
}

/* ══════════════════════════════════════════
   HERO GHOST-WHITE BUTTON
   ══════════════════════════════════════════ */
.btn-ghost-white {
  background: rgba(255,255,255,0.12) !important;
  border: 1.5px solid rgba(255,255,255,0.7) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.22) !important;
  border-color: #fff !important;
}

/* ══════════════════════════════════════════
   BURGER BUTTON
   ══════════════════════════════════════════ */
.burger-btn {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; padding: 0;
  background: transparent; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-left: 4px; flex-shrink: 0;
}
.burger-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .2s;
}
.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .burger-btn { display: flex !important; }
  .nav-links { display: none !important; }
}

/* ══════════════════════════════════════════
   MOBILE BACKDROP
   ══════════════════════════════════════════ */
.mobile-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 195;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .28s;
}
body.panel-open .mobile-backdrop { display: block; opacity: 1; }

/* ══════════════════════════════════════════
   MOBILE PANEL
   ══════════════════════════════════════════ */
.mobile-panel {
  position: fixed; top: 0; right: 0;
  width: min(320px, 88vw); height: 100dvh;
  background: #fff; z-index: 200;
  transform: translateX(110%);
  transition: transform .34s cubic-bezier(.32,.72,0,1);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: -8px 0 40px rgba(0,0,0,.14);
}
.mobile-panel.open { transform: translateX(0); }
.mp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mp-title {
  font-family: var(--fm); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.mp-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--muted); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.mp-close:hover { background: var(--surface2); color: var(--text); }
.mp-body { flex: 1; overflow-y: auto; padding: 10px; }
.mp-section-label {
  font-family: var(--fm); font-size: .52rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted2);
  padding: 10px 12px 4px;
}
.mp-divider { height: 1px; background: var(--border); margin: 8px 10px; }
.mp-item {
  display: flex; align-items: center; width: 100%;
  padding: 12px 14px; border-radius: 12px;
  color: var(--text); font-size: .92rem; font-weight: 600;
  text-decoration: none; transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.mp-item:hover, .mp-item.mp-active { background: var(--surface); }
.mp-item.mp-active { color: var(--accent); }
.mp-basket-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 12px 14px; border-radius: 12px; margin-top: 4px;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.mp-basket-row:hover { background: var(--surface2); }
.mp-badge {
  margin-left: auto; min-width: 20px; height: 20px;
  background: var(--accent); color: #fff; border-radius: 99px;
  font-size: .65rem; font-weight: 700; display: flex;
  align-items: center; justify-content: center; padding: 0 5px;
}

/* ══════════════════════════════════════════
   BASKET DRAWER
   z-index pushed above nav (900) to sit on top
   ══════════════════════════════════════════ */
#basket-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#basket-overlay.open { display: block; }

#basket-drawer {
  position: fixed; top: 0; right: 0;
  width: min(420px, 100vw); height: 100dvh;
  background: #fff; z-index: 1010;
  transform: translateX(110%);
  transition: transform .34s cubic-bezier(.32,.72,0,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 50px rgba(0,0,0,.14);
}
#basket-drawer.open { transform: translateX(0); }
body.drawer-open { overflow: hidden; }

/* Scrollable body */
.drawer-body {
  flex: 1; overflow-y: auto;
  padding: 20px 22px 16px;
  -webkit-overflow-scrolling: touch;
}
.drawer-body::-webkit-scrollbar { width: 3px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Footer */
.drawer-footer {
  border-top: 1px solid var(--border);
  padding: 20px 22px 28px;
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg1);
}

/* ── Basket items ── */
.basket-empty {
  text-align: center; padding: 60px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.basket-empty p { color: var(--muted); font-size: .92rem; }

.basket-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-rows: auto auto;
  gap: 0 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.basket-item:last-child { border-bottom: none; }

.bi-img {
  grid-row: 1 / 3;
  width: 76px; height: 76px; border-radius: 12px;
  object-fit: cover; border: 1px solid var(--border);
  display: block; align-self: center;
}
.bi-img-placeholder {
  grid-row: 1 / 3;
  width: 76px; height: 76px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  align-self: center;
}

.bi-info {
  grid-column: 2; grid-row: 1;
  min-width: 0;
  padding-right: 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.bi-name {
  font-family: var(--fd); font-size: 1rem; line-height: 1.3;
  color: var(--text); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bi-price {
  font-family: var(--fm); font-size: .68rem;
  color: var(--muted); letter-spacing: .04em;
}

.bi-controls {
  grid-column: 2; grid-row: 2;
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
}
.qty-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--surface2); border-color: var(--border3); }
.qty-val {
  font-family: var(--fm); font-size: .8rem;
  width: 28px; text-align: center; color: var(--text);
}

/* ── Remove button ── */
.bi-remove {
  margin-left: auto;
  width: auto;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  transition: background .18s, color .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.bi-remove:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.basket-clear-row { display: flex; justify-content: flex-end; padding-top: 12px; }
.basket-clear-btn {
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: transparent;
  min-height: 32px;
  padding: 4px 12px;
  color: var(--muted);
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.basket-clear-btn:hover { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }

/* ── Promo row ── */
.promo-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.promo-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: var(--bg);
  font-family: var(--fm); font-size: .8rem;
  color: var(--text); outline: none;
  transition: border-color .18s, box-shadow .18s;
  letter-spacing: .03em;
}
.promo-input::placeholder { color: var(--muted); }
.promo-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,120,15,.09);
}

/* Apply promo button */
.promo-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--text);
  border: none;
  font-family: var(--fm); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.promo-btn:hover {
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(212,120,15,.28);
  transform: translateY(-1px);
}
.promo-btn:active { transform: scale(.97); }

.promo-applied {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--fm); font-size: .72rem; color: var(--success);
  background: rgba(26,158,64,.06); border-radius: 10px; padding: 11px 16px;
  border: 1px solid rgba(26,158,64,.15);
  gap: 12px;
}
.promo-applied button {
  background: none; border: none; cursor: pointer; flex-shrink: 0;
  color: var(--muted); font-size: .72rem; text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.promo-applied button:hover { color: var(--danger); }
.promo-error { color: var(--danger); font-size: .78rem; margin-top: 4px; }

/* ── Basket summary ──
   Fix: flex children get min-width:0 + right value
   gets flex-shrink:0 so it never collapses into the label
   ══════════════════════════════════════════ */
.basket-summary { display: flex; flex-direction: column; gap: 0; }

.bsum-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: .87rem; color: var(--text2);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.bsum-row:last-of-type { border-bottom: none; }

/* Left label — shrink-protected, truncates gracefully */
.bsum-row span:first-child {
  color: var(--muted); font-family: var(--fm);
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  flex-shrink: 0;
  min-width: 0;
}

/* Right value — never shrinks, always readable */
.bsum-row span:last-child,
.bsum-row strong {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.bsum-total {
  padding: 16px 0 4px;
  border-bottom: none !important;
  gap: 16px;
}
.bsum-total span {
  font-size: .68rem; font-family: var(--fm);
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  flex-shrink: 0;
}
.bsum-total strong {
  font-family: var(--fd); font-size: 1.6rem; font-weight: 300; color: var(--gold);
  flex-shrink: 0; white-space: nowrap; text-align: right;
}
.discount-val { color: var(--success); font-family: var(--fm); font-size: .82rem; white-space: nowrap; }
.free-shipping-note {
  font-family: var(--fm); font-size: .62rem; letter-spacing: .06em;
  color: var(--muted); text-align: center; padding-top: 8px;
}

/* ══════════════════════════════════════════
   CHECKOUT PAGE — Layout
   ══════════════════════════════════════════ */
.checkout-page {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) clamp(20px,5vw,40px) 120px;
  background: var(--bg);
}
.checkout-layout {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 400px; gap: 72px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 40px; }
  .checkout-summary-col { order: -1; }
}

/* ── Back link ── */
.checkout-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fm); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
  text-decoration: none; transition: color .18s;
}
.checkout-back:hover { color: var(--text); }

/* ── Page title ── */
.checkout-title {
  font-family: var(--fd); font-size: clamp(2rem,4vw,2.9rem);
  font-weight: 300; letter-spacing: -.02em; margin-bottom: 48px;
  color: var(--text);
}

/* ── Section labels ── */
.co-section-label {
  font-family: var(--fm); font-size: .55rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 44px; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.co-section-label:first-of-type { margin-top: 0; }

/* ── Native form fields ── */
.form-group { margin-bottom: 0; }
.form-label {
  display: block;
  font-family: var(--fm); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.form-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: var(--bg1);
  font-family: var(--fm); font-size: .85rem;
  color: var(--text); outline: none;
  appearance: none; -webkit-appearance: none;
  transition: border-color .18s, box-shadow .18s;
  cursor: pointer;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212,120,15,.08);
}

/* ── Stripe Elements containers ── */
#link-authentication-element,
#shipping-address-element,
#payment-element {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 20px 22px;
  transition: border-color .18s, box-shadow .18s;
}
#link-authentication-element:focus-within,
#shipping-address-element:focus-within,
#payment-element:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212,120,15,.07);
}

/* ── Payment loader ── */
.payment-loader {
  font-family: var(--fm); font-size: .7rem; color: var(--muted);
  letter-spacing: .1em; padding: 36px 0; text-align: center;
  background: var(--bg1); border: 1px solid var(--border2);
  border-radius: 16px;
}
.form-error { color: var(--danger); font-size: .82rem; margin-top: 12px; }

/* ── Pay now button ── */
.co-submit {
  width: 100%; margin-top: 32px;
  padding: 18px 32px;
  font-size: .78rem; letter-spacing: .1em;
  border-radius: 14px;
}
.co-submit:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212,120,15,.32);
}

/* ── Spinner ── */
.btn-spinner {
  display: inline-block; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .65s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Secure note ── */
.co-secure-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--fm); font-size: .58rem; letter-spacing: .08em;
  color: var(--muted); margin-top: 16px;
}

/* ══════════════════════════════════════════
   ORDER SUMMARY PANEL
   ══════════════════════════════════════════ */
.co-summary-box {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 30px;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  max-height: calc(100dvh - var(--nav-h) - 40px);
  overflow: auto;
}
.co-summary-title {
  font-family: var(--fd); font-size: 1.45rem; font-weight: 300;
  margin-bottom: 24px; letter-spacing: -.01em;
}

/* ── Items list ── */
.co-items {
  display: flex; flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}
.co-item {
  display: flex; align-items: center;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.co-item:last-child { border-bottom: none; }

/* ── Delete button ── */
.co-item-remove {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; line-height: 1;
  flex-shrink: 0;
  margin-right: 12px;
  transition: background .18s, color .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.co-item-remove:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.co-item-name {
  color: var(--text2); flex: 1; min-width: 0;
  font-family: var(--fd); font-size: .97rem; font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.co-item-price {
  font-family: var(--fm); font-size: .78rem;
  color: var(--text); white-space: nowrap; flex-shrink: 0;
  margin-left: 16px;
}

/* ── Totals ──
   Fix: gap between label and value prevents overlap;
   right values are flex-shrink:0 + nowrap
   ══════════════════════════════════════════ */
.co-divider { height: 1px; background: var(--border); margin: 22px 0; }

.co-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.co-row span:first-child {
  font-family: var(--fm); font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  flex-shrink: 0;
}
.co-row span:last-child {
  font-family: var(--fm); font-size: .85rem; color: var(--text);
  flex-shrink: 0; white-space: nowrap; text-align: right;
}

.co-row-total {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.co-row-total span:first-child {
  font-family: var(--fm); font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  flex-shrink: 0;
}
.co-row-total strong {
  font-family: var(--fd); font-size: 1.7rem; font-weight: 300;
  color: var(--gold);
  flex-shrink: 0; white-space: nowrap; text-align: right;
}

/* ── Trust badges ── */
.co-trust {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.co-trust-item {
  font-family: var(--fm); font-size: .62rem;
  letter-spacing: .06em; color: var(--muted);
  display: flex; align-items: center; gap: 9px;
}
.co-trust-item::before {
  content: '';
  display: inline-block; width: 16px; height: 16px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(26,158,64,.1);
  border: 1px solid rgba(26,158,64,.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231a9e40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ══════════════════════════════════════════
   SUCCESS PAGE
   ══════════════════════════════════════════ */
.success-page {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 48px) clamp(20px,5vw,40px) 80px;
  text-align: center;
}
.success-orbit {
  position: relative; width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
}
.success-planet {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.92), rgba(255,255,255,.52) 22%, rgba(212,120,15,.3) 48%, rgba(212,120,15,.08) 100%);
  border: 1px solid rgba(212,120,15,.18);
  box-shadow: 0 0 0 6px rgba(212,120,15,.05);
}
.success-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(212,120,15,.3);
  animation: spinSlow 8s linear infinite;
}
.success-ring::after {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold2); transform: translate(-50%,-50%);
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.success-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(26,158,64,.08); border: 1px solid rgba(26,158,64,.22);
  color: var(--success); font-size: 1.6rem; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 24px;
}
.success-title {
  font-family: var(--fd); font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 300; letter-spacing: -.02em; margin-bottom: 14px;
}
.success-sub {
  color: var(--muted); font-size: .95rem; line-height: 1.75;
  max-width: 420px; margin-bottom: 28px;
}
.success-divider {
  width: 48px; height: 1px; background: var(--border2); margin: 0 auto 28px;
}
.success-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 20px;
}
.success-note { font-size: .82rem; color: var(--muted); }
.success-note a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; align-items: center;
}
.toast {
  background: var(--text); color: #fff;
  padding: 11px 24px; border-radius: 99px;
  font-family: var(--fm); font-size: .72rem; letter-spacing: .06em;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.toast.show { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   PRODUCT CARD — Wall image hover
   ══════════════════════════════════════════ */
.card-media { position: relative; overflow: hidden; }
.card-media img.card-img-main,
.card-media img.card-img-wall {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .55s cubic-bezier(.4,0,.2,1);
  position: absolute; inset: 0;
}
.card-media img.card-img-wall { opacity: 0; }
.card-media:hover img.card-img-wall { opacity: 1; }
.card-media:hover img.card-img-main { opacity: 0; }
.card-media img.card-img-main:first-child { position: relative; }

/* ══════════════════════════════════════════
   SMALL SCREEN TWEAKS
   ══════════════════════════════════════════ */
@media (max-width: 420px) {
  .nav-inner { padding: 0 max(10px, env(safe-area-inset-right)); gap: 8px; }
  .burger-btn { margin-left: 2px; margin-right: 2px; }
  .co-summary-box { padding: 24px 20px; max-height: none; overflow: visible; }
  .checkout-page { padding-top: calc(var(--nav-h) + 32px); }
  .checkout-title { margin-bottom: 36px; }
  .co-section-label { margin-top: 36px; }
  .drawer-body { padding: 4px 16px 12px; }
  .drawer-footer { padding: 16px 18px 24px; }
}
