/* =========================================================
   Rojkar Bajar — storefront stylesheet
   রঙ ও টাইপোগ্রাফি লোগো থেকে নেওয়া: কালো + কমলা
   ========================================================= */

/* স্বনির্ভর বাংলা ফন্ট — সার্ভার থেকেই আসে, কোনো বাইরের নির্ভরতা নেই */
@font-face {
  font-family: 'SolaimanLipi';
  src: url('/fonts/SolaimanLipi.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Kalpurush';
  src: url('/fonts/Kalpurush.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* palette */
  --ink:        #131313;
  --ink-2:      #1E1C1A;
  --ink-soft:   #2C2925;
  --ember:      #FF7A18;
  --flame:      #FF4A00;
  --ember-soft: #FFF1E4;
  --paper:      #FFFFFF;
  --sand:       #FAF6F1;
  --sand-2:     #F3ECE3;
  --line:       #E9E0D5;
  --line-2:     #D9CDBE;
  --text:       #26221E;
  --muted:      #7A7168;
  --leaf:       #167A4B;
  --leaf-soft:  #E7F5ED;
  --alert:      #C0392B;

  /* type — বডি টেক্সটে Noto Sans Bengali (ক্লিন, স্ক্রিন-ফ্রেন্ডলি), হেডিং/টাইটেলে SolaimanLipi (স্বতন্ত্র, প্রিমিয়াম লুক) */
  --bn: 'Noto Sans Bengali', 'Kalpurush', 'Hind Siliguri', system-ui, sans-serif;
  --bn-head: 'SolaimanLipi', 'Kalpurush', 'Noto Sans Bengali', system-ui, sans-serif;
  --display: 'Sora', 'Noto Sans Bengali', system-ui, sans-serif;

  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-card: 0 1px 2px rgba(38, 34, 30, .05), 0 8px 24px -12px rgba(38, 34, 30, .18);
  --shadow-pop: 0 20px 60px -20px rgba(19, 19, 19, .38);
  --wrap: 1240px;
  --hdr-h: 68px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--bn);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.32; font-weight: 600; letter-spacing: -.01em; font-family: var(--bn-head); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ico { flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15.5px;
  border: 1.5px solid transparent; transition: transform .14s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--ember), var(--flame));
  color: #fff; box-shadow: 0 6px 18px -8px rgba(255, 74, 0, .85);
}
.btn-primary:hover { box-shadow: 0 10px 26px -10px rgba(255, 74, 0, .9); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost { border-color: var(--line-2); background: var(--paper); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: #1FAF54; color: #fff; }
.btn-wa:hover { background: #17903F; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; color: inherit;
  transition: background .18s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* =========================================================
   Header
   ========================================================= */
.notice {
  background: var(--ink); color: #EDE6DC; font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.notice-in { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 7px 20px; }
.notice svg { color: var(--ember); }

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink); color: #F6F1EA;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.hdr-in {
  display: flex; align-items: center; gap: 14px; height: var(--hdr-h);
}
.hdr-menu { margin-left: -8px; }
.brand { flex: none; display: block; }
.brand img {
  width: auto; height: 42px; object-fit: contain;
}
.hdr-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-wa { color: #4BDB7E; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 10px; background: var(--ember); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center;
}

/* search */
.searchbar {
  position: relative; flex: 1 1 auto; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1.5px solid rgba(255, 255, 255, .14);
  border-radius: 14px; height: 44px; padding: 0 6px 0 12px;
  transition: border-color .18s ease, background .18s ease;
}
.searchbar:focus-within { background: #fff; border-color: var(--ember); }
.searchbar-ico { color: #C7BFB5; display: flex; }
.searchbar:focus-within .searchbar-ico { color: var(--muted); }
.searchbar input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 10px;
  color: #fff; font-size: 15px;
}
.searchbar:focus-within input { color: var(--text); }
.searchbar input::placeholder { color: #A79E94; }
.searchbar input:focus { outline: none; }
.searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbar-go {
  flex: none; height: 32px; padding: 0 16px; border-radius: 9px;
  background: linear-gradient(180deg, var(--ember), var(--flame)); color: #fff;
  font-size: 14px; font-weight: 600;
}

.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-pop); overflow: hidden; max-height: 62vh; overflow-y: auto;
}
.suggest a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--sand-2); color: var(--text);
}
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.is-on { background: var(--ember-soft); }
.suggest img, .suggest .sg-ph {
  width: 42px; height: 42px; border-radius: 9px; object-fit: cover;
  background: var(--sand-2); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.suggest b { font-weight: 600; font-size: 15px; display: block; }
.suggest small { color: var(--muted); font-size: 12.5px; }
.suggest .sg-price { margin-left: auto; color: var(--flame); font-weight: 700; white-space: nowrap; }
.suggest .sg-empty { padding: 16px; color: var(--muted); text-align: center; }

/* category bar */
.catbar {
  background: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
}
.catbar-in {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none; padding-top: 2px; padding-bottom: 2px;
}
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a {
  flex: none; padding: 9px 13px; font-size: 14.5px; color: #CFC6BB;
  border-radius: 9px; white-space: nowrap; transition: color .15s ease, background .15s ease;
}
.catbar a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.catbar a.is-on { color: var(--ink); background: var(--ember); font-weight: 600; }

/* =========================================================
   Drawer + cart panel
   ========================================================= */
.scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(19, 19, 19, .55);
  backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s ease;
}
.scrim.is-open { opacity: 1; }

