/* ==========================================================================
   Design tokens
   ========================================================================== */
:root{
  --ink:        #15120F;
  --ink-soft:   #3A342E;
  --ivory:      #F7F2E7;
  --stone:      #ECE3D1;
  --gold:       #B4884E;
  --gold-light: #D8B784;
  --burgundy:   #5C1F30;
  --line:       rgba(21,18,15,0.14);
  --line-soft:  rgba(21,18,15,0.08);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 2px;
  --shadow-card: 0 1px 2px rgba(21,18,15,0.06), 0 8px 24px rgba(21,18,15,0.06);
  --shadow-pop:  0 20px 60px rgba(21,18,15,0.25);
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
  margin:0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; padding:0; appearance:none; -webkit-appearance:none; color:inherit; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; margin:0; letter-spacing:-0.01em; }
p{ margin:0; }
:focus-visible{ outline:2px solid var(--burgundy); outline-offset:3px; }

.container{ max-width:1180px; margin:0 auto; padding:0 24px; }

.announce-bar{
  background: var(--burgundy); color:#fff;
  font-size: 13px; letter-spacing:.02em;
}
.announce-bar .container{
  display:flex; align-items:center; gap:16px;
  padding: 9px 24px; position:relative;
  overflow:hidden; /* clips the scrolling track — this is what makes it a ticker, not just a marquee-in-theory */
}
.announce-bar .ticker-viewport{ flex:1; overflow:hidden; }
.announce-bar .ticker-track{
  display:flex; width:max-content; white-space:nowrap;
  animation: ticker-scroll linear infinite;
  animation-duration: var(--ticker-duration, 20s);
}
.announce-bar .ticker-track span{ padding-right:64px; } /* gap before the loop repeats */
@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); } /* text is duplicated once in the track, so -50% = one full loop */
}
@media (prefers-reduced-motion: reduce){
  .announce-bar .ticker-track{ animation: none; }
}
.announce-bar #announceClose{
  position:relative; flex-shrink:0;
  background:none; border:none; color:#fff; opacity:.75; font-size:13px; line-height:1; padding:4px;
}
.announce-bar #announceClose:hover{ opacity:1; }

/* ---------------------------------------------------------------------
   Welcome popup (first-visit sale/announcement popup, admin-configurable)
   --------------------------------------------------------------------- */
.welcome-popup-overlay{
  position:fixed; inset:0; background:rgba(21,18,15,.55); z-index:200;
  display:none; align-items:center; justify-content:center; padding:20px;
}
.welcome-popup-overlay.open{ display:flex; }
.welcome-popup{
  background:#fff; max-width:420px; width:100%; border-radius:var(--radius);
  padding:36px 32px 30px; position:relative; text-align:center;
  box-shadow:0 24px 70px rgba(21,18,15,.35);
}
.welcome-popup-close{
  position:absolute; top:14px; right:16px; background:none; border:none;
  font-size:22px; line-height:1; color:var(--ink-soft); cursor:pointer; padding:4px;
}
.welcome-popup-close:hover{ color:var(--ink); }
.welcome-popup-image{ width:100%; max-height:200px; object-fit:cover; border-radius:var(--radius); margin-bottom:16px; }
.welcome-popup h3{ font-family:var(--font-display); font-size:24px; margin:6px 0 10px; }
.welcome-popup p{ font-size:14px; color:var(--ink-soft); line-height:1.6; margin:0 0 22px; }
.welcome-popup-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.welcome-popup-cta{
  display:inline-block; padding:12px 22px; border-radius:999px; text-decoration:none;
  font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
  background:var(--ink); color:#fff; border:1px solid var(--ink); cursor:pointer;
}
.welcome-popup-cta:hover{ background:var(--burgundy); border-color:var(--burgundy); }
.welcome-popup-cta.secondary{ background:transparent; color:var(--ink); }
.welcome-popup-cta.secondary:hover{ background:var(--stone); }
.eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--burgundy);
}

