:root {
  --cream: #fdfaf5;
  --paper: #ffffff;
  --ink: #1b2420;
  --muted: #6b756f;
  --line: #e8e1d6;
  --clay: #c0562f;
  --clay-dark: #a3441f;
  --forest: #14513c;
  --gold: #e9b949;
  --soft: #f4ede2;
  --ok: #17694f;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(27, 36, 32, .06), 0 2px 8px rgba(27, 36, 32, .05);
  --shadow: 0 10px 30px rgba(27, 36, 32, .10);
  --font: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", "SolaimanLipi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.65rem, 4.5vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 .9rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }

/* ---------- নোটিশ বার ---------- */
.notice {
  background: var(--forest); color: #f2f7f2; font-size: .82rem;
  padding: 7px 0; text-align: center; letter-spacing: .01em;
}
.notice b { color: #ffe6a8; }

/* ---------- হেডার ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 250, 245, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.14rem; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--forest); color: #fff6e5; font-size: 1rem; font-weight: 700;
}
.nav { display: flex; gap: 18px; font-size: .92rem; }
.nav a { color: #37443d; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--clay); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #e8f5ee; color: #12704b; border: 1px solid #c9e6d7;
  padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; padding: 4px 6px; }

/* ---------- হিরো ---------- */
.hero { padding: 34px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--clay-dark);
  background: #fbeee7; border: 1px solid #f2d8cb; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 span { color: var(--clay); }
.hero p.lead { font-size: 1.04rem; color: #45524b; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; }
.hero-badge {
  position: absolute; left: -8px; bottom: 18px; background: var(--paper);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-sm);
  font-size: .8rem; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line);
}
.hero-badge strong { color: var(--forest); }

