/* ==========================================================================
   Sansaaj — Design System
   Palette drawn from brand mark: deep temple maroon, marigold flame gold,
   tulsi-leaf green, warm unbleached-cotton cream.
   Type: Fraunces (display, warm ritual serif) + Work Sans (body/UI)
   Signature motif: the "kul-daivat" arch — the little peaked-roof temple
   silhouette from the logo — reused as a card crown / section divider.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@300;400;500;600;700;800&display=swap');

:root{
  /* Color */
  --maroon-900:#4E0F1C;
  --maroon-800:#611425;
  --maroon-700:#7A1B2E;
  --maroon-600:#8F2436;
  --maroon-050:#FBEEEC;
  --gold-600:#B9791C;
  --gold-500:#C98A2C;
  --gold-400:#D9A24C;
  --gold-300:#E7C482;
  --gold-100:#F3E3C3;
  --green-700:#2F5A22;
  --green-600:#3F6B2A;
  --green-500:#548438;
  --cream-000:#FDF8F1;
  --cream-050:#FBF3E7;
  --cream-100:#F5E8D6;
  --cream-200:#EEDCC1;
  --ink-900:#2A1712;
  --ink-700:#463027;
  --ink-500:#6E5A4F;
  --ink-300:#A8988C;
  --white:#FFFFFF;

  /* Type */
  --font-display:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii / shadow */
  --r-sm:6px;
  --r-md:14px;
  --r-lg:26px;
  --shadow-sm:0 2px 10px rgba(42,23,18,0.06);
  --shadow-md:0 12px 32px rgba(78,15,28,0.12);
  --shadow-lg:0 24px 60px rgba(78,15,28,0.18);

  --container:1240px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--cream-050);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
  overflow-x:hidden;
}

img{max-width:100%;display:block;}

a{color:inherit;text-decoration:none;}

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--maroon-900);
  margin:0 0 .5em;
  line-height:1.12;
  font-weight:600;
}

h1{font-size:clamp(2.4rem,4.6vw,4.1rem); font-weight:600; letter-spacing:-0.01em;}
h2{font-size:clamp(1.9rem,3.2vw,2.7rem);}
h3{font-size:clamp(1.3rem,2vw,1.6rem);}
.hero-heading{
  font-family:var(--font-display); color:var(--maroon-900); margin:0 0 20px; line-height:1.12; font-weight:600;
  font-size:clamp(2.4rem,4.6vw,4.1rem); letter-spacing:-0.01em;
}
p{margin:0 0 1em; color:var(--ink-700);}

.container{max-width:var(--container); margin:0 auto; padding:0 24px;}

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-body); font-weight:600; font-size:.78rem;
  letter-spacing:.16em; text-transform:uppercase; color:var(--green-700);
  margin-bottom:14px;
}
.eyebrow::before{content:"";width:22px;height:1px;background:var(--gold-500);}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:.95rem;
  padding:14px 30px; border-radius:999px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn:focus-visible{outline:3px solid var(--gold-400); outline-offset:2px;}
.btn-primary{background:var(--maroon-800); color:var(--white); box-shadow:var(--shadow-sm);}
.btn-primary:hover{background:var(--maroon-700); transform:translateY(-2px); box-shadow:var(--shadow-md);}
.btn-gold{background:var(--gold-500); color:var(--maroon-900);}
.btn-gold:hover{background:var(--gold-400); transform:translateY(-2px); box-shadow:var(--shadow-md);}
.btn-outline{background:transparent; border-color:var(--maroon-800); color:var(--maroon-800);}
.btn-outline:hover{background:var(--maroon-800); color:var(--white); transform:translateY(-2px);}
.btn-ghost{background:transparent; color:var(--maroon-800); padding:10px 6px;}
.btn-ghost:hover{color:var(--gold-600);}
.btn-block{width:100%;}
.btn-sm{padding:9px 18px; font-size:.85rem;}

/* ---------- Header ---------- */
.topbar{
  background:var(--maroon-900); color:var(--cream-100);
  font-size:.78rem; letter-spacing:.02em;
}
.topbar .container{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:8px; padding-bottom:8px; gap:16px; flex-wrap:wrap;
}
.topbar-links{display:flex; gap:22px; opacity:.9;}
.topbar-links span{display:inline-flex; align-items:center; gap:6px;}

