/* ============================================================================
   Vaiya Mobile Ghor — থিম: ডিফল্ট লাইট, অপশন ডার্ক (কালো ও সোনালি)
   ========================================================================== */
:root {
  --bg: #f6f4ee;
  --bg-soft: #fffdf7;
  --card: #ffffff;
  --card-2: #f3efe4;
  --border: #e5dfcf;
  --text: #221d10;
  --muted: #6e6857;
  --gold: #a5821c;
  --gold-2: #c39a2e;
  --gold-dark: #7c5f0f;
  --gold-soft: rgba(165, 130, 28, 0.1);
  --gold-line: rgba(165, 130, 28, 0.35);
  --danger: #d3313a;
  --danger-soft: rgba(211, 49, 58, 0.12);
  --success: #1d9e63;
  --success-soft: rgba(29, 158, 99, 0.12);
  --info: #2f6fc4;
  --info-soft: rgba(47, 111, 196, 0.12);
  --warn: #c97f12;
  --warn-soft: rgba(201, 127, 18, 0.13);
  --violet: #7452d6;
  --violet-soft: rgba(116, 82, 214, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 26px rgba(60, 50, 20, 0.1);
  --header-h: 64px;
  --font: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-soft: #101014;
  --card: #16161b;
  --card-2: #1d1d24;
  --border: #2a2a33;
  --text: #f3f0e6;
  --muted: #a09a8a;
  --gold: #d4af37;
  --gold-2: #f2d06b;
  --gold-dark: #9a7b1e;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --gold-line: rgba(212, 175, 55, 0.35);
  --danger: #e5484d;
  --danger-soft: rgba(229, 72, 77, 0.14);
  --success: #3dd68c;
  --success-soft: rgba(61, 214, 140, 0.13);
  --info: #5aa2f7;
  --info-soft: rgba(90, 162, 247, 0.14);
  --warn: #f5a524;
  --warn-soft: rgba(245, 165, 36, 0.14);
  --violet: #9b7bf7;
  --violet-soft: rgba(155, 123, 247, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; padding-bottom: 48px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--gold); color: #111; }

h1, h2, h3, h4 { line-height: 1.3; }
h2.section-title {
  font-size: 1.35rem;
  margin: 34px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2.section-title::before {
  content: "";
  width: 5px; height: 24px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-radius: 3px;
}
.section-head { display: flex; align-items: center; justify-content: space-between; }
.view-all { color: var(--gold); font-size: 0.92rem; font-weight: 600; }
.view-all:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}
.text-center { text-align: center; }
.flex { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.gold { color: var(--gold); }
.hidden { display: none !important; }

/* ============================== Buttons ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #191400;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--gold-line);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold-soft); }
.btn-dark {
  background: var(--card-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-dark:hover { border-color: var(--gold-line); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.18s;
  font-size: 1.05rem;
}
.icon-btn:hover { border-color: var(--gold-line); color: var(--gold); }
.icon-btn .badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gold);
  color: #191400;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.chip-btn:hover { color: var(--gold); border-color: var(--gold-line); }

/* ============================== Forms ============================== */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.input, .field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { min-height: 90px; resize: vertical; }
/* বাকি থাকা/ভুল ঘরটি গ্রাহক সরাসরি দেখতে পান */
.field :is(input, select, textarea).invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(214,69,69,.14); }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
select.input option { background: var(--card); color: var(--text); }
.req { color: var(--danger); font-style: normal; font-weight: 700; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.check-line input { width: auto; }
.error-text { color: var(--danger); font-size: 0.85rem; margin-top: 6px; }
.success-text { color: var(--success); font-size: 0.85rem; margin-top: 6px; }

/* লেবেলের ভেতরে বসানো কন্ট্রোল — লগইন, অ্যাকাউন্ট, রিসেট ও সব অ্যাডমিন ফর্ম
   এই মার্কআপ ব্যবহার করে (.field ক্লাস নেই), তাই এখানে স্টাইল করা হলো।
   :where() ব্যবহার করা হয়েছে যাতে specificity কম থাকে — .field / .search-box এর নিয়ম যাতে না ভাঙে। */
label :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 6px 0 0;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
label select { padding-right: 30px; }
label textarea { min-height: 92px; resize: vertical; }
label input:where([type="checkbox"], [type="radio"]) {
  display: inline-block;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: initial;
  border-radius: initial;
  background: initial;
  accent-color: var(--gold);
}
label :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
label :is(input, textarea)::placeholder { color: var(--muted); opacity: 0.75; }
label :is(input, select, textarea):disabled { opacity: 0.65; cursor: not-allowed; }
/* লেবেলের টেক্সট — চেকবক্স/রেডিও কার্ড বাদে
   (বাধ্যতামূলক * চিহ্নটি যেন আলাদা লাইনে না নামে তাই :not(.req)) */
label:not(.check-line):not(.chk):not(.radio-card) > span:first-child:not(.req) {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}
label:not(.check-line):not(.chk):not(.radio-card) > span:first-child .req { color: var(--danger); }
/* একটার নিচে আরেকটা ফিল্ড — শ্বাস রাখা (:has() না চললেও রূপ ঠিক থাকে, শুধু ব্যবধান কমবে) */
label:not(.check-line):not(.chk):not(.radio-card):has(:is(input, select, textarea):where(:not([type="checkbox"], [type="radio"]))) {
  display: block;
  margin-bottom: 14px;
}
/* পাসওয়ার্ড দেখা/লুকানোর বোতাম */
.pw-wrap { display: block; position: relative; }
.pw-wrap > input { padding-right: 46px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.pw-toggle:hover { color: var(--gold); background: var(--gold-soft); }
.pw-toggle.on { color: var(--gold); }
.pw-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ============================== Topbar & Header ============================== */
.topbar { background: var(--gold); color: #191400; font-size: 0.8rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 10px; }
.topbar a { font-weight: 600; }
.topbar-contact { display: flex; gap: 16px; align-items: center; }
.topbar-actions { display: flex; gap: 8px; }
.topbar .chip-btn { border-color: rgba(25,20,0,0.35); color: #191400; }
.topbar .chip-btn:hover { background: rgba(25,20,0,0.1); color: #191400; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
}
.header-in { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.search-box {
  flex: 1;
  display: flex;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-soft);
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 18px;
  color: var(--text);
  font-size: 0.93rem;
  outline: none;
}
.search-box button {
  border: none;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #191400;
  padding: 0 18px;
  font-size: 1rem;
}
.header-actions { display: flex; gap: 9px; align-items: center; margin-left: auto; }
.account-wrap { position: relative; }
.account-dropdown {
  position: absolute;
  right: 0;
  top: 48px;
  width: 210px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 95;
}
.account-dropdown.open { display: block; }
.account-dropdown a, .account-dropdown button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  text-align: left;
}
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--gold-soft); color: var(--gold); }
.menu-btn { display: none; }

.cat-strip { border-top: 1px solid var(--border); background: var(--bg-soft); }
.cat-strip-in { display: flex; gap: 6px; overflow-x: auto; padding: 7px 16px; scrollbar-width: none; }
.cat-strip-in::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.cat-pill:hover, .cat-pill.active { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

/* Drawer (mobile) */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 98;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: var(--bg-soft);
  z-index: 99;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  padding: 18px;
  overflow-y: auto;
  border-right: 1px solid var(--gold-line);
}
.drawer.open { transform: translateX(0); }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer h3 { color: var(--gold); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.drawer a.drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 10px;
  border-radius: 9px;
  color: var(--text);
  font-size: 0.95rem;
}
.drawer a.drawer-link:hover { background: var(--gold-soft); color: var(--gold); }

/* Bottom nav (mobile) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--gold-line);
  z-index: 90;
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.66rem;
  color: var(--muted);
  padding: 5px 0;
  position: relative;
}
.bottom-nav a.active, .bottom-nav a:hover { color: var(--gold); }
.bottom-nav .bn-icon { font-size: 1.15rem; }
.bottom-nav .badge {
  position: absolute;
  top: 0; right: calc(50% - 20px);
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--gold);
  color: #191400;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================== Hero & Banners ============================== */
.hero { margin-top: 18px; }
.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
  aspect-ratio: 2560 / 1080;
  background: var(--card);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-cap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: clamp(18px, 4vw, 46px);
  max-width: 60%;
  background: linear-gradient(90deg, rgba(6,6,8,.72) 0%, rgba(6,6,8,.42) 42%, transparent 74%);
}
.hc-title {
  color: #fff; font-weight: 800; line-height: 1.22;
  font-size: clamp(1.15rem, 3.2vw, 2.1rem);
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}
.hc-sub { color: var(--gold-2); font-size: clamp(.82rem, 1.7vw, 1.05rem); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
/* বিশ্বাসের বার্তা — গ্রাহক পণ্য দেখার আগেই ডেলিভারি/পেমেন্ট নিশ্চিত হয় */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 2px; }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 13px;
}
.trust-item .ti-icon { font-size: 1.35rem; line-height: 1; }
.trust-item .ti-title { font-weight: 700; font-size: .87rem; }
.trust-item .ti-sub { font-size: .74rem; color: var(--muted); }
/* দোকানের পরিচিতি লেখা — গ্রাহকের জন্যও কাজের, Google-র কনটেন্ট হিসেবেও */
.seo-intro { margin: 16px 0 10px; color: var(--muted); font-size: .9rem; line-height: 1.75; }
/* ব্যানারের নিচের দোকানের নামের লেখা — গ্রাহকও পড়ে, Google-ও হ1 হিসেবে পড়ে */
.store-h1 { margin: 14px 0 4px; font-size: 1.02rem; font-weight: 700; color: var(--text); line-height: 1.5; }
.store-h1 span { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 3px; }
.seo-intro h2 { color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }
.seo-intro a { color: var(--gold-2); text-decoration: none; padding: 7px 3px; display: inline-block; }
@media (max-width: 960px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 10px 11px; gap: 8px; }
  .trust-item .ti-title { font-size: .8rem; }
  .trust-item .ti-sub { font-size: .7rem; }
}
.hero-dots { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
/* বিন্দু দেখতে ছোট, কিন্তু আঙুলের ট্যাপের জায়গা ৩২px */
.hero-dots button {
  position: relative; width: 32px; height: 32px;
  border: none; background: none; padding: 0;
}
.hero-dots button::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); transition: all 0.2s;
}
.hero-dots button.active::after { width: 26px; height: 9px; border-radius: 5px; background: var(--gold); }
@media (max-width: 960px) {
  .hero-dots { gap: 4px; margin-top: 6px; }
}