/* ---------- বাটন ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--clay); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 24px; font-weight: 600; font-size: 1rem; cursor: pointer;
  box-shadow: 0 6px 18px rgba(192, 86, 47, .28); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--clay-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid #d9cfc0; box-shadow: none; }
.btn.ghost:hover { background: #fff; border-color: var(--ink); }
.btn.dark { background: var(--forest); box-shadow: 0 6px 18px rgba(20, 81, 60, .25); }
.btn.dark:hover { background: #0c3d2c; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: .86rem; box-shadow: none; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- ট্রাস্ট ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 6px; }
.trust div {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; font-size: .84rem; display: flex; gap: 9px; align-items: flex-start;
}
.trust .ico { font-size: 1.05rem; line-height: 1.2; }
.trust b { display: block; font-size: .9rem; }
.trust span { color: var(--muted); }

/* ---------- সেকশন ---------- */
section.block { padding: 42px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); font-size: .94rem; }
.divider-soft { height: 1px; background: var(--line); }
.bg-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- পণ্য কার্ড ---------- */
.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f1ece3; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.tag {
  position: absolute; top: 10px; left: 10px; background: var(--clay); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .02em;
}
.tag.stock { background: #fff; color: var(--ok); border: 1px solid #cde5d9; left: auto; right: 10px; }
.card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 1rem; margin: 0; }
.card .sub { font-size: .82rem; color: var(--muted); min-height: 2.6em; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.price { font-size: 1.22rem; font-weight: 700; color: var(--forest); }
.price s { font-size: .86rem; color: #98a29c; font-weight: 400; }
.stars { color: var(--gold); font-size: .82rem; letter-spacing: 1px; }
.card .btn { margin-top: auto; }

/* ---------- রিভিউ ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.review .who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e9f0ea; color: var(--forest); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.verified { font-size: .7rem; background: #e9f5ee; color: var(--ok); padding: 2px 7px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
details.q { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
details.q summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; color: var(--clay); font-weight: 700; }
details.q[open] summary::after { content: "−"; }
details.q p { margin: 10px 0 0; color: #4c5751; font-size: .93rem; }

/* ---------- পণ্য পেজ ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; padding: 26px 0 10px; align-items: start; }
.gallery-main { border-radius: 18px; overflow: hidden; background: #f1ece3; border: 1px solid var(--line); position: relative; }
.gallery-main img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; width: 64px; height: 64px; background: #f1ece3; cursor: pointer; }
.thumbs button.on { border-color: var(--clay); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { margin-bottom: 6px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 4px; }
.pdp-price .now { font-size: 1.85rem; font-weight: 700; color: var(--forest); }
.pdp-price .was { color: #98a29c; text-decoration: line-through; }
.save-badge { background: #fbeee7; color: var(--clay-dark); font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.opt-group { margin: 16px 0; }
.opt-group > label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  border: 1.5px solid #ded4c6; background: #fff; border-radius: 10px; padding: 8px 14px;
  font-size: .9rem; cursor: pointer;
}
.opt.on { border-color: var(--forest); background: #eef5f1; font-weight: 600; }
.spec-list { list-style: none; padding: 0; margin: 10px 0 0; }
.spec-list li { padding: 7px 0 7px 26px; position: relative; font-size: .92rem; border-bottom: 1px dashed #ece5d9; }
.spec-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.media-strip { display: grid; gap: 10px; margin-top: 14px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.media-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.media-item img, .media-item video { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #000; }
.media-item .aud { display: grid; gap: 8px; padding: 14px 10px; font-size: 1.3rem; min-height: 110px; align-content: center; }
.media-item audio { width: 100%; height: 34px; }
.media-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
.media-meta .btn { padding: 4px 8px; }
select { width: 100%; border: 1.5px solid #e0d7c9; border-radius: 10px; padding: 10px 12px; background: #fff; font: inherit; }
input[type="file"] { width: 100%; font-size: .85rem; background: #fff; border: 1.5px dashed #d8cbb6; border-radius: 10px; padding: 9px; }
.video-box { border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-box video { width: 100%; aspect-ratio: 16/9; }
.audio-box { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.audio-box audio { width: 100%; height: 34px; }

/* ---------- ফর্ম ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid #e0d7c9; border-radius: 11px; background: #fffdfa;
  padding: 12px 13px; font-size: 1rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest); box-shadow: 0 0 0 3px rgba(20, 81, 60, .12);
}
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: .78rem; color: #b3261e; margin-top: 4px; display: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #d9534f; }
.field.bad .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary {
  background: #faf6ef; border: 1px dashed #dccfbb; border-radius: 14px; padding: 14px 16px; margin: 16px 0;
}
.summary .line { display: flex; justify-content: space-between; font-size: .92rem; padding: 4px 0; }
.summary .total { border-top: 1px solid #e4d9c7; margin-top: 8px; padding-top: 9px; font-weight: 700; font-size: 1.05rem; }
.summary .total span:last-child { color: var(--forest); }

/* ---------- অর্ডার পেজ লেআউট ---------- */
.order-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; padding: 26px 0 40px; align-items: start; }
.order-aside { position: sticky; top: 78px; }
.mini-product { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.mini-product img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }

/* ---------- সাকসেস ---------- */
.success-card { max-width: 620px; margin: 40px auto; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.check-circle { width: 66px; height: 66px; border-radius: 50%; background: #e8f5ee; color: var(--ok); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 14px; }
.order-no { font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; color: var(--forest); background: #f2f8f4; border-radius: 10px; padding: 8px 14px; display: inline-block; }
.steps-mini { text-align: left; margin: 22px 0; }

/* ---------- ফুটার ---------- */
footer.site { background: #17221d; color: #cfd8d2; margin-top: 40px; padding: 34px 0 22px; font-size: .9rem; }
footer.site a { color: #e7eee9; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
footer.site h4 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
footer.site .fine { border-top: 1px solid #2a3730; margin-top: 24px; padding-top: 14px; font-size: .8rem; color: #94a29a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pay-icons { display: flex; gap: 8px; margin-top: 10px; }
.pay-icons span { background: #223029; border: 1px solid #31413a; border-radius: 8px; padding: 4px 10px; font-size: .75rem; }

/* ---------- স্টিকি মোবাইল বার ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; gap: 10px; align-items: center; padding: 10px 14px;
  background: rgba(255, 253, 250, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(27, 36, 32, .08); padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.sticky-buy .p { flex: 1; line-height: 1.25; }
.sticky-buy .p b { font-size: 1.05rem; color: var(--forest); }
.sticky-buy .p span { display: block; font-size: .74rem; color: var(--muted); }

/* ---------- টোস্ট ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px);
  background: #17221d; color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- অ্যাডমিন ---------- */
.admin-shell { max-width: 1120px; margin: 0 auto; padding: 18px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat .k { font-size: .76rem; color: var(--muted); }
.stat .v { font-size: 1.4rem; font-weight: 700; color: var(--forest); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: .85rem; cursor: pointer; }
.tabs button.on { background: var(--forest); color: #fff; border-color: var(--forest); }
.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-bottom: 10px; }
.order-card .top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order-card .meta { font-size: .85rem; color: #4c5751; }
.order-card .acts { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.chip { font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: #eef1ee; font-weight: 600; }
.chip.new { background: #fdecea; color: #b3261e; }
.chip.confirmed { background: #fff4d6; color: #8a6300; }
.chip.packed { background: #e8eefc; color: #2a4b9b; }
.chip.shipped { background: #e7f0ff; color: #1d5fa8; }
.chip.delivered { background: #e6f5ec; color: #146c43; }
.chip.cancelled, .chip.returned { background: #eee; color: #666; }
.login-box { max-width: 400px; margin: 50px auto; }

/* ---------- রেসপন্সিভ ---------- */
@media (max-width: 900px) {
  .hero-grid, .pdp, .order-layout { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .order-aside { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px 18px; gap: 12px; box-shadow: var(--shadow-sm); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-products { grid-template-columns: 1fr; }
  .hero { padding-top: 22px; }
  .row-2 { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; }
  body.has-sticky { padding-bottom: 74px; }
  .foot-grid { grid-template-columns: 1fr; }
  .card .thumb { aspect-ratio: 4/3; }
  .header-cta .wa-btn span { display: none; }
}
@media print {
  header.site, footer.site, .sticky-buy, .notice, .btn, .tabs { display: none !important; }
  body { background: #fff; }
}
