/* ============================================================
   ESARI — shared design system
   Loaded by every storefront page (home/shop/product/checkout/
   order-status/review). Page-specific layout stays inline per page.
   ============================================================ */

:root {
  --canvas: #ffffff;
  --canvas-alt: #f8f6fa;
  --paper: #ffffff;
  --ink: #1e0a2a;
  --ink-soft: #6f5a7a;
  --ink-faint: #7d6887; /* 5:1 on white — safe for small text */
  --accent: #e5156b;
  --accent-dark: #c00d57;
  --accent-mist: rgba(229, 21, 107, 0.09);
  --accent-2: #6c2bd9;
  --accent-2-mist: rgba(108, 43, 217, 0.08);
  --gold: #ff9f1c;
  --gold-mist: rgba(255, 159, 28, 0.12);
  --gradient-brand: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 55%, var(--gold) 100%);
  --line: rgba(30, 10, 42, 0.1);
  --success: #1f7a50;
  --success-mist: rgba(46, 158, 107, 0.09);
  --danger: #d64545;
  --danger-mist: rgba(214, 69, 69, 0.08);
  --header-h: 78px;
  --announce-h: 38px;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 12px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; }
.display { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-solid { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.btn-solid:hover:not(:disabled) { background: var(--gradient-brand); border-color: transparent; color: #fff; box-shadow: 0 10px 28px -12px rgba(229, 21, 107, 0.55); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover:not(:disabled) { background: var(--ink); color: var(--canvas); }
.btn-outline.on-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline.on-light:hover { background: #fff; color: var(--ink); }
.btn-gradient { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.btn-gradient:hover:not(:disabled) { box-shadow: 0 10px 28px -10px rgba(108, 43, 217, 0.5); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
/* Order on WhatsApp — darker WhatsApp green so white text stays readable */
.btn-whatsapp { background: #128c4a; color: #fff; border-color: transparent; }
.btn-whatsapp:hover:not(:disabled) { background: #0f7a40; box-shadow: 0 10px 28px -10px rgba(18, 140, 74, 0.55); transform: translateY(-1px); }
.btn-whatsapp svg { width: 18px; height: 18px; flex: none; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* --- Scroll reveal + small feedback animations (shared across pages) --- */
.reveal, .reveal-item {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible, .reveal-item.is-visible { opacity: 1; transform: none; }
@keyframes badgeBump { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 65% { transform: scale(0.9); } 100% { transform: scale(1); } }
@keyframes addedPulse { 0% { transform: scale(1); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }
.icon-badge.bump { animation: badgeBump 0.4s ease; }
.wishlist-toggle.pop svg, .wishlist-btn-large.pop svg, .icon-circle-btn.pop svg { animation: heartPop 0.4s ease; }
.quick-add.added, .added-pulse { animation: addedPulse 0.3s ease; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--canvas); padding: 12px 20px;
  font-weight: 600; text-decoration: none; border-radius: 0 0 var(--radius-btn) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* --- Announcement bar --- */
.announce {
  height: var(--announce-h); background: var(--ink); color: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}

/* --- Header / nav (shared shell; home.html overrides to transparent-over-hero) --- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line); color: var(--ink);
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease, color 0.3s ease;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 22px; flex: none; }
.nav-right { margin-left: auto; }
.nav-left a {
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  position: relative; padding-bottom: 3px; color: inherit;
}
.nav-left a.current { color: var(--accent); }
.nav-left a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gradient-brand); border-radius: 2px; transition: right 0.25s ease;
}
.nav-left a:hover::after { right: 0; }
.wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 25px;
  letter-spacing: -0.01em; text-decoration: none; color: inherit; flex: none;
  display: flex; align-items: center;
}
/* The real logo lockup (mark + wordmark + tagline stacked) — compact enough
   at header height to read as a single unit, not a giant vertical block.
   home.html additionally flips this to white while its header still sits
   transparent over the hero image (see that page's own <style> block). */
.wordmark-logo { height: 44px; width: auto; display: block; }

/* Footer background is always the dark --ink color everywhere it appears,
   so the black artwork needs the white flip unconditionally here (not tied
   to any scroll state, unlike the header's version). */
.footer-brand-logo { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }

/* Inline search bar (opens the same real search overlay on click) instead
   of a bare icon — sits between the nav and the account icons. */
.header-search {
  display: flex; align-items: center; gap: 10px; flex: 1; max-width: 440px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 10px 18px; cursor: pointer; color: var(--ink-soft); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.header-search:hover { border-color: var(--ink-faint); }
.header-search svg { width: 16px; height: 16px; flex: none; }
.header-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.icon-link {
  position: relative; background: none; border: none; color: inherit; cursor: pointer; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 10px;
  min-width: 44px; min-height: 44px;
  transition: background 0.2s ease; font-family: 'Inter', sans-serif;
}
.icon-link:hover { background: var(--accent-mist); }
.icon-link svg { width: 19px; height: 19px; }
.icon-link .label-text { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.icon-link.current { color: var(--accent); }
.icon-badge-wrap { position: relative; display: flex; }
/* Count bubble on the heart / bag: sits just outside the icon's top-right
   corner with a white ring, so it never covers the icon's outline. */
.icon-badge {
  position: absolute; top: -10px; right: -16px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--gradient-brand); color: #fff; font-size: 10px; font-weight: 700;
  line-height: 17px; text-align: center; display: none;
  box-shadow: 0 0 0 2px var(--paper);
  align-items: center; justify-content: center; box-sizing: border-box;
}
.menu-toggle { display: none; }

/* --- Product-card system (feed tiles, shop grid, related grids) --- */
.tile-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-card); background: var(--canvas-alt); margin-bottom: 14px; }
.tile-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease;
}
.product-card:hover .tile-media img, .feed-tile:hover .tile-media img { transform: scale(1.06); }
.tile-media img.tile-img-alt { opacity: 0; }
.product-card:hover .tile-media img.tile-img-alt, .feed-tile:hover .tile-media img.tile-img-alt { opacity: 1; }
/* Shown when a piece has no photo yet: a soft brand-tinted tile with a
   camera outline, instead of a bare word on grey. */
.no-image {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--ink-soft); font-size: 12.5px; text-align: center;
  background: linear-gradient(160deg, var(--accent-2-mist), var(--accent-mist));
}
.no-image::before {
  content: ''; width: 34px; height: 34px; opacity: 0.55;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tile-media .no-image { position: absolute; inset: 0; }
.tile-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--gradient-brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 11px; letter-spacing: 0.03em; border-radius: var(--radius-pill);
}
.wishlist-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
/* Invisible padding brings the tap area to 44px without a bigger circle on the photo. */
.wishlist-toggle::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }
.wishlist-toggle svg { width: 15px; height: 15px; color: var(--ink); transition: color 0.15s ease, fill 0.15s ease; }
.wishlist-toggle:hover { transform: scale(1.1); }
.wishlist-toggle.active svg { color: var(--accent); fill: var(--accent); }
.tile-info { padding: 0 2px; }
.tile-name { font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; color: var(--ink); }
.tile-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; font-family: 'Inter', sans-serif; min-width: 0; }
.tile-price .now { font-weight: 700; }
.tile-price .now.on-sale { color: var(--accent); }
.tile-price .was { color: var(--ink-faint); text-decoration: line-through; font-size: 12.5px; }
.tile-price .tile-discount { color: var(--success); font-weight: 700; font-size: 12px; }

/* --- Quick add-to-bag button on product cards (shop, new arrivals, wishlist) --- */
/* Touch-first: a small always-visible bag button in the photo corner.
   Only a real mouse gets the full-width hover bar (see media query below),
   so a tablet tap never hits an invisible button. */
.quick-add {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(30, 10, 42, 0.5);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.quick-add svg { width: 18px; height: 18px; }
.quick-add .qa-label { display: none; }
.quick-add.added { background: var(--success); }
.quick-add:hover:not(.added) { background: var(--gradient-brand); }
/* Briefly widens into a labelled pill so touch users see "Added!" too. */
.quick-add.show-label { left: 10px; width: auto; height: 44px; padding: 0 14px; border-radius: var(--radius-pill); }
.quick-add.show-label svg { display: none; }
.quick-add.show-label .qa-label { display: inline; }
@media (hover: hover) and (pointer: fine) {
  .quick-add {
    left: 10px; width: auto; height: auto; padding: 12px; border-radius: var(--radius-btn);
    opacity: 0; transform: translateY(10px); pointer-events: none;
  }
  .quick-add svg { display: none; }
  .quick-add .qa-label { display: inline; }
  .product-card:hover .quick-add, .product-card:focus-within .quick-add { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

/* Sizes on a grouped (multi-size) product card */
.tile-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.tile-sizes span { font-size: 12px; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; line-height: 1.4; }
.tile-sizes em { font-style: normal; font-size: 12px; color: var(--ink-soft); margin-left: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Page intro (shop.html, wishlist.html) --- */
.page-intro { padding: 60px 0 36px; text-align: center; }
.page-intro .eyebrow { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.page-intro h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(30px, 4.2vw, 48px); margin: 0 0 14px; letter-spacing: -0.01em; }
.page-intro p { font-size: 15px; color: var(--ink-soft); max-width: 500px; margin: 0 auto; line-height: 1.7; }

.skeleton-shimmer {
  background: linear-gradient(100deg, var(--canvas-alt) 30%, #ece7f0 50%, var(--canvas-alt) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-card);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton-line { height: 11px; border-radius: 4px; margin-bottom: 8px; width: 70%; }
.skeleton-line.short { width: 40%; }

/* --- Footer --- */
footer.site-footer { background: var(--ink); color: rgba(255, 255, 255,0.9); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255,0.12); }
.footer-brand { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: #fff; margin-bottom: 14px; }
.footer-tag { font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255,0.55); max-width: 240px; margin: 0; }
.footer-col h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255,0.45); margin: 0 0 18px; }
.footer-col a { display: block; text-decoration: none; color: rgba(255, 255, 255,0.82); font-size: 13.5px; margin-bottom: 12px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 12px; color: rgba(255, 255, 255,0.4); }

/* --- Search overlay (shared) --- */
.search-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(30, 10, 42,0.5);
  display: none; align-items: flex-start; justify-content: center;
}
.search-overlay.open { display: flex; }
.search-panel { background: var(--canvas); width: 100%; max-width: 720px; margin-top: 80px; padding: 40px; max-height: 76vh; overflow-y: auto; border-radius: var(--radius-card); }
.search-panel-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; }
.search-panel input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 21px; color: var(--ink);
}
.search-panel input::placeholder { color: var(--ink-faint); }
.search-close { background: none; border: none; cursor: pointer; color: var(--ink); border-radius: 50%; width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; }
.search-close:hover { background: var(--accent-mist); }
.search-close svg { width: 20px; height: 20px; }
.search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; align-items: start; }
.search-hint { font-size: 13.5px; color: var(--ink-soft); text-align: center; padding: 30px 0; grid-column: 1 / -1; }

/* --- Mobile drawer nav (shared) --- */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--canvas);
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.16,1,0.3,1); padding: 100px 32px 40px;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-close {
  position: absolute; top: 18px; right: 16px;
  width: 48px; height: 48px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--canvas-alt); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.mobile-drawer-close:hover { background: var(--accent-mist); }
.mobile-drawer-close svg { width: 22px; height: 22px; }
.mobile-drawer a {
  display: block; text-decoration: none; color: var(--ink); font-size: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line);
}

/* --- Cart drawer: injected by site.js on any page with a #cartToggle cart
   icon, in place of navigating straight to checkout.html --- */
.cart-drawer-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(30, 10, 42,0.45);
  display: none; justify-content: flex-end;
}
.cart-drawer-overlay.open { display: flex; }
.cart-drawer {
  width: min(560px, 92vw); height: 100%; background: var(--canvas); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
}
.cart-drawer-overlay.open .cart-drawer { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 28px 36px; border-bottom: 1px solid var(--line); flex: none; }
.cart-drawer-head h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.cart-drawer-close { background: none; border: none; cursor: pointer; color: var(--ink); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cart-drawer-close:hover { background: var(--accent-mist); }
.cart-drawer-close svg { width: 22px; height: 22px; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 36px; }
.cart-drawer-empty { text-align: center; padding: 80px 20px; color: var(--ink-soft); font-size: 15px; }
.cart-drawer-empty .btn { margin-top: 22px; }
.cart-drawer-line { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-drawer-line:first-child { padding-top: 6px; }
.cart-drawer-line .thumb { display: block; width: 96px; height: 122px; border-radius: 12px; overflow: hidden; background: var(--canvas-alt); flex: none; }
.cart-drawer-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-line .info { flex: 1; min-width: 0; padding-top: 4px; }
.cart-drawer-line .line-title { display: block; text-decoration: none; color: inherit; }
.cart-drawer-line .line-title:hover h4 { color: var(--accent); }
.cart-drawer-line .info h4 { font-size: 16px; font-weight: 700; margin: 0 0 5px; line-height: 1.3; transition: color 0.15s ease; }
.cart-drawer-line .info .meta { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 16px; }
.cart-drawer-line .row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-drawer-line .price { font-size: 16px; font-weight: 700; white-space: nowrap; }
.qty-limit-note { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 8px; min-height: 14px; }
.cart-drawer-line .qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-btn); }
.cart-drawer-line .qty-stepper button { width: 44px; height: 44px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 15px; }
.cart-drawer-line .qty-stepper span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 700; }
.cart-drawer-line .remove-btn { background: none; border: none; color: var(--ink-soft); cursor: pointer; width: 44px; height: 44px; margin: -10px -10px 0 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.cart-drawer-line .remove-btn svg { width: 19px; height: 19px; }
.cart-drawer-line .remove-btn:hover { color: var(--danger); }
.cart-drawer-upsell { margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.cart-drawer-upsell h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 16px; }
.cart-drawer-upsell-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cart-drawer-upsell-row::-webkit-scrollbar { display: none; }
.cart-drawer-upsell-card { flex: 0 0 auto; width: 128px; text-decoration: none; color: inherit; }
.cart-drawer-upsell-card .thumb { width: 128px; height: 160px; border-radius: 12px; overflow: hidden; background: var(--canvas-alt); margin-bottom: 8px; }
.cart-drawer-upsell-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-upsell-card .name { font-size: 12.5px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; }
.cart-drawer-upsell-card .price { font-size: 13px; font-weight: 700; }
.cart-drawer-foot { flex: none; padding: 24px 36px 30px; border-top: 1px solid var(--line); }
.cart-drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.cart-drawer-subtotal .label { font-size: 15px; color: var(--ink-soft); }
.cart-drawer-subtotal .amount { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 26px; }
.cart-drawer-foot .btn { width: 100%; padding: 18px 30px; font-size: 13.5px; }
.cart-drawer-note { font-size: 12.5px; color: var(--ink-faint); text-align: center; margin: 12px 0 0; }
@media (max-width: 480px) {
  .cart-drawer { width: 100%; }
  .cart-drawer-head, .cart-drawer-body, .cart-drawer-foot { padding-left: 20px; padding-right: 20px; }
}

/* --- Floating WhatsApp button (shown only when configured in config.js) --- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
  background: #1faa53; color: #fff; border-radius: var(--radius-pill); text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45); transition: transform 0.15s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 860px) {
  .wa-float { padding: 0; width: 52px; justify-content: center; bottom: 90px; }
  .wa-float span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton-shimmer { animation: none; }
  .cart-drawer { transition: none !important; }
  .reveal, .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .icon-badge.bump, .wishlist-toggle.pop svg, .wishlist-btn-large.pop svg, .icon-circle-btn.pop svg, .quick-add.added, .added-pulse { animation: none !important; }
  .product-card:hover .tile-media img, .feed-tile:hover .tile-media img { transform: none !important; }
  .tile-media img { transition: none !important; }
}

@media (max-width: 860px) {
  .nav-left { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; color: inherit; cursor: pointer; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .wrap { padding: 0 20px; }
  /* Icons are 44px tap targets now — tighter gaps keep the row inside a 360px phone. */
  .site-header .wrap { gap: 6px; }
  .nav-right { gap: 2px; margin-left: 0; }
  .header-search {
    margin-left: auto; flex: none; max-width: none; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .header-search span { display: none; }
  .icon-link .label-text { display: none; }
  .search-panel { margin-top: 0; max-height: 100vh; height: 100%; border-radius: 0; }
  .search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}

/* Customer review cards — same size everywhere (site.js reviewCardHtml /
   wireReviewCards). The photo sits on top; the text fills what is left. */
.review-box {
  --rb-h: 400px;
  height: var(--rb-h); display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 22px; min-width: 0; overflow: hidden;
}
.review-box.is-match { border-color: var(--accent); }
.rb-photo {
  flex: none; display: block; height: 150px; margin: -22px -22px 0; padding: 0; border: 0;
  background: var(--canvas-alt); cursor: zoom-in; overflow: hidden;
}
.rb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.rb-photo:hover img { transform: scale(1.04); }
.rb-stars { flex: none; display: flex; gap: 3px; color: var(--gold); }
.rb-stars svg { width: 15px; height: 15px; }
.rb-text { flex: 1 1 0; min-height: 0; overflow: hidden; }
.rb-text p {
  margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink);
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.review-more { flex: none; align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.review-more:hover { text-decoration: underline; }
.review-more[hidden] { display: none; }
.rb-foot { flex: none; display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.rb-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; color: #fff; background: var(--gradient-brand); font-size: 15px;
}
.rb-who { min-width: 0; }
.rb-name { font-size: 13.5px; font-weight: 700; }
.rb-item { font-size: 12px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .review-box { --rb-h: 380px; } }

/* Full review popup */
.review-dialog {
  border: 0; padding: 0; border-radius: var(--radius-card); width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(30, 10, 42, 0.25);
}
.review-dialog::backdrop { background: rgba(30, 10, 42, 0.55); }
.rd-inner { position: relative; }
.rd-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 10, 42, 0.15);
}
.rd-photo { display: block; width: 100%; max-height: 60vh; object-fit: contain; background: var(--canvas-alt); }
.rd-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.rd-text { margin: 4px 0 6px; font-size: 15px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.rd-body .rb-item { white-space: normal; }

/* "★ 4.8 out of 5 from 23 reviews" */
.review-summary { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-soft); margin: 10px 0 0; }
.review-summary strong { color: var(--ink); }
.review-summary .rs-stars { display: inline-flex; gap: 2px; color: var(--gold); }
.review-summary .rs-stars svg { width: 16px; height: 16px; }