/* Signature: gold chain-link divider ---------------------------------- */
.chain-divider{
  width: 84px;
  height: 14px;
  margin: 14px 0 0;
}
.chain-divider svg{ display:block; overflow:visible; }
.chain-divider .link{
  fill:none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 1s var(--ease);
}
.chain-divider.in-view .link{ stroke-dashoffset: 0; }
.chain-divider.in-view .link:nth-child(2){ transition-delay: .12s; }
.chain-divider.in-view .link:nth-child(3){ transition-delay: .24s; }
.chain-divider.in-view .link:nth-child(4){ transition-delay: .36s; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 40;
  background: rgba(247,242,231,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .bar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px;
}
.brand{ display:flex; flex-direction:column; line-height:1; }
.brand .brand-name{ font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; }
.brand .brand-tag{ font-size: 10.5px; letter-spacing: 0.14em; text-transform:uppercase; color: var(--ink-soft); margin-top:4px; }

.header-actions{ display:flex; align-items:center; gap:18px; }
.search-box{
  display:flex; align-items:center; gap:8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; background: #fff;
  min-width: 220px;
}
.search-box input{
  border:none; outline:none; font-family: var(--font-body); font-size: 14px;
  width:100%; background:transparent;
}
.search-box svg{ flex:none; opacity:.55; }

.icon-btn{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--ink); padding: 9px 20px;
  font-size: 13px; letter-spacing:.03em; text-transform:uppercase;
  background: var(--ink); color: var(--ivory);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover{ background: var(--burgundy); border-color: var(--burgundy); transform: translateY(-1px); }
.icon-btn.ghost{ background:transparent; color:var(--ink); }
.icon-btn.ghost:hover{ background: var(--ink); color: var(--ivory); }

@media (max-width: 640px){
  .site-header .bar{ flex-wrap: wrap; gap:10px; padding: 14px 16px; }
  .brand .brand-name{ font-size: 19px; }
  .header-actions{ gap:10px; flex: 1 1 100%; order:3; }
  .search-box{ flex: 1 1 auto; min-width:0; }
  .icon-btn{ padding: 9px 14px; white-space:nowrap; }
}

/* Account area (Google sign-in) */
.account-area{ position:relative; flex:none; }
.account-signin{
  display:inline-flex; align-items:center; gap:6px;
  font-size: 13px; letter-spacing:.02em; color: var(--ink);
  border:1px solid var(--line); border-radius:999px; padding:8px 16px;
  background:#fff; white-space:nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.account-signin:hover{ border-color: var(--ink); }
.account-trigger{
  display:flex; align-items:center; gap:8px; background:none; border:none;
  cursor:pointer; padding:2px; border-radius:999px;
}
.account-trigger img{
  width:32px; height:32px; border-radius:50%; object-fit:cover;
  border:1px solid var(--line); display:block;
}
.account-trigger .avatar-fallback{
  width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: var(--burgundy); color:#fff; font-size:13px; font-weight:600; text-transform:uppercase;
}
.account-menu{
  position:absolute; top:calc(100% + 10px); right:0; background:#fff;
  border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop);
  min-width:190px; padding:8px; display:none; z-index:20;
}
.account-menu.open{ display:block; }
.account-menu .who{ padding:8px 10px 10px; border-bottom:1px solid var(--line-soft); margin-bottom:6px; }
.account-menu .who .name{ font-weight:600; font-size:13.5px; }
.account-menu .who .email{ font-size:11.5px; color:var(--ink-soft); margin-top:2px; word-break:break-all; }
.account-menu a{
  display:block; padding:8px 10px; font-size:13.5px; color:var(--ink); border-radius:4px;
}
.account-menu a:hover{ background: var(--stone); }

@media (max-width: 640px){
  .account-signin span{ display:none; } /* icon-only on small screens, keeps the header from wrapping */
}

/* Category nav */
.cat-nav{ border-bottom: 1px solid var(--line-soft); overflow-x:auto; scrollbar-width:none; }
.cat-nav::-webkit-scrollbar{ display:none; }
.cat-nav .container{ display:flex; gap:6px; padding-top:2px; padding-bottom:2px; }
.cat-chip{
  flex:none;
  padding: 10px 16px; font-size: 13px; letter-spacing:.02em;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  appearance: none;
  -webkit-appearance: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  white-space:nowrap;
}
.cat-chip:hover{ color: var(--ink); }
.cat-chip.active{ color: var(--burgundy); border-color: var(--gold); font-weight:600; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--stone) 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow:hidden;
}
.hero .container{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items:center; padding-top: 64px; padding-bottom: 64px;
}
.hero h1{
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.03;
  margin-top: 18px;
}
.hero h1 em{ font-style: italic; color: var(--burgundy); }
.hero p.lede{
  margin-top: 20px; max-width: 46ch; color: var(--ink-soft); font-size: 16.5px;
}
.hero .cta-row{ display:flex; gap:14px; margin-top: 30px; flex-wrap:wrap; }