.site-header{
  background:var(--cream-000);
  position:sticky; top:0; z-index:200;
  border-bottom:1px solid var(--cream-200);
}
.header-main{
  display:flex; align-items:center; gap:28px; padding:14px 0;
}
.brand{display:flex; align-items:center; flex-shrink:0;}
.brand img{height:60px; width:auto; object-fit:contain; display:block;}

.search-form{
  flex:1; display:flex; max-width:520px; position:relative;
}
.search-form input{
  width:100%; padding:12px 46px 12px 18px; border-radius:999px;
  border:1.5px solid var(--cream-200); background:var(--cream-050);
  font-family:var(--font-body); font-size:.92rem; color:var(--ink-900);
  transition:border-color .2s;
}
.search-form input:focus{outline:none; border-color:var(--gold-500);}
.search-form button{
  position:absolute; right:4px; top:4px; bottom:4px; width:38px;
  border:none; border-radius:50%; background:var(--maroon-800); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.search-form button:hover{background:var(--maroon-700);}

.header-actions{display:flex; align-items:center; gap:6px; flex-shrink:0;}
.icon-btn{
  position:relative; width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--maroon-900); background:transparent; border:none; cursor:pointer;
  transition:background .2s;
}
.icon-btn:hover{background:var(--cream-100);}
.icon-btn svg{width:21px;height:21px;}
.badge{
  position:absolute; top:2px; right:2px; background:var(--gold-500); color:var(--maroon-900);
  font-size:.62rem; font-weight:700; width:16px; height:16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}

.main-nav{border-top:1px solid var(--cream-200);}
.main-nav .container{display:flex; align-items:center; gap:8px;}
.nav-toggle-all{
  display:flex; align-items:center; gap:8px; background:var(--maroon-800); color:#fff;
  padding:12px 18px; font-weight:600; font-size:.86rem; border:none; cursor:pointer;
  border-radius:var(--r-sm) var(--r-sm) 0 0; margin-top:-1px;
}
.nav-links{display:flex; gap:2px; flex:1; overflow-x:auto; scrollbar-width:none;}
.nav-links::-webkit-scrollbar{display:none;}
.nav-links a{
  padding:14px 16px; font-size:.88rem; font-weight:500; color:var(--ink-700);
  white-space:nowrap; border-bottom:2.5px solid transparent; transition:color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active{color:var(--maroon-800); border-color:var(--gold-500);}
.nav-offer{margin-left:auto; padding:14px 16px; font-size:.88rem; font-weight:600; color:var(--green-700); white-space:nowrap;}

.mobile-menu-btn{display:none;}
.mobile-menu-btn svg{width:22px; height:22px; display:block;}
.nav-toggle-all svg{width:16px; height:16px; flex-shrink:0;}
.search-form button svg{width:18px; height:18px;}

/* ---------- Breadcrumb ---------- */
.breadcrumb{padding:16px 0; font-size:.85rem; color:var(--ink-500);}
.breadcrumb a:hover{color:var(--maroon-800);}
.breadcrumb .sep{margin:0 8px; color:var(--ink-300);}
.breadcrumb .current{color:var(--ink-900); font-weight:500;}

/* ---------- Buttons within cards ---------- */
.card-add{
  display:flex; align-items:center; gap:6px; background:var(--maroon-800); color:#fff;
  border:none; border-radius:999px; padding:9px 16px; font-weight:600; font-size:.82rem;
  cursor:pointer; transition:background .2s, transform .2s;
}
.card-add:hover{background:var(--maroon-700); transform:translateY(-1px);}

/* ---------- Section basics ---------- */
section{padding:78px 0;}
.section-head{max-width:640px; margin:0 auto 46px; text-align:center;}
.section-head p{font-size:1.05rem;}
.divider-motif{
  display:flex; align-items:center; justify-content:center; gap:14px; margin:10px 0 8px;
  color:var(--gold-500);
}
.divider-motif::before,.divider-motif::after{content:"";height:1px;width:70px;background:var(--gold-300);}

/* ---------- Footer ---------- */
.site-footer{background:var(--maroon-900); color:var(--cream-100); padding-top:64px;}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand img{width:48px; height:48px; margin-bottom:12px;}
.footer-brand-word{font-family:var(--font-display); font-size:1.3rem; font-weight:700; color:#fff;}
.footer-desc{color:var(--cream-200); font-size:.9rem; max-width:280px;}
.footer-social{display:flex; gap:10px; margin-top:16px;}
.footer-social a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center; transition:background .2s, border-color .2s;
}
.footer-social a:hover{background:var(--gold-500); border-color:var(--gold-500); color:var(--maroon-900);}
.footer-social .social-pending{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center; opacity:.4; cursor:default;
}
.footer-col h4{color:#fff; font-family:var(--font-body); font-size:.85rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:16px;}
.footer-col ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px;}
.footer-col a{color:var(--cream-200); font-size:.92rem; transition:color .2s;}
.footer-col a:hover{color:var(--gold-400);}
.footer-newsletter input{
  width:100%; padding:12px 14px; border-radius:999px 0 0 999px; border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.06); color:#fff; font-family:var(--font-body);
}
.footer-newsletter input::placeholder{color:var(--cream-200);}
.footer-newsletter{display:flex;}
.footer-newsletter button{
  border-radius:0 999px 999px 0; border:none; background:var(--gold-500); color:var(--maroon-900);
  padding:0 20px; font-weight:700; cursor:pointer;
}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; padding:22px 0; font-size:.82rem; color:var(--cream-200); flex-wrap:wrap; gap:10px;
}
.footer-bottom a{margin-left:16px;}

