/* ══════════════════════════════════════
   Satoxy — style.css
   বাংলাদেশি ই-কমার্স ওয়েবসাইট স্টাইল
══════════════════════════════════════ */

:root {
  /* Brand palette — matched to the Satoxy logo (navy + orange), warmed and
     deepened for a more premium/boutique feel across the whole site ── */
  --primary: #FF6A00;              /* logo orange — CTAs, links, active states */
  --primary-dark: #E85502;         /* hover/pressed orange */
  --primary-darker: #C24400;       /* deepest orange, for text-on-light contrast */
  --primary-light: #FFF1E6;        /* soft orange tint for chips/backgrounds */
  --primary-glow: rgba(255,106,0,0.16);
  --gradient-primary: linear-gradient(135deg, #FFB020 0%, #FF6A00 55%, #FF4302 100%);

  --brand-navy: #0D1F3D;           /* logo navy — header/footer/dark surfaces */
  --brand-navy-2: #14284D;         /* secondary navy for gradients */
  --gradient-navy: linear-gradient(120deg, #0D1F3D 0%, #14284D 55%, #0A1730 100%);

  --accent: #FFB020;               /* warm amber highlight for dark backgrounds */
  --accent-dark: #E89400;

  /* Warm, cream-tinted neutrals (instead of cold blue-grey) — this is the
     single biggest lever for the "premium/organic" feel, and it cascades
     into every card, drawer, modal and input on the site automatically */
  --bg: #FAF7F1;
  --bg2: #ffffff;
  --bg3: #F4EFE4;
  --text: #1C1712;
  --text2: #5F5849;
  --text3: #9A9079;
  --border: #EAE2D2;
  --border2: #DED2B4;

  --success: #1F8A5A;
  --success-bg: #E4F7EC;
  --danger: #D33B1F;
  --danger-bg: #FDECEA;

  /* Softer, ink-tinted shadows (replacing cold navy shadows) read as more
     refined — plus a gold-tinted shadow for elevated/premium hover states */
  --shadow: 0 2px 14px rgba(33,26,17,0.07);
  --shadow-lg: 0 14px 42px rgba(33,26,17,0.13);
  --shadow-orange: 0 8px 24px rgba(255,106,0,0.28);
  --shadow-gold: 0 16px 38px rgba(217,154,61,0.22);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --font: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  /* English/numerals in headings now render in Playfair Display (Bengali
     glyphs automatically fall back to Noto Sans Bengali per-character) —
     an instant, low-risk lift for hero/section/brand titles site-wide */
  --font-display: 'Playfair Display', 'Noto Sans Bengali', 'Hind Siliguri', serif;
  --transition: 0.2s ease;

  /* ── প্রিমিয়াম প্রোডাক্ট ডিসপ্লে (quick-view পপআপ + product.html) — এখন
     পুরো সাইটের gold accent-ও এখান থেকেই আসে ── */
  --pp-serif: 'Playfair Display', 'Noto Sans Bengali', 'Hind Siliguri', serif;
  --pp-cream: #F8F3E8;
  --pp-cream-deep: #F1E8D6;
  --pp-ink: #211A11;
  --pp-gold: #D99A3D;
  --pp-gold-light: #EFE4CC;
  --pp-line: #E4DAC2;

  /* Back-compat aliases (older rules in this file still reference these) */
  --brand-teal: var(--brand-navy);

  /* ── প্রিমিয়াম গ্লাস (glassmorphism) সারফেস — নেভবার, কার্ড, মোডাল,
     ড্রয়ার, বটম-ন্যাভ ইত্যাদি জুড়ে ব্যবহারের জন্য একটামাত্র জায়গা থেকে
     কন্ট্রোল করা যায় ── */
  --glass-blur: blur(20px) saturate(1.6);
  --glass-blur-lg: blur(28px) saturate(1.7);
  --glass-light: rgba(255,255,255,0.62);
  --glass-light-strong: rgba(255,255,255,0.78);
  --glass-light-border: rgba(255,255,255,0.55);
  --glass-dark: rgba(13,31,61,0.55);
  --glass-dark-strong: rgba(10,20,40,0.7);
  --glass-dark-border: rgba(255,255,255,0.12);
  --glass-shine: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 40%);
  --shadow-glass: 0 8px 32px rgba(33,26,17,0.10), inset 0 1px 0 rgba(255,255,255,0.5);
  --shadow-glass-lg: 0 24px 64px -12px rgba(33,26,17,0.28), inset 0 1px 0 rgba(255,255,255,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* স্ক্রিনের নিচের বর্ডার এডজাস্ট করার জন্য */
body {
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: env(safe-area-inset-top);
}

/* বটম নেভিগেশন বার স্ক্রিনের একদম নিচে ফিক্স করা */
.bottom-nav, footer {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ── Layout ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}
.bg-alt { background: var(--bg3); }

/* ══ NAVBAR ══ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--glass-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px -18px rgba(33,26,17,0.25);
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.navbar.scrolled {
  background: var(--glass-light-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, var(--shadow-lg);
  border-bottom-color: var(--pp-line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo — Satoxy */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 24px; }
.logo-icon-img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-navy);
  letter-spacing: 0.2px;
  font-family: var(--font-display);
}
.logo-wordmark-img {
  height: 24px;
  width: auto;
  display: block;
}
.footer-wordmark { height: 22px; filter: brightness(0) invert(1); }

/* Search bar */
.search-bar {
  flex: 1;
  display: flex;
  gap: 0;
  max-width: 520px;
  position: relative;
}

/* Search suggestion dropdown (classes/toggle match app.js exactly) */
.search-suggest-box {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  /* ব্লার নেই — ব্যাকগ্রাউন্ড পুরো opaque, তাই সাজেশনের পণ্যগুলো একদম পরিষ্কার দেখা যায়।
     প্রিমিয়াম লুকের জন্য ক্রিম→ডিপ-ক্রিম গ্রেডিয়েন্ট + সরু গোল্ড টপ-লাইন */
  background: linear-gradient(180deg, #FFFDF8 0%, var(--pp-cream) 55%, var(--pp-cream-deep) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 0 var(--pp-gold), 0 24px 56px -14px rgba(33,26,17,0.30), 0 8px 18px -8px rgba(217,154,61,0.26);
  z-index: 500;
  overflow: hidden;
  overflow-y: auto;
  max-height: 380px;
}
.search-suggest-box.open { display: block; }

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--pp-line);
  transition: background var(--transition);
}
.search-suggest-item:hover { background: linear-gradient(90deg, var(--pp-gold-light) 0%, rgba(239,228,204,0.45) 100%); }

.search-suggest-thumb {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--pp-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.search-suggest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-suggest-info {
  flex: 1;
  min-width: 0;
}
.search-suggest-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest-meta {
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest-price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.search-suggest-seeall {
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  background: var(--pp-cream-deep);
  transition: background var(--transition);
}
.search-suggest-seeall:hover { background: var(--pp-gold-light); }

.search-suggest-empty {
  padding: 16px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text2);
}
.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  background: var(--bg3);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--primary); background: #fff; }
.search-btn {
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }

/* মোবাইলে ফুল-স্ক্রিন সার্চের সময় ক্যান্সেল (✕) বাটন — ডিফল্টে সবসময় লুকানো,
   শুধু ছোট স্ক্রিনে সার্চ বক্স ফোকাস হলেই দেখা যাবে (নিচের মোবাইল মিডিয়া কোয়েরিতে) */
.search-cancel-btn {
  display: none;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  position: relative;
  transition: all var(--transition);
}
.nav-btn:hover { background: var(--bg3); color: var(--text); }
.nav-label { font-size: 13px; }
.badge-count {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.btn-auth {
  padding: 9px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 14px rgba(255,106,0,0.22);
  transition: all var(--transition);
}
.btn-auth:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 18px rgba(255,106,0,0.32); }
.user-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255,106,0,0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,106,0,0.18);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 22px;
  padding: 6px;
  color: var(--text2);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.5);
  background: var(--glass-light-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.mobile-menu.open { display: flex; }
.mobile-menu input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
}
.mobile-menu .nav-btn { justify-content: flex-start; }

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-navy);
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: background-image 0.3s ease;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 30%, rgba(255,106,0,0.35) 0%, rgba(255,106,0,0) 55%),
    radial-gradient(circle at 8% 92%, rgba(217,154,61,0.28) 0%, rgba(217,154,61,0) 50%);
  pointer-events: none;
}
/* ছবি থাকলে সবসময় একই রকম গাঢ় ও সমান overlay বসে, যাতে টেক্সট সবসময় পড়া যায় —
   ছবির রঙ যেমনই হোক না কেন, পড়ার মান একই থাকবে */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6,12,26,0.82) 0%, rgba(6,12,26,0.6) 45%, rgba(6,12,26,0.42) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-bg.has-photo::before { opacity: 1; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  color: #F4E3C1;
  border: 1px solid rgba(255,203,110,0.35);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  color: #fff;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-accent { color: var(--accent); }
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.btn-hero {
  padding: 14px 30px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(255,106,0,0.42), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-hero:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,106,0,0.52), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-hero-ghost {
  padding: 14px 30px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,203,110,0.4);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.btn-hero-ghost:hover { border-color: rgba(255,203,110,0.75); background: rgba(255,255,255,0.12); }

/* ── Rotating headline (fades between category highlights) ── */
.hero-rotate-text {
  display: inline-block;
  animation: heroTextIn 0.5s ease both;
}
.hero-rotate-text.swap { animation: heroTextIn 0.5s ease both; }
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rotate-text, .hero-rotate-text.swap { animation: none; }
}

/* Floating cards */
.hero-float {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.float-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  animation: floatAnim 3s ease-in-out infinite;
}
.fc1 { animation-delay: 0s; }
.fc2 { animation-delay: 0.6s; }
.fc3 { animation-delay: 1.2s; }

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ══ SECTION HEADERS ══ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--pp-gold) 0%, var(--primary) 100%);
  border-radius: 2px;
}
.section-sub {
  font-size: 15px;
  color: var(--text3);
  margin-top: 8px;
}
.section-sub-link {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text3);
  background: none;
  border: none;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.section-sub-link .arrow {
  font-size: 17px;
  transition: transform var(--transition);
}
.section-sub-link:hover {
  color: var(--primary);
}
.section-sub-link:hover .arrow {
  transform: translateX(3px);
}

/* ══ CATEGORY GRID ══ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--glass-light-strong);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, var(--shadow);
}
.cat-card:hover {
  border-color: var(--primary);
  background: rgba(255,241,230,0.85);
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, var(--shadow-gold);
}
.cat-card.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.cat-icon { font-size: 34px; line-height: 1; }
.cat-name { font-size: 13px; font-weight: 600; color: var(--text2); }
.cat-card:hover .cat-name { color: var(--primary); }
.cat-card.active .cat-name { color: #fff; }
.cat-count { font-size: 11px; color: var(--text3); }
.cat-card.active .cat-count { color: rgba(255,255,255,0.7); }

/* ══ SUBCATEGORY CHIP ROW (ক্যাটাগরি গ্রিডের ঠিক নিচে) ══ */
.subcat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--glass-light-strong);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  transition: all var(--transition);
}
.subcat-chip:hover { border-color: var(--primary); color: var(--primary); }
.subcat-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.subcat-chip-count { font-size: 11px; color: var(--text3); }
.subcat-chip.active .subcat-chip-count { color: rgba(255,255,255,0.75); }

/* ══ সব ক্যাটাগরি ড্রয়ার (সাইড মেনু) ══ */
.cat-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,25,0.45);
  z-index: 300;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cat-drawer-overlay.open { display: block; }

.cat-drawer {
  position: fixed;
  top: 0; left: -360px;
  width: 340px;
  max-width: 88vw;
  height: 100vh;
  background: var(--glass-light-strong);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-right: 1px solid rgba(255,255,255,0.5);
  z-index: 301;
  box-shadow: var(--shadow-glass-lg);
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.cat-drawer.open { left: 0; }

.cat-drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}
.cat-drawer-close {
  width: 32px; height: 32px;
  background: var(--bg3);
  border-radius: 50%;
  font-size: 16px;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-drawer-close:hover { background: var(--border); color: var(--text); }

.cat-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 20px;
}

.drawer-cat-item { border-bottom: 1px solid var(--border); }
.drawer-cat-item.active > .drawer-cat-row .drawer-cat-main,
.drawer-cat-item.active > .drawer-cat-main { color: var(--primary); }

.drawer-cat-row { display: flex; align-items: stretch; }

.drawer-cat-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.drawer-cat-icon { font-size: 19px; line-height: 1; }
.drawer-cat-name { flex: 1; }
.drawer-cat-count { font-size: 12px; font-weight: 500; color: var(--text3); }

.drawer-cat-toggle {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 14px;
  transition: transform var(--transition);
}
.drawer-cat-item:has(.drawer-sublist.open) .drawer-cat-toggle { transform: rotate(180deg); }

.drawer-sublist {
  display: none;
  flex-direction: column;
  background: var(--bg3);
  padding: 4px 0 8px;
}
.drawer-sublist.open { display: flex; }

.drawer-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 48px;
  font-size: 13.5px;
  color: var(--text2);
  text-align: left;
}
.drawer-subitem:hover { color: var(--primary); }
.drawer-subitem.active { color: var(--primary); font-weight: 700; }
.drawer-subitem .drawer-cat-count { margin-left: auto; }

@media (max-width: 480px) {
  .cat-drawer { width: 300px; }
}

/* Filter controls */
.filter-controls select {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.filter-controls select:focus { border-color: var(--primary); }

.active-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--primary-light);
  border: 1px solid rgba(255,106,0,0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}
.active-filter button {
  margin-left: auto;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,106,0,0.1);
}
.active-filter button:hover { background: rgba(255,106,0,0.2); }