/* ============================== Category grid ============================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cat-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .cc-icon { font-size: 1.9rem; }
.cat-card .cc-name { font-size: 0.88rem; font-weight: 600; }

/* ============================== Product cards ============================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-card:hover { border-color: var(--gold-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-img { position: relative; aspect-ratio: 1; background: var(--card-2); }
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pc-offer {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.pc-wish {
  position: absolute;
  top: 8px; right: 8px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.pc-wish:hover, .pc-wish.active { color: var(--danger); border-color: var(--danger); }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.pc-cat { font-size: 0.72rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.pc-name {
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.pc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-price .price { color: var(--gold); font-weight: 800; font-size: 1.08rem; }
.pc-price .price-old { color: var(--muted); text-decoration: line-through; font-size: 0.83rem; }
.pc-stock { font-size: 0.76rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.pc-foot { margin-top: auto; display: flex; gap: 8px; min-width: 0; }
.pc-foot .btn { flex: 1; min-width: 0; padding: 8px 10px; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; }

/* ============================== Shop layout (products page) ============================== */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; margin-top: 16px; }
.shop-side { position: sticky; top: calc(var(--header-h) + 12px); }
.filter-toggle { display: none; }
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; gap: 12px; }
  .shop-side { position: static; display: none; }
  .shop-side.open { display: block; }
  .filter-toggle { display: inline-flex; }
}