/* ---------- Utility ---------- */
.mt-0{margin-top:0;}
.text-center{text-align:center;}
.bg-cream{background:var(--cream-100);}
.reveal{opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1; transform:none;}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{outline:3px solid var(--gold-400); outline-offset:2px;}

/* ---------- Cart Drawer ---------- */
.overlay{
  position:fixed; inset:0; background:rgba(42,23,18,.45); backdrop-filter:blur(2px);
  opacity:0; pointer-events:none; transition:opacity .3s ease; z-index:400;
}
.overlay.show{opacity:1; pointer-events:auto;}
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:min(420px,92vw); background:var(--white);
  z-index:401; transform:translateX(100%); transition:transform .35s cubic-bezier(.2,.8,.2,1);
  display:flex; flex-direction:column; box-shadow:var(--shadow-lg);
}
.cart-drawer.show{transform:translateX(0);}
.cart-head{display:flex; justify-content:space-between; align-items:flex-start; padding:24px 24px 16px; border-bottom:1px solid var(--cream-200);}
.cart-head h3{margin:0;}
.cart-head small{color:var(--ink-500);}
.cart-close{background:none; border:none; cursor:pointer; color:var(--ink-700); width:32px; height:32px;}
.cart-items{flex:1; overflow-y:auto; padding:14px 24px;}
.cart-item{display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--cream-100);}
.cart-item img{width:64px; height:64px; border-radius:var(--r-sm); object-fit:cover; background:var(--cream-100);}
.cart-item-info{flex:1;}
.cart-item-info .name{font-weight:600; font-size:.92rem; margin-bottom:2px;}
.cart-item-info .meta{font-size:.76rem; color:var(--ink-500); text-transform:uppercase; letter-spacing:.05em;}
.qty-row{display:flex; align-items:center; gap:10px; margin-top:8px;}
.qty-row button{width:24px;height:24px;border-radius:50%;border:1px solid var(--cream-200);background:#fff;cursor:pointer;}
.cart-item-price{font-weight:600; color:var(--maroon-800); white-space:nowrap;}
.cart-remove{background:none;border:none;color:var(--ink-300);font-size:.75rem;cursor:pointer;text-decoration:underline;margin-top:6px;}
.cart-empty{padding:60px 20px; text-align:center; color:var(--ink-500);}
.cart-summary{padding:18px 24px 26px; border-top:1px solid var(--cream-200);}
.summary-row{display:flex; justify-content:space-between; font-size:.92rem; margin-bottom:8px; color:var(--ink-700);}
.summary-row.total{font-family:var(--font-display); font-size:1.3rem; color:var(--maroon-900); margin:14px 0;}
.cart-trust{display:flex; justify-content:space-between; margin-top:16px; font-size:.7rem; color:var(--ink-500); text-align:center;}
.cart-trust > div{flex:1;}
.cart-trust svg{width:18px;height:18px;margin-bottom:4px;color:var(--gold-500);}

/* Toast */
.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--maroon-900); color:#fff; padding:13px 24px; border-radius:999px;
  font-size:.88rem; font-weight:500; z-index:500; opacity:0; pointer-events:none;
  transition:opacity .3s, transform .3s; display:flex; align-items:center; gap:8px;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .footer-grid{grid-template-columns:1fr 1fr;}
  .search-form{display:none;}
}
@media (max-width:860px){
  .topbar-links span:nth-child(2){display:none;}
  .header-main{gap:14px;}
  .brand img{height:48px;}
  .main-nav{position:fixed; top:0; left:0; height:100%; width:min(320px,84vw); background:#fff;
    transform:translateX(-100%); transition:transform .3s ease; z-index:401; overflow-y:auto; border-top:none; box-shadow:var(--shadow-lg);}
  .main-nav.open{transform:translateX(0);}
  .main-nav .container{flex-direction:column; align-items:stretch; padding:20px;}
  .nav-links{flex-direction:column;}
  .nav-links a{border-bottom:1px solid var(--cream-100); border-left:2.5px solid transparent;}
  .nav-links a:hover, .nav-links a.active{border-bottom-color:var(--cream-100); border-left-color:var(--gold-500);}
  .nav-toggle-all{display:none;}
  .nav-offer{margin-left:0;}
  .mobile-menu-btn{display:flex; align-items:center; justify-content:center; width:42px;height:42px;border:none;background:transparent;color:var(--maroon-900);cursor:pointer;}
  .footer-grid{grid-template-columns:1fr; gap:32px;}
}
@media (max-width:600px){
  section{padding:52px 0;}
  .footer-bottom{flex-direction:column; align-items:flex-start;}
}
@media (max-width:420px){
  .container{padding:0 16px;}
  .hero-ctas, .pdp-cta-row{flex-direction:column;}
  .hero-ctas .btn, .pdp-cta-row .btn{width:100%;}
  .hero-stats{flex-wrap:wrap; gap:20px; row-gap:16px;}
}