@media (max-width: 760px){
  .hero .container{ grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .hero-visual{ order: 2; max-width: 340px; margin: 0 auto; }
}

.hero-visual{
  display:block; width:100%; text-align:left; cursor:pointer;
  position:relative; aspect-ratio: 4/5; border-radius: var(--radius);
  background: var(--ink); overflow:hidden;
  box-shadow: var(--shadow-pop);
  transition: transform .3s var(--ease);
}
.hero-visual:hover{ transform: translateY(-2px); }
.hero-visual img{ width:100%; height:100%; object-fit:cover; opacity:.92; transition: opacity .5s ease; }
.hero-visual .plate{
  position:absolute; left:18px; bottom:18px; right:18px;
  background: rgba(21,18,15,0.72); color: var(--ivory);
  padding: 14px 16px; border-radius: var(--radius);
  display:flex; justify-content:space-between; align-items:baseline;
  font-size:13px;
}
.hero-visual .plate .n{ font-family:var(--font-display); font-size:16px; }

.hero-nav{
  position:absolute; top:50%; left:0; right:0; transform: translateY(-50%);
  display:flex; justify-content:space-between; padding: 0 14px; z-index:2;
}
.hero-nav button{
  width:40px; height:40px; border-radius:50%; border:none;
  background: rgba(255,255,255,0.88); color: var(--ink);
  font-size:22px; line-height:1; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 2px 10px rgba(21,18,15,0.2);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-nav button:hover{ background:#fff; transform: scale(1.08); }

/* ==========================================================================
   Section headers
   ========================================================================== */
.section{ padding: 72px 0; scroll-margin-top: 100px; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap: 20px; margin-bottom: 36px; flex-wrap:wrap;
}
.section-head h2{ font-size: clamp(26px, 3vw, 34px); margin-top:10px; }
.section-head .desc{ color: var(--ink-soft); max-width: 42ch; font-size:14.5px; }

/* ==========================================================================
   Product grid & cards
   ========================================================================== */
.grid{
  display:grid; gap: 28px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1040px){ .grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px){ .grid{ grid-template-columns: repeat(2,1fr); gap:18px; } }
@media (max-width: 480px){ .grid{ grid-template-columns: 1fr 1fr; gap:12px; } }

.card{
  background:#fff; border:1px solid var(--line-soft); border-radius: var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover{ box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card .thumb{
  position:relative; aspect-ratio: 1/1; background: var(--stone); overflow:hidden;
  cursor:pointer;
}
.card .thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .5s var(--ease); }
.card:hover .thumb img{ transform: scale(1.06); }
.card .badge{
  position:absolute; top:10px; left:10px;
  background: var(--burgundy); color:#fff; font-size:10.5px;
  letter-spacing:.08em; text-transform:uppercase; padding:5px 9px; border-radius: var(--radius);
}
.card .photo-count{
  position:absolute; bottom:10px; right:10px;
  background: rgba(21,18,15,0.68); color:#fff; font-size:11px;
  padding:4px 8px; border-radius: 20px; letter-spacing:.02em;
}
.card .stockout{
  position:absolute; inset:0; background: rgba(247,242,231,.72);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink);
}

/* Category landing page (Phase J') — hero + hand-picked peek, shown
   above the normal filtered grid when ?category=... points to a
   category with page content configured in admin. */
.category-hero{ padding:36px 0 8px; }
.category-hero .container{ display:flex; flex-direction:column; gap:0; }
.category-hero-media{ width:100%; aspect-ratio:21/9; border-radius:var(--radius); overflow:hidden; margin-bottom:20px; }
.category-hero-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.category-hero-body h1{ font-family:var(--font-display); font-size:clamp(26px,4vw,38px); margin:0 0 8px; }
.category-hero-body p{ max-width:56ch; color:var(--ink-soft); font-size:14.5px; line-height:1.6; margin:0 0 26px; }
.category-hero-peek{ padding:0 24px; max-width:1180px; margin:0 auto 22px; }
.category-hero-viewall{
  display:inline-block; font-size:13px; color:var(--ink-soft); text-decoration:none;
  border-bottom:1px solid var(--line); padding-bottom:2px; margin-bottom:30px;
}
.category-hero-viewall:hover{ color:var(--ink); border-color:var(--ink); }

/* Wishlist heart — card-corner version (top-right, the one unclaimed
   corner: badge sits top-left, photo-count bottom-right) */
.wishlist-btn{
  position:absolute; top:10px; right:10px; z-index:2;
  width:32px; height:32px; border-radius:50%; border:none;
  background: rgba(255,255,255,.88); color: var(--ink-soft);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.wishlist-btn:hover{ background:#fff; transform: scale(1.08); }
.wishlist-btn svg path{ fill:none; }
.wishlist-btn.active{ color: var(--burgundy); }
.wishlist-btn.active svg path{ fill: currentColor; }

/* Wishlist heart — product detail view (inline next to price, with label) */
.wishlist-btn.detail{
  position:static; width:auto; height:auto; border-radius:999px;
  padding:8px 14px; gap:6px; background:transparent; border:1px solid var(--line);
  font-size:12.5px; font-weight:600; letter-spacing:.03em; margin:10px 0 4px;
}
.wishlist-btn.detail:hover{ border-color: var(--ink); transform:none; }
.wishlist-btn.detail.active{ border-color: var(--burgundy); background: rgba(92,31,48,.06); }
.card .body{ padding: 16px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card .cat{ font-size: 11px; letter-spacing:.08em; text-transform:uppercase; color: var(--gold); font-weight:600; }
.card .name{ font-family: var(--font-display); font-size: 17px; cursor:pointer; }
.card .low-stock{ font-size: 11px; color: var(--burgundy); font-weight:600; }
.card .price{ margin-top:auto; padding-top:10px; font-size: 15.5px; font-weight:600; display:flex; align-items:baseline; gap:8px; }
.card .price .strike{ font-weight:400; font-size:13px; color:var(--ink-soft); text-decoration: line-through; }
.card .buy{
  margin-top: 12px; flex:1; padding: 12px; text-align:center;
  border:none; background: var(--ink); color: var(--ivory);
  font-size:12.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(21,18,15,0.15);
  transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.card .buy:hover{ background: var(--burgundy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(92,31,48,0.32); }
.card .buy:active{ transform: translateY(0); box-shadow: 0 2px 8px rgba(92,31,48,0.25); }
.card .buy:disabled{ opacity:.4; cursor:not-allowed; box-shadow:none; transform:none; }

.card .card-actions{ display:flex; gap:8px; }
.card .quick-add{
  margin-top:12px; flex:none; width:44px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:999px; color:var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.card .quick-add:hover{ background: var(--ink); color:var(--ivory); border-color:var(--ink); transform: translateY(-2px); }
.card .quick-add:disabled{ opacity:.4; cursor:not-allowed; transform:none; }

.empty-state{
  text-align:center; padding: 60px 20px; color: var(--ink-soft);
}
.empty-state h3{ margin-bottom:8px; }

/* ==========================================================================
   Product view — an in-page section (not a popup overlay). Shown in place
   of the hero + catalogue grid; the header and footer stay visible around
   it in the normal page flow. See js/main.js: openProductView().
   ========================================================================== */
.product-view{ padding: 32px 24px 56px; }
.back-link{
  display:inline-flex; align-items:center; gap:8px; margin-bottom:20px;
  font-size:13.5px; font-weight:600; color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.back-link:hover{ color: var(--ink); }
.product-view-grid{
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-pop);
  overflow:hidden; display:grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px){ .product-view-grid{ grid-template-columns:1fr; } }
.product-view .m-image{ background: var(--stone); aspect-ratio: 1/1; position:relative; display:flex; flex-direction:column; min-width:0; min-height:0; }
.product-view .m-image img{ width:100%; height:100%; object-fit:cover; flex:1; min-height:0; min-width:0; }

.gallery-nav{
  display:none; position:absolute; top:50%; left:0; right:0; transform: translateY(-50%);
  justify-content:space-between; padding: 0 12px; pointer-events:none;
}
.gallery-nav button{
  pointer-events:auto;
  width:38px; height:38px; border-radius:50%; border:none;
  background: rgba(255,255,255,0.85); color: var(--ink);
  font-size:20px; line-height:1; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 2px 10px rgba(21,18,15,0.18);
  transition: background .2s ease;
}
.gallery-nav button:hover{ background:#fff; }

.gallery-thumbs{
  display:none; gap:8px; padding: 10px; background: rgba(255,255,255,0.9);
  overflow-x:auto; justify-content:center;
}
.thumb-btn{
  flex:none; width:52px; height:52px; border-radius: var(--radius);
  border:2px solid transparent; padding:0; overflow:hidden; background:none;
  opacity:.7; transition: opacity .2s ease, border-color .2s ease;
}
.thumb-btn img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb-btn.active{ opacity:1; border-color: var(--gold); }
.thumb-btn:hover{ opacity:1; }
.product-view .m-body{ padding: 30px; display:flex; flex-direction:column; }
.product-view .m-cat{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); font-weight:700; }
.product-view .m-name{ font-size: 26px; margin-top:8px; font-family: var(--font-display); }
.product-view .m-price{ font-size: 20px; font-weight:700; margin-top: 12px; display:flex; align-items:baseline; gap:8px; }
.m-shipping-note{ font-size:12.5px; color:var(--ink-soft); margin-top:4px; }
.product-view .m-price .strike{ font-weight:400; font-size:14.5px; color:var(--ink-soft); text-decoration: line-through; }
.product-view .m-price .discount-pct{ font-size:13px; font-weight:600; color:var(--burgundy); }
.product-view .m-desc{ margin-top: 16px; color: var(--ink-soft); font-size: 14.5px; line-height:1.7; }
.product-view .m-qty{ display:flex; align-items:center; gap:14px; margin-top:22px; }
.variant-picker{ margin-top:14px; }
.variant-picker-label{ display:block; font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-soft); margin-bottom:8px; }
.variant-picker-options{ display:flex; flex-wrap:wrap; gap:8px; }
.variant-pill{
  padding:9px 16px; border:1px solid var(--line); border-radius:999px; background:#fff;
  font-size:13px; cursor:pointer;
}
.variant-pill:hover{ border-color:var(--ink); }
.variant-pill.selected{ background:var(--ink); color:#fff; border-color:var(--ink); }
.variant-pill.unavailable{ text-decoration:line-through; color:var(--ink-soft); cursor:not-allowed; opacity:.5; }
.variant-picker-feedback{ color:var(--burgundy); font-size:12.5px; margin-top:8px; }
.product-view .m-qty button{
  width:32px; height:32px; border:1px solid var(--line); background:#fff; border-radius: var(--radius); font-size:16px;
}
.product-view .m-actions{ margin-top: 26px; display:flex; flex-direction:column; gap:10px; }
.btn-whatsapp{
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:#1F7A54; color:#fff; padding: 14px; border-radius: 999px;
  font-size:14px; letter-spacing:.02em; font-weight:600;
  box-shadow: 0 2px 8px rgba(31,122,84,0.25);
  transition: filter .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-whatsapp:hover{ filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31,122,84,0.35); }

/* Add to cart / Buy Now — the primary twin-button row (see index.html's
   product view and the cart drawer footer). Buy Now is the real,
   Razorpay-backed payment path; Add to cart stays outlined/secondary in
   comparison, matching the traditional Amazon/Myntra visual hierarchy. */
.btn-add-cart{
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  background:#fff; color: var(--ink); border:1px solid var(--ink); padding:14px;
  border-radius:999px; font-size:14px; letter-spacing:.02em; font-weight:600; margin-top:22px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn-add-cart:hover{ background: var(--ink); color:#fff; }
.btn-add-cart:disabled{ opacity:.4; cursor:not-allowed; background:#fff; color:var(--ink); }
.m-actions-primary{ margin-top:10px; }
.btn-buy-now{
  width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
  background: var(--burgundy); color:#fff; padding: 14px; border-radius: 999px; border:none;
  font-size:14px; letter-spacing:.02em; font-weight:600; cursor:pointer;
  box-shadow: 0 2px 8px rgba(92,31,48,0.25);
  transition: filter .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-buy-now:hover{ filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(92,31,48,0.35); }
.btn-buy-now:disabled{ opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
.m-note{ font-size:12.5px; color: var(--ink-soft); margin-top:6px; line-height:1.6; }
.m-or{ font-size:12.5px; color: var(--ink-soft); margin:18px 0 8px; text-align:center; }


/* ==========================================================================
   About / trust strip
   ========================================================================== */
.trust-strip{ background: var(--ink); color: var(--ivory); }
.trust-strip .container{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 30px;
  padding: 48px 24px;
}
.trust-item{ display:flex; gap:14px; align-items:flex-start; }
.trust-item svg{ flex:none; stroke: var(--gold); margin-top:2px; }
.trust-item h4{ font-family:var(--font-body); font-size:14px; letter-spacing:.02em; }
.trust-item p{ font-size:13px; color: rgba(247,242,231,.7); margin-top:4px; }
@media (max-width: 760px){ .trust-strip .container{ grid-template-columns:1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--stone); border-top:1px solid var(--line-soft); }
.site-footer .container{ padding: 48px 24px 32px; display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.site-footer .col h4{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:12px; color:var(--ink-soft); }
.site-footer .col a, .site-footer .col p{ display:block; font-size:13.5px; margin-bottom:8px; color: var(--ink); }
.foot-bottom{ text-align:center; padding: 16px; font-size:12px; color: var(--ink-soft); border-top:1px solid var(--line-soft); }

/* Toast */
.toast{
  position:fixed; bottom:24px; left:50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color:#fff; padding: 12px 20px; border-radius: var(--radius);
  font-size: 13.5px; opacity:0; pointer-events:none; transition: all .3s var(--ease); z-index:200;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Cart trigger (header) + drawer
   ========================================================================== */
.cart-trigger{
  position:relative; display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%; flex:none;
  color: var(--ink); transition: background .2s var(--ease);
}
.cart-trigger:hover{ background: var(--stone); }
.cart-count{
  position:absolute; top:-2px; right:-2px;
  min-width:16px; height:16px; padding:0 4px; border-radius:999px;
  background: var(--burgundy); color:#fff; font-size:10px; font-weight:700;
  display:flex; align-items:center; justify-content:center; line-height:1;
}

.cart-overlay{
  position:fixed; inset:0; background: rgba(21,18,15,0.45); z-index:150;
}
.cart-drawer{
  position:fixed; top:0; right:0; bottom:0; width:100%; max-width:420px;
  background:#fff; z-index:151; display:flex; flex-direction:column;
  box-shadow: var(--shadow-pop);
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.cart-drawer:not([hidden]){ transform: translateX(0); }
.cart-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 22px; border-bottom:1px solid var(--line-soft); flex:none;
}
.cart-drawer-head h3{ font-size:19px; }
.cart-close{
  width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:14px; color: var(--ink-soft); transition: background .2s var(--ease);
}
.cart-close:hover{ background: var(--stone); color: var(--ink); }

.cart-items{ flex:1; overflow-y:auto; padding: 12px 22px; }
.cart-line{
  display:flex; gap:12px; padding: 14px 0; border-bottom:1px solid var(--line-soft);
}
.cart-line img{
  width:64px; height:64px; object-fit:cover; border-radius: var(--radius); flex:none;
  background: var(--stone);
}
.cart-line-body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.cart-line-name{ font-size:14px; font-weight:600; line-height:1.3; }
.cart-line-variant{ font-weight:400; color:var(--ink-soft); font-size:12.5px; }
.cart-line-cat{ font-size:11px; color: var(--ink-soft); text-transform:uppercase; letter-spacing:.06em; }
.cart-line-note{ font-size:11.5px; color: var(--burgundy); }
.cart-line-bottom{ display:flex; align-items:center; justify-content:space-between; margin-top:4px; gap:8px; }
.cart-line-qty{ display:flex; align-items:center; gap:10px; }
.cart-line-qty button{
  width:24px; height:24px; border:1px solid var(--line); background:#fff; border-radius: var(--radius); font-size:14px;
  display:flex; align-items:center; justify-content:center;
}
.cart-line-price{ font-size:13.5px; font-weight:600; }
.cart-line-remove{
  font-size:11.5px; color: var(--ink-soft); text-decoration:underline; text-underline-offset:2px;
}
.cart-line-remove:hover{ color: var(--burgundy); }

.cart-empty{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:40px 24px; text-align:center; color: var(--ink-soft); }
.cart-empty[hidden]{ display:none; }

.cart-footer{ flex:none; padding: 18px 22px 22px; border-top:1px solid var(--line-soft); display:flex; flex-direction:column; gap:10px; }
.cart-footer[hidden]{ display:none; }
.cart-total{ display:flex; align-items:baseline; justify-content:space-between; font-size:15px; margin-bottom:4px; }
.cart-total strong{ font-size:20px; font-family: var(--font-display); }
.cart-subtotal-row{ display:flex; justify-content:space-between; font-size:13px; color:var(--ink-soft); margin-bottom:4px; }

/* Coupons — shared by the cart drawer (#cartCouponBox) and the product
   detail view (#modalCouponBox); see renderCouponBox() in js/main.js. */
.coupon-box{ margin-bottom:12px; }
.coupon-row{ display:flex; gap:8px; }
.coupon-input{
  flex:1; padding:9px 12px; border:1px solid var(--line); border-radius:var(--radius);
  font-family:inherit; font-size:13px;
}
.coupon-input:focus{ outline:none; border-color:var(--ink); }
.coupon-apply-btn{
  padding:9px 16px; border:1px solid var(--ink); border-radius:var(--radius); background:var(--ink);
  color:#fff; font-size:12.5px; font-weight:600; cursor:pointer; white-space:nowrap;
}
.coupon-apply-btn:hover{ background:var(--burgundy); border-color:var(--burgundy); }
.coupon-apply-btn:disabled{ opacity:.6; cursor:not-allowed; }
.coupon-feedback{ font-size:12px; color:var(--burgundy); margin:6px 0 0; }
.coupon-applied-row{
  display:flex; justify-content:space-between; align-items:center; font-size:13px;
  background:#E4F3EC; border:1px solid #BFE3D0; border-radius:var(--radius); padding:9px 12px;
}
.coupon-applied-row .coupon-remove-btn{
  background:none; border:none; padding:0; font-size:12px; color:var(--ink-soft); text-decoration:underline; cursor:pointer;
}
.coupon-applied-row .coupon-remove-btn:hover{ color:var(--ink); }
.coupon-discount-value{ font-weight:600; color:#1F7A54; }

.m-or{ font-size:12px; color: var(--ink-soft); margin: 4px 0 14px; }

@media (max-width: 480px){
  .cart-drawer{ max-width:100%; }
}

/* ---------------------------------------------------------------------
   Pincode / delivery check modal (js/main.js: Pincode section). Opened
   from the inline delivery-check line above the purchase buttons (see
   .delivery-check-inline further down) — no header trigger; the check
   lives where the buying decision happens. Deliberately styled
   independently rather than reusing .cart-drawer/.modal-close, since
   those were built for a slide-in panel and a full-page view
   respectively — this is a small centered dialog.
   --------------------------------------------------------------------- */
.pincode-overlay{
  position:fixed; inset:0; background: rgba(21,18,15,0.45); z-index:170;
}
.pincode-modal{
  position:fixed; top:50%; left:50%; transform: translate(-50%,-50%);
  width:calc(100% - 40px); max-width:380px; background:#fff; z-index:171;
  border-radius: var(--radius); box-shadow: var(--shadow-pop);
  padding: 28px 24px 24px;
}
.pincode-modal h3{ font-size:19px; margin:0 0 6px; padding-right:24px; }
.pincode-modal .hint{ font-size:13px; color: var(--ink-soft); margin:0 0 18px; line-height:1.5; }
.pincode-close{
  position:absolute; top:14px; right:14px; width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; color: var(--ink-soft); transition: background .2s var(--ease);
}
.pincode-close:hover{ background: var(--stone); color: var(--ink); }

.pincode-row{ display:flex; gap:10px; }
.pincode-row input{
  flex:1; min-width:0; padding:11px 14px; border:1px solid var(--line); border-radius: var(--radius);
  font-size:14px; letter-spacing:.03em;
}
.pincode-row input:focus{ outline:none; border-color: var(--ink); }
.pincode-submit{
  flex:none; padding:11px 18px; border-radius: var(--radius); border:1px solid var(--ink);
  background: var(--ink); color:#fff; font-size:13.5px; cursor:pointer;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.pincode-submit:hover{ background: var(--burgundy); border-color: var(--burgundy); }
.pincode-submit:disabled{ opacity:.6; cursor:not-allowed; }

.pincode-feedback{ margin:14px 0 0; font-size:13.5px; line-height:1.5; padding:10px 12px; border-radius: var(--radius); }
.pincode-feedback.ok{ background: rgba(31,122,84,0.1); color:#1F7A54; }
.pincode-feedback.error{ background: rgba(92,31,48,0.08); color: var(--burgundy); }

/* Shipping-details modal reuses .pincode-modal/.pincode-overlay/.pincode-close/
   .pincode-submit/.pincode-feedback — this is just the form-field layout,
   plus the saved-address book UI added on top of it. */
.shipping-field{ margin-bottom:14px; }
.shipping-field label{ display:block; font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color: var(--ink-soft); margin-bottom:6px; }
.shipping-field input, .shipping-field textarea{
  width:100%; padding:11px 14px; border:1px solid var(--line); border-radius: var(--radius);
  font-size:14px; font-family:inherit; resize:vertical;
}
.shipping-field input:focus, .shipping-field textarea:focus{ outline:none; border-color: var(--ink); }
.shipping-field .optional-tag{ text-transform:none; letter-spacing:0; font-size:11px; }

/* Address book — saved addresses (signed-in customers) */
.shipping-modal{ max-width:420px; max-height:85vh; overflow-y:auto; }
.saved-address-card{
  border:1px solid var(--line); border-radius:var(--radius); padding:13px 14px;
  margin-bottom:10px; cursor:pointer; transition:border-color .15s ease;
}
.saved-address-card:hover{ border-color:var(--ink); }
.saved-address-card .addr-top{ display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.address-label-pill{
  font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; padding:2px 8px;
  border-radius:20px; background:var(--stone); color:var(--ink-soft);
}
.address-label-pill.default{ background:var(--ink); color:#fff; }
.saved-address-card .addr-name{ font-weight:600; font-size:13.5px; }
.saved-address-card .addr-line{ font-size:13px; color:var(--ink-soft); line-height:1.5; }
.saved-address-card.address-error{ border-color:var(--burgundy); }
.saved-address-card .addr-inline-error{ color:var(--burgundy); font-size:12.5px; margin-top:6px; }
.add-new-address-link{
  display:block; text-align:center; padding:12px; border:1px dashed var(--line); border-radius:var(--radius);
  font-size:13.5px; cursor:pointer; color:var(--ink); margin-bottom:4px;
}
.add-new-address-link:hover{ border-color:var(--ink); background:var(--stone); }
.back-to-list{ font-size:13px; color:var(--ink-soft); cursor:pointer; margin:0 0 16px; }
.back-to-list:hover{ color:var(--ink); }
.shipping-label-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.shipping-label-row select{
  padding:9px 10px; border:1px solid var(--line); border-radius:var(--radius); font-family:inherit; font-size:13.5px;
}
.shipping-default-check{ display:flex !important; align-items:center; gap:6px; font-size:13px; text-transform:none !important; letter-spacing:0 !important; color:var(--ink-soft); margin:0 !important; }

/* ---------------------------------------------------------------------
   My Account page (account.php + js/account.js). Reuses .saved-address-card
   / .address-label-pill / .shipping-field / .shipping-label-row from the
   checkout address book above — this is just the page-level layout and
   the small additions specific to managing (not just picking) addresses.
   --------------------------------------------------------------------- */
.account-page{ padding:40px 24px 80px; max-width:720px; }
.account-title{ font-size:28px; margin:0 0 24px; }
.account-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:28px; flex-wrap:wrap; }
.account-tab{
  background:none; border:none; padding:10px 16px; font-size:14px; cursor:pointer;
  color:var(--ink-soft); border-bottom:2px solid transparent; margin-bottom:-1px;
}
.account-tab:hover{ color:var(--ink); }
.account-tab.active{ color:var(--ink); border-bottom-color:var(--ink); font-weight:600; }

.profile-card{ display:flex; align-items:center; gap:18px; margin-bottom:16px; }
.profile-avatar img{ width:64px; height:64px; border-radius:50%; object-fit:cover; }
.avatar-fallback.large{ width:64px; height:64px; font-size:24px; }
.profile-name{ font-size:19px; font-weight:600; }
.profile-email{ color:var(--ink-soft); font-size:14px; margin-top:2px; }
.profile-since{ color:var(--ink-soft); font-size:12.5px; margin-top:6px; }
.account-note{ color:var(--ink-soft); font-size:13.5px; line-height:1.6; }
.account-coming-soon{ color:var(--ink-soft); font-size:14px; padding:24px 0; }

.account-panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.account-panel-head h2{ font-size:18px; margin:0; }
.btn-small{
  padding:9px 16px; border:1px solid var(--ink); border-radius:var(--radius); background:transparent;
  font-size:13px; cursor:pointer; color:var(--ink);
}
.btn-small:hover{ background:var(--stone); }
.btn-small.primary{ background:var(--ink); color:#fff; }
.btn-small.primary:hover{ background:var(--burgundy); border-color:var(--burgundy); }
.account-form-actions{ display:flex; gap:10px; margin-top:6px; }

.saved-address-card.manage{ cursor:default; }
.saved-address-card.manage:hover{ border-color:var(--line); }
.addr-actions{ display:flex; gap:14px; margin-top:10px; }
.link-btn{ background:none; border:none; padding:0; font-size:12.5px; color:var(--ink-soft); text-decoration:underline; cursor:pointer; }
.link-btn:hover{ color:var(--ink); }

.account-panel-title{ font-size:18px; margin:0 0 16px; }
.order-card .addr-top{ justify-content:space-between; }
.order-card-receipt{ font-size:12.5px; color:var(--ink-soft); }

/* Status pills — shared by the customer-facing order list (js/account.js).
   receipt.php intentionally keeps its own separately-scoped .status-pill
   (white text on a solid color, print-oriented) — these two never
   collide since receipt.php's own <style> block comes later in that
   page's cascade and wins for that page specifically. */
.status-pill{ font-size:11px; padding:3px 8px; border-radius:20px; text-transform:uppercase; letter-spacing:.04em; }
.status-pill.paid{ background:#E4F3EC; color:#1F7A54; }
.status-pill.pending_payment{ background:#FBF0DC; color:#8A6216; }
.status-pill.payment_failed{ background:#F6E7E7; color:#8A2C2C; }
.status-pill.placed{ background:#E6EEF7; color:#2C5C8A; }
.status-pill.shipped{ background:#EAE6F5; color:#4C2C8A; }

.wishlist-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:18px; }
.wishlist-item-thumb{
  position:relative; display:block; aspect-ratio:1/1; background:var(--stone);
  border-radius:var(--radius); overflow:hidden; margin-bottom:8px;
}
.wishlist-item-thumb img{ width:100%; height:100%; object-fit:cover; }
.wishlist-item-stockout{
  position:absolute; inset:0; background:rgba(247,242,231,.8); display:flex; align-items:center; justify-content:center;
  font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink);
}
.wishlist-item-name{ display:block; font-size:13.5px; color:var(--ink); text-decoration:none; margin-bottom:4px; }
.wishlist-item-name:hover{ text-decoration:underline; }
.wishlist-item-price{ font-size:13px; font-weight:600; margin-bottom:6px; }

/* ---------------------------------------------------------------------
   Inline delivery-check line — shown directly above the purchase
   buttons in the product view and the cart drawer (js/main.js:
   renderInlineDeliveryCheck()), so checking delivery happens right where
   the buying decision is, not just from the header widget.
   --------------------------------------------------------------------- */
.delivery-check-inline{
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  font-size:12.5px; color: var(--ink-soft); line-height:1.5;
  background: var(--stone); border-radius: var(--radius);
  padding:9px 12px; margin: 10px 0 14px;
}
.cart-footer .delivery-check-inline{ margin:0; } /* .cart-footer already applies gap:10px between children */
.delivery-check-inline strong{ color: var(--ink); }
.delivery-check-cta, .delivery-check-change{
  background:none; border:none; padding:0; font-size:inherit; font-family:inherit;
  color: var(--burgundy); text-decoration:underline; cursor:pointer;
}