.drawer, .cartpanel {
  position: fixed; top: 0; bottom: 0; z-index: 100; width: min(370px, 88vw);
  background: var(--paper); display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1); overflow: hidden;
}
.drawer { left: 0; transform: translateX(-102%); }
.cartpanel { right: 0; transform: translateX(102%); width: min(410px, 92vw); }
.drawer.is-open, .cartpanel.is-open { transform: none; box-shadow: var(--shadow-pop); }

.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 16px; background: var(--ink); color: #fff;
}
.drawer-logo { height: 38px; width: auto; }
.drawer-nav { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.drawer-nav a {
  display: block; padding: 11px 14px; border-radius: 10px; font-weight: 500; font-size: 16px;
}
.drawer-nav a:hover { background: var(--sand); }
.drawer-h {
  margin: 14px 18px 6px; font-size: 13px; color: var(--muted); font-weight: 600;
}
.drawer-cats { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.drawer-cat { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; }
.drawer-cat:hover, .drawer-cat.is-on { background: var(--ember-soft); }
.drawer-cat-ico {
  width: 40px; height: 40px; border-radius: 10px; background: var(--sand);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.drawer-cat-txt b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; font-family: var(--bn-head); }
.drawer-cat-txt i { font-style: normal; font-size: 11.5px; color: var(--muted); font-family: var(--display); }
.drawer-foot { padding: 14px 16px 18px; border-top: 1px solid var(--line); background: var(--sand); }
.drawer-foot p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.drawer-foot .btn { width: 100%; }

.cartpanel-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line);
}
.cartpanel-top h2 { margin: 0; font-size: 18px; }
.cartpanel-body { flex: 1; overflow-y: auto; padding: 8px 14px; }
.cartpanel-foot { border-top: 1px solid var(--line); padding: 14px 18px 18px; background: var(--sand); }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.cart-sum b { font-size: 21px; color: var(--flame); }
.cart-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 12px; }