/* stock badges */
.badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.b-in { background: var(--success-soft); color: var(--success); }
.b-low { background: var(--warn-soft); color: var(--warn); }
.b-out { background: var(--danger-soft); color: var(--danger); }
.b-pre { background: var(--violet-soft); color: var(--violet); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ============================== Product detail ============================== */
.pd-grid { display: grid; grid-template-columns: 460px 1fr; gap: 34px; margin-top: 26px; }
.pd-gallery .pd-main {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  aspect-ratio: 1;
}
.pd-gallery .pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs img {
  width: 72px; height: 72px;
  object-fit: contain;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
}
.pd-thumbs img.active { border-color: var(--gold); }
.pd-info h1 { font-size: 1.5rem; margin: 8px 0 6px; }
.pd-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }
.pd-price-box {
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pd-price-box .price { font-size: 1.7rem; font-weight: 800; color: var(--gold); }
.pd-price-box .price-old { color: var(--muted); text-decoration: line-through; font-size: 1rem; }
.pd-price-box .save-chip { background: var(--success-soft); color: var(--success); }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-box button {
  width: 38px; height: 40px;
  background: var(--card-2);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
}
.qty-box button:hover { color: var(--gold); }
.qty-box input {
  width: 52px; height: 40px;
  text-align: center;
  border: none;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}
.variant-group { margin-bottom: 14px; }
.variant-group .vg-name { font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; }
.variant-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-chip {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.15s;
}
.variant-chip:hover { border-color: var(--gold-line); }
.variant-chip.active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.variant-chip.disabled { opacity: 0.4; pointer-events: none; }
.pd-actions { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 170px; }
.pd-tabs { margin-top: 34px; }
.pd-tab-btns { display: flex; gap: 6px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pd-tab-btns button {
  padding: 11px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}
.pd-tab-btns button.active { color: var(--gold); border-bottom-color: var(--gold); }
.pd-tab-panel { padding: 20px 4px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.spec-table td:first-child { color: var(--muted); width: 220px; font-weight: 600; }
.policy-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 12px;
  font-size: 0.92rem;
}
.policy-box .pb-title { font-weight: 700; color: var(--gold); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }

/* ============================== Cart & Checkout ============================== */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 26px; margin-top: 24px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  align-items: center;
}
.cart-item img { width: 84px; height: 84px; object-fit: contain; background: var(--card-2); border-radius: 10px; padding: 4px; }
.ci-name { font-weight: 600; font-size: 0.95rem; }
.ci-variant { color: var(--muted); font-size: 0.8rem; }
.ci-price { color: var(--gold); font-weight: 700; margin-top: 2px; }
.ci-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-remove {
  background: none; border: none;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex; align-items: center; gap: 4px;
}
.ci-remove:hover { color: var(--danger); }
.summary-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.summary-box h3 { margin-bottom: 14px; color: var(--gold); }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.93rem; }
.sum-row.total { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 13px; font-weight: 800; font-size: 1.06rem; }
.sum-row.total .val { color: var(--gold); }
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty-state .es-icon { font-size: 3.2rem; margin-bottom: 12px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }
.sug-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 14px; padding-top: 18px; border-top: 1px dashed var(--border); }
.sug-head h3 { font-size: 1.08rem; }
.sug-head a { color: var(--gold); font-size: 0.86rem; font-weight: 600; }
.radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--card);
}
.radio-card:hover { border-color: var(--gold-line); }
.radio-card.active { border-color: var(--gold); background: var(--gold-soft); }
.radio-card input { margin-top: 4px; }
.radio-card .rc-title { font-weight: 700; font-size: 0.95rem; }
.radio-card .rc-desc { color: var(--muted); font-size: 0.82rem; }

