:root{
  --bg: #FBF7EA;
  --bg-alt: #FDFBF3;
  --cream-border: #F0E4C8;
  --ink: #2B160A;
  --brown: #5A3A24;
  --brown-light: #8A6A4E;
  --footer-bg: #3A150A;
  --footer-text: #E8C9A8;
  --orange: #EA5A24;
  --orange-dark: #D8431A;
  --red: #DC2626;
  --green: #1E9E4F;
  --green-bg: #E6F6EC;
  --white: #FFFFFF;
  --shadow: 0 4px 18px rgba(90,50,20,0.08);
  --shadow-lg: 0 12px 32px rgba(90,50,20,0.14);
  --radius: 14px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor:pointer; }
input, textarea{ font-family: inherit; }

/* ---------- Marquee ---------- */
.marquee-bar{
  background: linear-gradient(90deg, var(--orange), var(--red));
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}
.marquee-track{
  display: inline-flex;
  animation: marquee 22s linear infinite;
}
.marquee-track span{ padding-right: 0; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header{
  background: #fff;
  border-bottom: 1px solid var(--cream-border);
  position: sticky; top:0; z-index: 50;
}
.header-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-logo{
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F6A93B, #E8552A 60%, #7B3FA0);
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
}
.brand-text{ display:flex; flex-direction:column; font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.1; color: var(--ink); }
.brand-text small{ font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: 1.5px; color: var(--orange); }
.main-nav{ display:flex; gap: 28px; font-weight: 600; font-size: 15px; color: var(--brown); }
.main-nav a:hover, .main-nav a.active{ color: var(--orange); }
.header-actions{ display:flex; align-items:center; gap: 14px; }
.cart-btn{
  background: none; border: none; display:flex; align-items:center; gap:8px;
  font-weight: 600; font-size: 14px; color: var(--ink); position: relative;
}
.cart-count{
  background: var(--red); color:#fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height:18px; border-radius: 50%; display:inline-flex; align-items:center; justify-content:center;
  padding: 0 4px;
}
.login-btn{
  border: 1.5px solid #E9D9A8; border-radius: 999px; padding: 8px 18px;
  font-weight: 600; font-size: 14px; display:flex; align-items:center; gap:6px;
}
.login-btn:hover{ border-color: var(--orange); color: var(--orange); }
.mobile-toggle{ display:none; background:none; border:none; font-size:22px; }
.mobile-nav{ display:none; flex-direction:column; padding: 10px 24px 16px; gap: 4px; border-top:1px solid var(--cream-border); }
.mobile-nav a{ padding: 10px 0; font-weight:600; color: var(--brown); }
.mobile-nav.open{ display:flex; }

@media (max-width: 860px){
  .main-nav, .header-actions{ display:none; }
  .mobile-toggle{ display:block; }
}

/* ---------- Hero ---------- */
.hero{ background: linear-gradient(180deg, #FDF3E2, var(--bg)); padding: 40px 24px 0; }
.hero-inner{
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:center;
  padding-bottom: 24px;
}
.hero-stats{ display:flex; gap: 42px; flex-wrap: wrap; }
.hero-stats div{ display:flex; flex-direction:column; }
.hero-stats strong{ font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--ink); }
.hero-stats span{ font-size: 13px; color: var(--brown-light); font-weight: 600; }
.hero-media{ position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media img{ width:100%; height: 260px; object-fit: cover; }
.hero-badge{
  position:absolute; left:20px; bottom:-24px; background:#fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 12px 18px; display:flex; align-items:center; gap: 10px;
}
.hero-badge-icon{ width:34px; height:34px; border-radius:50%; background:var(--green-bg); display:flex; align-items:center; justify-content:center; }
.hero-badge small{ display:block; color: var(--brown-light); font-size: 11px; }
.hero-badge strong{ font-size: 13px; }
@media (max-width: 860px){
  .hero-inner{ grid-template-columns: 1fr; }
}

/* ---------- Trust strip ---------- */
.trust-strip{ background: #FCF3DC; border-top:1px solid var(--cream-border); border-bottom:1px solid var(--cream-border); margin-top: 40px; }
.trust-strip-inner{
  max-width: 1280px; margin:0 auto; padding: 18px 24px;
  display:flex; flex-wrap: wrap; gap: 24px; justify-content: space-around;
  font-size: 13.5px; font-weight: 600; color: var(--brown);
}

/* ---------- Sections ---------- */
.section{ max-width: 1280px; margin: 0 auto; padding: 48px 24px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom: 22px; }
.section-head h2{ font-family: var(--font-display); font-size: 28px; font-weight: 800; margin:0; }
.see-all{ color: var(--orange); font-weight: 700; font-size: 14px; }
.see-all:hover{ text-decoration: underline; }

/* ---------- Category grid ---------- */
.category-grid{ display:grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.category-card{
  background:#fff; border: 1px solid var(--cream-border); border-radius: var(--radius);
  padding: 22px 10px; display:flex; flex-direction:column; align-items:center; gap: 10px;
  text-align:center; font-weight: 600; font-size: 13.5px; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.category-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange); }
.category-icon{ font-size: 26px; }
@media (max-width: 1000px){ .category-grid{ grid-template-columns: repeat(4,1fr); } }
@media (max-width: 560px){ .category-grid{ grid-template-columns: repeat(2,1fr); } }

/* ---------- Product grid / card ---------- */
.product-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px){ .product-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .product-grid{ grid-template-columns: 1fr; } }

.product-card{
  background:#fff; border-radius: var(--radius); overflow:hidden; border:1px solid var(--cream-border);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
  display:flex; flex-direction:column;
}
.product-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img-wrap{ position:relative; display:block; aspect-ratio: 4/3; background:#111; overflow:hidden; }
.product-img-wrap img{ width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img-wrap img{ transform: scale(1.06); }
.badge{ position:absolute; top:10px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.badge-off{ left:10px; background: var(--red); color:#fff; }
.badge-green{ right:10px; background: var(--green); color:#fff; }
.product-info{ padding: 16px; display:flex; flex-direction:column; gap: 6px; flex:1; }
.product-name{ font-weight: 700; font-size: 15px; color: var(--ink); line-height:1.35; }
.product-name:hover{ color: var(--orange); }
.product-unit{ font-size: 12px; color: var(--brown-light); font-weight: 600; }
.product-price{ margin: 4px 0 10px; }
.price-now{ font-weight: 800; font-size: 18px; color: var(--red); }
.price-mrp{ font-size: 13px; color: #B9A488; text-decoration: line-through; margin-left: 6px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 8px;
  border:none; border-radius: 10px; font-weight: 700; font-size: 14px;
  padding: 12px 20px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{ background: linear-gradient(180deg, var(--orange), var(--orange-dark)); color:#fff; box-shadow: 0 4px 14px rgba(216,67,26,.3); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 20px rgba(216,67,26,.38); }
.btn-primary:active{ transform: translateY(0); }
.btn-whatsapp{ background: #25D366; color:#fff; margin-top: 10px; }
.btn-whatsapp:hover{ background:#1fb956; }
.btn-block{ width:100%; }
.btn-lg{ padding: 15px 26px; font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  margin: 20px 24px 60px; max-width: 1280px; margin-left:auto; margin-right:auto;
  background: linear-gradient(120deg, #2B160A, #4A2210);
  border-radius: 24px; padding: 56px 40px; text-align:center; color:#fff;
  position: relative; overflow:hidden;
}
.cta-banner::before{
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 20% 20%, rgba(234,90,36,.35), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(123,63,160,.35), transparent 40%);
}
.cta-banner > div{ position: relative; }
.cta-banner h2{ font-family: var(--font-display); font-size: 30px; margin: 0 0 12px; }
.cta-banner p{ color: #E8C9A8; max-width: 560px; margin: 0 auto 24px; }

/* ---------- Shop page ---------- */
.shop-page h1{ font-family: var(--font-display); font-size: 30px; margin: 0 0 20px; }
.shop-head{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom: 20px; }
.shop-head h1{ margin:0; }
.search-wrap{
  display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--cream-border);
  border-radius: 10px; padding: 10px 14px; min-width: 260px; color: var(--brown-light);
}
.search-wrap input{ border:none; outline:none; flex:1; font-size:14px; background:transparent; }
.cat-pills{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 30px; }
.pill{
  background:#fff; border:1px solid var(--cream-border); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; font-size: 14px; color: var(--brown);
  transition: all .15s ease;
}
.pill:hover{ border-color: var(--orange); }
.pill.active{ background: linear-gradient(180deg, var(--orange), var(--orange-dark)); color:#fff; border-color: transparent; }
.empty-msg{ color: var(--brown-light); padding: 40px 0; }

/* ---------- Product detail ---------- */
.pd-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.pd-img{ border-radius: 18px; overflow:hidden; aspect-ratio: 1/1; background:#111; }
.pd-img img{ width:100%; height:100%; object-fit:cover; }
.pd-cat{ color: var(--orange); font-weight: 800; font-size: 12px; letter-spacing: 1px; margin-bottom: 6px; }
.pd-info h1{ font-family: var(--font-display); font-size: 30px; margin: 0 0 6px; }
.pd-unit{ color: var(--brown-light); font-weight: 600; margin-bottom: 14px; }
.pd-badges{ display:flex; gap:10px; margin-bottom: 16px; }
.pd-badges .badge{ position: static; }
.pd-price{ display:flex; align-items:baseline; gap: 12px; margin-bottom: 18px; }
.pd-price .price-now{ font-size: 30px; }
.price-save{ color: var(--green); font-weight: 700; font-size: 14px; }
.pd-desc{ color: var(--brown); line-height: 1.6; margin-bottom: 26px; }
.pd-actions{ display:flex; gap: 14px; align-items:center; flex-wrap:wrap; margin-bottom: 22px; }
.qty-stepper{ display:flex; align-items:center; border:1.5px solid var(--cream-border); border-radius: 10px; overflow:hidden; }
.qty-stepper button{ background:#fff; border:none; width:38px; height:44px; font-size:18px; font-weight:700; color: var(--brown); }
.qty-stepper button:hover{ background: var(--bg); }
.qty-stepper span{ width: 40px; text-align:center; font-weight:700; }
.qty-stepper.big span{ width: 50px; font-size: 16px; }
.pd-info-strip{ display:flex; gap:14px; flex-wrap:wrap; }
.pd-info-strip div{
  background: #FCF3DC; border:1px solid var(--cream-border); border-radius: 10px;
  padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--brown);
}
@media (max-width: 800px){ .pd-grid{ grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-page h1{ font-family: var(--font-display); font-size: 32px; margin: 0 0 14px; }
.about-lead{ color: var(--brown); max-width: 720px; line-height: 1.7; margin-bottom: 34px; }
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-card{ background:#fff; border:1px solid var(--cream-border); border-radius: var(--radius); padding: 24px; }
.about-icon{ font-size: 24px; }
.about-card h3{ margin: 12px 0 6px; font-size: 17px; }
.about-card p{ color: var(--brown-light); margin:0; font-size:14px; line-height:1.5; }
@media (max-width: 700px){ .about-grid{ grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-page{ display:flex; justify-content:center; padding-top: 60px; padding-bottom: 100px;}
.auth-card{ background:#fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 420px; }
.auth-card h2{ font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; }
.auth-sub{ color: var(--brown-light); font-size: 14px; margin-bottom: 22px; }
.auth-card input{ width:100%; padding: 13px 16px; border:1.5px solid var(--cream-border); border-radius: 10px; margin-bottom: 14px; font-size: 14px; outline:none; }
.auth-card input:focus{ border-color: var(--orange); }
.auth-switch{ text-align:center; margin-top: 16px; font-size: 14px; color: var(--brown-light); }
.auth-switch a{ color: var(--orange); font-weight: 700; }

/* ---------- Checkout ---------- */
.checkout-page h1{ font-family: var(--font-display); font-size: 30px; margin-bottom: 24px; }
.checkout-grid{ display:grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items:start; }
.form-card{ background:#fff; border:1px solid var(--cream-border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.form-card h3{ margin: 0 0 16px; font-size: 17px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card input, .form-card textarea{
  width:100%; padding: 13px 16px; border:1.5px solid var(--cream-border); border-radius: 10px;
  margin-bottom: 14px; font-size: 14px; outline:none; resize: vertical;
}
.form-card input:focus, .form-card textarea:focus{ border-color: var(--orange); }
.payment-options{ display:flex; flex-direction:column; gap: 12px; }
.payment-opt{
  display:flex; align-items:center; gap: 12px; border: 1.5px solid var(--cream-border);
  border-radius: 12px; padding: 14px 16px; cursor:pointer;
}
.payment-opt input{ accent-color: var(--orange); }
.payment-opt.active, .payment-opt:has(input:checked){ border-color: var(--orange); background: #FEF3EA; }
.payment-opt strong{ font-size: 14px; display:block; }
.payment-opt small{ color: var(--brown-light); font-size: 12.5px; }
.order-summary{ background:#fff; border:1px solid var(--cream-border); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.order-summary h3{ margin: 0 0 16px; }
.summary-row{ display:flex; justify-content:space-between; font-size: 14px; padding: 7px 0; color: var(--brown); }
.summary-row.total{ border-top: 1px solid var(--cream-border); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 17px; color: var(--ink); }
.summary-row.total span:last-child{ color: var(--red); }
.order-summary .btn{ margin-top: 16px; }
@media (max-width: 860px){ .checkout-grid{ grid-template-columns: 1fr; } .form-row{ grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer{ background: var(--footer-bg); color: var(--footer-text); margin-top: 40px; }
.footer-inner{
  max-width: 1280px; margin:0 auto; padding: 56px 24px 32px;
  display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.footer-brand{ display:flex; gap: 10px; align-items:center; margin-bottom: 14px; }
.footer-brand strong{ display:block; color:#fff; font-family: var(--font-display); font-size: 17px; }
.footer-brand small{ font-size: 11px; letter-spacing: 1px; color: var(--orange); }
.footer-col p{ font-size: 13.5px; line-height: 1.7; color: var(--footer-text); }
.footer-col h4{ color:#fff; margin: 0 0 16px; font-size: 15px; }
.footer-col a{ display:block; margin-bottom: 10px; font-size: 14px; color: var(--footer-text); }
.footer-col a:hover{ color: var(--orange); }
.social-row{ display:flex; gap: 10px; margin-top: 14px; }
.social-row a{
  width: 34px; height:34px; border-radius:50%; border: 1px solid rgba(232,201,168,.4);
  display:flex; align-items:center; justify-content:center; margin:0;
}
.footer-bottom{ border-top: 1px solid rgba(232,201,168,.2); text-align:center; padding: 18px; font-size: 12.5px; color: var(--footer-text); }
@media (max-width: 800px){ .footer-inner{ grid-template-columns: 1fr; } }

/* ---------- Cart drawer ---------- */
.drawer-overlay{
  position: fixed; inset:0; background: rgba(20,10,5,.4); opacity:0; pointer-events:none;
  transition: opacity .25s ease; z-index: 90;
}
.drawer-overlay.show{ opacity:1; pointer-events:auto; }
.cart-drawer{
  position: fixed; top:0; right:-420px; width: 400px; max-width: 92vw; height:100%;
  background:#fff; z-index: 91; display:flex; flex-direction:column;
  transition: right .3s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 30px rgba(0,0,0,.15);
}
.cart-drawer.open{ right:0; }
.drawer-header{ display:flex; align-items:center; justify-content:space-between; padding: 20px 22px; border-bottom: 1px solid var(--cream-border); }
.drawer-header h3{ font-family: var(--font-display); font-size: 19px; margin:0; }
.drawer-header button{ background:none; border:none; font-size:18px; color: var(--brown-light); }
.drawer-free-ship{ padding: 12px 22px 0; }
.freeship-text{ font-size: 12.5px; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.freeship-text.success{ color: var(--green); }
.freeship-bar{ height: 6px; border-radius: 4px; background: #F0E4C8; overflow:hidden; margin-bottom: 4px; }
.freeship-fill{ height:100%; background: linear-gradient(90deg, var(--orange), #F6C453); transition: width .3s ease; }
.drawer-items{ flex:1; overflow-y:auto; padding: 12px 22px; }
.drawer-item{ display:flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #F5EEDD; align-items:flex-start; }
.drawer-item img{ width: 60px; height:60px; object-fit:cover; border-radius: 10px; }
.drawer-item-info{ flex:1; }
.drawer-item-name{ font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.drawer-item-price{ color: var(--red); font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.drawer-item .qty-stepper{ transform: scale(.85); transform-origin: left; }
.drawer-item-remove{ background:none; border:none; color: var(--red); font-size: 15px; }
.drawer-footer{ padding: 18px 22px 24px; border-top: 1px solid var(--cream-border); }
.drawer-subtotal{ display:flex; justify-content:space-between; font-weight: 700; margin-bottom: 14px; font-size: 15px; }
.empty-cart{ text-align:center; padding: 60px 20px; color: var(--brown-light); }
.empty-cart-icon{ font-size: 40px; margin-bottom: 12px; }
.empty-cart p{ margin-bottom: 18px; }

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

/* ---------- Toast ---------- */
.toast{
  position: fixed; top: 90px; right: 24px; background: var(--green-bg); border: 1px solid #B7E5C6;
  border-radius: 12px; padding: 14px 18px; display:flex; gap: 10px; align-items:flex-start;
  box-shadow: var(--shadow-lg); transform: translateX(120%); transition: transform .3s ease;
  z-index: 200; max-width: 320px;
}
.toast.show{ transform: translateX(0); }
.toast-title{ font-weight: 800; color: var(--green); font-size: 14px; }
.toast-msg{ font-size: 13px; color: var(--brown); margin-top: 2px; }

/* ---------- WhatsApp float ---------- */
.wa-float{
  position: fixed; bottom: 24px; right: 24px; width: 54px; height:54px; border-radius:50%;
  background: #25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  font-size: 24px; box-shadow: 0 6px 20px rgba(37,211,102,.5); z-index: 60;
  transition: transform .2s ease;
}
.wa-float:hover{ transform: scale(1.08); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
