/* FramecareBD.com — Pixel-Perfect Eyewear Storefront Stylesheet */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --studio: #F3EFEA;
  --ink: #121619;
  --ink-muted: #5A626A;
  --border: #E5E0D8;
  --gold: #B68D40;
  --gold-dark: #96722E;
  --teal: #0F4C5C;
  --success: #157F54;
  --danger: #C0392B;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(18, 22, 25, 0.04);
  --shadow-md: 0 12px 32px rgba(18, 22, 25, 0.08);
  --shadow-lg: 0 24px 56px rgba(18, 22, 25, 0.14);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Announcement Bar */
.topbar {
  background: var(--ink);
  color: #FAF8F5;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 8px 0;
  text-align: center;
}
.topbar strong { color: #E2C07D; font-weight: 600; }

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand img { width: 38px; height: auto; }
.brand span em { font-style: normal; color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-pill {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  gap: 8px;
}
.search-pill input {
  border: none;
  outline: none;
  background: transparent;
  width: 170px;
  font-size: 13.5px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.icon-btn:hover { border-color: var(--ink); }
.cart-badge {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: #232A30;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* Hero */
.hero {
  padding: 44px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  background: rgba(182, 141, 64, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.hero-metrics {
  display: flex;
  gap: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero-metrics div strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}
.hero-metrics div span {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--studio);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-float-card {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 13px;
}
.hero-float-card strong { display: block; font-size: 14px; }

/* Trust Strip */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--studio);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.trust-item strong { display: block; font-size: 13.5px; }
.trust-item span { font-size: 12.5px; color: var(--ink-muted); }

/* Section Headings */
.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 0 0 6px;
  line-height: 1.1;
}
.section-head p { margin: 0; color: var(--ink-muted); }

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.sort-select {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-thumb {
  position: relative;
  background: var(--studio);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-meta {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.product-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.product-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0 0 14px;
  flex: 1;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.price-now { font-size: 19px; font-weight: 700; }
.price-old { font-size: 13.5px; color: var(--ink-muted); text-decoration: line-through; }
.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* Lens Guide Section */
.lens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lens-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.lens-card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(15, 76, 92, 0.09);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.lens-card h3 { margin: 0 0 8px; font-size: 17px; }
.lens-card p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-muted); }
.lens-card strong { font-size: 14px; color: var(--gold-dark); }

/* Product Detail Page */
.pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  padding: 36px 0 64px;
}
.pdp-media {
  background: var(--studio);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}
.variant-pill {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.variant-pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.lens-option-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 20px;
}
.lens-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.lens-option.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 25, 0.45);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--surface);
  z-index: 130;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cart-item img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--studio);
}
.drawer-foot {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* Checkout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 32px;
  padding: 36px 0 64px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 13px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #D7D2C8;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 13.5px; color: #B8B2A6; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #9A9488;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  place-items: center;
  background: rgba(18, 22, 25, 0.55);
  padding: 20px;
}
.modal.open { display: grid; }
.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 960px) {
  .hero-grid, .pdp-grid, .checkout-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .lens-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; }
  .product-title { font-size: 14px; }
  .product-desc { display: none; }
  .price-now { font-size: 15px; }
  .trust-grid, .lens-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .search-pill { display: none; }
}


/* === v2 Layout: Header, Mobile Menu, Full-Width Hero, Marquee, Collage, Floating & Mobile Bottom Bar === */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.header-search-wrap { flex: 1; max-width: 520px; }
.header-search-wrap .search-pill { width: 100%; }
.header-search-wrap .search-pill input { width: 100%; }

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-only-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
}
.icon-only-btn .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
}
.lang-toggle-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle-btn:hover { background: var(--ink); color: #fff; }

.header-cat-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 8px 0 12px;
  border-top: 1px solid rgba(229, 224, 216, 0.7);
  font-size: 13.5px;
  font-weight: 600;
  overflow-x: auto;
}
.header-cat-menu a { color: var(--ink-muted); white-space: nowrap; transition: color 0.15s; }
.header-cat-menu a:hover { color: var(--ink); }
.header-cat-menu a.track-link { color: var(--teal); }