.cline { display: flex; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--sand-2); }
.cline-img {
  width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: var(--sand-2);
  flex: none; display: flex; align-items: center; justify-content: center;
}
.cline-main { flex: 1; min-width: 0; }
.cline-name { font-weight: 600; font-size: 14.8px; line-height: 1.4; font-family: var(--bn-head); }
.cline-w { font-size: 12.5px; color: var(--muted); }
.cline-bot { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cline-price { font-weight: 700; color: var(--flame); margin-left: auto; white-space: nowrap; }
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line-2);
  border-radius: 9px; overflow: hidden; background: var(--paper);
}
.qty button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--text); }
.qty button:hover { background: var(--sand-2); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; font-size: 14.5px; }
.cline-del { color: var(--muted); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.cline-del:hover { color: var(--alert); background: #FCEBE9; }
.cart-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.cart-empty svg { margin: 0 auto 12px; color: var(--line-2); }

/* =========================================================
   Hero — 3D
   ========================================================= */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  min-height: clamp(460px, 78vh, 720px); display: flex; align-items: center;
}
.hero-canvas { position: absolute; inset: 0; z-index: 1; }
.hero-canvas canvas { display: block; width: 100%; height: 100%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(90% 65% at 72% 45%, rgba(255, 122, 24, .16), transparent 62%),
    linear-gradient(100deg, rgba(19, 19, 19, .94) 0%, rgba(19, 19, 19, .82) 38%, rgba(19, 19, 19, .18) 70%, rgba(19, 19, 19, .45) 100%);
}
.hero-in { position: relative; z-index: 3; padding: 68px 20px 76px; width: 100%; }
.hero-copy { max-width: 600px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; color: #F0E7DC;
  margin-bottom: 20px;
}
.hero-kicker svg { color: var(--ember); }
.hero h1 {
  font-size: clamp(31px, 5.2vw, 56px); line-height: 1.22; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: #DED5CA; max-width: 46ch; margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-fact { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #D8CFC4; }
.hero-fact svg { color: var(--ember); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%);
  color: rgba(255, 255, 255, .55); font-size: 12.5px; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.hero-scroll i {
  display: block; width: 1px; height: 26px;
  background: linear-gradient(var(--ember), transparent);
}

/* =========================================================
   Sections
   ========================================================= */
.sec { padding: 60px 0; }
.sec-sand { background: var(--sand-2); }
.sec-paper { background: var(--paper); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 26px; flex-wrap: wrap;
}
.sec-head h2 { font-size: clamp(22px, 3.2vw, 31px); margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.sec-link { color: var(--flame); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.sec-link:hover { text-decoration: underline; }

/* trust strip */
.trust { background: var(--paper); border-block: 1px solid var(--line); }
.trust-in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
}
.trust-item { display: flex; gap: 13px; align-items: flex-start; padding: 22px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--ember-soft); color: var(--flame);
  display: grid; place-items: center;
}
.trust-item b { display: block; font-size: 15.5px; font-weight: 600; }
.trust-item span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* category grid */
.cat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
}
.cat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 14px 16px; text-align: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover {
  border-color: var(--ember); transform: translateY(-3px); box-shadow: var(--shadow-card);
}
.cat-card .cat-ico { margin: 0 auto 12px; }
.cat-card b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.4; font-family: var(--bn-head); }
.cat-card span { font-size: 11.5px; color: var(--muted); font-family: var(--display); letter-spacing: .01em; }
.cat-card img.cat-photo { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; margin: 0 auto 12px; }

/* =========================================================
   Product card
   ========================================================= */