/* ══ PRODUCTS GRID ══ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

/* ══ "সব পণ্য" — ক্যাটাগরি অনুযায়ী সাইড-স্লাইড রো ══ */
.category-rows { display: flex; flex-direction: column; gap: 30px; }
.category-row-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 10px;
}
.category-row-seeall {
  background: var(--orange-light, #fff1e6); color: var(--primary);
  border: none; border-radius: 20px; padding: 7px 16px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap; transition: background .2s;
}
.category-row-seeall:hover { background: #ffe1c4; }
.category-row-title {
  font-size: 17px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.category-row-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 6px;
}
.category-row-scroll::-webkit-scrollbar { display: none; }
.category-row-scroll .product-card {
  flex: 0 0 210px; width: 210px; scroll-snap-align: start;
}

/* Product card */
.product-card {
  background: var(--glass-light-strong);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  animation: fadeInUp 0.4s ease both;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, var(--shadow);
}
.product-card:hover {
  border-color: rgba(217,154,61,0.45);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, var(--shadow-glass-lg);
  transform: translateY(-6px);
}
.product-img {
  aspect-ratio: 1/1;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.product-card:hover .product-img img { transform: scale(1.03); }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: var(--glass-light-strong);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(33,26,17,0.14);
  transition: all var(--transition);
  opacity: 0;
}
.product-card:hover .wish-btn { opacity: 1; }
.wish-btn:hover { background: #fff; transform: scale(1.15); }
.wish-btn.active { opacity: 1; background: #fff; }

.pp-share-btn {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--pp-line);
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text2);
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s, border-color .15s;
}
.pp-share-btn:hover { background: var(--pp-gold-light); border-color: var(--pp-gold); color: var(--pp-ink); }

.product-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.product-old-price {
  font-size: 13px;
  color: var(--text3);
  text-decoration: line-through;
}
.discount-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  padding: 2px 6px;
  border-radius: 4px;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text3);
}
.stars { color: #f59e0b; font-size: 13px; }
.stock-low { font-size: 11px; color: var(--danger); font-weight: 500; }

.product-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.btn-add-cart {
  width: 100%;
  padding: 10px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 14px rgba(255,106,0,0.22);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-add-cart:hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 18px rgba(255,106,0,0.38); transform: translateY(-1px); }
.btn-add-cart.added {
  background: var(--success);
}

/* Loading */
.loading-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-products {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.empty-products .big-icon { font-size: 60px; margin-bottom: 12px; }

/* Load more */
.load-more-wrap {
  text-align: center;
  margin-top: 36px;
}
.btn-load-more {
  padding: 12px 32px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-load-more:hover { background: var(--primary); color: #fff; }

/* ══ DRAWER ══ */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  backdrop-filter: blur(2px);
}
.drawer-backdrop.open { display: block; }

.drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg2);
  z-index: 301;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.drawer.open { right: 0; }
.drawer-left { right: auto; left: -420px; transition: left 0.3s cubic-bezier(0.4,0,0.2,1); }
.drawer-left.open { left: 0; }

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h3 { font-size: 18px; font-weight: 600; }
.drawer-close {
  width: 32px; height: 32px;
  background: var(--bg3);
  border-radius: 50%;
  font-size: 16px;
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
}
.drawer-close:hover { background: var(--border); color: var(--text); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 12px;
}
.cart-total strong { font-size: 20px; color: var(--primary); }
.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-checkout:hover { background: var(--primary-dark); }

/* Cart item */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb {
  width: 60px; height: 60px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--primary); margin-top: 3px; }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty-btn {
  width: 26px; height: 26px;
  background: var(--bg3);
  border-radius: 50%;
  font-size: 16px;
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  line-height: 1;
}
.qty-btn:hover { background: var(--border); }
.qty-num { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }
.remove-btn {
  flex-shrink: 0;
  width: 34px; height: 34px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #e53935;
  background: #fff;
  border: 1px solid #f3c6c6;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.remove-btn:hover { background: #fde8e8; border-color: #e53935; }
.remove-btn:active { transform: scale(0.92); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3);
}
.empty-icon { font-size: 48px; margin-bottom: 10px; }
.empty-state p { font-size: 15px; font-weight: 500; color: var(--text2); }
.empty-state small { font-size: 13px; }

/* ══ PRODUCT MODAL ══ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,10,16,0.55);
  z-index: 400;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.modal-backdrop.open { display: block; }

/* Product modal backdrop — only needed on mobile (full-screen on desktop) */
@media (min-width: 769px) {
  #product-modal-backdrop { display: none !important; }
}

/* ══ PRODUCT MODAL — Desktop: Full Screen ══ */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 401;
  background: var(--bg2);
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: transform 0.22s ease, opacity 0.22s ease;
  flex-direction: column;
}
.product-modal.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* ── Desktop back-button topbar ── */
.modal-fs-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
  height: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  background: var(--glass-light-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}
.modal-fs-back {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.modal-fs-back:hover { background: var(--border); color: var(--text); }
.modal-fs-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fs-logo-icon {
  height: 38px;
  width: auto;
  display: block;
}
.fs-logo-wordmark {
  height: 25px;
  width: auto;
  display: block;
}
.fs-logo-suffix {
  font-size: 16px;
  font-weight: 600;
  color: var(--text2);
  font-family: var(--font);
  margin-left: 2px;
}
.modal-fs-breadcrumb {
  font-size: 13px;
  color: var(--text3);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Suggested products (desktop only) ── */
.modal-suggested {
  border-top: 1px solid var(--border);
  background: var(--bg3);
  padding: 36px 48px 52px;
  flex-shrink: 0;
  display: none;
}
.modal-suggested.visible { display: block; }
.modal-suggested-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.modal-suggested .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 16px;
}
.modal-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: var(--bg3);
  border-radius: 50%;
  font-size: 16px;
  color: var(--text2);
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.modal-close-btn:hover { background: var(--border); color: var(--text); }

/* Desktop: product & checkout modal use topbar back btn, not X */
@media (min-width: 769px) {
  .product-modal .modal-close-btn { display: none; }
  #checkout-modal .modal-close-btn { display: none; }
}

.product-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  align-items: start;
}
.modal-img-side {
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 24px 20px;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  position: sticky;
  top: 60px; /* below topbar */
  align-self: start;
  max-height: calc(100vh - 60px);
  gap: 12px;
}

/* ── main media area ── */
.modal-main-media {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.modal-main-media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* ── thumbnail strip ── */
.modal-thumbs-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4px 0 8px;
  width: 100%;
}
.media-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
  position: relative;
  background: var(--bg);
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-thumb:hover { border-color: var(--primary); transform: scale(1.05); }
.media-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }

/* YouTube thumbnail badge */
.yt-thumb { background: #000; }
.yt-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ff0000;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.modal-info-side { padding: 46px 48px 44px; background: var(--bg2); }
.modal-cat {
  position: relative;
  display: inline-block;
  font-size: 11.5px; font-weight: 600; color: var(--pp-gold);
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 14px; padding-bottom: 10px;
}
.modal-cat::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 2px; background: var(--pp-gold);
}
.modal-name {
  font-family: var(--pp-serif);
  font-size: 30px; font-weight: 600; line-height: 1.22;
  color: var(--pp-ink); letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.modal-meta {
  font-family: var(--pp-serif);
  font-style: italic; font-weight: 500;
  font-size: 15px; color: var(--text2);
  margin-bottom: 20px;
}
.modal-price-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--pp-line);
}
.modal-price { font-family: var(--pp-serif); font-size: 26px; font-weight: 600; color: var(--pp-ink); }
.modal-old-price { font-size: 15px; color: var(--text3); text-decoration: line-through; }
.modal-discount {
  background: transparent; color: var(--pp-gold);
  border: 1px solid var(--pp-gold);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 20px;
}
.modal-desc { font-size: 14.5px; color: var(--text2); line-height: 1.85; margin-bottom: 22px; white-space: pre-line; }
.modal-stock { font-size: 13px; margin-bottom: 20px; }
.modal-stock.ok { color: var(--success); }
.modal-stock.low { color: var(--danger); }
.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-qty-row label { font-size: 14px; font-weight: 500; }
.modal-qty-row .qty-btn { width: 34px; height: 34px; font-size: 18px; }
.modal-qty-num { font-size: 18px; font-weight: 700; min-width: 30px; text-align: center; }
.btn-modal-cart {
  width: 100%;
  padding: 15px;
  background: var(--pp-ink);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition);
  margin-bottom: 10px;
}
.btn-modal-cart:hover { background: var(--pp-gold); }

/* YouTube embed (now shown inline in image panel) */
.yt-embed-wrap { display: none; }

/* ══ AUTH MODAL ══ */
/* auth-modal কে checkout-modal-fs (z-index:401) এর উপরে রাখা হলো,
   যাতে checkout-এর ভেতর থেকে "লগইন করুন" ক্লিক করলে লগইন ফর্মটা
   checkout মোডালের নিচে লুকিয়ে না থেকে সবসময় দেখা যায় */
#auth-modal-backdrop { z-index: 402; }
.auth-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 403;
  background: var(--glass-light-strong);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  padding: 32px;
  box-shadow: var(--shadow-glass-lg);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.auth-modal.open {
  display: block;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  transition: all var(--transition);
}
.auth-tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg3);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
}
.form-group textarea { resize: vertical; }

/* ══ PASSWORD SHOW/HIDE ══ */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px !important; }
.pw-toggle-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px;
  padding: 4px; line-height: 1; color: var(--text3);
}
.req { color: var(--primary); }
.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: background var(--transition);
  margin-top: 4px;
}
.btn-submit:hover { background: var(--primary-dark); }
.auth-switch { font-size: 13px; color: var(--text3); text-align: center; margin-top: 14px; }
.auth-switch a { color: var(--primary); font-weight: 500; }

/* Google Sign-In */
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0; color: var(--text3); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border, #e5e5e5);
}
.google-signin-wrap { display: flex; justify-content: center; min-height: 44px; }

/* Checkout */
.checkout-summary {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}
.checkout-row { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--text2); }
.checkout-row:last-child { margin-bottom: 0; font-weight: 700; font-size: 15px; color: var(--text); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

/* ══ TOAST ══ */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease;
  pointer-events: auto;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ══ FOOTER ══ */
.footer {
  background: var(--gradient-navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
  border-top: 1px solid rgba(255,203,110,0.25);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent 0%, var(--pp-gold) 20%, var(--primary) 50%, var(--pp-gold) 80%, transparent 100%);
}
/* — প্রিমিয়াম ব্লার-করা গ্লো ব্লব: গভীরতা যোগ করে, ফ্ল্যাট নেভি ব্যাকগ্রাউন্ডকে
   একটা নরম, আলোকিত অনুভূতি দেয় — ── */
.footer::after {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 420px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 260px at 12% 10%, rgba(255,106,0,0.22) 0%, rgba(255,106,0,0) 70%),
    radial-gradient(360px 240px at 88% 30%, rgba(217,154,61,0.20) 0%, rgba(217,154,61,0) 70%);
  filter: blur(60px);
}
.footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer .logo-text { color: #ffffff; }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); margin-top: 8px; }
.footer-head {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #F4E3C1;
  margin-bottom: 14px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-list a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-list a:hover { color: var(--accent); }
.footer-contact {
  font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-contact:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,203,110,0.3); }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ══ CHECKOUT MODAL — Desktop: Full Screen ══ */
.checkout-modal-fs {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 401;
  background: var(--bg2);
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  padding: 0;
  flex-direction: column;
  overflow: hidden;
}
.checkout-modal-fs.open { display: flex; }

/* Desktop: hide X button, use back button in topbar */
@media (min-width: 769px) {
  .checkout-modal-fs .modal-close-btn { display: none; }
}

/* Mobile: hide topbar, show X button */
@media (max-width: 768px) {
  .checkout-modal-fs .checkout-fs-topbar { display: none; }
  .checkout-modal-fs .modal-close-btn { display: flex; }
}

/* Checkout topbar */
.checkout-modal-fs .checkout-fs-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}
.checkout-modal-fs .checkout-fs-back {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: background 0.15s;
}
.checkout-modal-fs .checkout-fs-back:hover { background: var(--border); }
.checkout-modal-fs .checkout-fs-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Two-column checkout body */
.checkout-modal-fs .checkout-fs-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.checkout-modal-fs .checkout-fs-left {
  padding: 36px 40px 36px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.checkout-modal-fs .checkout-fs-right {
  padding: 36px 40px 36px;
  overflow-y: auto;
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.checkout-modal-fs .checkout-fs-right .auth-title {
  font-size: 18px;
  margin-bottom: 20px;
}
/* Order button at bottom of right column */
.checkout-modal-fs .checkout-fs-right .btn-submit {
  margin-top: 20px;
  padding: 15px;
  font-size: 16px;
}

/* Mobile: single scrollable column */
@media (max-width: 768px) {
  .checkout-modal-fs {
    overflow-y: auto;
  }
  .checkout-modal-fs .checkout-fs-body {
    grid-template-columns: 1fr;
    overflow: visible;
    min-height: auto;
  }
  .checkout-modal-fs .checkout-fs-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 18px;
    overflow-y: visible;
  }
  .checkout-modal-fs .checkout-fs-right {
    padding: 20px 18px 32px;
    overflow-y: visible;
  }
}

/* ══ MOBILE MENU COMPONENTS ══ */
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  width: 100%;
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
  min-height: 48px;
}
.mobile-nav-btn:active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.mobile-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  min-height: 48px;
  transition: background var(--transition);
}
.mobile-auth-btn:active { background: var(--primary-dark); }
.mobile-user-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid rgba(255,106,0,0.25);
  flex-wrap: wrap;
}
.mobile-logout-btn {
  margin-left: auto;
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
  padding: 5px 10px;
  background: rgba(192,57,43,0.08);
  border-radius: 6px;
  border: 1px solid rgba(192,57,43,0.15);
  min-height: 32px;
}

/* Sheet handle line (before pseudo-element on bottom sheets) */
.bottom-sheet-handle::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ══ ANIMATIONS ══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ RESPONSIVE ══ */