/* Google reviews: "Review us on Google" button + "4.8 ★ on Google" badge */
.g-logo { width: 18px; height: 18px; flex: none; }
.btn-google { display: inline-flex; align-items: center; gap: 10px; }
.google-rating {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  font-size: 14px; color: var(--ink-soft); text-decoration: none;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.google-rating[hidden] { display: none; }
.google-rating strong { color: var(--ink); }
.google-rating .g-logo { width: 16px; height: 16px; }
.google-rating svg:not(.g-logo) { width: 14px; height: 14px; color: var(--gold); }
a.google-rating:hover { border-color: var(--ink-faint); }
.review-actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Customer login (assets/login.js) */
.login-card { max-width: 420px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; background: var(--paper); }
.login-card h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; margin: 0 0 6px; }
.login-intro { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--canvas-alt); margin-bottom: 20px; }
.login-tabs button { border: 0; background: none; padding: 10px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.login-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgba(30, 10, 42, 0.08); }
.login-tabs button:disabled { opacity: 0.4; cursor: not-allowed; }
.login-card .field { margin-bottom: 18px; }
.login-card .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.login-card .field input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background: var(--paper); color: var(--ink); }
.login-card .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.phone-input { display: flex; align-items: stretch; }
.phone-input span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--canvas-alt); font-size: 15px; color: var(--ink-soft); }
.login-card .phone-input input { border-radius: 0 12px 12px 0; }
.login-card .otp-input { font-size: 22px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.login-card .login-submit { width: 100%; }
.login-error { color: #c0262d; font-size: 13.5px; margin: 0 0 14px; }
.login-resend { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 16px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.login-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: -4px 0 18px; cursor: pointer; }
.login-consent input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.login-terms { text-align: center; font-size: 12px; color: var(--ink-soft); line-height: 1.6; margin: 12px 0 0; }
.login-terms a { color: inherit; text-decoration: underline; }
.login-consent a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.login-terms-check { color: var(--ink); }

.login-offers-note { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); margin: -8px 0 18px 26px; }

/* Terms / Privacy / Shipping / Returns pop-up (site.js openPolicy) */
.policy-dialog {
  border: 0; padding: 0; border-radius: var(--radius-card); width: min(720px, calc(100vw - 24px));
  max-height: min(84vh, 860px); background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px rgba(30, 10, 42, 0.25); flex-direction: column; overflow: hidden;
}
.policy-dialog[open] { display: flex; }
.policy-dialog::backdrop { background: rgba(30, 10, 42, 0.55); }
.pd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex: none; }
.pd-head h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 20px; margin: 0; }
.pd-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.pd-close:hover { border-color: var(--ink); }
.pd-body { overflow-y: auto; padding: 6px 24px 18px; flex: 1 1 auto; overscroll-behavior: contain; }
.pd-body h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 17px; margin: 26px 0 10px; }
.pd-body p, .pd-body li { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.pd-body ul, .pd-body ol { padding-left: 22px; }
.pd-body strong { color: var(--ink); }
.pd-body a { color: var(--accent); font-weight: 600; }
.pd-body .callout { background: var(--canvas-alt); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.pd-body .updated { font-size: 12.5px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.pd-foot { padding: 14px 22px; border-top: 1px solid var(--line); text-align: right; flex: none; }
.pd-foot .btn { padding: 11px 26px; }
@media (max-width: 640px) {
  .policy-dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .pd-body { padding: 4px 18px 14px; }
}
.pd-back { border: 0; background: none; padding: 6px 8px 6px 0; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--accent); cursor: pointer; flex: none; }
.pd-head h2 { flex: 1 1 auto; }
/* Phones: where reviews stack one per row (product page, All Reviews), each
   box fits its text (up to 6 lines, then "Read more") instead of a fixed
   height full of empty space. The home page row keeps equal heights. */
@media (max-width: 720px) {
  .review-grid .review-box, .reviews-grid .review-box { height: auto; --rb-lines: 6; }
  .review-grid .rb-text, .reviews-grid .rb-text { flex: none; }
}

/* Policy links line for pages without the full footer (checkout, order status, review). */
.policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 18px 20px 28px; font-size: 13px; }
.policy-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }
.policy-links a:hover { color: var(--accent); text-decoration: underline; }

/* Search suggestions ("Did you mean …", closest matches) */
.search-suggest { grid-column: 1 / -1; text-align: left; }
.search-fix { border: none; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