.prod-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.pcard {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
.pcard:hover { box-shadow: var(--shadow-card); border-color: var(--line-2); transform: translateY(-2px); }
.pcard-media {
  position: relative; display: block; aspect-ratio: 1 / 1; background: var(--sand-2);
  overflow: hidden;
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .pcard-media img { transform: scale(1.07); }
.pcard-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 42%, #FFF6EC, var(--sand-2));
}
.pcard-tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600;
}
.pcard-tag.is-out { background: var(--alert); }
.pcard-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard-cat { font-size: 11.5px; color: var(--muted); font-family: var(--display); margin-bottom: 4px; }
.pcard-name { font-size: 16px; font-weight: 600; line-height: 1.42; margin-bottom: 8px; font-family: var(--bn-head); }
.pcard-name a:hover { color: var(--flame); }
.pcard-weights { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.wchip {
  padding: 3px 9px; border-radius: 7px; border: 1.2px solid var(--line-2);
  font-size: 12px; color: var(--muted); background: var(--sand);
}
.pcard-price { margin-top: auto; display: flex; align-items: baseline; gap: 7px; }
.pcard-price b { font-size: 19px; color: var(--ink); font-weight: 700; }
.pcard-price small { font-size: 12.5px; color: var(--muted); }
.pcard-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pcard-acts .btn { padding: 10px 8px; font-size: 14px; border-radius: 10px; }

/* =========================================================
   Product detail
   ========================================================= */
.crumb { font-size: 13.5px; color: var(--muted); padding: 16px 0 0; }
.crumb a:hover { color: var(--flame); }
.crumb span { margin: 0 6px; }

.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 42px; padding: 24px 0 56px; }
.pd-gallery { position: sticky; top: calc(var(--hdr-h) + 16px); align-self: start; }
.pd-main {
  aspect-ratio: 1/1; border-radius: var(--r-xl); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line);
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button {
  width: 66px; height: 66px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line);
  background: var(--sand-2); padding: 0;
}
.pd-thumbs button.is-on { border-color: var(--ember); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 6px; }
.pd-en { font-family: var(--display); color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.pd-short { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 20px; }
.pd-pricebox {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 20px;
}
.pd-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pd-price b { font-size: 34px; color: var(--flame); font-weight: 700; letter-spacing: -.02em; }
.pd-price span { color: var(--muted); font-size: 15px; }
.pd-rate { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.pd-label { font-size: 14px; font-weight: 600; margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.pd-label svg { color: var(--muted); }
.wopts { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.wopt {
  padding: 9px 16px; border-radius: 11px; border: 1.6px solid var(--line-2);
  background: var(--paper); font-size: 15px; font-weight: 500; text-align: center; line-height: 1.3;
  transition: border-color .16s ease, background .16s ease;
}
.wopt small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.wopt:hover { border-color: var(--ink); }
.wopt.is-on { border-color: var(--ember); background: var(--ember-soft); }
.wopt.is-on small { color: var(--flame); }
.wopt[disabled] { opacity: .45; text-decoration: line-through; pointer-events: none; }
.pd-qty { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pd-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-acts .btn { padding: 15px 10px; font-size: 16px; }
.pd-meta { margin-top: 22px; display: grid; gap: 12px; }
.pd-meta div { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.pd-meta svg { color: var(--leaf); flex: none; margin-top: 3px; }
.pd-desc {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.pd-desc h2 { font-size: 20px; }
.pd-desc p { color: var(--ink-soft); max-width: 68ch; }

/* =========================================================
   Forms / checkout
   ========================================================= */
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-size: clamp(25px, 3.6vw, 36px); margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 62ch; }

.form-grid { display: grid; gap: 16px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--alert); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 11px;
  background: var(--paper); font-size: 16px; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3.5px rgba(255, 122, 24, .16);
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field small { display: block; font-size: 12.8px; color: var(--muted); margin-top: 5px; }
.field .err { color: var(--alert); font-size: 13px; margin-top: 5px; display: none; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--alert); }
.field.is-bad .err { display: block; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 30px; padding: 22px 0 60px; align-items: start; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
}
.card + .card { margin-top: 18px; }
.card h2 { font-size: 19px; margin-bottom: 4px; }
.card > p.hint { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.paylist { display: grid; gap: 12px; }
.payopt {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 16px;
  border: 1.6px solid var(--line-2); border-radius: 13px; cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.payopt:hover { border-color: var(--ink); }
.payopt.is-on { border-color: var(--ember); background: var(--ember-soft); }
.payopt input { margin-top: 5px; accent-color: var(--flame); width: 18px; height: 18px; flex: none; }
.payopt b { display: block; font-size: 15.5px; font-weight: 600; }
.payopt span { font-size: 13.6px; color: var(--muted); line-height: 1.55; }
.paybadge {
  display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; vertical-align: 2px;
}
.paybadge.bkash { background: #FCE7F1; color: #D12A6E; }
.paybadge.nagad { background: #FDE8E4; color: #C8342A; }
.paybadge.cod { background: var(--leaf-soft); color: var(--leaf); }
.paybox {
  margin-top: 14px; padding: 16px; border-radius: 13px; background: var(--sand);
  border: 1px dashed var(--line-2);
}
.paybox.is-hidden { display: none; }
.paynum {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 19px; font-weight: 700; font-family: var(--display); color: var(--ink);
  margin: 6px 0 12px;
}
.paynum button {
  font-size: 12.5px; font-family: var(--bn); font-weight: 600; color: var(--flame);
  border: 1.4px solid var(--line-2); border-radius: 8px; padding: 3px 10px; background: var(--paper);
}
.paysteps { font-size: 14px; color: var(--muted); padding-left: 18px; list-style: decimal; margin: 0 0 14px; }
.paysteps li { margin-bottom: 4px; }

.summary { position: sticky; top: calc(var(--hdr-h) + 16px); }
.coupon-box { display: flex; gap: 8px; margin-bottom: 4px; }
.coupon-box input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line-2);
  background: var(--sand); font-size: 14px; text-transform: uppercase;
}
.coupon-box input:focus { outline: none; border-color: var(--ember); background: var(--paper); }
.coupon-box .btn { flex: none; padding: 10px 14px; font-size: 13.5px; }
.coupon-msg { font-size: 13px; margin: 0 0 12px; font-weight: 600; }
.coupon-msg.is-ok { color: var(--leaf); }
.coupon-msg.is-bad { color: var(--alert); }
.sum-line.sum-discount span:last-child { color: var(--leaf); font-weight: 600; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.sum-line.total {
  border-top: 1.5px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 600;
}
.sum-line.total b { font-size: 24px; color: var(--flame); }
.sum-line .muted { color: var(--muted); }
.sum-items { max-height: 320px; overflow-y: auto; margin-bottom: 12px; }
.sum-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--sand-2); font-size: 14.5px; }
.sum-item img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: var(--sand-2); flex: none; }
.sum-item .sum-ph { width: 46px; height: 46px; border-radius: 9px; background: var(--sand-2); flex: none; }
.sum-item .si-main { flex: 1; min-width: 0; }
.sum-item .si-main b { display: block; font-weight: 600; line-height: 1.4; }
.sum-item .si-main span { font-size: 12.5px; color: var(--muted); }
.sum-item .si-price { font-weight: 600; white-space: nowrap; }

.alert {
  padding: 13px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 18px;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-bad { background: #FCEBE9; color: #8C241A; border: 1px solid #F3C9C4; }
.alert-ok { background: var(--leaf-soft); color: #0E5A37; border: 1px solid #BFE4CF; }
.alert-info { background: var(--ember-soft); color: #8A3B06; border: 1px solid #FBD9BC; }

/* success */
.done { max-width: 720px; margin: 0 auto; padding: 46px 0 70px; text-align: center; }
.done-badge {
  width: 82px; height: 82px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center;
}
.done h1 { font-size: clamp(25px, 4vw, 34px); }
.done-no {
  display: inline-block; margin: 8px 0 18px; padding: 9px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: var(--display); font-size: 18px; letter-spacing: .04em;
}
.done-card { text-align: left; margin-top: 26px; }

/* tables (track/order) */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.8px; }
.tbl th, .tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { font-weight: 600; color: var(--muted); font-size: 13.5px; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }

.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.st-pending { background: #FFF3DC; color: #96620B; }
.st-confirmed { background: #E4F0FF; color: #1B5FA8; }
.st-packed { background: #EDE7FB; color: #5B3BA8; }
.st-shipped { background: var(--ember-soft); color: #A7480A; }
.st-delivered { background: var(--leaf-soft); color: var(--leaf); }
.st-cancelled { background: #FCEBE9; color: #98261A; }

/* content pages */
.prose { max-width: 70ch; padding: 10px 0 60px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose p { color: var(--ink-soft); }
.prose ul.bul { list-style: none; padding: 0; }
.prose ul.bul li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--ink-soft); }
.prose ul.bul li::before {
  content: ''; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--ember); transform: rotate(45deg);
}

.about-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: 40px 0;
}
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
}
.stat b { display: block; font-size: 30px; font-family: var(--display); color: var(--flame); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 10px 0 60px; }
.cinfo { display: grid; gap: 16px; }
.cinfo-row { display: flex; gap: 14px; align-items: flex-start; }
.cinfo-ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ember-soft); color: var(--flame);
  display: grid; place-items: center; flex: none;
}
.cinfo-row b { display: block; font-size: 15px; }
.cinfo-row a, .cinfo-row span { color: var(--muted); font-size: 14.8px; }
.cinfo-row a:hover { color: var(--flame); }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 260px; margin-top: 20px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* empty state */
.empty { text-align: center; padding: 62px 20px; color: var(--muted); }
.empty svg { margin: 0 auto 14px; color: var(--line-2); }
.empty h2 { color: var(--text); font-size: 20px; }

/* toast */
.toast-wrap {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 14.8px; box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 10px;
  animation: toastIn .25s ease;
}
.toast svg { color: #4BDB7E; }
.toast.bad svg { color: #FF8A7A; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* floating whatsapp */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  width: 54px; height: 54px; border-radius: 50%; background: #1FAF54; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(31, 175, 84, .7);
  transition: transform .18s ease;
}
.fab-wa:hover { transform: scale(1.06); }

/* =========================================================
   Footer
   ========================================================= */
.ftr { background: var(--ink); color: #BDB4A9; padding-top: 52px; margin-top: 10px; }
.ftr-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 34px; padding-bottom: 40px;
}
.ftr-brand img { height: 66px; width: auto; margin-bottom: 14px; }
.ftr-brand p { font-size: 14.5px; max-width: 34ch; }
.ftr-social { display: flex; gap: 10px; margin-top: 16px; }
.ftr-social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #E2D9CE; transition: background .18s ease, color .18s ease;
}
.ftr-social a:hover { background: var(--ember); color: #fff; }
.ftr-col h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.ftr-col li { margin-bottom: 8px; font-size: 14.6px; }
.ftr-col a:hover { color: var(--ember); }
.ftr-contact p { display: flex; gap: 10px; align-items: flex-start; font-size: 14.6px; margin-bottom: 10px; }
.ftr-contact svg { color: var(--ember); flex: none; margin-top: 4px; }
.ftr-contact a:hover { color: var(--ember); }
.ftr-bar { border-top: 1px solid rgba(255, 255, 255, .09); padding: 16px 0; }
.ftr-bar-in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.6px; }
.dev-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ember); font-weight: 600;
  padding: 3px 10px; border-radius: 8px; border: 1px solid rgba(255, 122, 24, .35);
  transition: background .18s ease, color .18s ease;
}
.dev-link:hover { background: var(--ember); color: #131313; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1040px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; gap: 26px; }
  .pd-gallery { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .about-hero { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --hdr-h: 60px; }
  .hdr-in { gap: 8px; }
  .brand img { height: 36px; }
  .searchbar {
    order: 5; flex-basis: 100%; max-width: none; height: 42px; margin: 0 0 10px;
  }
  .hdr-in { flex-wrap: wrap; height: auto; padding-top: 9px; }
  .hdr-wa { display: none; }
  .catbar-in { padding-bottom: 6px; }
  .sec { padding: 44px 0; }
  .f2 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .hero-in { padding: 50px 20px 60px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
  .pcard-acts { grid-template-columns: 1fr; }
  .pcard-body { padding: 12px; }
  .pcard-name { font-size: 15px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .pd-acts { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .ftr-bar-in { justify-content: center; text-align: center; }
  .fab-wa { width: 50px; height: 50px; bottom: 14px; right: 14px; }
  .trust-in { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 540px; }
}

/* motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* print */
@media print {
  .hdr, .catbar, .ftr, .fab-wa, .notice, .drawer, .cartpanel, .scrim { display: none !important; }
  body { background: #fff; }
}