/* Header action labels */
.header-action-item{display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;color:var(--maroon-900);font-size:.68rem;font-weight:600;background:none;border:none;cursor:pointer;padding:0 6px;}
.header-action-item .icon-wrap{position:relative;width:42px;height:42px;display:flex;align-items:center;justify-content:center;}
.header-action-item svg{width:21px;height:21px;}

/* Pre-footer bar */
.pre-footer-bar{background:var(--maroon-900);padding:28px 0;}
.pre-footer-bar .container{display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;}
.pre-footer-newsletter h3{color:#fff;font-family:var(--font-display);font-size:1.2rem;margin:0 0 12px;}
.pre-footer-form{display:flex;max-width:380px;}
.pre-footer-form input{flex:1;padding:12px 16px;border:none;border-radius:999px 0 0 999px;font-family:var(--font-body);}
.pre-footer-form button{border:none;background:var(--gold-500);color:var(--maroon-900);font-weight:700;padding:0 22px;border-radius:0 999px 999px 0;cursor:pointer;}
.pre-footer-highlights{display:flex;gap:36px;flex-wrap:wrap;}
.pre-footer-highlight{text-align:center;color:var(--cream-100);min-width:120px;}
.pre-footer-highlight svg{width:28px;height:28px;color:var(--gold-400);margin-bottom:6px;}
.pre-footer-highlight strong{display:block;font-size:.85rem;color:#fff;}
.pre-footer-highlight span{font-size:.72rem;color:var(--cream-200);}
@media (max-width:860px){.pre-footer-bar .container{flex-direction:column;align-items:stretch;}.pre-footer-highlights{justify-content:center;}.hide-mobile{display:none!important;}}