/* ── 1024px: Tablet landscape ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-float { display: none; }
  .product-modal-inner { grid-template-columns: 1fr; }
  .modal-img-side {
    min-height: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 12px;
  }
  .modal-main-media { min-height: 200px; }
  .media-thumb { width: 54px; height: 54px; }
}

/* ── 768px: Mobile ── */
@media (max-width: 768px) {

  /* ─ Navbar ─ */
  .search-bar {
    display: flex;
    max-width: none;
    min-width: 0;
  }
  .search-bar input {
    padding: 8px 10px;
    font-size: 13px;
    min-width: 0;
  }
  .search-bar .search-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  .nav-label { display: none; }
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 22px;
    padding: 4px;
  }
  .nav-links { gap: 4px; }
  .nav-inner { height: 58px; padding: 0 14px; gap: 10px; }
  .logo-text { font-size: 20px; }
  .logo-icon-img { height: 30px; }
  .logo-wordmark-img { height: 21px; }
  .btn-auth { padding: 8px 14px; font-size: 13px; }
  .nav-btn { padding: 8px 10px; min-height: 44px; min-width: 44px; }
  .badge-count { min-width: 17px; height: 17px; font-size: 9px; }

  /* ─ Mobile menu ─ */
  .mobile-menu { padding: 14px 16px 20px; gap: 12px; }
  .mobile-menu input {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  /* ─ Sections ─ */
  .section { padding: 44px 0; }
  .section-title { font-size: 23px; }
  .section-head { margin-bottom: 22px; gap: 10px; }

  /* ─ Hero ─ */
  .hero { padding: 50px 20px 58px; min-height: 340px; }
  .hero-tag { font-size: 12px; margin-bottom: 14px; padding: 4px 12px; }
  .hero-title { font-size: 30px; margin-bottom: 14px; }
  .hero-sub { font-size: 14px; margin-bottom: 24px; }
  .btn-hero, .btn-hero-ghost { padding: 13px 22px; font-size: 15px; }

  /* ─ Category → horizontal chip scroll ─ */
  .cat-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 0 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
  }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-card {
    flex: 0 0 90px;
    min-width: 90px;
    padding: 14px 8px;
    scroll-snap-align: start;
  }
  /* "সব পণ্য" বক্সটা সবসময় বাঁ পাশে স্থির (sticky) থাকবে — বাকি ক্যাটাগরি
     বক্সগুলো এর পাশ দিয়ে অটো-রোটেট/স্ক্রল হতে থাকে (js/app.js:initCategoryAutoScroll)
     ব্যাকগ্রাউন্ড কালার শুধু non-active অবস্থায় সেট করা হয়েছে, নাহলে এটা
     .cat-card.active-এর কমলা ব্যাকগ্রাউন্ডকে ওভাররাইড করে সাদা দেখাচ্ছিল */
  .cat-grid .cat-card:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    box-shadow: 10px 0 12px -8px rgba(13,31,61,0.12);
  }
  .cat-grid .cat-card:first-child:not(.active) {
    background: var(--bg2);
  }
  .cat-icon { font-size: 28px; }
  .cat-name { font-size: 12px; }
  .cat-count { font-size: 10px; }

  /* ─ Products ─ */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-rows { gap: 24px; }
  .category-row-title { font-size: 15px; }
  .category-row-seeall { padding: 6px 12px; font-size: 11.5px; }
  .category-row-scroll { gap: 10px; }
  .category-row-scroll .product-card { flex: 0 0 150px; width: 150px; }
  /* Always show wish button on touch/mobile */
  .wish-btn { opacity: 1; }

  /* ─ Product Modal → bottom sheet ─ */
  .product-modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(30px);
    opacity: 0;
    flex-direction: column;
  }
  .product-modal.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    animation: mobileSheetIn 0.32s cubic-bezier(0.4,0,0.2,1) both;
  }
  /* Sheet handle */
  .product-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border2);
    border-radius: 2px;
    margin: 10px auto 2px;
    flex-shrink: 0;
  }
  /* Hide desktop-only elements on mobile */
  .modal-fs-topbar { display: none !important; }
  .modal-suggested { display: none !important; }
  .product-modal-inner { grid-template-columns: 1fr; overflow: visible; flex: unset; }
  .modal-img-side {
    min-height: 170px;
    max-height: 230px;
    border-radius: 0;
    padding: 10px 14px;
    position: static;
    top: auto;
    max-height: 230px;
  }
  .modal-main-media { min-height: 140px; max-height: 190px; }
  .modal-main-media img { max-height: 180px; }
  .media-thumb { width: 48px; height: 48px; }
  .modal-thumbs-strip { gap: 6px; }
  .modal-info-side { padding: 18px 18px 28px; }
  .modal-name { font-size: 20px; }
  .modal-meta { font-size: 13px; margin-bottom: 14px; }
  .modal-price { font-size: 20px; }
  .product-modal .modal-close-btn { top: 10px; right: 12px; }

  /* ─ Auth / Checkout modal → bottom sheet ─ */
  .auth-modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(30px);
    overflow-y: auto;
    padding: 8px 20px 40px;
    opacity: 0;
  }
  .auth-modal.open {
    transform: translateY(0);
    opacity: 1;
    animation: mobileSheetIn 0.32s cubic-bezier(0.4,0,0.2,1) both;
  }
  /* Sheet handle */
  .auth-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border2);
    border-radius: 2px;
    margin: 10px auto 14px;
  }
  /* Mobile: restore checkout modal to single column */
  #checkout-modal {
    border-radius: 20px 20px 0 0;
    padding: 8px 20px 40px;
    height: auto;
    flex-direction: column;
    display: none;
  }
  #checkout-modal.open { display: flex; }
  #checkout-modal .checkout-fs-topbar { display: none; }
  #checkout-modal .checkout-fs-body {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  #checkout-modal .checkout-fs-left {
    padding: 0;
    border-right: none;
    overflow: visible;
  }
  #checkout-modal .checkout-fs-right {
    padding: 0;
    background: none;
    overflow: visible;
  }
  #checkout-modal .checkout-fs-right .btn-submit {
    position: static;
    margin-top: 16px;
  }
  #checkout-modal .auth-title { display: block; }
  #checkout-modal { max-width: 100%; }
  .auth-modal .modal-close-btn { top: 10px; right: 12px; }
  .auth-tabs { margin-bottom: 16px; }
  .auth-title { font-size: 18px; margin-bottom: 16px; }
  .form-group { margin-bottom: 14px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 11px 14px; font-size: 15px; }
  .btn-submit { padding: 14px; font-size: 15px; }

  /* ─ Toast: position below navbar ─ */
  #toast-container {
    bottom: auto;
    top: 66px;
    right: 14px;
    left: 14px;
    align-items: stretch;
  }
  .toast {
    min-width: unset;
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 11px 16px;
  }

  /* ─ Footer ─ */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer { padding: 44px 0 20px; }

  /* ─ Drawers ─ */
  .drawer { width: 100%; max-width: 100%; right: -100%; }
  .drawer.open { right: 0; }
  .drawer-left { left: -100%; right: auto; }
  .drawer-left.open { left: 0; }
  .drawer-header { padding: 14px 16px; }
  .drawer-footer { padding: 14px 16px; }
}

/* ── 480px: Small phones ── */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  /* Hero */
  .hero { padding: 16px 16px 14px; min-height: auto; }
  .hero-title { font-size: 19px; line-height: 1.25; }
  .hero-sub { display: none; }
  .hero-actions { flex-direction: row; gap: 8px; }
  .btn-hero, .btn-hero-ghost { flex: 1; text-align: center; padding: 9px 12px; font-size: 13px; }

  /* Category */
  .cat-card { flex: 0 0 78px; min-width: 78px; padding: 12px 6px; }
  .cat-icon { font-size: 24px; }
  .cat-name { font-size: 11px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-img { font-size: 34px; aspect-ratio: 1/0.78; }
  .product-body { padding: 7px 9px; gap: 2px; }
  .product-name { font-size: 12.5px; line-height: 1.25; -webkit-line-clamp: 1; }
  .product-meta { display: none; }
  .product-price { font-size: 14px; }
  .product-old-price { font-size: 11px; }
  .discount-tag { font-size: 10px; padding: 1px 5px; }
  .product-price-row { margin-top: 1px; }
  .product-footer { padding: 6px 9px; }
  .btn-add-cart { padding: 6px 6px; font-size: 11.5px; gap: 3px; }
  .product-badge { font-size: 10px; padding: 2px 7px; }
  .wish-btn { width: 26px; height: 26px; font-size: 12px; }

  /* Section */
  .section { padding: 36px 0; }
  .section-title { font-size: 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 36px 0 16px; }

  /* Cart/Wish drawer */
  .cart-item-thumb { width: 52px; height: 52px; font-size: 24px; }
  .cart-item-name { font-size: 13px; }
  .cart-item-price { font-size: 13px; }
  .remove-btn { width: 38px; height: 38px; font-size: 20px; }
}

/* ── Touch devices: always show wish button ── */
@media (hover: none) {
  .wish-btn { opacity: 1; }
}

/* ── Bottom sheet slide-up animation ── */
@keyframes mobileSheetIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ══════════════════════════════════════
   Satoxy — Mobile Experience Fixes
   স্মার্টফোন অপ্টিমাইজেশন
══════════════════════════════════════ */

/* ── Safe area for notch/punch-hole phones ── */
@supports (padding: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }
  #toast-container {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .auth-modal, .product-modal {
    padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
  }
}

@media (max-width: 768px) {

  /* ── Navbar: tight 3-item layout ── */
  .nav-inner {
    height: 54px;
    padding: 0 12px;
    gap: 6px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .logo {
    gap: 6px;
  }
  .logo-icon { font-size: 20px; }
  .logo-icon-img { height: 28px; }
  .logo-text { font-size: 18px; }
  .logo-wordmark-img { height: 19px; }

  /* Nav links: only show category + cart icons (no labels) + hamburger */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
  }

  /* উইশলিস্ট আইকন মোবাইলে উপরের বার থেকে সরানো হলো — নিচের বটম-ন্যাভে আগে থেকেই আছে */
  .wishlist-nav-btn {
    display: none;
  }

  /* ══════════════════════════════════════
     মোবাইলে সার্চ বার — ট্যাপ করলে ফুল-স্ক্রিন হয়ে যায়
  ══════════════════════════════════════ */
  .search-cancel-btn {
    display: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text2);
    background: transparent;
    border: none;
  }

  /* ইনপুটে ফোকাস হলে পুরো navbar row জুড়ে সার্চ বার বড় হয়ে যায়, লোগো ও আইকনগুলো লুকিয়ে যায় */
  .nav-inner:has(.search-bar:focus-within) {
    grid-template-columns: 1fr;
  }
  .nav-inner:has(.search-bar:focus-within) .logo,
  .nav-inner:has(.search-bar:focus-within) .nav-links {
    display: none;
  }
  .nav-inner:has(.search-bar:focus-within) .search-bar {
    max-width: none;
  }
  .nav-inner:has(.search-bar:focus-within) .search-cancel-btn {
    display: flex;
  }
  .search-bar:focus-within .search-btn {
    border-radius: 0;
  }
  .search-cancel-btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--bg3);
  }

  .search-bar:focus-within input {
    font-size: 16px;
    padding: 11px 14px;
  }

  /* সাজেশন লিস্ট বড় করে পুরো স্ক্রিন জুড়ে সুন্দরভাবে দেখানো */
  .search-bar:focus-within .search-suggest-box {
    max-height: calc(100vh - 116px);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: inset 0 2px 0 var(--pp-gold), 0 16px 32px rgba(33,26,17,0.18);
  }
  .search-bar:focus-within .search-suggest-item {
    padding: 12px 16px;
  }
  .search-bar:focus-within .search-suggest-thumb {
    width: 46px;
    height: 46px;
  }
  .search-bar:focus-within .search-suggest-name {
    font-size: 14px;
  }
  .search-bar:focus-within .search-suggest-meta {
    font-size: 12.5px;
  }
  .search-bar:focus-within .search-suggest-price {
    font-size: 14px;
  }

  /* Hide text auth button — it'll be in hamburger menu */
  .btn-auth {
    display: none;
  }

  /* Hide user display text in navbar — use hamburger */
  .user-display .user-name-text {
    display: none;
  }

  /* Nav buttons: icon only, square touch targets */
  .nav-btn {
    padding: 6px 8px;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
  }

  .nav-btn .nav-label { display: none; }

  /* Hamburger: hidden — category icon (left) is used instead */
  .hamburger {
    display: none;
  }

  /* ── Hero: very compact on mobile, doesn't eat the screen ── */
  .hero {
    padding: 16px 16px 14px;
    min-height: auto;
    text-align: center;
    flex-direction: column;
    gap: 0;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-tag {
    font-size: 10.5px;
    padding: 3px 9px;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: clamp(17px, 5.5vw, 21px);
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .hero-sub {
    display: none;
  }

  .hero-actions {
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
  }

  .btn-hero, .btn-hero-ghost {
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
    text-align: center;
  }

  /* ── Category section: tighter padding ── */
  #categories-section {
    padding: 28px 0 20px;
  }

  .cat-grid {
    padding: 4px 0 10px;
    gap: 8px;
  }

  .cat-card {
    flex: 0 0 82px;
    min-width: 82px;
    padding: 12px 6px;
    border-radius: 10px;
  }

  /* ── Products section ── */
  #products-section {
    padding: 28px 0 40px;
  }

  .section-head {
    align-items: center;
    margin-bottom: 16px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Product card: mobile-optimized */
  .product-card {
    border-radius: 10px;
  }

  .product-img {
    aspect-ratio: 1/1;
  }

  .product-body {
    padding: 8px 10px;
    gap: 4px;
  }

  .product-name {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .product-price {
    font-size: 15px;
  }

  .product-footer {
    padding: 8px 10px;
  }

  .btn-add-cart {
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 6px;
  }

  /* ── Section titles ── */
  .section-title {
    font-size: 20px;
  }

  /* ── Filter controls ── */
  .filter-controls select {
    font-size: 13px;
    padding: 8px 10px;
  }

  /* ── Mobile menu improvements ── */
  .mobile-menu {
    padding: 12px 14px 18px;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  }

  .mobile-menu input {
    font-size: 14px;
    padding: 11px 14px;
    border-radius: 10px;
  }

  .mobile-nav-btn {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  .mobile-auth-btn {
    padding: 13px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* ── Footer: 2-col grid ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer {
    padding: 36px 0 16px;
  }

  /* ── Drawer: full-width with bottom padding ── */
  .drawer, .drawer-left {
    width: 100%;
    max-width: 100%;
  }

  /* ── Toast: top positioned ── */
  #toast-container {
    top: 60px;
    right: 12px;
    left: 12px;
    bottom: auto;
  }

  .toast {
    border-radius: 10px;
    font-size: 13px;
    padding: 11px 14px;
  }

  /* ── Load more button ── */
  .btn-load-more {
    font-size: 14px;
    padding: 11px 28px;
  }
}

/* ── Very small phones (≤380px) ── */
@media (max-width: 380px) {
  .nav-inner { padding: 0 10px; gap: 4px; }
  .logo-text { font-size: 17px; }
  .logo-icon { font-size: 18px; }
  .logo-icon-img { height: 24px; }
  .logo-wordmark-img { height: 17px; }

  .hero-title { font-size: 16px; }

  .products-grid { gap: 8px; }
  .product-img { aspect-ratio: 1/1; }
  .product-body { padding: 6px 8px; }
  .product-name { font-size: 12px; }
  .product-price { font-size: 13px; }
  .product-footer { padding: 5px 8px; }
  .btn-add-cart { font-size: 11px; padding: 6px 5px; }

  .cat-card { flex: 0 0 72px; min-width: 72px; }
  .cat-icon { font-size: 22px; }
  .cat-name { font-size: 10px; }

  .section-title { font-size: 18px; }
}

/* ── Landscape phones ── */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 14px 16px 12px;
  }
  .hero-title { font-size: 17px; }
  .hero-sub { display: none; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop auth area hidden on mobile */
@media (max-width: 768px) {
  .desktop-auth-area {
    display: none !important;
  }
}

/* ── Hero trust badge strip (ডেস্কটপ ও মোবাইল দুটোতেই দেখাবে) ── */
.hero-mobile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  margin-top: 22px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.96);
  color: var(--brand-navy);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
  .hero-mobile-badges {
    justify-content: center;
    margin-top: 4px;
  }
  .hero-badge {
    padding: 4px 10px;
    font-size: 10.5px;
    font-weight: 600;
  }
}
/* ══ THANK YOU / ORDER CONFIRMATION ══ */
#thankyou-page {
  position: fixed; inset: 0; z-index: 9500;
  background: #f7f8fb;
  color: #172033;
  display: flex; flex-direction: column;
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', 'Nirmala UI', 'Vrinda', 'Kalpurush', Arial, sans-serif;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#ty-topbar {
  position: sticky; top: 0; z-index: 10;
  height: 64px; flex: 0 0 64px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 max(18px, calc((100% - 1160px) / 2));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #edf0f4;
  box-shadow: 0 2px 16px rgba(18,31,53,.05);
}
#ty-topbar .ty-logo img { height: 36px; width: auto; display: block; }
.ty-logo-fallback { font-size: 22px; font-weight: 800; color: #0d1f3d; }
#ty-topbar .ty-back-btn {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #e85b0c; border: 1px solid #ffd8bf;
  border-radius: 10px; padding: 9px 15px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: .18s ease;
}
#ty-topbar .ty-back-btn:hover { background: #fff5ef; transform: translateY(-1px); }