.mobile-hamburger, .mobile-search-row { display: none; }

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(18,22,25,0.45); z-index: 150;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.mobile-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; left: 0; width: min(300px, 82vw); height: 100vh;
  background: var(--surface); z-index: 160; transform: translateX(-100%);
  transition: transform 0.25s ease; display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-links { display: grid; padding: 12px 20px; }
.mobile-drawer-links a {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}

/* Full-Width Hero Banner (No Arrows / Navigation) */
.hero-full-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--studio);
  aspect-ratio: 16 / 6;
  min-height: 240px;
  max-height: 580px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Category Infinite Marquee */
.marquee-section {
  padding: 24px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: fc-marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 128px;
  flex-shrink: 0;
  text-align: center;
}
.marquee-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--studio);
}
.marquee-item span { font-size: 13px; font-weight: 600; color: var(--ink); }
@keyframes fc-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Adaptive Photo Collage */
.collage-section { padding: 26px 0 38px; }
.collage-grid { display: grid; gap: 16px; }
.collage-1 { grid-template-columns: 1fr; }
.collage-1 img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: var(--radius-md); }
.collage-2 { grid-template-columns: 1fr 1fr; }
.collage-2 img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
.collage-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.collage-3 .c-item-0 { grid-column: 1; grid-row: 1; }
.collage-3 .c-item-1 { grid-column: 1; grid-row: 2; }
.collage-3 .c-item-2 { grid-column: 2; grid-row: 1 / span 2; }
.collage-3 img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.collage-3 .c-item-0 img, .collage-3 .c-item-1 img { aspect-ratio: 16 / 8; }
.collage-3 .c-item-2 img { min-height: 100%; }

/* Minimal Footer */
.site-footer-minimal {
  background: var(--ink);
  color: #D7D2C8;
  text-align: center;
  padding: 20px 16px;
  font-size: 13.5px;
  margin-top: 40px;
}

/* Floating Stack (Message + Go to Top) */
.floating-stack {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}
.float-btn:hover { transform: translateY(-2px); }
.float-msg-btn { background: var(--teal); }

.floating-msg-menu {
  position: fixed;
  right: 20px;
  bottom: 136px;
  z-index: 115;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}
.floating-msg-menu.open { display: flex; }
.conn-item {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--bg);
}
.conn-item:hover { background: var(--studio); }

/* Mobile Bottom Bar */
.mobile-bottom-bar { display: none; }

@media (max-width: 900px) {
  .desktop-search, .desktop-cart-btn, .header-cat-menu, .floating-stack { display: none !important; }
  .mobile-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--ink);
    padding: 6px;
    cursor: pointer;
  }
  .mobile-search-row { display: block; padding-bottom: 12px; }
  .header-top { padding: 10px 0 8px; }
  .brand { margin: 0 auto; }
  .collage-2, .collage-3 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .collage-3 .c-item-0, .collage-3 .c-item-1, .collage-3 .c-item-2 { grid-column: 1; grid-row: auto; }

  .site-footer-minimal { padding-bottom: 84px; }
  .floating-msg-menu { right: 16px; bottom: 82px; }

  .mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(18,22,25,0.08);
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 0 6px;
  }
  .mbb-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
  }
  .mbb-track .live-dot {
    position: absolute;
    top: 14px;
    right: calc(50% - 14px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
    animation: fc-pulse 1.6s infinite;
  }
  @keyframes fc-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
  }
  .mbb-cart-semi {
    position: relative;
    top: -14px;
    margin: 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50% 50% 24px 24px;
    background: var(--ink);
    color: #fff;
    border: 4px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
  }
  .mbb-cart-count {
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: grid;
    place-items: center;
  }
}


/* Header Dropdown Sub-Menus */
.header-cat-menu { overflow: visible; flex-wrap: wrap; }
.menu-item-wrap { position: relative; }
.submenu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 120;
}
.menu-item-wrap.has-submenu:hover .submenu-dropdown,
.menu-item-wrap.has-submenu:focus-within .submenu-dropdown {
  display: grid;
  gap: 2px;
}
.submenu-dropdown a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
}
.submenu-dropdown a:hover { background: var(--studio); }


/* Product Card v3: 2-line title clamp, no short desc, % OFF & promo badges */
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
  margin: 0 0 10px;
}
.product-badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #DC2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.product-badge.badge-hot { background: #EA580C; }
.product-badge.badge-deal { background: #0F4C5C; }