/* ============================== Timeline / Tracking ============================== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -27px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}
.tl-item.done::before { background: var(--gold); }
.tl-item .tl-status { font-weight: 700; font-size: 0.94rem; }
.tl-item.done .tl-status { color: var(--gold); }
.tl-item .tl-time { font-size: 0.78rem; color: var(--muted); }
.tl-item .tl-note { font-size: 0.84rem; color: var(--muted); }

/* status chips */
.st-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.st-pending, .st-return_requested, .st-refund_pending { background: var(--warn-soft); color: var(--warn); }
.st-confirmed, .st-processing { background: var(--info-soft); color: var(--info); }
.st-packed, .st-shipped { background: var(--violet-soft); color: var(--violet); }
.st-out_for_delivery { background: var(--warn-soft); color: var(--warn); }
.st-delivered { background: var(--success-soft); color: var(--success); }
.st-cancelled, .st-returned, .st-refunded { background: var(--danger-soft); color: var(--danger); }

/* ============================== Tables ============================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--card-2);
  white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.12s; }
.data-table tbody tr:hover { background: var(--gold-soft); }
.data-table .row-click { cursor: pointer; }

/* ============================== Modal ============================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 16px;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow);
  animation: modalIn 0.18s ease;
}
.modal.modal-lg { max-width: 900px; }
@keyframes modalIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { color: var(--gold); font-size: 1.05rem; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ============================== Toast ============================== */
#toast-wrap {
  position: fixed;
  bottom: 76px;
  right: 16px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-left: 4px solid var(--gold);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
  max-width: 320px;
}
.toast.err { border-left-color: var(--danger); border-color: var(--danger-soft); }
.toast.ok { border-left-color: var(--success); }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================== Auth pages ============================== */
.auth-wrap { max-width: 440px; margin: 40px auto; }
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.35rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.auth-switch a { color: var(--gold); font-weight: 600; }