#ty-body {
  width: min(1160px, 100%); margin: 0 auto; padding: 28px 20px 52px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px; align-items: start;
}
#ty-left { min-width: 0; }
#ty-right { min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }

#ty-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #fff8f1 0%, #fff 62%);
  border: 1px solid #ffe0cc; border-radius: 20px; padding: 22px 24px;
  margin-bottom: 16px; box-shadow: 0 8px 28px rgba(27,39,61,.06);
}
.ty-success-icon {
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%;
  display: grid; place-items: center; background: #e8f8ef; color: #159447;
  font-size: 30px; font-weight: 900; box-shadow: inset 0 0 0 7px #f4fcf7;
}
.ty-success-copy { min-width: 0; }
.ty-eyebrow, .ty-section-kicker {
  display: block; color: #9a6a4b; font-size: 10px; font-weight: 800;
  letter-spacing: .7px; text-transform: uppercase; margin-bottom: 4px;
}
#ty-banner h1 { margin: 0 0 5px; color: #152039; font-size: 21px; line-height: 1.35; font-weight: 800; }
#ty-banner p { margin: 0; color: #7a8495; font-size: 13px; line-height: 1.6; }

.ty-card {
  background: #fff; border: 1px solid #edf0f4; border-radius: 18px;
  padding: 20px; margin-bottom: 14px; box-shadow: 0 5px 22px rgba(25,38,61,.045);
}
.ty-order-card { padding-bottom: 17px; }
.ty-order-head, .ty-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ty-order-head h2, .ty-section-head h2 { margin: 0; color: #172033; font-size: 17px; font-weight: 800; }
.ty-order-head { padding-bottom: 16px; border-bottom: 1px solid #f0f2f5; }
.ty-status-pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 6px 10px; border-radius: 999px; background: #fff3df; color: #b96508;
  font-size: 11px; font-weight: 800;
}
.ty-order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; }
.ty-meta-item { min-width: 0; background: #f8fafc; border-radius: 12px; padding: 11px 12px; }
.ty-meta-lbl { display: block; color: #929aaa; font-size: 10px; font-weight: 700; margin-bottom: 3px; }
.ty-meta-item strong { display: block; color: #202a3b; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.ty-meta-item small { display: block; color: #8a93a3; font-size: 11px; margin-top: 2px; }

.ty-count-badge {
  display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px;
  background: #f3f6fa; color: #697385; font-size: 10px; font-weight: 800;
}
.ty-products-list { margin-top: 14px; border: 1px solid #edf0f4; border-radius: 14px; overflow: hidden; }
.ty-product-row {
  display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 12px;
  padding: 12px; background: #fff; border-bottom: 1px solid #f0f2f5;
}
.ty-product-row:last-child { border-bottom: 0; }
.ty-product-media {
  width: 58px; height: 58px; border-radius: 12px; overflow: hidden;
  background: #f7f8fa; border: 1px solid #edf0f4; display: grid; place-items: center;
}
.ty-product-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ty-product-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 23px; }
.ty-product-main { min-width: 0; }
.ty-product-name { color: #202737; font-size: 13px; line-height: 1.45; font-weight: 800; overflow-wrap: anywhere; }
.ty-product-variant {
  display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 6px;
  background: #fff5ed; color: #b96222; font-size: 9px; font-weight: 700;
}
.ty-product-meta { margin-top: 4px; color: #8b94a4; font-size: 11px; font-weight: 600; }
.ty-product-total { color: #172033; font-size: 13px; font-weight: 800; white-space: nowrap; }

.ty-summary-card { padding-bottom: 16px; }
.ty-total-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 0; color: #737d8e; font-size: 13px; border-bottom: 1px solid #f0f2f5;
}
.ty-total-row strong { color: #3c4656; font-weight: 700; }
.ty-grand-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 6px; padding-top: 14px; color: #182136;
  border-top: 2px solid #edf0f4; font-size: 17px; font-weight: 800;
}
.ty-grand-row strong { color: #e85b0c; font-size: 21px; }

.ty-info-card { margin-bottom: 0; }
.ty-info-row { display: flex; align-items: flex-start; gap: 11px; padding-top: 12px; }
.ty-info-icon {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  background: #fff5ee; border-radius: 10px; font-size: 16px;
}
.ty-info-row > div:last-child { min-width: 0; }
.ty-info-row span { display: block; color: #959dac; font-size: 10px; font-weight: 700; margin-bottom: 3px; }
.ty-info-row strong { display: block; color: #263044; font-size: 12px; line-height: 1.55; font-weight: 700; overflow-wrap: anywhere; }
.ty-info-divider { height: 1px; background: #f0f2f5; margin: 14px 0 2px; }

.ty-next-card { margin-bottom: 0; background: linear-gradient(145deg, #fffaf6, #fff); }
.ty-next-icon { font-size: 25px; margin-bottom: 5px; }
.ty-next-card h3 { margin: 0 0 5px; color: #202a3b; font-size: 15px; font-weight: 800; }
.ty-next-card p { margin: 0; color: #788294; font-size: 12px; line-height: 1.7; }
.ty-next-status {
  display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid #f1e7df; color: #23834c; font-size: 11px; font-weight: 700;
}
.ty-next-status span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #e7f7ee; }
.ty-btn-primary {
  width: 100%; padding: 13px 16px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #ef6416, #ff8a35); color: #fff;
  box-shadow: 0 8px 20px rgba(239,100,22,.22); cursor: pointer;
  font: 800 14px inherit; transition: transform .16s ease, box-shadow .16s ease;
}
.ty-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(239,100,22,.28); }
.ty-thanks-note { text-align: center; color: #9aa2af; font-size: 11px; line-height: 1.7; padding: 2px 0 4px; }

@media (max-width: 860px) {
  #ty-topbar { padding: 0 16px; }
  #ty-body { grid-template-columns: 1fr; padding: 18px 14px 40px; gap: 0; }
  #ty-right { position: static; }
}
@media (max-width: 560px) {
  #ty-topbar { height: 58px; flex-basis: 58px; }
  #ty-topbar .ty-logo img { height: 31px; }
  #ty-topbar .ty-back-btn { padding: 8px 11px; font-size: 11px; }
  #ty-banner { gap: 12px; padding: 17px 15px; border-radius: 16px; }
  .ty-success-icon { width: 46px; height: 46px; flex-basis: 46px; font-size: 24px; }
  #ty-banner h1 { font-size: 16px; }
  #ty-banner p { font-size: 11px; }
  .ty-card { padding: 15px; border-radius: 15px; }
  .ty-order-head h2, .ty-section-head h2 { font-size: 15px; }
  .ty-order-meta { gap: 8px; }
  .ty-meta-item { padding: 9px; }
  .ty-product-row { grid-template-columns: 48px minmax(0,1fr) auto; gap: 9px; padding: 10px; }
  .ty-product-media { width: 48px; height: 48px; border-radius: 10px; }
  .ty-product-name { font-size: 12px; }
  .ty-product-total { font-size: 12px; }
  .ty-grand-row { font-size: 15px; }
  .ty-grand-row strong { font-size: 19px; }
}
@media (max-width: 360px) {
  #ty-body { padding-left: 10px; padding-right: 10px; }
  .ty-order-meta { grid-template-columns: 1fr; }
  .ty-product-row { grid-template-columns: 44px minmax(0,1fr); }
  .ty-product-total { grid-column: 2; margin-top: -4px; }
}

/* ══ QUICK CONTACT WIDGET ══ */
/* সব স্টাইল এখন js/quick-contact.js এর ভেতরেই self-contained —
   এখানে আলাদা করে কিছু রাখা হয়নি, যাতে পেজভেদে কালার/স্ক্রল কনফ্লিক্ট না হয়। */

/* ══════════════════════════════════════
   BOTTOM NAV — এখন js/bottom-nav.js এর ভেতরেই self-contained
   (profile.html/tracking.html style.css লোড করে না বলে এখানে রাখলে
   ওই পেজগুলোতে স্টাইল প্রযোজ্য হতো না — তাই সব JS ফাইলের ভেতরেই রাখা হয়েছে)
══════════════════════════════════════ */
/* ══════════════════════════════════════
   SERVICES SECTION — ডিজিটাল সার্ভিস
   (গ্রাফিক ডিজাইন, সোশ্যাল বুস্টিং, গেম টপ-আপ, এডমিন ডিল ইত্যাদি)
══════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--bg2);
  border: 1.5px solid var(--pp-line);
  border-radius: var(--radius-lg);
  padding: 30px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: all var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pp-gold), var(--brand-navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover {
  border-color: var(--pp-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.service-card:hover::before { transform: scaleX(1); }
.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--pp-ink);
  color: var(--pp-gold-light);
  letter-spacing: .01em;
}
.service-badge.hot { background: var(--danger-bg); color: var(--danger); }
.service-icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--pp-cream);
  border: 1px solid var(--pp-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
  transition: all var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: var(--pp-gold-light);
  border-color: var(--pp-gold);
  box-shadow: 0 0 0 4px rgba(217,154,61,0.12);
  transform: scale(1.05);
}
.service-name {
  font-family: var(--pp-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--pp-ink);
  margin-bottom: 9px;
  line-height: 1.35;
}
.service-desc {
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 40px;
}
.service-price {
  font-family: var(--pp-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--pp-ink);
  padding-bottom: 5px;
  border-bottom: 1.5px solid var(--pp-gold);
  margin-bottom: 20px;
}
.btn-service-order {
  width: 100%;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1.5px solid var(--pp-ink);
  color: var(--pp-ink);
  font-weight: 700;
  font-size: 13.5px;
  transition: all var(--transition);
}
.btn-service-order:hover {
  background: var(--pp-ink);
  color: var(--pp-gold-light);
  border-color: var(--pp-ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.btn-service-order:active { transform: translateY(0); }

/* ট্রাস্ট স্ট্রিপ — সার্ভিস সেকশনের নিচে */
.services-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.services-trust span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pp-ink);
  background: var(--pp-cream);
  border: 1px solid var(--pp-line);
  padding: 8px 18px;
  border-radius: 999px;
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 20px 14px 18px; }
  .service-icon-wrap { width: 54px; height: 54px; font-size: 22px; margin-bottom: 12px; }
  .service-name { font-size: 14.5px; }
  .service-desc { font-size: 11px; min-height: 32px; margin-bottom: 10px; }
  .service-price { font-size: 13px; margin-bottom: 14px; }
  .btn-service-order { font-size: 12px; padding: 9px 0; }
  .service-badge { font-size: 9px; padding: 2px 8px; top: 10px; right: 10px; }
  .services-trust span { font-size: 11px; padding: 6px 12px; }
}
/* ══════════════════════════════════════════════════════════════
   এই নিচের অংশটুকু আগে index.html-এর ভেতরে <style> ট্যাগে ছিল
   (পেজ-স্পেসিফিক/পরে যোগ করা স্টাইল — যেমন প্রোডাক্ট রেটিং, নোটিফিকেশন
   বেল/প্যানেল, ফরগট-পাসওয়ার্ড ফর্ম ইত্যাদি)। এখন সবকিছু একসাথে এখানে —
   index.html শুধু <link rel="stylesheet" href="css/style.css"> দিয়েই
   এগুলো পাবে, আলাদা কোনো <style> ব্লক আর দরকার নেই।

   ⚠️ যেহেতু এই অংশটা ফাইলের একদম নিচে (উপরের সব রুলের পরে) বসানো হয়েছে,
   CSS cascade-এর নিয়ম অনুযায়ী একই selector-এর ক্ষেত্রে এগুলোই আগের
   রুলগুলোকে override করবে — ঠিক আগে যেমন <style> ব্লকটা <link>-এর পরে
   থাকায় override করত, সেই একই আচরণ বজায় থাকবে।
══════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════
   0.  PRODUCT CARD — RATING ROW
════════════════════════════════════════ */
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 4px;
}
.product-rating-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}
.product-rating-count {
  font-size: 11.5px;
  color: var(--text3, #9ca3af);
}

/* ════════════════════════════════════════
   1.  HERO — COMPACT
════════════════════════════════════════ */
.hero {
  min-height: unset !important;
  padding: 44px 24px 38px !important;
  align-items: center !important;
}
.hero-content { max-width: 540px !important; padding: 0 !important; }
.hero-tag {
  font-size: 11px !important;
  padding: 4px 12px !important;
  margin-bottom: 10px !important;
}
.hero-title {
  font-size: clamp(21px, 3.8vw, 34px) !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}
.hero-sub {
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin-bottom: 18px !important;
  opacity: .85 !important;
}
.btn-hero, .btn-hero-ghost {
  padding: 10px 22px !important;
  font-size: 13px !important;
}
/* desktop floating cards চাই না */
.hero-float { display: none !important; }
/* badge row */
.hero-mobile-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 14px !important;
}
.hero-badge { font-size: 11px !important; padding: 3px 10px !important; }

@media (max-width: 600px) {
  .hero { padding: 22px 18px 20px !important; }
  .hero-title { font-size: 20px !important; }
  .hero-sub   { display: none !important; }
}

/* ════════════════════════════════════════
   AD POPUP — admin panel ব্যানার, সাইটে প্রথমবার ঢুকলে দেখাবে
════════════════════════════════════════ */
.popup-ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}
.popup-ad-overlay.open {
  display: flex;
  opacity: 1;
}
.popup-ad-box {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  background: transparent;
  animation: popupAdPop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popupAdPop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.popup-ad-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #ff3b3b;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  transition: transform .15s ease, background .2s ease;
}
.popup-ad-close:hover { background: #e02020; transform: scale(1.1); }
.popup-ad-close:active { transform: scale(.95); }
@media (max-width: 480px) {
  .popup-ad-close { top: -14px; right: -14px; width: 36px; height: 36px; font-size: 17px; }
}

/* ── স্ট্যাক করা কার্ড — একটার পেছনে আরেকটা হালকা বাঁকা হয়ে থাকবে ── */
.popup-ad-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
  transition: transform .4s cubic-bezier(.34,1.4,.64,1), opacity .3s ease, filter .3s ease;
  transform-origin: center center;
}
.popup-ad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.popup-ad-card a {
  display: block;
  width: 100%;
  height: 100%;
}
.popup-ad-card.pac-top {
  z-index: 30;
  filter: brightness(1);
}
.popup-ad-card.pac-behind {
  z-index: 20;
  filter: brightness(.85);
  pointer-events: none;
}
.popup-ad-card.pac-leaving {
  transform: translate(60px, -18px) rotate(14deg) scale(.9) !important;
  opacity: 0;
}
@media (max-width: 480px) {
  .popup-ad-box { max-width: 280px; }
}

/* cart footer hidden state */
.cart-footer-hidden { display: none !important; }

/* ════════════════════════════════════════
   2.  CART "অর্ডার করুন" BUTTON — STICKY FIX
   browser navigation bar এর উপরে থাকবে
════════════════════════════════════════ */
.drawer {
  display: flex !important;
  flex-direction: column !important;
}
.drawer-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
.drawer-footer {
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  left: 0; right: 0;
  z-index: 10 !important;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 10px)) !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;
}

/* ════════════════════════════════════════
   3.  PRODUCT MODAL — MEDIA GALLERY v3
════════════════════════════════════════ */
.modal-img-side {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 28px 24px 20px !important;
}

/* Desktop: sticky image panel */
@media (min-width: 769px) {
  .modal-img-side {
    position: sticky !important;
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
  }
}
@media (max-width: 768px) {
  .modal-img-side {
    padding: 10px 14px 8px !important;
    position: static !important;
    height: auto !important;
    max-height: 230px !important;
    overflow: hidden !important;
  }
}

/* ── Wrapper that holds main image + arrow buttons ── */
.modal-media-wrapper {
  position: relative !important;
  width: 100% !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #111 !important;
  aspect-ratio: 4/3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ── Main image ── */
.modal-media-wrapper img#modal-main-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  transition: opacity .18s ease !important;
}
/* ভিডিও চালু থাকলে ছবি পুরোপুরি লুকানো থাকবে — galleryGoTo() ছবিতে inline
   display:none বসায়, কিন্তু উপরের `display:block !important` সেটাকে হারিয়ে দিচ্ছিল,
   ফলে ১৬:৯ ভিডিওর উপরে-নিচে পেছনের ছবিটা দেখা যাচ্ছিল। এই নিয়মের specificity বেশি,
   তাই inline display:none হলে এটাই জেতে। */
.modal-media-wrapper img#modal-main-img[style*="display: none"],
.modal-media-wrapper img#modal-main-img[style*="display:none"] {
  display: none !important;
}

/* ── YouTube iframe ── */
.modal-media-wrapper iframe#modal-yt-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 12px !important;
}

/* ── Arrow nav buttons ── */
.modal-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(0,0,0,.55) !important;
  color: #fff !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background .2s !important;
  -webkit-tap-highlight-color: transparent !important;
}
.modal-nav-btn:hover { background: rgba(255,106,0,.85) !important; }
.modal-nav-btn.prev { left: 8px !important; }
.modal-nav-btn.next { right: 8px !important; }
.modal-nav-btn[disabled] { opacity: 0.25 !important; pointer-events: none !important; }

/* ── Dot indicators ── */
.modal-dots {
  display: flex !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 8px !important;
}
.modal-dot {
  width: 7px !important; height: 7px !important;
  border-radius: 50% !important;
  background: #ccc !important;
  cursor: pointer !important;
  transition: background .2s, transform .2s !important;
  border: none !important;
  padding: 0 !important;
}
.modal-dot.active {
  background: #e85d04 !important;
  transform: scale(1.3) !important;
}

/* ── Thumbnail strip (desktop) ── */
.modal-thumbs-strip {
  width: 100% !important;
  margin-top: 10px !important;
  background: #f2f2f2 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 7px 10px !important;
  display: flex !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}
.modal-thumbs-strip::-webkit-scrollbar { display: none !important; }

.media-thumb {
  flex: 0 0 auto !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 2.5px solid transparent !important;
  cursor: pointer !important;
  background: #fff !important;
  position: relative !important;
  transition: border-color .15s !important;
}
.media-thumb img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block !important;
}
.media-thumb.active {
  border-color: #e85d04 !important;
  box-shadow: 0 0 0 1px #e85d04 !important;
}
.media-thumb.yt-thumb .yt-play-icon {
  position: absolute !important; inset: 0 !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  background: rgba(0,0,0,.42) !important;
  color: #fff !important;
}

/* mobile: thumbnail strip লুকাও, dots দেখাও */
@media (max-width: 600px) {
  .modal-thumbs-strip { display: none !important; }
  .modal-nav-btn { width: 34px !important; height: 34px !important; font-size: 16px !important; }
}
/* desktop: dots লুকাও */
@media (min-width: 601px) {
  .modal-dots { display: none !important; }
}

/* ════════════════════════════════════════
   4.  PRODUCT MODAL — PREMIUM LOOK v4
   (quick-view পপআপ ও product.html — দুই জায়গাতেই একই ক্লাসনেম শেয়ার হয় বলে
   একবার এডিট করলেই দুটোতে প্রয়োগ হয়ে যায়)
════════════════════════════════════════ */
.modal-img-side { background: var(--pp-cream-deep) !important; }
.modal-media-wrapper {
  background: var(--pp-cream) !important;
  aspect-ratio: 4/5 !important;
  border-radius: 3px !important;
  box-shadow: 0 24px 48px -24px rgba(33,26,17,0.35) !important;
}
@media (max-width: 768px) {
  .modal-media-wrapper { aspect-ratio: 4/3 !important; }
}
.modal-nav-btn { background: rgba(33,26,17,.55) !important; }
.modal-nav-btn:hover { background: var(--pp-gold) !important; }
.modal-dot.active { background: var(--pp-gold) !important; }
.modal-thumbs-strip {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  gap: 10px !important;
}
.media-thumb {
  border-radius: 3px !important;
  border: 1.5px solid var(--pp-line) !important;
  background: var(--pp-cream) !important;
}
.media-thumb.active {
  border-color: var(--pp-gold) !important;
  box-shadow: 0 0 0 1px var(--pp-gold) !important;
}

/* ════════════════════════════════════════
   চেকআউট সারাংশে অর্ডার করা আইটেমগুলো — থাম্বনেইল, নাম, quantity badge,
   দাম ও স্পষ্ট remove বাটন সহ — আগের প্লেইন টেক্সট রো-এর চেয়ে অনেক পরিষ্কার
════════════════════════════════════════ */
.co-item-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.co-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3, #f3f1ec);
  border-radius: var(--radius-sm, 10px);
  padding: 10px 12px;
}
.co-item-thumb {
  width: 48px; height: 48px; flex: 0 0 auto;
  border-radius: 8px; overflow: hidden;
  background: var(--bg2, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.co-item-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.co-item-info { flex: 1 1 auto; min-width: 0; }
.co-item-name {
  font-size: 14px; font-weight: 600; color: var(--text, #222);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-item-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.co-item-qty {
  font-size: 11.5px; font-weight: 700; color: var(--primary-darker, #b8460a);
  background: var(--primary-light, #fff1e6); border-radius: 20px; padding: 2px 9px;
  white-space: nowrap;
}
/* checkout সামারিতে quantity বাড়ানো/কমানোর +/- কন্ট্রোল — product.html-এর
   .pp-do-qty-btn এর সাথে হুবহু এক ফরম্যাটে, যাতে cart checkout আর প্রোডাক্ট
   পেজের ডাইরেক্ট-অর্ডার প্যানেল — দুই জায়গাতেই quantity control দেখতে এক রকম হয় */
.co-item-qty-ctrl { display: flex; align-items: center; gap: 6px; }
.co-item-qty-btn {
  width: 24px; height: 24px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2, #fff); border: 1px solid var(--border, #e0ddd4); border-radius: 6px;
  font-size: 14px; font-weight: 700; line-height: 1; color: var(--text, #222);
  cursor: pointer; padding: 0; transition: border-color .15s, color .15s;
}
.co-item-qty-btn:hover { border-color: var(--primary, #e85d04); color: var(--primary, #e85d04); }
.co-item-qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.co-item-qty-num { min-width: 16px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--text, #222); }
.co-item-price { font-size: 13.5px; font-weight: 700; color: var(--primary, #e85d04); }
.co-item-remove {
  width: 32px; height: 32px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #f3c6c6; border-radius: 50%;
  color: #e53935; font-size: 15px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.co-item-remove:hover { background: #fde8e8; border-color: #e53935; }

/* ── আইনি সম্মতি চেকবক্স (লগইন/রেজিস্ট্রেশন/অর্ডার) ── */
.legal-agree-row {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 4px 0 14px;
  font-size: 12.5px; line-height: 1.5;
  color: var(--text2, #5b6478);
}
.legal-agree-row input[type="checkbox"] {
  margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0;
  cursor: pointer; accent-color: var(--primary, #e85d04);
}
.legal-agree-row label { cursor: pointer; }
.legal-agree-row a { color: var(--primary, #e85d04); font-weight: 600; text-decoration: underline; }

.gsi-guard { position: relative; }
.gsi-guard .gsi-overlay { position: absolute; inset: 0; z-index: 5; cursor: pointer; }
.gsi-guard.agreed .gsi-overlay { display: none; }
.gsi-guard:not(.agreed) .google-signin-wrap { opacity: .5; filter: grayscale(.35); }

/* ── ছবি ফুলস্ক্রিন জুম প্রিভিউ ── */
.img-zoom-overlay {
  position: fixed; inset: 0; background: rgba(5,6,10,.96); z-index: 10000;
  display: none; align-items: center; justify-content: center; touch-action: none;
}
.img-zoom-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-zoom-stage img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  touch-action: none; user-select: none; -webkit-user-drag: none;
  will-change: transform; transform-origin: center center; cursor: grab;
}
.img-zoom-stage img.dragging { cursor: grabbing; }
.img-zoom-close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2;
}
.img-zoom-close:hover { background: rgba(255,255,255,.22); }
.img-zoom-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.img-zoom-nav-btn:hover { background: rgba(255,255,255,.22); }
.img-zoom-nav-btn.prev { left: 16px; }
.img-zoom-nav-btn.next { right: 16px; }
.img-zoom-nav-btn[disabled] { opacity: .25; pointer-events: none; }
.img-zoom-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; color: rgba(255,255,255,.55); white-space: nowrap;
}
@media (max-width: 560px) {
  .img-zoom-nav-btn { width: 38px; height: 38px; font-size: 17px; }
  .img-zoom-hint { font-size: 11.5px; padding: 0 14px; text-align: center; }
}

/* — নোটিফিকেশন বেল + প্রানেল (feed.html এর সাথে সামঞ্জস্যপূর্ণ) তি */
.notif-bell-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: none; background: none;
  font-size: 18px; cursor: pointer;
}
.notif-badge {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  background: #e0245e; color: #fff; border-radius: 20px; font-size: 10px; font-weight: 800;
}
/* আসল css/style.css দেখে বোঝা গেল, "৩ দাগ" আসলে .hamburger বাটন থেকে না —
   ওটা মোবাইলে এমনিতেই লুকানো থাকে (category icon left-এ ব্যবহার হয় বলে)।
   আসল কারণ ছিল: bell বাটনটা .nav-inner-এর ৪র্থ direct child হিসেবে বসানো ছিল,
   কিন্তু মোবাইলে .nav-inner একটা ৩-কলামের CSS Grid (logo, search, nav) —
   তাই ৪র্থ child সঠিকভাবে বসছিল না। এখন bell-টা .nav-links এর ভেতরেই বসানো,
   আর ক্যাটাগরি বাটনটা (#nav-cat-btn) শুধু মোবাইলে হাইড করা — নিচের মিডিয়া কোয়েরি দ্রষ্টব্য। */
.notif-backdrop { display: none; position: fixed; inset: 0; background: rgba(8,10,16,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 320; }
.notif-backdrop.open { display: block; }
.notif-panel {
  display: none; position: fixed; inset: 0; left: 0; top: 0; right: 0; bottom: 0; transform: none;
  width: 100%; height: 100%; max-width: 100%;
  background: var(--glass-light-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 321;
  border-radius: 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom,0px));
  max-height: 100vh; overflow-y: auto;
}
.notif-panel.open { display: block; }
.notif-panel-close { background: none; border: none; font-size: 18px; cursor: pointer; padding: 4px 6px; line-height: 1; }
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px 12px; padding: 0 16px 12px; border-bottom: 1px solid rgba(0,0,0,0.06); position: sticky; top: 0; background: transparent; z-index: 1; }
.notif-panel-head-left { display: flex; align-items: center; gap: 8px; }
.notif-panel-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.notif-mark-all { background: none; border: none; color: #e85d04; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; white-space: nowrap; }
.notif-list { display: flex; flex-direction: column; gap: 2px; }
.notif-empty { text-align: center; color: #8a877e; padding: 30px 10px; font-size: 13.5px; }
.notif-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f6f4ef; cursor: pointer; }
.notif-row:last-child { border-bottom: none; }
.notif-row.unread { background: #fff8f0; border-radius: 10px; }
.notif-row-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.notif-row-body { flex: 1; min-width: 0; }
.notif-row-title { font-size: 13.5px; font-weight: 700; color: #262420; }
.notif-row-text { font-size: 13px; color: #5c5952; margin-top: 2px; }
.notif-row-time { font-size: 11px; color: #a09c92; margin-top: 3px; }
/* মোবাইলে (৭৬৮px-এর নিচে) টপ ন্যাভবারের ক্যাটাগরি (☰) আইকনটা লুকানো — ওই জায়গায়
   এখন নোটিফিকেশন বেল দেখাবে; ক্যাটাগরি আগে থেকেই bottom navbar-এ আছে। bell-টা
   বাকি nav-btn (কার্ট ইত্যাদি) এর সাইজের সাথে মিলিয়ে দেওয়া হলো। */
@media (max-width: 768px) {
  #nav-cat-btn { display: none !important; }
  #notif-bell-btn.notif-bell-btn {
    min-width: 40px; min-height: 40px; width: auto; height: auto;
    border-radius: 10px; font-size: 18px;
  }
}
@media (min-width: 768px) {
  .notif-panel {
    left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%);
    width: 420px; height: auto; max-width: 90vw; border-radius: 18px; max-height: 70vh;
    padding: 22px 24px; border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--shadow-glass-lg);
  }
  .notif-panel-head { margin: 0 -24px 12px; padding: 0 24px 12px; }
}


/* ══════════════════════════════════════════════════════════════════
   PREMIUM GLASS v2 — এই ব্লকটা ফাইলের একদম শেষে থাকে, তাই উপরের সব
   নিয়মের উপর জিতে যায়। আগের অবস্থায় ফিরতে চাইলে শুধু এই ব্লকটা মুছুন।
   ══════════════════════════════════════════════════════════════════ */
:root {
  --glass-blur: blur(26px) saturate(1.9);
  --glass-blur-lg: blur(42px) saturate(2);
  --glass-light: rgba(255,255,255,0.5);
  --glass-light-strong: rgba(255,255,255,0.66);
  --shadow-glass: 0 1px 0 rgba(255,255,255,0.85) inset, 0 10px 30px -10px rgba(33,26,17,0.16), 0 2px 6px rgba(33,26,17,0.05);
  --shadow-glass-lg: 0 1px 0 rgba(255,255,255,0.9) inset, 0 30px 70px -18px rgba(33,26,17,0.30), 0 8px 18px -8px rgba(217,154,61,0.24);
  --radius: 16px;
  --radius-lg: 24px;
}

/* ১) পেছনে নরম আলোর গ্লো — গ্লাসের ব্লার দেখানোর জন্য কিছু একটা লাগে;
   আগে ব্যাকগ্রাউন্ড ফ্ল্যাট ক্রিম ছিল, তাই ব্লার চোখে পড়ত না */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 6% 4%,   rgba(255,106,0,0.20),  transparent 70%),
    radial-gradient(34vw 34vw at 96% 26%, rgba(217,154,61,0.24), transparent 70%),
    radial-gradient(44vw 44vw at 28% 96%, rgba(20,40,77,0.13),   transparent 70%),
    radial-gradient(30vw 30vw at 82% 88%, rgba(255,176,32,0.18), transparent 70%);
}
.bg-alt { background: rgba(244,239,228,0.5); }

/* ২) নেভবার */
.navbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.46));
  border-bottom: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset, 0 12px 30px -22px rgba(33,26,17,0.4);
}
.navbar.scrolled { background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.66)); }

/* ৩) কার্ড — আরও ঝাপসা কাচ, উপরে আলোর কিনারা, নিচে গভীর ছায়া */
.product-card,
.cat-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.80), rgba(255,255,255,0.46));
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 18px;
  box-shadow: var(--shadow-glass);
}
.product-card:hover { border-color: rgba(217,154,61,0.42); box-shadow: var(--shadow-glass-lg); }
.cat-card:not(.active):hover {
  background: linear-gradient(160deg, rgba(255,241,230,0.92), rgba(255,255,255,0.6));
  border-color: rgba(255,106,0,0.5);
  box-shadow: var(--shadow-glass-lg);
}
.cat-card.active { box-shadow: 0 14px 32px -10px rgba(255,106,0,0.55), inset 0 1px 0 rgba(255,255,255,0.35); }
.wish-btn { backdrop-filter: blur(14px) saturate(1.8); -webkit-backdrop-filter: blur(14px) saturate(1.8); }

/* ৪) হিরো — লেখার পেছনে ফ্রস্টেড গ্লাস প্যানেল */
.hero-bg::after {
  background:
    radial-gradient(circle at 82% 30%, rgba(255,106,0,0.42) 0%, rgba(255,106,0,0) 55%),
    radial-gradient(circle at 8% 92%,  rgba(217,154,61,0.32) 0%, rgba(217,154,61,0) 50%),
    radial-gradient(circle at 30% 35%, rgba(255,176,32,0.16) 0%, rgba(255,176,32,0) 45%);
}
.hero-content {
  max-width: 660px;
  padding: 40px 44px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.04));
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 40px 80px -30px rgba(0,0,0,0.55);
}
.hero-tag, .btn-hero-ghost, .float-card {
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-color: rgba(255,255,255,0.28);
}
.btn-hero, .btn-hero-ghost { border-radius: 12px; }
@media (max-width: 768px) {
  .hero-content { padding: 26px 22px; border-radius: 22px; }
}

/* ৫) ড্রয়ার / মোডাল / ওভারলে — পেছনের পেজ এখন সুন্দরভাবে ঝাপসা হবে */
.drawer-backdrop,
.modal-backdrop,
.cat-drawer-overlay {
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

/* ৬) ফুটার — উপরের গ্লো আরও গভীর */
.footer::after { filter: blur(70px); opacity: 1.0; height: 480px; }

/* ফলব্যাক: যেসব ব্রাউজারে backdrop-filter নেই বা ইউজার "reduce transparency"
   চালু রেখেছে, সেখানে পড়ার মান ঠিক রাখতে প্রায়-সলিড সারফেস */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar { background: rgba(255,255,255,0.96); }
  .product-card, .cat-card { background: #fff; }
  .hero-content { background: rgba(6,12,26,0.55); }
}
@media (prefers-reduced-transparency: reduce) {
  .navbar, .product-card, .cat-card, .hero-content, .hero-tag, .btn-hero-ghost, .float-card,
  .drawer-backdrop, .modal-backdrop, .cat-drawer-overlay {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .navbar, .product-card, .cat-card { background: #fff; }
  .hero-content { background: rgba(6,12,26,0.6); }
}

/* ── হিরো ফিক্স: পুরনো `.hero-content { padding:0 !important }` প্যানেলের
   প্যাডিং মুছে দিচ্ছিল — তাই এখানে বেশি specificity + !important দিয়ে ঠিক করা ── */
.hero .hero-content {
  max-width: 660px !important;
  padding: 40px 44px !important;
}
.hero-mobile-badges { margin-top: 22px !important; }
.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.26);
  color: #fff;
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 6px 16px -6px rgba(0,0,0,0.35);
  white-space: nowrap;
}
/* মোবাইল হিরো — কমপ্যাক্ট ভার্সন (আগের বড় সাইজ ফেরাতে চাইলে শুধু এই ব্লকটা আগের মান দিয়ে বদলান) */
@media (max-width: 768px) {
  .hero { padding: 10px 12px 12px !important; }
  .hero .hero-content {
    max-width: 100% !important;
    padding: 14px 14px 12px !important;
    border-radius: 20px;
    text-align: center;
  }
  .hero .hero-tag {
    display: flex;
    justify-content: center;
    width: 100%;
    white-space: normal;
    font-size: 11px !important;
    padding: 5px 10px !important;
    margin-bottom: 10px !important;
    line-height: 1.35;
  }
  .hero .hero-title {
    font-size: clamp(18px, 5.4vw, 22px) !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }
  .hero-actions { gap: 8px; margin-bottom: 10px; }
  .hero .btn-hero, .hero .btn-hero-ghost {
    padding: 10px 10px !important;
    font-size: 13px !important;
    border-radius: 12px;
  }
  .hero .hero-mobile-badges {
    margin-top: 0 !important;
    gap: 5px !important;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .hero .hero-badge { font-size: 10px !important; padding: 4px 8px !important; }
}
/* খুব ছোট ফোন (≤380px) */
@media (max-width: 380px) {
  .hero .hero-content { padding: 12px 12px 10px !important; }
  .hero .hero-title { font-size: 17px !important; }
  .hero .hero-badge { font-size: 9.5px !important; padding: 3px 7px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   ক্যাটাগরি ড্রয়ার — bottom-nav.js এর প্রোফাইল ড্রয়ারের সাথে মিলিয়ে একই
   গোল্ড-টিন্টেড প্রিমিয়াম গ্লাস ভাষা। ফাইলের শেষে থাকে বলে উপরের সব
   নিয়মের উপর জেতে। আগের অবস্থায় ফিরতে চাইলে শুধু এই ব্লকটা মুছুন।
   ══════════════════════════════════════════════════════════════════ */
.cat-drawer {
  background:
    radial-gradient(260px 260px at 0% 62%, rgba(255,138,46,0.14), transparent 70%),
    radial-gradient(300px 300px at 100% 100%, rgba(181,144,79,0.16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(251,247,238,0.78));
  border-right: 1px solid rgba(255,255,255,0.75);
  border-left: none;
  border-radius: 0 26px 26px 0;
  overflow: hidden;
}
/* বন্ধ থাকলে ড্রয়ার স্ক্রিনের বাইরে থাকে, কিন্তু বড় শ্যাডো স্ক্রিনের বাম কিনারায় উঁকি দিত */
.cat-drawer:not(.open) { box-shadow: none; }

.cat-drawer-head {
  border-bottom: none;
  background: linear-gradient(135deg, #ff8a2e 0%, #e85d04 55%, #c94a00 100%);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.35);
}
.cat-drawer-close {
  background: rgba(255,255,255,0.78);
  color: #221D15;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.95);
}
.cat-drawer-close:hover { background: rgba(255,255,255,0.96); color: #221D15; }

.cat-drawer-list { padding: 10px 0 26px; overscroll-behavior: contain; }

.drawer-cat-item { border-bottom: none; }
.drawer-cat-main {
  border-radius: 14px;
  margin: 2px 10px;
  width: calc(100% - 20px);
  color: #221D15;
  transition: background .18s ease, box-shadow .18s ease;
}
.drawer-cat-row:hover .drawer-cat-main,
.drawer-cat-main:hover {
  background: linear-gradient(90deg, rgba(243,230,196,0.6), rgba(255,255,255,0.3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 0 0 1px rgba(255,255,255,0.6) inset;
}
.drawer-cat-toggle:hover {
  background: rgba(243,230,196,0.6);
  border-radius: 10px;
}
.drawer-cat-item.active > .drawer-cat-row .drawer-cat-main,
.drawer-cat-item.active > .drawer-cat-main {
  color: #e85d04;
  background: linear-gradient(90deg, rgba(255,236,218,0.75), rgba(255,255,255,0.3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 0 0 1px rgba(255,255,255,0.6) inset;
}
.drawer-cat-icon { color: #8C6A2F; }
.drawer-cat-item.active .drawer-cat-icon { color: #e85d04; }

.drawer-sublist {
  background: rgba(255,255,255,0.4);
  margin: 2px 10px 6px;
  border-radius: 12px;
  overflow: hidden;
}
.drawer-subitem { border-radius: 10px; padding-left: 44px; }
.drawer-subitem:hover { background: rgba(243,230,196,0.55); }
.drawer-subitem.active { background: rgba(255,236,218,0.7); }

@media (prefers-reduced-transparency: reduce) {
  .cat-drawer { background: #fffdf8; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cat-drawer { background: #fffdf8; }
}
/* ══════════════════════════════════════════════════════════════════
   PREMIUM PRODUCT CARDS v3 — প্রতিটা ক্যাটাগরির নিজস্ব অ্যাকসেন্ট রঙ
   (app.js-এর catAccentColor() ফাংশন থেকে প্রতিটা কার্ড/রো-তে --cat-accent
   ভ্যারিয়েবল হিসেবে বসানো হয়) দিয়ে কার্ড আর ক্যাটাগরি-রো টাইটেলকে আরও
   বুটিক/প্রিমিয়াম আর একে অপরের থেকে আলাদা করে চেনার মতো লুক দেওয়া হলো।
   ফাইলের শেষে থাকে বলে উপরের সব নিয়মের উপর জেতে। আগের অবস্থায় ফিরতে
   চাইলে শুধু এই ব্লকটা মুছুন।
   ══════════════════════════════════════════════════════════════════ */

.product-card { --cat-accent: var(--primary); position: relative; border-radius: 20px; }

/* উপরে সরু, ক্যাটাগরি-অ্যাকসেন্ট রঙের একটা গ্র্যাডিয়েন্ট বার — কার্ডে চোখ পড়লেই
   বোঝা যাবে এটা কোন ধরনের পণ্যের সেকশন থেকে এসেছে; হোভারে পুরো প্রশস্ত হয় */
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 14px; right: 14px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--cat-accent), color-mix(in srgb, var(--cat-accent) 45%, var(--pp-gold)));
  opacity: 0.85;
  transform: scaleX(0.5);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  z-index: 2;
  pointer-events: none;
}
.product-card:hover::before { transform: scaleX(1); opacity: 1; }
.product-card:hover {
  border-color: color-mix(in srgb, var(--cat-accent) 55%, rgba(255,255,255,0.7));
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 22px 46px -18px color-mix(in srgb, var(--cat-accent) 45%, transparent), var(--shadow-glass-lg);
}

/* Product images stay unobstructed so the complete asset remains visible. */
.product-img { position: relative; }
.product-img::after {
  content: '';
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}

/* উপরে-বাঁয়ে একাধিক ব্যাজ (কাস্টম badge + স্টক/Coming Soon) স্ট্যাক করে
   দেখানোর কন্টেইনার — যাতে একটার উপর আরেকটা চাপা না পড়ে */
.card-badges-left {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
}
.product-badge {
  position: static;
  background: linear-gradient(135deg, var(--pp-gold), #7d5f2a);
  color: #fff;
  box-shadow: 0 3px 10px -3px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.product-status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; line-height: 1.3;
  letter-spacing: 0.01em;
}
.product-status-badge.is-outofstock {
  background: rgba(28,23,18,0.78); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.product-status-badge.is-lowstock {
  background: rgba(255,247,230,0.94); color: #9a5b00;
  border: 1px solid rgba(217,154,61,0.35);
  box-shadow: 0 3px 10px rgba(120,76,13,0.14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.product-status-badge.is-comingsoon {
  background: linear-gradient(135deg, rgba(13,31,61,0.92), rgba(20,40,77,0.92));
  color: #FFD98A;
  border: 1px solid rgba(255,217,138,0.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.product-discount-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: var(--gradient-primary);
  color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 3px 9px; border-radius: 20px; line-height: 1.3;
  box-shadow: 0 4px 12px -3px rgba(255,106,0,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ক্যাটাগরি লেবেল — সামনে ছোট্ট অ্যাকসেন্ট বিন্দু, রঙ ক্যাটাগরি অনুযায়ী বদলায় */
.product-cat {
  display: flex; align-items: center; gap: 6px;
  color: color-mix(in srgb, var(--cat-accent) 82%, var(--text));
}
.product-cat::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cat-accent); flex-shrink: 0;
}
.product-name { font-family: var(--font-display); transition: color .25s ease; }
.product-card:hover .product-name { color: color-mix(in srgb, var(--cat-accent) 70%, var(--text)); }

.product-price { font-family: var(--font-display); letter-spacing: -0.01em; }
.product-price::first-letter { color: var(--pp-gold); }

/* অর্ডার বাটনে হোভারে হালকা শাইন-সুইপ — প্রোডাক্ট পেজের CTA-র মতো প্রিমিয়াম টাচ */
.btn-add-cart { position: relative; overflow: hidden; isolation: isolate; }
.btn-add-cart::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.4) 45%, transparent 62%);
  transform: translateX(-130%);
}
.product-card:hover .btn-add-cart:not(.is-coming-soon)::after { animation: cardBtnShine 1.6s ease-in-out; }
@keyframes cardBtnShine { to { transform: translateX(130%); } }

.btn-add-cart.is-preorder { background: linear-gradient(135deg, #7d7568, #56504a); }
.btn-add-cart.is-coming-soon {
  background: linear-gradient(135deg, #9c9284, #726a5d);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-add-cart.is-coming-soon:hover { filter: none; transform: none; }

/* ক্যাটাগরি-রো হেডার — আইকন এখন অ্যাকসেন্ট-টিন্টেড চিপে, টাইটেল সেরিফ ফন্টে */
.category-row-title {
  font-family: var(--font-display);
  gap: 10px;
}
.category-row-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; font-size: 15px;
  background: color-mix(in srgb, var(--cat-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-accent) 30%, transparent);
}
.category-row-seeall {
  border: 1px solid color-mix(in srgb, var(--cat-accent) 35%, transparent);
  background: color-mix(in srgb, var(--cat-accent) 10%, transparent);
  color: color-mix(in srgb, var(--cat-accent) 85%, var(--text));
}
.category-row-seeall:hover {
  background: color-mix(in srgb, var(--cat-accent) 20%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .btn-add-cart::after { display: none; }
}

/* color-mix() সাপোর্ট না থাকা পুরনো ব্রাউজারে সাধারণ ব্র্যান্ড-অরেঞ্জ ফলব্যাক */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .product-cat { color: var(--primary); }
  .product-card:hover .product-name { color: var(--text); }
  .category-row-icon { background: var(--primary-light); border-color: rgba(255,106,0,0.3); }
  .category-row-seeall { border-color: rgba(255,106,0,0.3); background: var(--primary-light); color: var(--primary); }
  .product-card:hover { border-color: rgba(217,154,61,0.45); box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, var(--shadow-glass-lg); }
}

/* ═════════════════════════════════════════════════════════════════
   হেডার / ফুটার — ব্রাউজার-সেফ ফিক্স (কিছু ব্রাউজার/ডিভাইসে অংশ ফাঁকা দেখানো ঠেকাতে)
   ফাইলের শেষে থাকে বলে উপরের সব নিয়মের উপর জেতে। আগের অবস্থায় ফিরতে চাইলে শুধু এই ব্লকটা মুছুন।
   ═════════════════════════════════════════════════════════════════ */

/* ১) বাংলা ফন্ট ফলব্যাক — Google Font লোড না হলে (ব্লক/ধীর নেট/ইন-অ্যাপ ব্রাউজার) বা
      ডিভাইসে ডিফল্ট sans-serif এ বাংলা না থাকলে লেখা ফাঁকা বক্স হয়ে যায়; তাই সিস্টেমের বাংলা ফন্টগুলো যোগ */
:root {
  --font: 'Noto Sans Bengali', 'Hind Siliguri', 'Nirmala UI', 'Kohinoor Bangla', 'Bangla Sangam MN', 'Vrinda', 'Siyam Rupali', 'Kalpurush', 'Lohit Bengali', sans-serif;
  --font-display: 'Playfair Display', 'Noto Sans Bengali', 'Hind Siliguri', 'Nirmala UI', 'Kohinoor Bangla', 'Bangla Sangam MN', 'Vrinda', 'Siyam Rupali', 'Kalpurush', 'Lohit Bengali', serif;
}

/* ২) হেডার — আগে ৪৬–৭৪% স্বচ্ছ সাদা ছিল, পুরোপুরি backdrop-filter এর ওপর নির্ভর করত।
      যে ব্রাউজার/GPU তে ব্লার কাজ করে না বা বাদ পড়ে যায়, সেখানে হেডার প্রায় অদৃশ্য/ফাঁকা লাগত।
      এখন প্রায়-সলিড (৮৮–৯৭%) + নিচে ক্রিম ব্যাকআপ রঙ + হালকা ব্লার (১২px) */
.navbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.88));
  background-color: var(--pp-cream, #FBF7EE);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
}
.navbar.scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.93));
  background-color: var(--pp-cream, #FBF7EE);
}
/* হেডারের ভেতরের এলিমেন্টে আলাদা backdrop-filter দিলে (nested) Chrome এ ব্লার কাজ করে না — তাই সলিড */
.mobile-menu { background: #FFFDF8; backdrop-filter: none; -webkit-backdrop-filter: none; }
.user-display { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ৩) ফুটার — লেখা সাদা-ঘেঁষা, তাই ব্যাকগ্রাউন্ড না আঁকা হলে পুরো ফুটার ফাঁকা দেখায়।
      (ক) গ্রেডিয়েন্ট না লোড হলেও গাঢ় নেভি থাকবে
      (খ) ৬০–৭০px blur ফিল্টার (বড় লেয়ারে) কিছু ডিভাইসে ফাঁকা/কালো ব্লক বানাত — গ্রেডিয়েন্ট এমনিতেই নরম, ফিল্টার লাগে না
      (গ) `inset` শর্টহ্যান্ড না বোঝা পুরনো ব্রাউজারের জন্য আলাদা top/left/right */
.footer { background-color: #0D1F3D; }
.footer::after {
  top: -40%; left: -10%; right: -10%; bottom: auto;
  height: 420px;
  -webkit-filter: none; filter: none;
  opacity: 0.9;
}
.footer-contact {
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* ৪) ফলব্যাক — backdrop-filter নেই / "reduce transparency" চালু: `.navbar.scrolled` আগের ফলব্যাকে বাদ পড়ত */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar, .navbar.scrolled { background: rgba(255,255,255,0.98); }
}
@media (prefers-reduced-transparency: reduce) {
  .navbar, .navbar.scrolled { background: #fff; }
}

/* ═════════════════════════════════════════════════════════════════
   পারফরম্যান্স — ডিভাইসের RAM/GPU চাপ কমানো
   প্রতিটা প্রোডাক্ট/ক্যাটাগরি কার্ড + উইশলিস্ট বাটনে আলাদা backdrop-filter ছিল; ২০–১০০টা কার্ড মানে
   ২০০+ ব্লার লেয়ার (GPU মেমরি + পেইন্ট খরচ), আর সাইটে বেশিক্ষণ থাকলে/লোড-মোর করলে বাড়তেই থাকত।
   কার্ডের জমিন একটু বেশি অপাক করে ব্লার বাদ — চেহারা প্রায় একই, কিন্তু অনেক হালকা।
   আগের অবস্থায় ফিরতে চাইলে শুধু এই ব্লকটা মুছুন।
   ═════════════════════════════════════════════════════════════════ */
.product-card, .cat-card, .subcat-chip, .wish-btn {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.product-card, .cat-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
}
.wish-btn { background: rgba(255,255,255,0.92); }

/* ⚡ লম্বা প্রোডাক্ট গ্রিডে স্ক্রিনের বাইরের কার্ডের লেআউট/পেইন্ট ব্রাউজার এড়িয়ে যাবে
   ("আরো পণ্য দেখুন" চাপতে থাকলেও RAM/CPU কম লাগে)। কার্ডে আগে থেকেই overflow:hidden আছে, তাই চেহারা বদলায় না।
   contain-intrinsic-size-এর `auto` মানে একবার রেন্ডার হলে আসল উচ্চতাই মনে রাখবে। */
.products-grid .product-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}
/* Cart product links: clicking product image/name opens the product details page. */
.cart-item-product-link {
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}
.cart-item-thumb.cart-item-product-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.cart-item-thumb.cart-item-product-link img {
  cursor: pointer;
}
.cart-item-name.cart-item-product-link {
  display: block;
}
.cart-item-name.cart-item-product-link:hover {
  color: var(--primary, #e85d04);
}


/* Cart quantity + live amount badge */
.cart-summary-badge {
  min-width: max-content !important;
  padding: 2px 7px !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .cart-summary-badge { font-size: 10px !important; }
}


/* Simple checkout address/delivery selector */
.simple-address-form{display:flex;flex-direction:column;gap:10px}
.simple-address-form .form-group{margin-bottom:0}
.simple-address-form input,.simple-address-form textarea{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--border,#e5e7eb);border-radius:9px;background:#fff;font:inherit;color:inherit}
.simple-address-form textarea{resize:vertical;min-height:76px}
.delivery-zone-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.delivery-zone-btn{padding:11px 10px;border:1px solid var(--border,#ddd);border-radius:9px;background:#fff;color:inherit;font:inherit;font-weight:700;cursor:pointer;transition:.15s}
.delivery-zone-btn.active{border-color:var(--primary,#e85d04);background:var(--primary-light,#fff1e6);color:var(--primary,#e85d04);box-shadow:0 0 0 1px var(--primary,#e85d04) inset}
@media(max-width:520px){.delivery-zone-choice{grid-template-columns:1fr}}


/* ═════════════════════════════════════════════════════════════════
   Satoxy UI polish + low-end phone performance pass
   - Top cart = icon only; quantity lives in the mobile bottom-nav badge.
   - Keep the premium glass/orange language, but reduce expensive blur/paint
     work on ordinary phones.
   ═════════════════════════════════════════════════════════════════ */
.cart-btn {
  width: 42px;
  min-width: 42px;
  padding: 0;
  justify-content: center;
  position: relative;
}
.cart-btn .nav-label,
.cart-btn .cart-summary-badge { display: none !important; }
.top-cart-icon { width: 21px; height: 21px; display: block; }
.cart-btn:hover .top-cart-icon { transform: translateY(-1px); }

@media (max-width: 768px) {
  /* Avoid nested blur layers on small GPUs while preserving the glass look. */
  .navbar,
  #bottom-nav,
  #bn-drawer,
  .drawer,
  .cat-drawer,
  .modal-backdrop,
  .drawer-backdrop,
  .cat-drawer-overlay {
    backdrop-filter: blur(12px) saturate(1.35) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.35) !important;
  }


  .nav-inner { min-width: 0; }
  .nav-links .cart-btn { width: 38px; min-width: 38px; }
  .top-cart-icon { width: 20px; height: 20px; }

  /* Less motion/paint on product-heavy mobile pages. */
  .product-card,
  .cat-card,
  .subcat-chip,
  .wish-btn,
  .category-row,
  .products-grid .product-card {
    transition-duration: .14s;
  }
  .product-card:hover,
  .cat-card:hover { transform: none; }
  .product-card:hover .btn-add-cart:not(.is-coming-soon)::after { animation: none; }
}

@media (max-width: 480px) {
}

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

@media (prefers-reduced-transparency: reduce) {
  #bottom-nav { background: #fffdf9 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}


/* ═════════════════════════════════════════════════════════════════
   Satoxy — Compact premium glass pass / performance v3
   Goals: less dead space, lower paint cost, tighter mobile checkout,
   and a premium orange-glass visual without excessive blur.
   ═════════════════════════════════════════════════════════════════ */
:root {
  --section-gap-compact: 42px;
}

/* Reduce layout work below the fold while preserving predictable space. */
.section {
  padding: var(--section-gap-compact) 0;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}
.hero {
  min-height: 460px;
  padding: 64px 24px;
}
.products-grid { gap: 14px; }
.category-rows { gap: 24px; }
.cat-card { padding: 18px 14px; }

.cat-grid,
.products-grid,
.category-rows {
  contain: layout paint;
}

/* Premium glass should feel translucent, not foggy. */
.navbar,
.cat-card,
.product-card,
.subcat-chip,
.hero-tag,
.btn-hero-ghost {
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
  backdrop-filter: blur(7px) saturate(1.15);
}

.product-card,
.cat-card {
  box-shadow: 0 1px 0 rgba(255,255,255,.68) inset, 0 8px 24px -20px rgba(33,26,17,.42);
}

.product-card:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.72) inset, 0 14px 30px -20px rgba(232,93,4,.34);
}

/* Avoid a giant visual hero on short/mobile screens. */
@media (max-width: 768px) {
  .section { padding: 26px 0; }
  .hero { min-height: 0; padding: 18px 14px 16px; }
  .hero-content { width: min(100%, 620px); }
  .hero-mobile-badges { margin-top: 10px !important; gap: 6px; }
  .hero-badge { padding: 4px 9px; font-size: 10px; box-shadow: none; }
  #categories-section { padding: 22px 0 16px; }
  #products-section { padding: 22px 0 34px; }
  .section-head { margin-bottom: 12px; }
  .category-rows { gap: 18px; }
  .category-row-head { margin-bottom: 8px; }
  .category-row-scroll { gap: 8px; padding-bottom: 2px; }
  .category-row-scroll .product-card { flex-basis: 148px; width: 148px; }

  /* Checkout: delivery zones stay side-by-side on phones. */
  .delivery-zone-choice {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 7px;
  }
  .delivery-zone-btn {
    min-width: 0;
    padding: 10px 7px;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }

  /* Stop expensive hover/blur/transform work on touch devices. */
  .product-card,
  .cat-card,
  .subcat-chip,
  .btn-hero,
  .btn-hero-ghost {
    transition-duration: .12s;
  }
  .product-card:hover,
  .cat-card:hover { transform: none; }
}

@media (max-width: 480px) {
  .section { padding: 22px 0; }
  .container { padding-left: 12px; padding-right: 12px; }
  #categories-section { padding: 18px 0 12px; }
  #products-section { padding: 18px 0 30px; }
  .section-title { font-size: 18px; }
  .section-head { margin-bottom: 10px; }
  .cat-grid { gap: 7px; padding-bottom: 6px; }
  .cat-card { flex-basis: 76px; min-width: 76px; padding: 10px 5px; }
  .cat-icon { font-size: 22px; }
  .products-grid { gap: 8px; }
  .product-card { border-radius: 12px; }
  .product-img { aspect-ratio: 1 / .88; }
  .product-body { padding: 7px 8px; }
  .product-footer { padding: 6px 8px; }
  .btn-add-cart { min-height: 32px; }

  /* Keep delivery choices readable without stacking. */
  .delivery-zone-btn { font-size: 11px; padding: 9px 5px; }
}

@media (prefers-reduced-transparency: reduce) {
  .navbar,
  .cat-card,
  .product-card,
  .subcat-chip,
  .hero-tag,
  .btn-hero-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
}


/* ── Motion tuning: slightly slower, calmer movement across the site ── */
.hero-float-card, .floating-card, .fc1, .fc2, .fc3 { animation-duration: 5s !important; }
.hero-rotate-text, .hero-rotate-text.swap { animation-duration: .72s !important; }
.product-card, .cat-card { animation-duration: .62s !important; }
.checkout-modal-fs, #checkout-modal, .modal, .drawer, .bottom-sheet { animation-duration: .42s !important; }
.popup-ad, .popup-ad-content { animation-duration: .42s !important; }
@media (prefers-reduced-motion: no-preference) {
  .product-card, .cat-card, .btn, .icon-btn, .nav-link, .bottom-nav-item { transition-duration: .34s !important; }
}

.checkout-account-info{margin:0 0 14px;padding:14px;border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.5);backdrop-filter:blur(8px)}
.checkout-account-title{font-weight:800;margin-bottom:10px}.checkout-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.checkout-account-grid>div{min-width:0}.checkout-account-grid span{display:block;font-size:11px;color:var(--text2);margin-bottom:2px}.checkout-account-grid strong{display:block;font-size:13px;overflow-wrap:anywhere}.checkout-account-wide{grid-column:1/-1}
@media(max-width:560px){.checkout-account-grid{grid-template-columns:1fr}.checkout-account-wide{grid-column:auto}}

/* ── Desktop hero usability refinement ── */
@media (min-width: 901px) {
  .hero-content { max-width: 760px; }
  .hero-tag { margin-bottom: 16px; }
  .hero-title { max-width: 720px; font-size: clamp(42px, 4.2vw, 58px); }
  .hero-sub { max-width: 680px; margin-bottom: 26px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-hero, .hero-actions .btn-hero-ghost { min-width: 160px; text-align: center; }
  .hero-mobile-badges { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
  .hero-badge { padding: 7px 11px; }
}

/* ── SATOXY desktop hero refinement — mobile styles remain untouched ── */
@media(min-width:769px){
  .hero{min-height:500px;padding:64px 48px;}
  .hero-content{max-width:760px;}
  .hero-tag{margin-bottom:16px;padding:7px 15px;}
  .hero-title{max-width:760px;font-size:clamp(42px,4.2vw,60px);margin-bottom:14px;}
  .hero-sub{max-width:700px;font-size:17px;margin-bottom:26px;}
  .hero-actions{gap:14px;}
  .btn-hero,.btn-hero-ghost{min-width:150px;padding:13px 26px;}
  .hero-mobile-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;}
  .hero-badge{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(8px);font-size:12px;}
}

/* ══ HOME PRODUCT IMAGE FIX — Category rows ══
   Keep the complete product visible instead of cropping portrait/square assets.
   The card frame stays fixed, while the image uses contain + a soft premium canvas. */
.category-row .product-img {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.98), rgba(244,239,228,.92));
  isolation: isolate;
}
.category-row .product-img-main,
.category-row .product-img .pi-hover-img {
  object-fit: contain !important;
  object-position: center !important;
  padding: 10px;
  box-sizing: border-box;
  background: transparent;
}
.category-row .product-card:hover .product-img-main,
.category-row .product-card:hover .product-img .pi-hover-img.on {
  transform: scale(1.035);
}
.category-row .product-card {
  min-width: 210px;
}
@media (max-width: 600px) {
  .category-row .product-card { min-width: 176px; }
  .category-row .product-img-main,
  .category-row .product-img .pi-hover-img { padding: 8px; }
}

/* Direct Google registration */
.google-register-note{
  text-align:center;
  margin:0 0 10px;
  font-size:12.5px;
  font-weight:700;
  color:#1a7f3c;
}
#gsi-guard-register{max-width:280px;margin:0 auto}
#gsi-guard-register .google-signin-wrap{display:flex;justify-content:center}

/* ═══════════════════════════════════════════════════════════════
   SAToxy Mobile UI Polish — audit pass
   Focus: spacing, touch targets, bottom nav, cart + checkout flow
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --mobile-gutter: 12px; --mobile-radius: 14px; }

  html { scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }

  /* Consistent mobile page gutters */
  .container, .page-container, main > .section, .section-container {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  /* Touch targets: compact visually, comfortable to tap */
  button, a, select, input[type="button"], input[type="submit"] { -webkit-tap-highlight-color: transparent; }
  .btn-submit, .btn-checkout { min-height: 46px; border-radius: 12px; }
  .form-group input, .form-group select, .form-group textarea { min-height: 46px; border-radius: 11px; }

  /* Cart drawer */
  #cart-drawer {
    width: min(100vw, 430px) !important;
    max-width: 100vw !important;
    border-radius: 18px 18px 0 0 !important;
  }
  #cart-drawer .drawer-header { padding: 14px 16px !important; }
  #cart-drawer .drawer-body { padding: 10px 12px 14px !important; }
  #cart-drawer .drawer-footer { padding: 12px !important; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; }
  #cart-drawer .btn-checkout { min-height: 46px; font-size: 15px; }

  /* Checkout: one clear vertical journey */
  #checkout-modal.checkout-modal-fs {
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  #checkout-modal .modal-close-btn {
    position: sticky !important;
    top: 10px !important;
    align-self: flex-end;
    margin: 10px 12px -42px auto !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    border-radius: 50% !important;
    z-index: 50 !important;
  }
  #checkout-modal .checkout-fs-body {
    display: block !important;
    height: 100% !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  #checkout-modal .checkout-fs-left,
  #checkout-modal .checkout-fs-right {
    padding: 18px 14px !important;
  }
  #checkout-modal .checkout-fs-left { border-bottom: 1px solid var(--border); }
  #checkout-modal .checkout-fs-right { background: var(--bg3); }
  #checkout-modal .checkout-fs-right .auth-title,
  #checkout-modal .checkout-fs-left .auth-title { font-size: 17px; margin-bottom: 14px; }
  #checkout-modal .checkout-fs-right .btn-submit {
    position: sticky !important;
    bottom: 10px !important;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(232,93,4,.24);
  }

  /* Promo controls don't overflow on narrow screens */
  #promo-code-wrap > div { flex-wrap: wrap; }
  #promo-code-input { flex: 1 1 100% !important; min-width: 0 !important; }
  #promo-code-paste-btn, #promo-code-btn { flex: 1 1 0; min-height: 42px; }

  /* Checkout items: prevent name/price collisions */
  .co-item { gap: 9px; padding: 9px; align-items: flex-start; }
  .co-item-thumb { width: 44px; height: 44px; }
  .co-item-name { white-space: normal; line-height: 1.35; }
  .co-item-price { margin-left: auto; white-space: nowrap; }
  .co-item-remove { width: 34px; height: 34px; }

  /* Toast must never sit behind the fixed nav */
  #toast-container { top: 62px !important; bottom: auto !important; }
}

@media (max-width: 380px) {
  #cart-drawer .drawer-footer > div { gap: 6px !important; }
}


/* ══ PRODUCT IMAGE SAFETY — full asset visible, edge-to-edge ══ */
.product-img > img.product-img-main,
.product-img > img.pi-hover-img {
  object-fit: contain !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

/* The image itself must remain fully readable: no hover zoom/crop. */
.product-card:hover .product-img > img.product-img-main,
.product-card:hover .product-img > img.pi-hover-img.on,
.category-row .product-card:hover .product-img-main,
.category-row .product-card:hover .product-img .pi-hover-img.on {
  transform: none !important;
}

/* ══ PRODUCT CARD CORNER BADGES — brief peek, then clear the image ══ */
@keyframes satoxyCornerBadgePeek {
  0%, 12% { opacity: 1; transform: translateY(0) scale(1); }
  28% { opacity: .96; transform: translateY(0) scale(1); }
  48% { opacity: 0; transform: translateY(-5px) scale(.96); }
  100% { opacity: 0; transform: translateY(-5px) scale(.96); }
}

.product-img .card-badges-left,
.product-img .product-discount-badge {
  animation: satoxyCornerBadgePeek 4.2s cubic-bezier(.22,.61,.36,1) both;
  will-change: opacity, transform;
}

/* On desktop, hovering/focusing the card reveals the corner information again. */
@media (hover: hover) {
  .product-card:hover .product-img .card-badges-left,
  .product-card:hover .product-img .product-discount-badge,
  .product-card:focus-within .product-img .card-badges-left,
  .product-card:focus-within .product-img .product-discount-badge {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    animation: none !important;
  }
}

/* Give the image a little breathing room only through the card frame itself;
   the asset element remains flush with all four sides. */
.product-img { overflow: hidden; }


/* ══ PRODUCT MODAL MOBILE — FULL IMAGE FRAME ══ */
@media (max-width: 768px) {
  .modal-media-wrapper {
    aspect-ratio: 1 / 1 !important;
    min-height: 280px !important;
    height: auto !important;
  }
  .modal-media-wrapper img#modal-main-img {
    object-fit: contain !important;
    object-position: center !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CARD v2 — পরিষ্কার, প্রফেশনাল কার্ড
   • নাম এখন বাংলা-সাপোর্টেড ফন্টে, ১৪px (মোবাইলে ১৩px), ২ লাইন পর্যন্ত — আগে
     serif ডিসপ্লে ফন্ট (Playfair — বাংলা গ্লিফ নেই) + ১২px + ১ লাইনে কাটা পড়ছিল
   • রেটিং সবসময় দেখা যায়: তারা + সংখ্যা + রিভিউ কাউন্ট
   • সব কার্ডের নাম/দাম/বাটন একই লাইনে সারিবদ্ধ
   ফাইলের শেষে থাকে বলে আগের সব card নিয়মের উপর জেতে। আগের অবস্থায় ফিরতে
   চাইলে শুধু এই ব্লকটা মুছুন।
═══════════════════════════════════════════════════════════════════ */
.product-card {
  --cat-accent: var(--primary);
  background: #fff;
  border: 1px solid #ece5d8;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(34,29,21,.04), 0 8px 20px -14px rgba(34,29,21,.2);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.product-card::before { display: none; }
.product-card:hover {
  transform: translateY(-3px);
  border-color: #e3d2b0;
  box-shadow: 0 1px 2px rgba(34,29,21,.05), 0 16px 30px -16px rgba(34,29,21,.28);
}

.product-card .product-img {
  aspect-ratio: 1 / 1;
  background: #faf7f1;
}

.product-card .product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px 8px;
}

.product-card .product-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-name {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #221d15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  /* ১ লাইনের নাম হলেও ২ লাইনের জায়গা ধরা থাকে — গ্রিডে কার্ডগুলো সারিবদ্ধ থাকে */
  min-height: calc(1.45em * 2);
  word-break: break-word;
}
.product-card:hover .product-name { color: #221d15; }

.product-card .product-meta {
  font-size: 11.5px;
  color: #8f8677;
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  min-height: 16px;
  line-height: 1;
}
.product-card .product-rating-stars {
  font-size: 12.5px;
  letter-spacing: 1px;
  line-height: 1;
  color: #e4ddcf;
  white-space: nowrap;
}
.product-card .product-rating-stars .on { color: #f5a300; }
.product-card .product-rating-num {
  font-size: 12px;
  font-weight: 700;
  color: #3a342a;
}
.product-card .product-rating-count {
  font-size: 11.5px;
  color: #8f8677;
}

.product-card .product-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 2px;
}
.product-card .product-price {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--primary);
}
.product-card .product-price::first-letter { color: inherit; }
.product-card .product-old-price {
  font-size: 12px;
  color: #9b9284;
}

.product-card .product-footer {
  padding: 4px 13px 13px;
  border-top: 0;
}
.product-card .btn-add-cart {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* "সব পণ্য" রো-এর কার্ডের মাপ */
.category-row-scroll .product-card {
  flex: 0 0 220px;
  width: 220px;
  min-width: 0;
}

@media (max-width: 768px) {
  .category-row-scroll .product-card { flex: 0 0 168px; width: 168px; min-width: 0; }
  .category-row-scroll { gap: 10px; }
}

@media (max-width: 600px) {
  .products-grid { gap: 10px; }
  .product-card { border-radius: 14px; }
  .product-card .product-img { aspect-ratio: 1 / 1; }
  .product-card .product-body { padding: 10px 10px 6px; gap: 4px; }
  .product-card .product-cat { font-size: 10.5px; }
  .product-card .product-name {
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    min-height: calc(1.4em * 2);
  }
  .product-card .product-meta { display: none; }
  .product-card .product-rating-stars { font-size: 12px; }
  .product-card .product-price { font-size: 15.5px; }
  .product-card .product-old-price { font-size: 11.5px; }
  .product-card .product-footer { padding: 2px 10px 10px; }
  .product-card .btn-add-cart { min-height: 36px; font-size: 12.5px; padding: 7px 6px; border-radius: 9px; }
}

@media (max-width: 380px) {
  .category-row-scroll .product-card { flex-basis: 156px; width: 156px; }
  .product-card .product-name { font-size: 12.5px; }
}

@media (hover: none) {
  .product-card:hover { transform: none; }
}

/* ═════════════════════════════════════════════════════════════════
   PREMIUM FOOTER — navy + gold
   footer.js থেকে আসা ফুটার (index, product, boost, service) সবখানে একসাথে প্রযোজ্য।
   ফাইলের একদম শেষে রাখা হয়েছে যাতে আগের .footer রুলগুলোর ওপর জেতে।
   ═════════════════════════════════════════════════════════════════ */
.footer {
  padding: 72px 0 0;
  margin-top: 56px;
  border-top: 0;
}
/* ওপরের সোনালি লাইন একটু স্পষ্ট */
.footer::before {
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #B5904F 22%, #F3E6C4 50%, #B5904F 78%, transparent 100%);
}
.footer .footer-grid {
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.4fr;
  gap: 44px 36px;
  margin-bottom: 0;
  padding-bottom: 52px;
}
.footer .footer-desc {
  max-width: 300px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.95;
  color: rgba(255,255,255,0.62);
}
.footer .footer-head {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 14px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: #E7CF93;
}
.footer .footer-head::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #B5904F, rgba(181,144,79,0));
}
.footer .footer-list { gap: 13px; }
.footer .footer-list a {
  display: inline-block;
  color: rgba(255,255,255,0.64);
  transition: color .25s ease, transform .25s ease;
}
.footer .footer-list a:hover {
  color: #F3E6C4;
  transform: translateX(4px);
}
/* যোগাযোগ — সোনালি বর্ডারের পিল (footer.js-এ <p class="footer-contact"> পিল হয়) */
.footer .footer-contact {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(181,144,79,0.32);
  background: rgba(181,144,79,0.08);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.footer .footer-contact:hover {
  background: rgba(181,144,79,0.18);
  border-color: #B5904F;
  transform: translateY(-1px);
}
.footer .footer-contact a {
  color: rgba(255,255,255,0.88);
  overflow-wrap: anywhere;
}
.footer .footer-contact:hover a { color: #F3E6C4; }
.footer .footer-bottom {
  border-top: 1px solid rgba(181,144,79,0.25);
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px));
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.45);
}
.footer .footer-bottom p { margin: 0; }
.footer .footer-bottom a { color: rgba(255,255,255,0.62) !important; transition: color .2s ease; }
.footer .footer-bottom a:hover { color: #E7CF93 !important; }

@media (max-width: 1024px) {
  .footer .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer .footer-desc { max-width: 520px; }
}
@media (max-width: 640px) {
  .footer { padding-top: 48px; margin-top: 40px; }
  .footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 20px;
    padding-bottom: 36px;
  }
  .footer .footer-grid > div:first-child,
  .footer .footer-grid > div:nth-child(4),
  .footer .footer-grid > div:last-child { grid-column: 1 / -1; }
  /* নীতিমালার ৪টা লিংক ২ কলামে */
  .footer .footer-grid > div:nth-child(4) .footer-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 20px;
  }
}


/* ═════════════════════════════════════════════════════════════════
   PREMIUM CREAMY BACKGROUND — শুধু index page
   index.html-এ #categories-section আছে, তাই body:has(#categories-section) দিয়ে
   শুধু হোমপেজে প্রযোজ্য (product/boost/service অপরিবর্তিত)। পুরনো ব্রাউজার যেগুলো :has বোঝে না,
   সেখানে আগের চেহারাই থাকবে — কিছু ভাঙবে না।
   ═════════════════════════════════════════════════════════════════ */
body:has(#categories-section) {
  /* ক্রিমি টোকেন — কার্ড, ড্রয়ার, মোডাল, ইনপুট সব এখান থেকেই রং নেয় */
  --bg:  #F8F1E3;     /* মূল ক্রিম */
  --bg2: #FFFCF5;     /* কার্ড/সারফেস — হালকা আইভরি */
  --bg3: #F0E6D0;     /* বিকল্প সেকশন/চিপ — একটু গাঢ় ক্রিম */
  --border:  #E8DCC0;
  --border2: #DCCBA3;

  background-color: #F8F1E3;
  background-image:
    radial-gradient(1000px 520px at 6% -4%,  rgba(217,154,61,0.16) 0%, rgba(217,154,61,0) 62%),
    radial-gradient(900px 480px  at 100% 22%, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 62%),
    radial-gradient(800px 460px  at 0% 62%,  rgba(217,154,61,0.09) 0%, rgba(217,154,61,0) 62%),
    linear-gradient(180deg, #FAF4E6 0%, #F7EFDD 50%, #F9F3E5 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}
/* বিকল্প সেকশন — সরাসরি রঙের বদলে নরম ক্রিম-গোল্ড ফেড, ওপর-নিচে সূক্ষ্ম সোনালি রেখা */
body:has(#categories-section) .bg-alt {
  background: linear-gradient(180deg, rgba(240,230,208,0.55) 0%, rgba(240,230,208,0.85) 100%);
  border-top: 1px solid rgba(217,154,61,0.18);
  border-bottom: 1px solid rgba(217,154,61,0.18);
}