/* ROOTSOFSPICE (RSP-002) — earthy heritage marketplace theme.
   No build step. Mobile-first, no horizontal overflow. */
:root {
  --brand: #1a7a3c; --brand-d: #12602e; --brand-l: #e7f3ea;
  --spice: #b3541e; --spice-d: #8f3f13; --turmeric: #e8a013;
  --ink: #22301f; --muted: #667085; --line: #e5e4d8; --bg: #faf8f1;
  --card: #fff; --soil: #3b2d20; --radius: 14px;
  --shadow: 0 2px 12px rgba(59, 45, 32, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }
body { margin: 0; font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-d); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }

/* topbar + header */
.topbar { background: var(--soil); color: #f3ecdd; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 8px; padding: 6px 16px; flex-wrap: wrap; }
.topbar a { color: #ffe1a8; text-decoration: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 14px; padding: 10px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-logo { height: 44px; width: auto; }
.brand-tx strong { display: block; font-size: 1.25rem; line-height: 1.3; color: var(--brand-d); }
.brand-tx small { color: var(--muted); font-size: .8rem; }
.hsearch { display: flex; flex: 1 1 260px; max-width: 440px; position: relative; }
.hsearch input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px 0 0 10px; font-size: 1rem; font-family: inherit; }
.hsearch button { border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 0 10px 10px 0; padding: 0 14px; cursor: pointer; min-width: 48px; min-height: 44px; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; z-index: 60; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; text-decoration: none; color: var(--ink); }
.suggest a:hover { background: var(--brand-l); }
.suggest .simg { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #e8a013, #b3541e); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; overflow: hidden; }
.suggest .simg img { width: 100%; height: 100%; object-fit: cover; }
.hact { display: flex; align-items: center; gap: 6px; }
.hlink { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); padding: 10px; border-radius: 10px; min-height: 44px; position: relative; }
.hlink:hover { background: var(--brand-l); }
.cbadge { position: absolute; top: 2px; right: 0; background: var(--spice); color: #fff; font-size: .72rem; border-radius: 999px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.cbadge:empty { display: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; min-width: 44px; min-height: 44px; }
.main-nav { border-top: 1px solid var(--line); background: #fff; }
.nav-in { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-in a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-in a:hover { background: var(--brand-l); color: var(--brand-d); }

/* breadcrumbs */
.crumbs { margin: 14px 0 4px; font-size: .92rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs .sep { color: var(--muted); }
.crumbs a { text-decoration: none; }

/* hero */
.hero { border-radius: 20px; overflow: hidden; margin: 16px 0; background: linear-gradient(120deg, #234d22 0%, #1a7a3c 55%, #b3541e 130%); color: #fff; position: relative; }
.hero-slide { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 42px 34px; align-items: center; }
.hero-slide h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.4; margin: 0 0 10px; }
.hero-slide p { margin: 0 0 16px; color: #f3ecdd; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-media img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; }
.hero-media .ph { font-size: 5rem; }
.hero-dots { display: flex; gap: 8px; justify-content: center; padding: 0 0 14px; }
.hero-dots:empty { display: none; }
.hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots button.on { background: #fff; }
.hero-fallback { text-align: center; padding: 52px 20px; }
.hero-fallback h1 { font-size: clamp(1.7rem, 4.5vw, 2.8rem); margin: 0 0 8px; }
.hero-fallback .tag { color: var(--turmeric); font-weight: 700; font-size: 1.1rem; }

/* sections */
.sec { margin: 34px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 1.4rem; color: var(--soil); }
.sec-head a.more { text-decoration: none; font-weight: 600; white-space: nowrap; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* product card */
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pcard-media { display: block; position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #f4e3bb, #e0b25c 60%, #b3541e 130%); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; font-weight: 700; color: rgba(255,255,255,.92); text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.badge { position: absolute; top: 8px; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.badge.off { left: 8px; background: var(--spice); color: #fff; }
.badge.feat { right: 8px; background: var(--brand); color: #fff; }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-cat { margin: 0; font-size: .8rem; color: var(--spice-d); font-weight: 600; }
.pcard-name { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a:hover { color: var(--brand-d); }
.pcard-origin { margin: 0; font-size: .85rem; color: var(--muted); }
.pcard-rate { display: flex; align-items: center; gap: 6px; }
.stars .st { color: #d8d2bd; font-size: 1rem; }
.stars .st.on { color: var(--turmeric); }
.stars .st.half { color: var(--turmeric); opacity: .55; }
.rc { color: var(--muted); font-size: .85rem; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pr { font-weight: 700; font-size: 1.12rem; color: var(--brand-d); }
.pr small { font-weight: 500; font-size: .8rem; color: var(--muted); }
.cmp { color: var(--muted); font-size: .9rem; }
.stock { margin: 0; font-size: .85rem; font-weight: 600; }
.stock.in { color: var(--brand-d); } .stock.low { color: var(--spice-d); } .stock.out { color: #b42318; }
.pcard-act { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.iconbtn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 44px; height: 42px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.iconbtn.on { color: #c81e3a; border-color: #c81e3a; }
.iconbtn.on svg { fill: #c81e3a; }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; cursor: pointer; text-decoration: none; font-size: 1rem; font-family: inherit; font-weight: 600; min-height: 48px; }
.btn:hover { background: var(--brand-d); }
.btn.ghost { background: #fff; color: var(--brand-d); border: 1.5px solid var(--brand); }
.btn.spice { background: var(--spice); } .btn.spice:hover { background: var(--spice-d); }
.btn.sm { padding: 8px 14px; min-height: 42px; font-size: .92rem; }
.btn.dis, .btn:disabled { background: #c9c9c9; cursor: not-allowed; }
.btn.block { width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 18px 0; box-shadow: var(--shadow); }
.narrow { max-width: 560px; margin: 24px auto; }
label.f { display: block; margin: 12px 0; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
.form-msg { min-height: 1.4em; font-size: .95rem; }
.form-msg.ok { color: var(--brand-d); } .form-msg.err { color: #b42318; }
.checks { display: flex; gap: 12px; flex-wrap: wrap; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; min-height: 44px; }

/* category / region tiles */
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: block; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--brand); }
.tile h3 { margin: 0 0 4px; color: var(--soil); }
.tile .cnt { color: var(--muted); font-size: .88rem; }
.tile .go { color: var(--brand-d); font-weight: 600; }
.div-tile { background: linear-gradient(150deg, #234d22, #1a7a3c 70%); color: #fff; border: 0; }
.div-tile h3 { color: #fff; } .div-tile .cnt { color: #e8ddc2; } .div-tile .go { color: var(--turmeric); }

/* shop layout */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 140px; }
.filters h3 { margin: 0 0 8px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.filters legend { font-weight: 700; margin-bottom: 6px; color: var(--soil); }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li { margin: 2px 0; }
.filters li a { text-decoration: none; color: var(--ink); display: block; padding: 6px 8px; border-radius: 8px; }
.filters li a.on, .filters li a:hover { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar select { width: auto; margin: 0; min-height: 44px; }
.filter-btn { display: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }
.pg { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); padding: 0 12px; background: #fff; }
.pg.cur { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.pg.dis { color: #b6b6b6; }

/* product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 16px 0; }
.gallery .gmain { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #f4e3bb, #e0b25c 60%, #b3541e 130%); aspect-ratio: 4/3; display: flex; }
.gallery .gmain img { width: 100%; height: 100%; object-fit: cover; }
.gallery .gmain .ph { font-size: 5rem; }
.gthumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gthumbs button { border: 2px solid transparent; border-radius: 10px; overflow: hidden; width: 72px; height: 60px; cursor: pointer; padding: 0; background: #eee; }
.gthumbs button.on { border-color: var(--brand); }
.gthumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-info h1 { margin: 0 0 6px; font-size: 1.6rem; line-height: 1.5; }
.pd-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 12px; flex-wrap: wrap; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.pd-price .pr { font-size: 1.7rem; }
.vlist { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.vlist button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 14px; cursor: pointer; font-family: inherit; font-size: .95rem; min-height: 44px; }
.vlist button.on { border-color: var(--brand); background: var(--brand-l); font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 44px; height: 46px; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; }
.qty input { width: 56px; text-align: center; border: 0; margin: 0; }
.pd-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.trust div { background: var(--brand-l); border-radius: 10px; padding: 10px; font-size: .88rem; text-align: center; }
.tabs { margin: 18px 0; }
.tabs .tab { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.tabs h3 { margin: 0 0 6px; color: var(--soil); }
.rev { border-bottom: 1px dashed var(--line); padding: 12px 0; }
.rev .who { font-weight: 700; }

/* story / post cards */
.scard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.scard .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, #7a4a1e, #b3541e 60%, #e8a013); display: flex; overflow: hidden; }
.scard .cover img { width: 100%; height: 100%; object-fit: cover; }
.scard .cover .ph { font-size: 2.6rem; }
.scard .sbody { padding: 14px 16px; }
.scard h3 { margin: 0 0 6px; font-size: 1.08rem; }
.scard h3 a { color: var(--ink); text-decoration: none; }
.scard time, .art-meta { color: var(--muted); font-size: .86rem; }
.article { max-width: 760px; }
.article img.hero-img { border-radius: var(--radius); width: 100%; }
.article .content { font-size: 1.05rem; }
.article .content p { margin: 0 0 14px; }

/* promo / trust / cta */
.promo { background: linear-gradient(120deg, var(--spice-d), var(--spice) 60%, var(--turmeric)); color: #fff; border-radius: 20px; padding: 34px 28px; text-align: center; margin: 30px 0; }
.promo h2 { margin: 0 0 8px; }
.promo p { margin: 0 0 16px; color: #ffedd6; }
.trustgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.tbox svg { color: var(--brand); }
.tbox h3 { margin: 8px 0 4px; font-size: 1.02rem; }
.tbox p { margin: 0; color: var(--muted); font-size: .9rem; }
.cta-band { background: var(--soil); color: #f3ecdd; border-radius: 20px; padding: 36px 28px; text-align: center; margin: 30px 0; }
.cta-band h2 { margin: 0 0 8px; color: #ffe1a8; }

/* cart / checkout */
.cartline { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px dashed var(--line); padding: 12px 0; }
.cartline .thumb { width: 72px; height: 60px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #f4e3bb, #b3541e); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 1.4rem; }
.cartline .thumb img { width: 100%; height: 100%; object-fit: cover; }
.totals { max-width: 380px; margin-left: auto; }
.totals .row { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.linkbtn { background: none; border: 0; color: #b42318; cursor: pointer; padding: 8px; font-family: inherit; font-size: .92rem; }

/* landing */
.lp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: linear-gradient(130deg, #234d22, #1a7a3c 60%, #b3541e 140%); color: #fff; border-radius: 22px; padding: 40px 32px; margin: 16px 0; }
.lp-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); margin: 0 0 10px; line-height: 1.45; }
.lp-hero .sub { color: #f3ecdd; font-size: 1.1rem; }
.lp-offer { background: rgba(255,255,255,.12); border: 1px dashed #ffe1a8; border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.lp-price { font-size: 2rem; font-weight: 700; color: #ffe1a8; }
.lp-sec { margin: 26px 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; min-height: 44px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 44px; background: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; padding: 30px 16px 10px; }
.fname { font-size: 1.15rem; color: var(--brand-d); }
.flinks strong { display: block; margin-bottom: 8px; color: var(--soil); }
.flinks a { display: block; text-decoration: none; color: var(--ink); padding: 5px 0; }
.flinks a:hover { color: var(--brand-d); }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.social a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: .88rem; }
.copy { text-align: center; color: var(--muted); padding: 12px 0 18px; font-size: .9rem; border-top: 1px solid var(--line); margin-top: 14px; }

/* toast */
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--soil); color: #fff; border-radius: 12px; padding: 12px 20px; z-index: 100; box-shadow: var(--shadow); max-width: 92vw; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* responsive */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-btn { display: inline-flex; }
  .filters.collapsed { display: none; }
  .trustgrid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-slide, .pd, .lp-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .g2 { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; align-items: center; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-in { flex-direction: column; padding: 8px 16px 14px; }
  .header-in { gap: 8px; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  /* Compact icon-only header actions on phones */
  .brand-logo { height: 34px; }
  .brand-tx strong { font-size: 1rem; }
  .brand-tx small { display: none; }
  .hact { gap: 0; margin-left: auto; }
  .hlink { padding: 6px; min-height: 36px; min-width: 36px; justify-content: center; }
  .hlink span { display: none; }
  .hlink svg { width: 20px; height: 20px; }
  .hlink .cbadge { top: -1px; right: -3px; min-width: 18px; height: 18px; font-size: .68rem; }
  .menu-btn { padding: 6px 7px; min-width: 36px; min-height: 36px; border: 0; background: transparent; }
  .menu-btn svg { width: 22px; height: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .pd-info h1 { font-size: 1.3rem; }
  .hero-slide { padding: 30px 20px; }
  .cartline { grid-template-columns: 56px 1fr; }
  .cartline .cline-act { grid-column: 2; }
}
@media (min-width: 1280px) { .wrap { max-width: 1240px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