/* লগইন ও রিসেট — দুই কলাম: বাঁয়ে ব্র্যান্ড প্যানেল, ডানে ফর্ম। মোবাইলে প্যানেলটা উপর ভাঁজ হয় */
.auth-page { padding: 22px 0 6px; }
.auth-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  max-width: 960px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.auth-shell > .auth-card { border: 0; border-radius: 0; box-shadow: none; padding: 30px 32px; }
.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px 26px;
  background: linear-gradient(155deg, #241f14 0%, #100e0a 55%, #1b1710 100%);
  color: #ece5d2;
}
.auth-hero::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -40%;
  width: 340px;
  height: 340px;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.22), transparent);
  pointer-events: none;
}
.auth-hero-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.auth-hero-brand img { width: 44px; height: 44px; border-radius: 10px; background: #fffdf7; padding: 4px; }
.auth-hero-brand b { display: block; color: #fff; font-size: 1.06rem; line-height: 1.2; }
.auth-hero-brand span { font-size: 0.78rem; color: #cbb98a; }
.auth-hero h2 { font-size: 1.4rem; line-height: 1.3; color: #fff; position: relative; z-index: 1; }
.auth-hero h2 em { font-style: normal; color: var(--gold-2); }
.auth-hero .hero-sub { font-size: 0.88rem; color: #cfc6ae; position: relative; z-index: 1; }
.auth-perks { list-style: none; display: grid; gap: 13px; position: relative; z-index: 1; }
.auth-perks li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.88rem; color: #ded6c2; line-height: 1.45; }
.auth-perks li b { display: block; color: #fff; font-size: 0.92rem; }
.auth-perks .p-ico {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #e6c66a;
}
.auth-hero-foot { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 10px; padding-top: 6px; }
.auth-hero-foot .hero-call { font-size: 0.84rem; color: #cfc6ae; }
.auth-hero-foot .hero-call a { color: #e6c66a; font-weight: 700; }
.auth-stats { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.auth-stats span {
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2d7b6;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 11px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.auth-tabs button {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}
.auth-tabs button:hover { color: var(--text); }
.auth-tabs button.active { border-color: var(--gold-line); color: var(--gold); background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.auth-form h2 { font-size: 1.24rem; margin-bottom: 3px; }
.auth-form > .muted:first-of-type { margin-bottom: 20px; }
.auth-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; color: var(--muted); margin: 4px 0 16px; }
.auth-help { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 0.84rem; color: var(--muted); }
.auth-help a { color: var(--gold); font-weight: 600; }
.auth-mini-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px }
.auth-mini-links a { font-size: 0.82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px }
.auth-mini-links a:hover { color: var(--gold) }
/* অ্যাকাউন্টের লগআউট-অবস্থার কার্ড */
.need-login { max-width: 520px; margin: 26px auto 0; text-align: center }
.need-login h2 { margin-bottom: 4px }
.need-login > .muted { margin-bottom: 18px }
.need-login .btn-block + .btn-block { margin-top: 10px }
.nl-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
}
.inline-perks { list-style: none; display: grid; gap: 9px; margin: 0 0 20px; text-align: left }
.inline-perks li {
  font-size: 0.87rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.inline-perks li > span:first-child { color: var(--text); font-weight: 700 }


/* ============================== Account ============================== */
.account-grid { display: grid; grid-template-columns: 230px 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.account-side {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.account-side a, .account-side button.as-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--text);
  background: none;
  border: none;
  font-size: 0.92rem;
  text-align: left;
}
.account-side a:hover, .account-side button.as-link:hover { background: var(--gold-soft); color: var(--gold); }
.account-side a.active { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.address-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--card);
  position: relative;
}
.address-card.default { border-color: var(--gold); }
.address-card .ac-badge { position: absolute; top: -9px; right: 12px; background: var(--gold); color: #191400; font-size: 0.68rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

/* ============================== Admin ============================== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 100vh; }
.admin-side {
  background: var(--bg-soft);
  border-right: 1px solid var(--gold-line);
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-side .brand { padding: 6px 10px 18px; }
.admin-side nav { display: flex; flex-direction: column; gap: 3px; }
.admin-side nav a, .admin-side nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
}
.admin-side nav a:hover, .admin-side nav button:hover { background: var(--gold-soft); color: var(--gold); }
.admin-side nav a.active { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.admin-main { padding: 22px 26px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 1.3rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.stat-card .sc-label { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.stat-card .sc-value { font-size: 1.55rem; font-weight: 800; margin-top: 4px; color: var(--text); }
.stat-card .sc-sub { font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.stat-card.gold .sc-value { color: var(--gold); }
.admin-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.admin-panel h3 { color: var(--gold); margin-bottom: 14px; font-size: 1.02rem; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.admin-toolbar .input { width: auto; min-width: 160px; }
.thumb { width: 44px; height: 44px; object-fit: contain; background: var(--card-2); border-radius: 8px; padding: 3px; border: 1px solid var(--border); }
.img-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.img-tile { position: relative; width: 92px; height: 92px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card-2); }
.img-tile img { width: 100%; height: 100%; object-fit: contain; }
.img-tile .rm {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
}
.up-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.9rem;
}
.up-area:hover { border-color: var(--gold); color: var(--gold); }
.note-box {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text);
}
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; font-size: 0.92rem; }
.kv-grid .k { color: var(--muted); }
.bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 90px; gap: 10px; align-items: center; font-size: 0.8rem; }
.bar-track { background: var(--card-2); border-radius: 6px; height: 16px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 6px; min-width: 2px; }

/* ============================== Invoice print ============================== */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; color: #000; background: #fff; }
  .invoice { max-width: 720px; margin: 0 auto; font-family: "Inter", "Hind Siliguri", sans-serif; }
  .invoice h2 { color: #000; }
  .inv-head { display: flex; justify-content: space-between; border-bottom: 3px solid #d4af37; padding-bottom: 12px; margin-bottom: 14px; }
  .inv-head .inv-shop { font-size: 1.25rem; font-weight: 800; }
  .inv-head .inv-meta { text-align: right; font-size: 0.8rem; }
  .invoice table { width: 100%; border-collapse: collapse; margin-top: 10px; }
  .invoice th, .invoice td { border: 1px solid #999; padding: 7px 9px; font-size: 0.82rem; text-align: left; }
  .invoice .inv-totals { margin-top: 12px; margin-left: auto; width: 260px; font-size: 0.88rem; }
  .invoice .inv-totals div { display: flex; justify-content: space-between; padding: 3px 0; }
  .invoice .inv-foot { margin-top: 26px; font-size: 0.75rem; text-align: center; color: #444; }
}

/* ============================== Footer ============================== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--gold-line);
  margin-top: 34px;
  padding: 30px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 26px; padding-bottom: 26px; }
.footer-grid h4 { color: var(--gold); margin-bottom: 11px; font-size: 0.98rem; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 0.88rem; padding: 3px 0; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid .f-phones { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-weight: 600; color: var(--text); }
.footer-grid .f-phones a { display: inline; min-height: 0; padding: 0; color: var(--text); }
.footer-grid .f-phones a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-bottom .gold { font-weight: 600; }

/* ============================== Skeleton / misc ============================== */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: skel 1.3s infinite;
  border-radius: var(--radius);
}
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--gold-soft);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { padding: 40px; text-align: center; }
.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin-top: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }

/* ============================== Responsive ============================== */
@media (max-width: 960px) {
  .pd-grid { grid-template-columns: 1fr; gap: 20px; }
  .cart-grid { grid-template-columns: 1fr; }
  .summary-box { position: static; }
  .account-grid { grid-template-columns: 1fr; }
  .account-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .account-side a, .account-side button.as-link { width: auto; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed;
    z-index: 99;
    transform: translateX(-105%);
    transition: transform 0.25s;
    width: 270px;
  }
  .admin-side.open { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* মোবাইলে ফর্ম আগে, ব্র্যান্ড প্যানেল নিচে — ফাঁকা জায়গা থাকে না */
  .auth-shell { grid-template-columns: 1fr; max-width: 520px; }
  .auth-shell > .auth-card { order: 1; padding: 22px 16px; }
  .auth-hero { order: 2; padding: 22px 18px; gap: 14px; }
  .auth-hero h2 { font-size: 1.16rem; }
  .auth-hero-foot { margin-top: 0; }
}
@media (max-width: 700px) {
  .brand-name { display: none; }
  .menu-btn { display: inline-flex; }
  .search-box { max-width: none; }
  .header-actions { gap: 6px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card { padding: 12px 6px; }
  .cat-card .cc-icon { font-size: 1.5rem; }
  .cat-card .cc-name { font-size: 0.72rem; }
  .bottom-nav { display: flex; }
  main { padding-bottom: 80px; }
  /* ফিল্ডে ট্যাপ/ফোকাস করলে স্থির বটম নেভের নিচে যেন লুক না পড়ে */
  :is(input, select, textarea) { scroll-margin: 90px 0 120px; }
  #toast-wrap { bottom: 90px; right: 12px; left: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero-frame { aspect-ratio: 900 / 500; }
  /* ব্যানারের বিষয়বস্তু ডানে সরিয়ে বাঁ-পাশের লেখার জায়গা পরিষ্কার রাখে;
     মোবাইলের ছোট স্ক্রিনে ছবিটা কালো লাগে, তাই হালকা উজ্জ্বলতা বাড়ানো হয় */
  .hero-frame img { object-position: 74% center; filter: brightness(1.22) saturate(1.06); }
  .hero-cap {
    max-width: 100%; padding: 18px 20px; gap: 5px;
    /* ছবিটা দেখা যায়, আবার লেখাও পড়া যায় — এই জন্য হালকা স্ক্রিম */
    background: linear-gradient(90deg, rgba(6,6,8,.66) 0%, rgba(6,6,8,.30) 50%, rgba(6,6,8,0) 78%);
  }
  .hc-title, .hc-sub { max-width: 68%; text-shadow: 0 1px 10px rgba(0,0,0,.85), 0 2px 3px rgba(0,0,0,.6); }
  .topbar-contact span.hide-sm { display: none; }
  .pd-price-box .price { font-size: 1.4rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 16px 12px; }
  .kv-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-item img { width: 64px; height: 64px; }
  /* ট্যাপ-বান্ধব: ছোট কন্ট্রোল বড় করা + iOS zoom প্রতিরোধ */
  .input, .field input, .field select, .field textarea { font-size: 16px; min-height: 44px; }
  label :is(input, select, textarea) { font-size: 16px; }
  .footer-grid a, .footer-grid p { font-size: 0.84rem; }
  .cat-pill { min-height: 40px; padding: 8px 14px; }
  .chip-btn { min-height: 38px; }
  .btn-sm { min-height: 38px; }
  .footer-grid a { min-height: 34px; display: flex; align-items: center; }
  .bottom-nav a { min-height: 50px; }
}

/* ============================== Account page ============================== */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 1.5rem; }
.link { color: var(--gold); text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--gold-2); }
.form-err { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); border-radius: 8px; padding: 10px 12px; font-size: 0.86rem; margin: 12px 0; }
.ok-msg { color: var(--success); font-weight: 700; margin-bottom: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.chk { display: flex; gap: 9px; align-items: center; font-size: 0.92rem; }
.chk input { width: auto; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.tab { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.tab:hover { color: var(--gold); }
.tab.active { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.tab-panel { margin-top: 4px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel-box h3 { color: var(--gold); margin-bottom: 16px; font-size: 1.05rem; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 20px; }
.addr-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 0.9rem; }
.addr-card.addr-default { border-color: var(--gold); }
.addr-def-tag { position: absolute; top: -9px; right: 12px; background: var(--gold); color: #191400; font-size: 0.68rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.addr-actions { margin-top: 10px; }

/* আমার অর্ডার — মোবাইলে টেবিলের বদলে কার্ড (৬ কলাম ৩৯০px-এ ধরে না) */
.order-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.order-card .oc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-card .oc-num { font-weight: 800; color: var(--gold); letter-spacing: .4px; }
.order-card .oc-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); margin: 8px 0; }
.order-card .oc-items { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }

/* ============================== About / Policy / 404 ============================== */
.about-box { max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 30px; text-align: center; }
.about-logo { width: 90px; height: 90px; margin-bottom: 8px; }
.about-box h2 { color: var(--gold); margin-bottom: 12px; }
.about-box p { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }
.about-contact { margin: 18px auto; text-align: left; display: inline-block; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; }
.about-row { display: flex; gap: 10px; padding: 5px 0; font-size: 0.94rem; align-items: baseline; }
.about-row strong { color: var(--gold); white-space: nowrap; }
.about-cta { justify-content: center; margin-top: 10px; }
.policy-box { max-width: 840px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 36px; }
.policy-box h2 { color: var(--gold); font-size: 1.12rem; margin: 26px 0 10px; }
.policy-box h2:first-child { margin-top: 0; }
.policy-box ul { padding-left: 22px; color: var(--muted); }
.policy-box li { padding: 5px 0; font-size: 0.94rem; line-height: 1.6; }
.notfound { text-align: center; padding: 70px 0 60px; }
.nf-code { font-size: 5.6rem; font-weight: 900; color: var(--gold); letter-spacing: 6px; line-height: 1; }
.notfound h1 { margin: 14px 0 8px; }
.notfound .row-gap { justify-content: center; margin-top: 22px; }

/* ============================== Admin extras ============================== */
.admin-side { display: flex; flex-direction: column; }
.admin-side .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.05rem; }
.admin-side .brand img { width: 34px; height: 34px; }
.admin-side .brand em { color: var(--gold); font-style: normal; }
.admin-side nav { margin-top: 6px; }
.as-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.as-user { font-size: 0.8rem; color: var(--muted); word-break: break-all; }
.as-burger { display: none; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 1.05rem; padding: 5px 11px; }
.admin-topbar h1 { font-size: 1.25rem; }
.mini-btn { padding: 5px 10px; font-size: 0.78rem; border-radius: 7px; }
.tbl-note { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.inv-status { font-weight: 700; }

@media (max-width: 960px) {
  .as-burger { display: inline-flex; }
  .account-grid { grid-template-columns: 1fr; }
}

/* ============================== Admin login ============================== */
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-login-wrap .al-logo { width: 72px; height: 72px; margin: 0 auto 8px; display: block; }
.admin-login-wrap h1 { text-align: center; color: var(--gold); margin-bottom: 20px; font-size: 1.35rem; }
.admin-login-wrap .link { display: block; text-align: center; margin-top: 14px; }
