/* =============================================================================
   Babussalam — Editorial Redesign (homepage)
   Single source of truth for the new homepage and reusable bookstore components.
   All new classes are prefixed `bs-` to avoid clashing with legacy styles.
   ============================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette — warm paper + forest brand + muted gold accent */
  --bs-bg: #FAF7F2;
  --bs-surface: #FFFFFF;
  --bs-surface-2: #F4EFE6;
  --bs-ink: #1C1917;
  --bs-ink-muted: #57534E;
  --bs-muted: #78716C;
  --bs-border: #E7E2D9;
  --bs-border-strong: #D6CFC0;
  --bs-brand: #2A4A3E;
  --bs-brand-ink: #1F362D;
  --bs-brand-soft: #E8EFEA;
  --bs-accent: #C9A961;
  --bs-accent-ink: #8B7338;
  --bs-danger: #B83227;

  /* Typography */
  --bs-font-display: 'Fraunces', 'Lora', 'Times New Roman', serif;
  --bs-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-font-urdu: 'Noto Nastaliq Urdu', serif;

  /* Spacing scale */
  --bs-s-1: 4px;
  --bs-s-2: 8px;
  --bs-s-3: 16px;
  --bs-s-4: 24px;
  --bs-s-5: 32px;
  --bs-s-6: 48px;
  --bs-s-7: 64px;
  --bs-s-8: 96px;

  /* Radii */
  --bs-r-sm: 6px;
  --bs-r-md: 10px;
  --bs-r-lg: 14px;
  --bs-r-pill: 999px;

  /* Shadows */
  --bs-sh-rest: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .03);
  --bs-sh-hover: 0 12px 40px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
  --bs-sh-card: 0 1px 0 rgba(0, 0, 0, .02), 0 4px 16px rgba(28, 25, 23, .04);

  /* Motion */
  --bs-ease: cubic-bezier(.2, .6, .2, 1);
  --bs-dur: 200ms;

  /* Layout */
  --bs-container: 1240px;
}

/* ---------- Reset-ish for the redesign surfaces ---------- */
.bs-page,
.bs-page * {
  box-sizing: border-box;
}

.bs-page {
  background: var(--bs-bg);
  color: var(--bs-ink);
  font-family: var(--bs-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bs-page a {
  color: inherit;
  text-decoration: none;
}

.bs-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Container & utilities ---------- */
.bs-container {
  width: 100%;
  max-width: var(--bs-container);
  margin: 0 auto;
  padding: 0 var(--bs-s-3);
}

@media (min-width: 768px) {
  .bs-container {
    padding: 0 var(--bs-s-4);
  }
}

@media (min-width: 1024px) {
  .bs-container {
    padding: 0 var(--bs-s-6);
  }
}

.bs-section {
  padding: var(--bs-s-6) 0;
}

@media (min-width: 1024px) {
  .bs-section {
    padding: var(--bs-s-8) 0;
  }
}

.bs-section--tight {
  padding: var(--bs-s-5) 0;
}

.bs-stack>*+* {
  margin-top: var(--bs-s-3);
}

.bs-flex {
  display: flex;
}

.bs-grid {
  display: grid;
}

.bs-text-center {
  text-align: center;
}

.bs-muted {
  color: var(--bs-muted);
}

/* ---------- Section headers (editorial) ---------- */
.bs-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--bs-s-4);
  margin-bottom: var(--bs-s-5);
  flex-wrap: wrap;
}

.bs-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 600;
  color: var(--bs-accent-ink);
  margin-bottom: var(--bs-s-2);
}

.bs-h2 {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--bs-ink);
  margin: 0;
}

.bs-h2 .bs-h2-rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--bs-accent);
  margin-top: var(--bs-s-3);
  border-radius: 2px;
}

.bs-section-link {
  color: var(--bs-brand);
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--bs-dur) var(--bs-ease);
}

.bs-section-link:hover {
  border-color: var(--bs-brand);
}

.bs-section-link::after {
  content: " →";
}

/* ---------- Buttons ---------- */
.bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bs-s-2);
  padding: 12px 22px;
  border-radius: var(--bs-r-sm);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease),
    transform var(--bs-dur) var(--bs-ease);
  font-family: var(--bs-font-body);
  text-decoration: none;
  white-space: nowrap;
}

.bs-btn:focus-visible {
  outline: 2px solid var(--bs-accent);
  outline-offset: 2px;
}

.bs-btn-primary {
  background: var(--bs-brand);
  color: #fff;
  border-color: var(--bs-brand);
}

.bs-btn-primary:hover {
  background: var(--bs-brand-ink);
  border-color: var(--bs-brand-ink);
  color: #fff;
}

.bs-btn-ghost {
  background: transparent;
  color: var(--bs-ink);
  border-color: var(--bs-border-strong);
}

.bs-btn-ghost:hover {
  background: var(--bs-surface-2);
  color: var(--bs-ink);
}

.bs-btn-onmedia {
  background: rgba(255, 255, 255, .94);
  color: var(--bs-ink);
  border-color: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
}

.bs-btn-onmedia:hover {
  background: #fff;
  color: var(--bs-brand-ink);
}

.bs-btn-block {
  width: 100%;
}

.bs-btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- Hero — quiet editorial (image only, no overlay) ---------- */
/* ============================================================
   HERO CAROUSEL — full-width, fixed height, dark-green overlay
   Uses the existing .intro-carousel / Owl Carousel structure
   ============================================================ */

.bs-hero-carousel {
  display: block;
  background: #1F362D;
}

/* Fixed height on every slide */
.bs-hero-carousel .intro-content {
  position: relative;
  height: 560px !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
}

@media (max-width: 991px) {
  .bs-hero-carousel .intro-content {
    height: 420px !important;
  }
}

@media (max-width: 575px) {
  .bs-hero-carousel .intro-content {
    height: 300px !important;
  }
}

/* Dark green gradient overlay */
.bs-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 36, 28, .72) 0%, rgba(20, 36, 28, .45) 55%, rgba(20, 36, 28, .12) 100%),
    linear-gradient(180deg, rgba(20, 36, 28, .10) 0%, rgba(20, 36, 28, .40) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Container inside slide */
.bs-slide-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Text content block — always left-aligned */
.bs-slide-content {
  max-width: 520px;
  text-align: left !important;
}

/* Subtitle */
.bs-hero-carousel .intro-content .subtitle {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C9A961 !important;
  margin-bottom: 10px;
}

/* Title */
.bs-hero-carousel .intro-content .title {
  font-family: 'Fraunces', 'Lora', 'Times New Roman', serif;
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.12;
  color: #FFFFFF !important;
  margin: 0 0 14px;
}

/* Description */
.bs-hero-carousel .intro-content .text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82) !important;
  max-width: 420px;
  margin: 0 0 24px;
}

/* CTA Button */
.bs-slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 8px;
  padding: 12px 28px;
  background: #C9A961;
  color: #1C1917 !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
  vertical-align: middle;
}

.bs-slide-btn:hover {
  background: transparent;
  color: #C9A961 !important;
  border-color: #C9A961;
}

.bs-slide-btn i {
  font-size: 12px;
  transition: transform 200ms ease;
}

.bs-slide-btn:hover i {
  transform: translateX(3px);
}

/* Owl Carousel dots — positioned bottom center */
.bs-hero-carousel .owl-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.bs-hero-carousel .owl-dot span {
  display: block;
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .40);
  transition: width 300ms ease, background 300ms ease;
}

.bs-hero-carousel .owl-dot.active span {
  width: 48px;
  background: #C9A961;
}

/* Nav arrows (hidden by default but styled if enabled) */
.bs-hero-carousel .owl-prev,
.bs-hero-carousel .owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: background 200ms ease;
}

.bs-hero-carousel .owl-prev {
  left: 16px;
}

.bs-hero-carousel .owl-next {
  right: 16px;
}

.bs-hero-carousel .owl-prev:hover,
.bs-hero-carousel .owl-next:hover {
  background: rgba(201, 169, 97, .80);
}

/* Layer animation helpers — preserve existing main.js animation data-attrs */
.bs-hero-carousel .subtitle,
.bs-hero-carousel .title,
.bs-hero-carousel .text {
  animation-duration: .8s;
  animation-fill-mode: both;
}

/* ── Tablet (768–991px) ── */
@media (max-width: 991px) {
  .bs-slide-content {
    max-width: 55%;
  }

  .bs-hero-carousel .intro-content .title {
    font-size: 28px !important;
  }

  .bs-hero-carousel .intro-content .subtitle {
    font-size: 11px !important;
  }

  .bs-hero-carousel .intro-content .text {
    font-size: 13px !important;
  }
}

/* ── Mobile (≤767px) ──
   Use !important to override the 6-level-deep style.css rules that set
   title:36px and subtitle:24px with higher specificity. */
@media (max-width: 767px) {
  .bs-notice {
    display: none;
  }

  /* Show the full slider image at a natural 16:9 ratio (no vertical crop).
     Source banners are 16:9, so `cover` fills the box edge-to-edge. */
  .bs-hero-carousel .intro-content {
    height: auto !important;
    aspect-ratio: 16 / 9;
    align-items: center !important;
    padding-bottom: 0;
  }

  /* Left-aligned, vertically centered; constrained so it never overlaps covers */
  .bs-slide-content {
    max-width: 62%;
    text-align: left !important;
  }

  .bs-hero-carousel .intro-content .subtitle {
    font-size: 11px !important;
    letter-spacing: .10em;
    margin-bottom: 4px;
  }

  .bs-hero-carousel .intro-content .title {
    font-size: 19px !important;
    line-height: 1.22;
    margin-bottom: 10px;
  }

  /* Hide the long description on mobile — keeps the hero clean and the
     full image visible. */
  .bs-hero-carousel .layer-2,
  .bs-hero-carousel .intro-content .text {
    display: none !important;
  }

  .bs-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 9px 18px;
    font-size: 12px;
    gap: 0;
  }

  .bs-slide-btn i {
    display: none;
  }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .bs-hero-carousel .intro-content {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .bs-slide-content {
    max-width: 60%;
  }

  .bs-hero-carousel .intro-content .subtitle {
    font-size: 10px !important;
  }

  .bs-hero-carousel .intro-content .title {
    font-size: 17px !important;
  }

  .bs-slide-btn {
    padding: 8px 15px;
    font-size: 11.5px;

  }

  .bs-slide-container {
    height: 100%
  }
}

/* ============================================================
   HERO (legacy quiet-image variant — kept intact)
   ============================================================ */

.bs-hero-quiet {
  display: block;
  background: var(--bs-bg);
}

.bs-hero-quiet-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bs-surface-2);
}

.bs-hero-quiet-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 700ms var(--bs-ease);
}

.bs-hero-quiet-link:hover .bs-hero-quiet-img {
  transform: scale(1.015);
}

@media (prefers-reduced-motion: reduce) {
  .bs-hero-quiet-link:hover .bs-hero-quiet-img {
    transform: none;
  }
}

/* ---------- Hero (legacy overlay variant — kept in case other pages use it) ---------- */
.bs-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2A4A3E 0%, #1F362D 60%, #15261F 100%);
  color: #FAF7F2;
  isolation: isolate;
}

.bs-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.bs-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 30, 25, .30) 0%, rgba(20, 30, 25, .55) 60%, rgba(20, 30, 25, .78) 100%),
    linear-gradient(90deg, rgba(20, 30, 25, .55) 0%, rgba(20, 30, 25, .10) 50%, rgba(20, 30, 25, .0) 100%);
}

.bs-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 14vw, 200px) 0 clamp(64px, 10vw, 140px);
}

.bs-hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  font-weight: 600;
  color: var(--bs-accent);
  margin-bottom: var(--bs-s-3);
}

.bs-hero-title {
  font-family: var(--bs-font-display);
  font-weight: 400;
  font-size: clamp(36px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 var(--bs-s-3);
  max-width: 18ch;
}

.bs-hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--bs-accent);
}

.bs-hero-sub {
  max-width: 52ch;
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(250, 247, 242, .85);
  margin: 0 0 var(--bs-s-5);
  line-height: 1.55;
}

.bs-hero-actions {
  display: flex;
  gap: var(--bs-s-3);
  flex-wrap: wrap;
}

/* ---------- Trust strip ---------- */
.bs-trust {
  background: var(--bs-surface);
  border-top: 1px solid var(--bs-border);
  border-bottom: 1px solid var(--bs-border);
}

.bs-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--bs-s-2) var(--bs-s-5);
  padding: var(--bs-s-3) 0;
}

.bs-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--bs-s-2);
  font-size: 13px;
  color: var(--bs-ink-muted);
  letter-spacing: .01em;
}

.bs-trust-pill i,
.bs-trust-pill svg {
  color: var(--bs-brand);
  font-size: 16px;
}

/* ---------- Featured collections (editorial cards) ---------- */
.bs-collections {
  display: grid;
  gap: var(--bs-s-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .bs-collections {
    /* Columns follow the actual card count (capped at 3) so the row always
       fills — deactivating categories no longer leaves empty gaps. */
    grid-template-columns: repeat(var(--bs-coll-cols-md, 3), 1fr);
    gap: var(--bs-s-4);
  }
}

@media (min-width: 1024px) {
  .bs-collections {
    /* Columns follow the actual card count (capped at 6) instead of a fixed 6,
       so 4 or 5 featured categories still fill the row edge-to-edge. */
    grid-template-columns: repeat(var(--bs-coll-cols, 6), 1fr);
  }
}

.bs-collection {
  position: relative;
  display: block;
  border-radius: var(--bs-r-md);
  overflow: hidden;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  aspect-ratio: 3/4;
  transition: transform var(--bs-dur) var(--bs-ease),
    box-shadow var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease);
}

.bs-collection:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-sh-hover);
  border-color: var(--bs-border-strong);
}

.bs-collection-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95);
  transition: transform 600ms var(--bs-ease);
}

.bs-collection:hover .bs-collection-img {
  transform: scale(1.04);
}

.bs-collection-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 100%);
}

.bs-collection-meta {
  position: absolute;
  left: var(--bs-s-3);
  right: var(--bs-s-3);
  bottom: var(--bs-s-3);
  color: #fff;
}

.bs-collection-name {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.15;
  margin: 0 0 2px;
  letter-spacing: -.01em;
}

.bs-collection-count {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .82;
}

/* ---------- Product grid ---------- */
.bs-product-grid {
  display: grid;
  gap: var(--bs-s-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .bs-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bs-s-4);
  }
}

@media (min-width: 1024px) {
  .bs-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Horizontal rail (used for second dynamic section) */
.bs-rail-wrap {
  position: relative;
}

.bs-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--bs-s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--bs-s-3);
  padding: var(--bs-s-1) var(--bs-s-1) var(--bs-s-3);
  scrollbar-width: thin;
  scrollbar-color: var(--bs-border-strong) transparent;
}

.bs-rail>* {
  scroll-snap-align: start;
}

.bs-rail::-webkit-scrollbar {
  height: 8px;
}

.bs-rail::-webkit-scrollbar-thumb {
  background: var(--bs-border-strong);
  border-radius: 4px;
}

@media (min-width: 768px) {
  .bs-rail {
    grid-auto-columns: 38%;
    gap: var(--bs-s-4);
  }
}

@media (min-width: 1024px) {
  .bs-rail {
    grid-auto-columns: 24%;
  }
}

/* ---------- Product card ---------- */
.bs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  overflow: hidden;
  transition: transform var(--bs-dur) var(--bs-ease),
    box-shadow var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease);
  box-shadow: var(--bs-sh-rest);
  isolation: isolate;
}

.bs-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bs-sh-hover);
  border-color: var(--bs-border-strong);
}

.bs-card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.bs-card-link:hover {
  color: inherit;
  text-decoration: none;
}

/* Image area: 3:4 with white inner padding so book covers breathe */
.bs-card-imgwrap {
  position: relative;
  background: #fff;
  padding: var(--bs-s-4);
  aspect-ratio: 1/1.1;
  overflow: hidden;
  border-bottom: 1px solid var(--bs-border);
}

.bs-card-imgwrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(28, 25, 23, .06), transparent 60%);
  pointer-events: none;
}

.bs-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms var(--bs-ease);
  position: relative;
  z-index: 1;
}

.bs-card:hover .bs-card-img {
  transform: scale(1.03);
}

/* Badges */
.bs-badge {
  position: absolute;
  top: var(--bs-s-3);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: var(--bs-r-sm);
  z-index: 3;
  line-height: 1;
}

.bs-badge-sale {
  left: var(--bs-s-3);
  background: var(--bs-danger);
  color: #fff;
}

.bs-badge-new {
  left: var(--bs-s-3);
  background: var(--bs-ink);
  color: #fff;
}

.bs-badge-cond {
  right: var(--bs-s-3);
  background: rgba(255, 255, 255, .95);
  color: var(--bs-ink);
  border: 1px solid var(--bs-border);
}

.bs-badge-feat {
  position: static;
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--bs-r-pill);
  font-weight: 600;
  color: #fff;
}

.bs-badge-stack {
  position: absolute;
  left: var(--bs-s-3);
  top: var(--bs-s-3);
  z-index: 3;
  max-width: 70%;
}

/* Hover icon strip (right side of image) */
.bs-card-actions {
  position: absolute;
  top: 50%;
  right: -48px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4;
  transition: right var(--bs-dur) var(--bs-ease),
    opacity var(--bs-dur) var(--bs-ease);
  opacity: 0;
}

.bs-card:hover .bs-card-actions,
.bs-card:focus-within .bs-card-actions {
  right: var(--bs-s-2);
  opacity: 1;
}

.bs-action {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--bs-ink);
  border: 1px solid var(--bs-border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  transition: background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
}

.bs-action:hover {
  background: var(--bs-brand);
  color: #fff;
  border-color: var(--bs-brand);
}

/* Card body */
.bs-card-body {
  padding: var(--bs-s-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.bs-card-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  color: var(--bs-ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(15px * 1.25 * 2);
  letter-spacing: -.005em;
}

.bs-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--bs-muted);
}

.bs-stars {
  position: relative;
  display: inline-block;
  width: 76px;
  height: 14px;
  color: var(--bs-border-strong);
}

.bs-stars-empty,
.bs-stars-full {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 1px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
}

.bs-stars-empty::before,
.bs-stars-full::before {
  content: "★★★★★";
}

.bs-stars-full {
  color: var(--bs-accent);
  width: 0;
}

.bs-card-pricerow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.bs-price {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--bs-ink);
  letter-spacing: -.01em;
}

.bs-price-old {
  font-size: 13px;
  color: var(--bs-muted);
  text-decoration: line-through;
}

/* Card CTA */
.bs-card-cta {
  margin: 0 var(--bs-s-3) var(--bs-s-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bs-s-2);
  padding: 10px 14px;
  background: var(--bs-surface);
  color: var(--bs-ink);
  border: 1px solid var(--bs-border-strong);
  border-radius: var(--bs-r-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease);
}

.bs-card-cta:hover {
  background: var(--bs-brand);
  color: #fff;
  border-color: var(--bs-brand);
}

.bs-card-cta--out {
  background: transparent;
  color: var(--bs-danger);
  border-color: var(--bs-danger);
  cursor: not-allowed;
  pointer-events: none;
}

.bs-card-cta--out:hover {
  background: transparent;
  color: var(--bs-danger);
  border-color: var(--bs-danger);
}

/* ---------- Editorial banner ---------- */
.bs-editorial {
  position: relative;
  border-radius: var(--bs-r-lg);
  overflow: hidden;
  min-height: 180px !important;
  /* min-height: 300px; */
  isolation: isolate;
  background: var(--bs-surface-2);
}

@media (min-width: 1024px) {
  .bs-editorial {
    min-height: 420px;
  }
}

.bs-editorial-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 800ms var(--bs-ease);
}

.bs-editorial:hover .bs-editorial-img {
  transform: scale(1.03);
}

.bs-editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20, 25, 22, .65) 0%, rgba(20, 25, 22, .35) 50%, rgba(20, 25, 22, .05) 100%);
}

.bs-editorial-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: var(--bs-s-6);
  color: #fff;
  max-width: 560px;
  min-height: inherit;
}

.bs-editorial-eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  font-weight: 600;
  color: var(--bs-accent);
  margin-bottom: var(--bs-s-3);
}

.bs-editorial-title {
  font-family: var(--bs-font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 var(--bs-s-3);
}

/* ---------- Promo split (two banners) ---------- */
.bs-split {
  display: grid;
  gap: var(--bs-s-3);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bs-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--bs-s-4);
  }
}

.bs-split-tile {
  position: relative;
  display: block;
  border-radius: var(--bs-r-lg);
  overflow: hidden;
  aspect-ratio: 16/3;
  background: var(--bs-surface-2);
  transition: transform var(--bs-dur) var(--bs-ease),
    box-shadow var(--bs-dur) var(--bs-ease);
  box-shadow: var(--bs-sh-rest);
}

.bs-split-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-sh-hover);
}

.bs-split-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--bs-ease);
}

.bs-split-tile:hover img {
  transform: scale(1.04);
}

/* ---------- About / value props ---------- */
.bs-values {
  display: grid;
  gap: var(--bs-s-4);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bs-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bs-value {
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  padding: var(--bs-s-5);
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-2);
  transition: transform var(--bs-dur) var(--bs-ease),
    box-shadow var(--bs-dur) var(--bs-ease);
}

.bs-value:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-sh-card);
}

.bs-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--bs-s-2);
}

.bs-value-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bs-value-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.005em;
  margin: 0;
}

.bs-value-text {
  color: var(--bs-ink-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- WhatsApp floater ---------- */
.bs-wa {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35), 0 4px 10px rgba(0, 0, 0, .12);
  font-size: 28px;
  transition: transform var(--bs-dur) var(--bs-ease),
    box-shadow var(--bs-dur) var(--bs-ease);
}

.bs-wa:hover {
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  box-shadow: 0 14px 36px rgba(37, 211, 102, .45), 0 6px 14px rgba(0, 0, 0, .14);
}

@media (min-width: 1024px) {
  .bs-wa {
    bottom: 28px;
    right: 28px;
  }
}

/* ---------- Loader strip (kept for AJAX placeholders) ---------- */
.bs-loader-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--bs-s-6) 0;
}

/* ---------- Urdu support ---------- */
.bs-urdu {
  font-family: var(--bs-font-urdu);
  font-size: 18px;
  line-height: 2;
  font-weight: 400;
}

/* ---------- Focus visibility ---------- */
.bs-page :focus-visible {
  outline: 2px solid var(--bs-accent);
  outline-offset: 2px;
  border-radius: var(--bs-r-sm);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

  .bs-page *,
  .bs-page *::before,
  .bs-page *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .bs-card:hover {
    transform: none;
  }

  .bs-card:hover .bs-card-img {
    transform: none;
  }

  .bs-collection:hover {
    transform: none;
  }

  .bs-collection:hover .bs-collection-img {
    transform: none;
  }

  .bs-editorial:hover .bs-editorial-img {
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {

  .bs-hero,
  .bs-trust,
  .bs-wa,
  .bs-card-actions,
  .bs-card-cta {
    display: none !important;
  }

  .bs-page {
    background: #fff;
    color: #000;
  }

  .bs-card {
    break-inside: avoid;
    border-color: #999;
    box-shadow: none;
  }

  .bs-section {
    padding: 16px 0;
  }
}

/* =============================================================================
   LAYOUT SYSTEM — Header, Topbar, Categories nav, Footer, Modals, Drawer
   Applies site-wide via the new layout. Old class hooks like .my-dropdown,
   .carticon, .profilearea, .bottomtotop, #prod_name, #myInputautocomplete-list
   are preserved for the legacy JS that binds to them.
   ============================================================================= */

/* Body baseline */
body.bs-body {
  margin: 0;
  background: var(--bs-bg);
  color: var(--bs-ink);
  font-family: var(--bs-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.bs-body img {
  max-width: 100%;
  height: auto;
}

/* Skip link */
.bs-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--bs-brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 0 var(--bs-r-sm) 0;
  font-size: 14px;
}

.bs-skip:focus {
  left: 0;
  color: #fff;
}

/* ---------- Topbar (slim utility bar) ---------- */
.bs-topbar {
  background: var(--bs-ink);
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.bs-topbar a {
  color: inherit;
  text-decoration: none;
}

.bs-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bs-s-3);
  min-height: 36px;
  padding-top: 4px;
  padding-bottom: 4px;
  flex-wrap: wrap;
}

.bs-topbar-msg {
  flex: 1 1 auto;
  text-align: center;
  color: rgba(255, 255, 255, .92);
  font-size: 12.5px;
  letter-spacing: .03em;
  min-width: 0;
}

.bs-topbar-msg :is(a, span) {
  color: inherit;
}

.bs-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--bs-s-3);
  flex-wrap: wrap;
}

.bs-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .85);
  transition: color var(--bs-dur) var(--bs-ease);
}

.bs-topbar-link:hover {
  color: var(--bs-accent);
}

.bs-topbar-sep {
  color: rgba(255, 255, 255, .35);
}

.bs-topbar-sell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--bs-r-pill);
  font-size: 12px;
  color: rgba(255, 255, 255, .92);
  transition: background var(--bs-dur) var(--bs-ease), border-color var(--bs-dur) var(--bs-ease);
}

.bs-topbar-sell:hover {
  background: var(--bs-accent);
  color: var(--bs-ink);
  border-color: var(--bs-accent);
}

/* Topbar selectors (language / currency) */
.bs-topbar-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, .85);
}

.bs-topbar-select>i,
.bs-topbar-select>.bs-topbar-select-prefix {
  font-size: 12px;
  opacity: .85;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.bs-topbar-select select,
.bs-topbar select.selectors,
.bs-topbar .bs-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  color: rgba(255, 255, 255, .88) !important;
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  height: 28px;
  padding: 0 18px 0 0;
  margin: 0;
  cursor: pointer;
  /* SVG chevron-down so we don't depend on legacy CSS or native arrows */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-opacity='0.7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-position: right 0 center !important;
  background-size: 9px 6px !important;
  background-repeat: no-repeat !important;
}

.bs-topbar select::-ms-expand {
  display: none;
}

.bs-topbar select option {
  color: var(--bs-ink);
  background: var(--bs-surface);
}

.bs-topbar select:focus {
  color: #fff !important;
}

@media (max-width: 767px) {
  .bs-topbar-msg {
    display: none;
  }

  .bs-topbar-inner {
    justify-content: space-between;
  }
}

/* ---------- Header ---------- */
.bs-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bs-surface);
  border-bottom: 1px solid var(--bs-border);
  transition: box-shadow var(--bs-dur) var(--bs-ease),
    background var(--bs-dur) var(--bs-ease);
}

.bs-header.is-scrolled {
  box-shadow: 0 1px 0 var(--bs-border), 0 8px 20px rgba(28, 25, 23, .04);
}

.bs-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--bs-s-4);
  padding: var(--bs-s-3) 0;
}

@media (max-width: 1023px) {
  .bs-header-inner {
    grid-template-columns: auto auto auto;
    grid-template-areas: "menu logo nav""search search search";
    gap: var(--bs-s-2);
    padding: var(--bs-s-2) 0;
  }

  .bs-header-menubtn {
    grid-area: menu;
  }

  .bs-header-logo {
    grid-area: logo;
    justify-self: center;
  }

  .bs-search {
    grid-area: search;
  }

  .bs-icon-nav {
    grid-area: nav;
  }
}

.bs-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bs-ink);
}

.bs-header-logo:hover {
  color: var(--bs-ink);
  text-decoration: none;
}

.bs-header-logo img {
  height: 60px !important;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.bs-logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
  border-left: 1px solid var(--bs-border);
  padding-left: 12px;
}

.bs-logo-name {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .14em;
  color: var(--bs-ink);
  text-transform: uppercase;
}

.bs-logo-tag {
  font-family: var(--bs-font-body);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .26em;
  color: var(--bs-muted);
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .bs-header-logo img {
    height: 38px;
  }

  .bs-logo-text {
    padding-left: 10px;
    gap: 2px;
  }

  .bs-logo-name {
    font-size: 16px;
    letter-spacing: .12em;
  }

  .bs-logo-tag {
    font-size: 8.5px;
    letter-spacing: .22em;
  }
}

@media (max-width: 575px) {
  .bs-logo-text {
    display: none;
  }
}

.bs-header-menubtn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-header-menubtn:hover {
  background: var(--bs-surface-2);
}

.bs-header-menubtn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--bs-ink);
  transition: transform var(--bs-dur) var(--bs-ease), opacity var(--bs-dur) var(--bs-ease);
}

@media (max-width: 1023px) {
  .bs-header-menubtn {
    display: inline-flex;
  }
}

/* ---------- Search ---------- */
.bs-search {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 44px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-pill);
  overflow: visible;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  transition: border-color var(--bs-dur) var(--bs-ease),
    box-shadow var(--bs-dur) var(--bs-ease);
}

.bs-search:focus-within {
  border-color: var(--bs-brand);
  box-shadow: 0 0 0 4px rgba(42, 74, 62, .08);
}

.bs-search-cats {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--bs-border);
  padding: 0 28px 0 18px;
  font: inherit;
  font-size: 13px;
  color: var(--bs-ink-muted);
  cursor: pointer;
  max-width: 160px;
  border-radius: var(--bs-r-pill) 0 0 var(--bs-r-pill);
  background-image: linear-gradient(45deg, transparent 50%, var(--bs-ink-muted) 50%),
    linear-gradient(135deg, var(--bs-ink-muted) 50%, transparent 50%);
  background-position: right 12px top 50%, right 8px top 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}

.bs-search-cats:focus {
  outline: none;
  color: var(--bs-ink);
}

@media (max-width: 767px) {
  .bs-search-cats {
    display: none;
  }
}

.bs-search-input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  color: var(--bs-ink);
  min-width: 0;
}

.bs-search-input::placeholder {
  color: var(--bs-muted);
}

.bs-search-input:focus {
  outline: none;
}

.bs-search-btn {
  border: 0;
  background: var(--bs-brand);
  color: #fff;
  width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border-radius: 0 var(--bs-r-pill) var(--bs-r-pill) 0;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-search-btn:hover {
  background: var(--bs-brand-ink);
}

/* Live suggestions */
.bs-search .autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
}

.bs-search .autocomplete-items {
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  box-shadow: var(--bs-sh-hover);
  max-height: 360px;
  overflow-y: auto;
  padding: 4px;
}

.bs-search .autocomplete-items:empty {
  display: none;
}

.bs-search .autocomplete-items .docname {
  border-bottom: 1px solid var(--bs-border);
}

.bs-search .autocomplete-items .docname:last-child {
  border-bottom: 0;
}

.bs-search .autocomplete-items .docname>a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--bs-r-sm);
  font-size: 14px;
  color: var(--bs-ink);
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-search .autocomplete-items .docname>a:hover {
  background: var(--bs-surface-2);
  color: var(--bs-ink);
}

.bs-search .autocomplete-items .docname img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bs-surface-2);
  flex-shrink: 0;
}

.bs-search .autocomplete-items .docname .search-content {
  min-width: 0;
  flex: 1;
}

.bs-search .autocomplete-items .docname .search-content p {
  margin: 0 0 2px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--bs-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-search .autocomplete-items .docname .search-content b {
  color: var(--bs-brand);
  font-weight: 600;
}

.bs-search .autocomplete-items .docname .search-content span {
  color: var(--bs-ink-muted);
  font-size: 12.5px !important;
  font-weight: 600;
}

.bs-search .autocomplete-items #view-all-btn {
  border-top: 1px solid var(--bs-border);
  border-bottom: 0;
  padding: 8px;
  background: transparent;
  cursor: pointer;
}

.bs-search .autocomplete-items #view-all-btn .btn,
.bs-search .autocomplete-items #view-all-btn a,
.bs-search .autocomplete-items #view-all-btn #view-all {
  display: block;
  width: 100%;
  text-align: center;
  /* padding: 11px 14px; */
  margin: 0;
  background: var(--bs-brand);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--bs-r-sm);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-search .autocomplete-items #view-all-btn:hover {
  background: transparent;
}

.bs-search .autocomplete-items #view-all-btn:hover .btn,
.bs-search .autocomplete-items #view-all-btn:hover a,
.bs-search .autocomplete-items #view-all-btn:hover #view-all {
  background: var(--bs-brand-ink);
  color: #fff !important;
}

/* ============================================================
   SEARCH DISCOVERY PANEL — shown on focus with empty input
   ============================================================ */

.bs-search-discovery {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  color: #1C1917;
  border: 1px solid #E7E2D9;
  border-radius: var(--bs-r-md);
  box-shadow: var(--bs-sh-hover);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 200ms var(--bs-ease), transform 200ms var(--bs-ease);
  overflow: hidden;
}

.bs-search-discovery.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bs-sd-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 0;
}

/* Left column divider */
.bs-sd-col--cats {
  padding: 16px 14px 16px 16px;
  border-right: 1px solid var(--bs-border);
}

.bs-sd-col--sellers {
  padding: 16px;
  min-width: 0;
}

/* Section labels */
.bs-sd-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8B7338;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bs-sd-star {
  color: var(--bs-accent);
  font-size: 12px;
}

/* Right column header */
.bs-sd-col-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bs-sd-col-hd .bs-sd-label {
  margin-bottom: 0;
}

.bs-sd-viewall {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bs-brand);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--bs-dur) var(--bs-ease);
}

.bs-sd-viewall:hover {
  color: var(--bs-accent-ink);
  text-decoration: underline;
}

/* Category chips */
.bs-sd-chips {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bs-sd-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--bs-r-sm);
  text-decoration: none;
  color: #1C1917;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--bs-dur) var(--bs-ease), color var(--bs-dur) var(--bs-ease);
  outline: none;
}

.bs-sd-chip:hover,
.bs-sd-chip:focus {
  background: #F4EFE6;
  color: #2A4A3E;
}

.bs-sd-chip-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.bs-sd-chip-icon i {
  font-size: 13px;
  color: #2A4A3E;
  transition: color 200ms ease;
}

.bs-sd-chip:hover .bs-sd-chip-icon i,
.bs-sd-chip:focus .bs-sd-chip-icon i {
  color: #C9A961;
}

.bs-sd-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Book cards grid */
.bs-sd-books {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bs-sd-book {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--bs-r-sm);
  text-decoration: none;
  color: #1C1917;
  border: 1px solid transparent;
  transition: background var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease);
  min-width: 0;
  outline: none;
}

.bs-sd-book:hover,
.bs-sd-book:focus {
  background: #F4EFE6;
  border-color: #E7E2D9;
}

.bs-sd-book-img {
  width: 38px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--bs-surface-2);
}

.bs-sd-book-info {
  min-width: 0;
  flex: 1;
}

.bs-sd-book-seller {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #78716C;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-sd-book-name {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #1C1917;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bs-sd-book-price {
  font-size: 12.5px;
  font-weight: 700;
  color: #2A4A3E;
  margin: 0;
}

/* Skeleton loader */
.bs-sd-skeleton {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bs-sd-skel-card {
  height: 68px;
  border-radius: var(--bs-r-sm);
  background: linear-gradient(90deg, var(--bs-surface-2) 25%, var(--bs-border) 50%, var(--bs-surface-2) 75%);
  background-size: 200% 100%;
  animation: bsSkelShimmer 1.4s ease infinite;
}

@keyframes bsSkelShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Error / empty state */
.bs-sd-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px 8px;
  color: #78716C;
  font-size: 13px;
}

.bs-sd-retry {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bs-brand);
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: underline;
}

/* RTL */
[dir="rtl"] .bs-sd-inner {
  direction: rtl;
}

[dir="rtl"] .bs-sd-col--cats {
  border-right: 0;
  border-left: 1px solid var(--bs-border);
}

/* Tablet (641–900px): keep 2-col but tighten spacing */
@media (max-width: 900px) and (min-width: 641px) {
  .bs-sd-inner {
    grid-template-columns: 175px 1fr;
  }

  .bs-sd-books {
    grid-template-columns: 1fr;
  }
}

/* Mobile: single column stack */
@media (max-width: 640px) {
  .bs-search-discovery {
    /* On mobile the search bar is narrower; panel fills it */
    border-radius: var(--bs-r-md);
  }

  .bs-sd-inner {
    grid-template-columns: 1fr;
  }

  .bs-sd-col--cats {
    border-right: 0;
    border-bottom: 1px solid var(--bs-border);
    padding: 14px;
  }

  .bs-sd-col--sellers {
    padding: 14px;
  }

  .bs-sd-chips {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .bs-sd-chip {
    padding: 6px 12px;
    border: 1px solid #E7E2D9;
    border-radius: var(--bs-r-pill);
    font-size: 12.5px;
  }

  .bs-sd-chip:hover,
  .bs-sd-chip:focus {
    border-color: #2A4A3E;
    background: #E8EFEA;
  }

  /* Horizontally scrollable book row on mobile */
  .bs-sd-books {
    grid-template-columns: repeat(2, 140px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    /* hide scrollbar */
    scrollbar-width: none;
  }

  .bs-sd-books::-webkit-scrollbar {
    display: none;
  }

  .bs-sd-book {
    scroll-snap-align: start;
  }

  .bs-sd-skeleton {
    grid-template-columns: repeat(2, 140px);
    overflow: hidden;
  }
}

/* ---------- Icon nav (cart) ---------- */
.bs-icon-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--bs-s-2);
}

/* Track-order link — discreet text link with icon, sits left of the cart */
.bs-track-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--bs-r-pill);
  color: var(--bs-ink-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease);
}

.bs-track-link i {
  font-size: 16px;
  line-height: 1;
  color: var(--bs-brand);
}

.bs-track-link:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
  text-decoration: none;
}

@media (max-width: 1023px) {
  .bs-track-link {
    padding: 0 8px;
    height: 40px;
  }

  .bs-track-link span {
    display: none;
  }
}

.bs-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--bs-ink);
  background: transparent;
  border: 1px solid transparent;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease),
    transform var(--bs-dur) var(--bs-ease);
  text-decoration: none;
}

.bs-icon-btn:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
  border-color: var(--bs-border);
  text-decoration: none;
}

.bs-icon-btn .bs-icon-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bs-accent);
  color: var(--bs-ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
  border: 2px solid var(--bs-surface);
  font-family: var(--bs-font-body);
}

.bs-icon-btn-wrap {
  position: relative;
  display: inline-block;
}

/* Cart — primary action, slightly bigger and visually weighted */
.bs-icon-btn.bs-icon-btn--cart {
  width: 52px;
  height: 52px;
  background: var(--bs-brand-soft);
  border-color: transparent;
  color: var(--bs-brand);
  font-size: 22px;
}

.bs-icon-btn.bs-icon-btn--cart:hover {
  background: var(--bs-brand);
  color: #fff;
  border-color: var(--bs-brand);
  transform: translateY(-1px);
}

.bs-icon-btn.bs-icon-btn--cart .bs-icon-count {
  top: -2px;
  right: -2px;
  background: var(--bs-accent);
  color: var(--bs-ink);
  border-color: var(--bs-surface);
}

@media (max-width: 1023px) {
  .bs-icon-btn.bs-icon-btn--cart {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}

/* Cart popover (uses legacy .my-dropdown-menu for JS toggle on mobile) */
.bs-cart-pop {
  position: absolute;
  top: calc(100%);
  right: 0;
  width: min(360px, 92vw);
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  box-shadow: var(--bs-sh-hover);
  padding: var(--bs-s-3);
  z-index: 60;
  display: none;
  font-size: 13.5px;
}

.bs-icon-btn-wrap.my-dropdown .bs-cart-pop.show,
.bs-icon-btn-wrap .bs-cart-pop.show {
  display: block;
}

@media (min-width: 992px) {

  .bs-icon-btn-wrap:hover>.bs-cart-pop,
  .bs-icon-btn-wrap:focus-within>.bs-cart-pop {
    display: block;
  }
}

/* Cart popover content (load.cart.blade.php structure) */
.bs-cart-pop .dropdownmenu-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.bs-cart-pop .dropdown-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--bs-s-2);
  border-bottom: 1px solid var(--bs-border);
  font-size: 12.5px;
  color: var(--bs-ink-muted);
}

.bs-cart-pop .dropdown-cart-header .item-no {
  font-weight: 500;
  color: var(--bs-ink);
}

.bs-cart-pop .dropdown-cart-header .item-no .cart-quantity {
  color: var(--bs-brand);
}

.bs-cart-pop .dropdown-cart-header .view-cart {
  color: var(--bs-brand);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}

.bs-cart-pop .dropdown-cart-header .view-cart:hover {
  color: var(--bs-brand-ink);
  text-decoration: none;
}

.bs-cart-pop .dropdown-cart-products {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-2);
}

.bs-cart-pop .dropdown-cart-products .product {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: var(--bs-r-sm);
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-cart-pop .dropdown-cart-products .product:hover {
  background: var(--bs-surface-2);
}

.bs-cart-pop .dropdown-cart-products .product-details {
  flex: 1 1 auto;
  min-width: 0;
}

.bs-cart-pop .dropdown-cart-products .product-details a {
  color: var(--bs-ink);
  text-decoration: none;
}

.bs-cart-pop .dropdown-cart-products .product-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.3;
  margin: 0 0 2px;
  color: var(--bs-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bs-cart-pop .dropdown-cart-products .cart-product-info {
  font-size: 12.5px;
  color: var(--bs-ink-muted);
}

.bs-cart-pop .dropdown-cart-products .product-image-container {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--bs-surface-2);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
}

.bs-cart-pop .dropdown-cart-products .product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bs-cart-pop .dropdown-cart-products .cart-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  color: var(--bs-danger);
  font-size: 10px;
  cursor: pointer;
  border: 1px solid var(--bs-border);
}

.bs-cart-pop .dropdown-cart-products .cart-remove:hover {
  background: var(--bs-danger);
  color: #fff;
  border-color: var(--bs-danger);
}

.bs-cart-pop .dropdown-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--bs-s-2);
  border-top: 1px solid var(--bs-border);
  font-size: 13px;
  color: var(--bs-ink-muted);
}

.bs-cart-pop .dropdown-cart-total .cart-total-price {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--bs-ink);
}

.bs-cart-pop .dropdown-cart-action .mybtn1 {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--bs-brand);
  color: #fff !important;
  /* padding: 11px 14px; */
  border-radius: var(--bs-r-sm);
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-cart-pop .dropdown-cart-action .mybtn1:hover {
  background: var(--bs-brand-ink);
  color: #fff !important;
  text-decoration: none;
}

.bs-cart-pop>p {
  margin: 0;
  text-align: center;
  color: var(--bs-muted);
  font-size: 13.5px;
  padding: var(--bs-s-3) 0;
}

/* Profile popover — hidden by default; legacy JS mouseover/out toggles it */
.bs-profile-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  box-shadow: var(--bs-sh-hover);
  padding: 6px;
  z-index: 60;
  display: none;
}

.profilearea.my-dropdown:hover>.bs-profile-pop,
.profilearea.my-dropdown:focus-within>.bs-profile-pop {
  display: block;
}

.bs-profile-pop .profile-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bs-profile-pop .profile-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--bs-r-sm);
  font-size: 13.5px;
  color: var(--bs-ink);
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-profile-pop .profile-links a:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
}

.bs-profile-pop .profile-links i {
  color: var(--bs-muted);
  font-size: 11px;
}

/* ---------- Category nav (under header) ---------- */
.bs-catnav {
  border-top: 1px solid var(--bs-border);
  background: var(--bs-surface);
}

.bs-catnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--bs-s-5);
  flex-wrap: wrap;
  /* No overflow-x:auto here — it silently clips overflow-y in browsers,
     which hides the .bs-catnav-mega dropdowns. */
}

.bs-catnav-item {
  position: relative;
  flex-shrink: 0;
}

.bs-catnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  color: var(--bs-ink);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .005em;
  border-bottom: 2px solid transparent;
  transition: color var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease);
  text-decoration: none;
  white-space: nowrap;
}

.bs-catnav-link:hover,
.bs-catnav-item:hover>.bs-catnav-link {
  color: var(--bs-brand);
  border-bottom-color: var(--bs-brand);
}

.bs-catnav-link i {
  font-size: 10px;
  opacity: .6;
}

.bs-catnav-track {
  margin-left: auto;
}

.bs-catnav-track .bs-catnav-link {
  color: var(--bs-brand);
}

/* Mega panel */
.bs-catnav-mega {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  box-shadow: var(--bs-sh-hover);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--bs-dur) var(--bs-ease),
    transform var(--bs-dur) var(--bs-ease),
    visibility var(--bs-dur);
  z-index: 70;
}

.bs-catnav-item:hover>.bs-catnav-mega,
.bs-catnav-item:focus-within>.bs-catnav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bs-catnav-mega ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bs-catnav-mega li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--bs-r-sm);
  color: var(--bs-ink);
  font-size: 13.5px;
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-catnav-mega li a:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
}

@media (max-width: 1023px) {
  .bs-catnav {
    display: none;
  }
}

/* ---------- Mobile drawer ---------- */
.bs-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 18, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--bs-dur) var(--bs-ease), visibility var(--bs-dur);
  z-index: 100;
}

.bs-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.bs-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--bs-surface);
  z-index: 110;
  transform: translateX(-100%);
  transition: transform 280ms var(--bs-ease);
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 32px rgba(0, 0, 0, .18);
}

.bs-drawer.is-open {
  transform: translateX(0);
}

.bs-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bs-s-3) var(--bs-s-4);
  border-bottom: 1px solid var(--bs-border);
}

.bs-drawer-head h3 {
  margin: 0;
  font-family: var(--bs-font-display);
  font-size: 20px;
  font-weight: 500;
}

.bs-drawer-close {
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--bs-ink);
  padding: 6px 10px;
}

.bs-drawer-body {
  padding: var(--bs-s-3) 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.bs-drawer-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bs-drawer-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--bs-s-4);
  font-size: 14.5px;
  color: var(--bs-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--bs-border);
}

.bs-drawer-body a:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
}

.bs-drawer-sub a {
  padding-left: var(--bs-s-6);
  font-size: 13.5px;
  color: var(--bs-ink-muted);
}

.bs-drawer-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--bs-muted);
  padding: var(--bs-s-3) var(--bs-s-4) 6px;
}

body.bs-drawer-open {
  overflow: hidden;
}

/* ---------- Notification ticker (calm announcement bar) ---------- */
.bs-notice {
  background: var(--bs-brand);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-align: center;
  padding: 8px var(--bs-s-3);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.bs-notice :is(a, span, strong) {
  color: inherit;
}

/* ---------- Main wrapper ---------- */
.bs-main {
  min-height: 50vh;
}

/* ---------- Footer ---------- */
.bs-footer {
  background: var(--bs-ink);
  color: rgba(250, 247, 242, .78);
  margin-top: var(--bs-s-8);
}

.bs-footer a {
  color: inherit;
  text-decoration: none;
}

.bs-footer a:hover {
  color: var(--bs-accent);
  text-decoration: none;
}

.bs-footer-top {
  padding: var(--bs-s-7) 0 var(--bs-s-6);
}

.bs-footer-cols {
  display: grid;
  gap: var(--bs-s-5);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bs-footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bs-s-6);
  }
}

@media (min-width: 1024px) {
  .bs-footer-cols {
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  }
}

.bs-footer-brand-logo img {
  height: 56px;
  width: auto;
  /* filter: brightness(0) invert(1); */
  margin-bottom: var(--bs-s-3);
}

.bs-footer-about {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(250, 247, 242, .66);
  max-width: 38ch;
  margin: 0 0 var(--bs-s-3);
}

.bs-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.bs-footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .78);
  transition: background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease);
  font-size: 14px;
}

.bs-footer-social a:hover {
  background: var(--bs-accent);
  border-color: var(--bs-accent);
  color: var(--bs-ink);
}

.bs-footer-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--bs-s-3);
}

.bs-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bs-footer-links a {
  font-size: 13.5px;
  color: rgba(250, 247, 242, .7);
  display: inline-block;
  transition: color var(--bs-dur) var(--bs-ease), padding-left var(--bs-dur) var(--bs-ease);
}

.bs-footer-links a:hover {
  color: var(--bs-accent);
  padding-left: 4px;
}

.bs-footer-newsletter p {
  font-size: 13.5px;
  color: rgba(250, 247, 242, .7);
  margin: 0 0 var(--bs-s-3);
  line-height: 1.6;
}

.bs-newsletter {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--bs-r-pill);
  padding: 4px;
  max-width: 360px;
}

.bs-newsletter input[type="email"] {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  padding: 8px 14px;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  min-width: 0;
}

.bs-newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, .45);
}

.bs-newsletter input[type="email"]:focus {
  outline: none;
}

.bs-newsletter button {
  background: var(--bs-accent);
  color: var(--bs-ink);
  border: 0;
  border-radius: var(--bs-r-pill);
  padding: 8px 18px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-newsletter button:hover {
  background: #d4b572;
}

.bs-footer-pay {
  margin-top: var(--bs-s-3);
  max-width: 220px;
  opacity: .85;
}

.bs-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: var(--bs-s-3) 0;
  background: rgba(0, 0, 0, .18);
}

.bs-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bs-s-3);
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(250, 247, 242, .6);
}

.bs-footer-bottom-inner p {
  margin: 0;
}

.bs-footer-bottom-inner :is(strong, a) {
  color: rgba(250, 247, 242, .85);
}

.bs-footer-copy {
  line-height: 1.5;
}

.bs-footer-copy p {
  margin: 0;
}

@media (max-width: 767px) {
  .bs-footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Footer language + currency switchers ---------- */
.bs-prefs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bs-prefs-dd {
  position: relative;
  display: inline-block;
}

.bs-prefs-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--bs-r-pill);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease);
}

.bs-prefs-trigger:hover,
.bs-prefs-dd.is-open .bs-prefs-trigger {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

.bs-prefs-trigger>i,
.bs-prefs-trigger>svg {
  font-size: 12px;
  flex-shrink: 0;
  opacity: .85;
  transition: transform var(--bs-dur) var(--bs-ease);
}

.bs-prefs-trigger .bs-prefs-sign {
  font-family: var(--bs-font-display);
  font-weight: 600;
  color: var(--bs-accent);
}

.bs-prefs-trigger .bs-prefs-label {
  display: inline-block;
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bs-prefs-dd.is-open .bs-prefs-caret {
  transform: rotate(180deg);
}

.bs-prefs-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bs-surface);
  color: var(--bs-ink);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .3);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--bs-dur) var(--bs-ease),
    transform var(--bs-dur) var(--bs-ease),
    visibility var(--bs-dur);
}

.bs-prefs-dd.is-open .bs-prefs-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bs-prefs-menu li {
  margin: 0;
  padding: 0;
}

.bs-prefs-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--bs-r-sm);
  color: var(--bs-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease);
}

.bs-prefs-menu a:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
}

.bs-prefs-menu a.is-active {
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
}

.bs-prefs-menu a.is-active i {
  color: var(--bs-brand);
  font-size: 11px;
}

@media (max-width: 575px) {
  .bs-prefs {
    gap: 6px;
  }

  .bs-prefs-trigger {
    padding: 0 12px;
    height: 32px;
    font-size: 12px;
  }
}

/* ---------- Back to top ---------- */
.bs-totop {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  color: var(--bs-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bs-sh-rest);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--bs-dur) var(--bs-ease),
    transform var(--bs-dur) var(--bs-ease),
    background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease);
  z-index: 80;
}

.bs-totop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bs-totop:hover {
  background: var(--bs-brand);
  color: #fff;
  border-color: var(--bs-brand);
}

@media (min-width: 1024px) {
  .bs-totop {
    bottom: 100px;
    right: 28px;
  }
}

/* ---------- Modals (override Bootstrap shell on .bs-modal) ---------- */
.bs-modal .modal-content {
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.bs-modal .modal-header {
  border-bottom: 0;
  padding: var(--bs-s-3) var(--bs-s-4) 0;
}

.bs-modal .modal-header h6,
.bs-modal .modal-header .modal-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -.005em;
  color: var(--bs-ink);
}

.bs-modal .modal-body {
  padding: var(--bs-s-3) var(--bs-s-5) var(--bs-s-5);
}

.bs-modal .close,
.bs-modal .btn-close {
  font-size: 22px;
  line-height: 1;
  color: var(--bs-ink-muted);
  opacity: 1;
  background: transparent;
  border: 0;
  transition: color var(--bs-dur) var(--bs-ease);
}

.bs-modal .close:hover {
  color: var(--bs-ink);
}

/* Forms inside modals — login/register/forgot/vendor */
.bs-modal .header-area .title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.005em;
  color: var(--bs-ink);
  margin: 0 0 var(--bs-s-2);
}

.bs-modal .header-area .text {
  color: var(--bs-muted);
  font-size: 13.5px;
  margin: 0 0 var(--bs-s-3);
}

.bs-modal .form-input {
  position: relative;
  margin-bottom: var(--bs-s-3);
}

.bs-modal .form-input input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-sm);
  background: var(--bs-surface);
  font-size: 14px;
  font-family: var(--bs-font-body);
  color: var(--bs-ink);
  transition: border-color var(--bs-dur) var(--bs-ease),
    box-shadow var(--bs-dur) var(--bs-ease);
}

.bs-modal .form-input input::placeholder {
  color: var(--bs-muted);
}

.bs-modal .form-input input:focus {
  outline: none;
  border-color: var(--bs-brand);
  box-shadow: 0 0 0 3px rgba(42, 74, 62, .08);
}

.bs-modal .form-input>i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-muted);
  font-size: 14px;
}

.bs-modal .submit-btn {
  width: 100%;
  background: var(--bs-brand);
  color: #fff;
  border: 0;
  padding: 13px 16px;
  border-radius: var(--bs-r-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background var(--bs-dur) var(--bs-ease);
  font-family: var(--bs-font-body);
}

.bs-modal .submit-btn:hover {
  background: var(--bs-brand-ink);
}

.bs-modal .form-forgot-pass {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 var(--bs-s-3);
  font-size: 13px;
}

.bs-modal .form-forgot-pass a {
  color: var(--bs-brand);
}

.bs-modal .form-forgot-pass a:hover {
  color: var(--bs-brand-ink);
}

.bs-modal .comment-log-reg-tabmenu .nav-tabs {
  border-bottom: 1px solid var(--bs-border);
  display: flex;
  gap: var(--bs-s-4);
  margin-bottom: var(--bs-s-4);
}

.bs-modal .comment-log-reg-tabmenu .nav-link {
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--bs-muted);
  border-bottom: 2px solid transparent;
}

.bs-modal .comment-log-reg-tabmenu .nav-link.active {
  color: var(--bs-ink);
  border-bottom-color: var(--bs-brand);
  background: transparent;
}

.bs-modal .social-area {
  margin-top: var(--bs-s-4);
  text-align: center;
  border-top: 1px solid var(--bs-border);
  padding-top: var(--bs-s-3);
}

.bs-modal .social-area .title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-ink);
  margin: 0 0 4px;
}

.bs-modal .social-area .text {
  font-size: 12.5px;
  color: var(--bs-muted);
  margin: 0 0 var(--bs-s-2);
}

.bs-modal .social-area .social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.bs-modal .social-area .social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-surface-2);
  color: var(--bs-ink);
  transition: background var(--bs-dur) var(--bs-ease), color var(--bs-dur) var(--bs-ease);
}

.bs-modal .social-area .social-links a:hover {
  background: var(--bs-brand);
  color: #fff;
}

.bs-modal .captcha-area {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--bs-s-3);
}

.bs-modal .captcha-area img {
  border-radius: var(--bs-r-sm);
  border: 1px solid var(--bs-border);
}

.bs-modal .pointer {
  cursor: pointer;
  color: var(--bs-muted);
  margin-left: 6px;
}

/* Track order modal */
.bs-modal .order-tracking-content {
  /* display: flex;  */
  gap: var(--bs-s-2);
  flex-wrap: wrap;
}

.bs-modal .order-tracking-content input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-sm);
  font: inherit;
}

.bs-modal .order-tracking-content button.mybtn1,
.bs-modal .order-tracking-content button[type="submit"] {
  width: 200px;
  height: 47px;
  background: var(--bs-brand);
  color: #fff;
  border: 0;
  border-radius: var(--bs-r-sm);
  /* padding: 12px 22px; */
  font-weight: 500;
  cursor: pointer;
}

/* ---------- Preloader (style only — JS still runs) ---------- */
.bs-body .preloader {
  background-color: var(--bs-bg) !important;
}

/* ---------- Hide legacy whatsapp-popup if present (we use bs-wa) ---------- */
body.bs-body .whatsapp-popup {
  display: none !important;
}

/* ---------- Extras: banner row, mini list, reviews, blog, partners ---------- */
.bs-banner-row {
  display: grid;
  gap: var(--bs-s-3);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bs-banner-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bs-s-4);
  }

  .bs-banner-row--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bs-editorial--plain::after {
  display: none;
}

.bs-editorial--plain .bs-editorial-img {
  object-position: center;
}

/* Mini-list quad columns (Hot/Latest/Trending/Sale) */
.bs-mini-grid {
  display: grid;
  gap: var(--bs-s-4);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bs-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bs-mini-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bs-mini-col {
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  padding: var(--bs-s-4);
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.bs-mini-head .bs-eyebrow {
  display: block;
}

.bs-mini-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.005em;
  color: var(--bs-ink);
  margin: 0;
  padding-bottom: var(--bs-s-2);
  border-bottom: 1px solid var(--bs-border);
}

.bs-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.bs-mini-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bs-ink);
}

.bs-mini-link:hover {
  color: var(--bs-brand);
  text-decoration: none;
}

.bs-mini-img {
  width: 56px;
  height: 72px;
  object-fit: contain;
  background: var(--bs-surface-2);
  border-radius: 4px;
  flex-shrink: 0;
  padding: 4px;
}

.bs-mini-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bs-mini-name {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.3;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bs-mini-price {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--bs-ink);
}

/* Reviews + blog two-up */
.bs-rev-grid {
  display: grid;
  gap: var(--bs-s-6);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .bs-rev-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bs-rev-col {
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.bs-rev-stack {
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-4);
}

.bs-rev {
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  padding: var(--bs-s-4);
  margin: 0;
}

.bs-rev-quote {
  font-family: var(--bs-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: var(--bs-ink);
  margin: 0 0 var(--bs-s-3);
  padding-left: 18px;
  border-left: 2px solid var(--bs-accent);
}

.bs-rev-cite {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
}

.bs-rev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.bs-rev-name {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--bs-ink);
}

.bs-rev-role {
  display: block;
  font-size: 12px;
  color: var(--bs-muted);
}

.bs-blog-stack {
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.bs-blog-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--bs-s-3);
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  overflow: hidden;
  transition: transform var(--bs-dur) var(--bs-ease),
    box-shadow var(--bs-dur) var(--bs-ease);
  text-decoration: none;
  color: inherit;
}

.bs-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-sh-card);
  color: inherit;
  text-decoration: none;
}

.bs-blog-img {
  background: var(--bs-surface-2);
}

.bs-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 130px;
}

.bs-blog-meta {
  padding: var(--bs-s-3) var(--bs-s-3) var(--bs-s-3) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bs-blog-date {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bs-muted);
}

.bs-blog-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  color: var(--bs-ink);
}

.bs-blog-excerpt {
  font-size: 13px;
  color: var(--bs-ink-muted);
  margin: 0;
  line-height: 1.5;
}

.bs-blog-read {
  color: var(--bs-brand);
  font-weight: 500;
  font-size: 13px;
}

@media (max-width: 575px) {
  .bs-blog-card {
    grid-template-columns: 1fr;
  }

  .bs-blog-meta {
    padding: 0 var(--bs-s-3) var(--bs-s-3);
  }
}

/* Partners */
.bs-section-head--center {
  justify-content: center;
  text-align: center;
}

.bs-section-head--center .bs-h2-rule {
  margin-left: auto;
  margin-right: auto;
}

.bs-partner-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bs-s-4);
  align-items: center;
}

@media (min-width: 768px) {
  .bs-partner-row {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bs-s-5);
  }
}

@media (min-width: 1024px) {
  .bs-partner-row {
    grid-template-columns: repeat(6, 1fr);
  }
}

.bs-partner-row li {
  display: flex;
  justify-content: center;
}

.bs-partner-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 8px 12px;
  filter: grayscale(1);
  opacity: .6;
  transition: filter var(--bs-dur) var(--bs-ease), opacity var(--bs-dur) var(--bs-ease);
}

.bs-partner-row a:hover {
  filter: grayscale(0);
  opacity: 1;
}

.bs-partner-row img {
  max-height: 100%;
  width: auto;
}

/* ---------- Responsive header tweaks ---------- */
@media (max-width: 1023px) {
  .bs-icon-nav {
    gap: 0;
  }

  .bs-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .bs-search {
    height: 42px;
  }

  .bs-search-btn {
    width: 46px;
  }
}

/* =============================================================================
   CATEGORY PAGE — head, breadcrumb, chips, toolbar, sidebar, drawer, pagination
   ============================================================================= */

/* Top progress bar */
.bs-topbar-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--bs-brand);
  z-index: 9999;
  transition: width 200ms ease-out, opacity 240ms ease;
  pointer-events: none;
  opacity: 0;
}

.bs-topbar-progress.is-active {
  opacity: 1;
}

/* Editorial header */
.bs-cat-head {
  padding: var(--bs-s-6) 0 var(--bs-s-4);
  border-bottom: 1px solid var(--bs-border);
}

.bs-breadcrumb {
  list-style: none;
  margin: 0 0 var(--bs-s-3);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bs-muted);
}

.bs-breadcrumb a {
  color: var(--bs-muted);
  text-decoration: none;
  transition: color var(--bs-dur) var(--bs-ease);
}

.bs-breadcrumb a:hover {
  color: var(--bs-brand);
}

.bs-breadcrumb li[aria-current] {
  color: var(--bs-ink);
}

.bs-breadcrumb li+li::before {
  content: "›";
  margin-right: 6px;
  color: var(--bs-border);
  font-size: 14px;
  line-height: 1;
}

.bs-cat-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.015em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--bs-ink);
}

.bs-cat-meta {
  font-size: 13.5px;
  color: var(--bs-ink-muted);
}

.bs-cat-meta strong {
  color: var(--bs-ink);
  font-weight: 600;
}

/* Toolbar */
.bs-cat-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bs-bg);
  padding: var(--bs-s-3) 0;
  border-bottom: 1px solid var(--bs-border);
  margin-bottom: var(--bs-s-4);
}

.bs-cat-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bs-s-3);
}

.bs-toolbar-left {
  display: inline-flex;
  align-items: center;
  gap: var(--bs-s-2);
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.bs-toolbar-right {
  display: inline-flex;
  align-items: center;
  gap: var(--bs-s-2);
  flex-wrap: wrap;
}

.bs-filter-trigger {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  color: var(--bs-ink);
  height: 38px;
  padding: 0 14px;
  border-radius: var(--bs-r-pill);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.bs-filter-trigger i {
  color: var(--bs-brand);
}

.bs-filter-trigger:hover {
  background: var(--bs-surface-2);
}

@media (max-width: 1023px) {
  .bs-filter-trigger {
    display: inline-flex;
  }
}

.bs-toolbar-count {
  font-size: 13px;
  color: var(--bs-ink-muted);
}

/* Active filter chips */
.bs-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
  padding: 4px 4px 4px 10px;
  border-radius: var(--bs-r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
}

.bs-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(42, 74, 62, .18);
  color: var(--bs-brand);
  border: 0;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.bs-chip-remove:hover {
  background: var(--bs-brand);
  color: #fff;
  text-decoration: none;
}

.bs-chip-clear {
  font-size: 12px;
  font-weight: 500;
  color: var(--bs-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bs-chip-clear:hover {
  color: var(--bs-danger);
  text-decoration-color: var(--bs-danger);
}

/* Sort + per-page selects */
.bs-toolbar-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-pill);
  height: 38px;
  padding: 0 12px 0 14px;
}

.bs-toolbar-select-wrap>label {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bs-muted);
  margin: 0;
}

.bs-toolbar-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--bs-ink);
  padding: 0 18px 0 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23292524' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: right 0 center;
  background-size: 9px 6px;
  background-repeat: no-repeat;
}

.bs-toolbar-select:focus {
  outline: none;
}

/* Two-column layout */
.bs-cat-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bs-s-5);
  padding-bottom: var(--bs-s-7);
}

@media (min-width: 1024px) {
  .bs-cat-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--bs-s-6);
  }
}

/* Sidebar (desktop) / Drawer (mobile) */
.bs-filters {
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  padding: var(--bs-s-3) var(--bs-s-4);
}

@media (min-width: 1024px) {
  .bs-filters {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

@media (max-width: 1023px) {
  .bs-filters {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(360px, 92vw);
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--bs-border);
    transform: translateX(-100%);
    transition: transform 280ms var(--bs-ease);
    z-index: 110;
    padding-top: var(--bs-s-2);
    overflow-y: auto;
  }

  .bs-filters.is-open {
    transform: translateX(0);
  }
}

.bs-filters-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: var(--bs-s-2) var(--bs-s-3);
  border-bottom: 1px solid var(--bs-border);
  margin: calc(var(--bs-s-2) * -1) calc(var(--bs-s-4) * -1) var(--bs-s-3);
}

.bs-filters-head h3 {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 18px;
  margin: 0;
}

.bs-filters-close {
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--bs-ink);
  cursor: pointer;
  padding: 6px 10px;
}

@media (max-width: 1023px) {
  .bs-filters-head {
    display: flex;
  }
}

/* Filter group */
.bs-filter-group {
  padding: var(--bs-s-3) 0;
  border-bottom: 1px solid var(--bs-border);
}

.bs-filter-group:last-child {
  border-bottom: 0;
}

.bs-filter-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--bs-ink);
}

.bs-filter-group__title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bs-ink);
}

.bs-filter-group__caret {
  width: 10px;
  height: 6px;
  color: var(--bs-muted);
  transition: transform var(--bs-dur) var(--bs-ease);
  flex-shrink: 0;
}

.bs-filter-group.is-collapsed .bs-filter-group__caret {
  transform: rotate(-90deg);
}

.bs-filter-group__body {
  padding-top: var(--bs-s-3);
  display: block;
  max-height: 280px;
  overflow-y: auto;
}

.bs-filter-group.is-collapsed .bs-filter-group__body {
  display: none;
}

/* Categories tree inside filter */
.bs-cat-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bs-cat-tree a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--bs-r-sm);
  color: var(--bs-ink);
  font-size: 13.5px;
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease), color var(--bs-dur) var(--bs-ease);
}

.bs-cat-tree a:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
  text-decoration: none;
}

.bs-cat-tree a.is-active {
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
  font-weight: 500;
}

.bs-cat-tree .bs-cat-tree__sub {
  padding-left: var(--bs-s-3);
  list-style: none;
  margin: 4px 0 0;
  padding-top: 0;
}

/* Checklist (attribute filters) */
.bs-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bs-checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--bs-ink-muted);
  cursor: pointer;
  padding: 4px 0;
  margin: 0;
  transition: color var(--bs-dur) var(--bs-ease);
}

.bs-checklist label:hover {
  color: var(--bs-brand);
}

.bs-checklist input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--bs-border);
  border-radius: 3px;
  background: var(--bs-surface);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background var(--bs-dur) var(--bs-ease), border-color var(--bs-dur) var(--bs-ease);
}

.bs-checklist input[type="checkbox"]:checked {
  background: var(--bs-brand);
  border-color: var(--bs-brand);
}

.bs-checklist input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 1px 4px 4px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.bs-attr-group+.bs-attr-group {
  margin-top: var(--bs-s-3);
}

.bs-attr-group__name {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-muted);
  margin: 0 0 8px;
  font-weight: 600;
}

/* Price range */
.bs-price-range {
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.bs-price-range__inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bs-price-range__inputs input[type="number"] {
  flex: 1 1 0;
  width: 100%;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-sm);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--bs-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}

.bs-price-range__inputs input[type="number"]::-webkit-outer-spin-button,
.bs-price-range__inputs input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bs-price-range__inputs input[type="number"]:focus {
  outline: none;
  border-color: var(--bs-brand);
  box-shadow: 0 0 0 3px rgba(42, 74, 62, .08);
}

.bs-price-range__sep {
  color: var(--bs-muted);
  font-size: 13px;
}

.bs-price-range__btn {
  background: var(--bs-brand);
  color: #fff;
  border: 0;
  border-radius: var(--bs-r-sm);
  padding: 9px 14px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-price-range__btn:hover {
  background: var(--bs-brand-ink);
}

/* jQuery-UI slider override */
.bs-price-slider.ui-slider {
  background: var(--bs-border);
  border: 0;
  border-radius: 999px;
  height: 4px;
  position: relative;
  margin: 8px 12px 0;
}

.bs-price-slider .ui-slider-range {
  background: var(--bs-brand);
  border-radius: 999px;
}

.bs-price-slider .ui-slider-handle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bs-brand);
  top: -7px;
  margin-left: -8px;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.bs-price-slider .ui-slider-handle:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(42, 74, 62, .15);
}

/* Results column */
.bs-cat-results {
  position: relative;
  min-height: 300px;
}

/* Catalog cards: 3-col on tablet+, never 4 (the 280px sidebar shrinks
   the content track and a 4-col layout makes cards too small) */
.bs-cat-results #ajaxContent .bs-product-grid,
#ajaxContent .bs-product-grid,
.bs-cat-results .bs-product-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bs-s-3);
}

@media (min-width: 768px) {

  .bs-cat-results #ajaxContent .bs-product-grid,
  #ajaxContent .bs-product-grid,
  .bs-cat-results .bs-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {

  .bs-cat-results #ajaxContent .bs-product-grid,
  #ajaxContent .bs-product-grid,
  .bs-cat-results .bs-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bs-cat-results .bs-card-imgwrap {
  padding: 14px;
}

.bs-cat-results .bs-card-body {
  padding: 12px 14px;
  gap: 6px;
}

.bs-cat-results .bs-card-cta {
  padding: 10px 14px;
  font-size: 12px;
}

/* Empty state */
.bs-empty {
  text-align: center;
  padding: var(--bs-s-7) var(--bs-s-4);
  border: 1px dashed var(--bs-border);
  border-radius: var(--bs-r-md);
  background: var(--bs-surface);
}

.bs-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-surface-2);
  color: var(--bs-brand);
  font-size: 22px;
  margin-bottom: var(--bs-s-3);
}

.bs-empty__title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--bs-ink);
  margin: 0 0 6px;
}

.bs-empty__text {
  color: var(--bs-ink-muted);
  font-size: 14px;
  margin: 0 0 var(--bs-s-3);
}

/* Pagination override */
.bs-pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--bs-s-5);
  padding-top: var(--bs-s-4);
  border-top: 1px solid var(--bs-border);
}

.bs-pagination-wrap nav {
  display: block;
}

.bs-pagination-wrap .pagination {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}

.bs-pagination-wrap .pagination .page-item {
  display: inline-flex;
}

.bs-pagination-wrap .pagination .page-item .page-link,
.bs-pagination-wrap .pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--bs-r-sm);
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  color: var(--bs-ink);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease);
}

.bs-pagination-wrap .pagination .page-link:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
  border-color: var(--bs-border);
  text-decoration: none;
}

.bs-pagination-wrap .pagination .active .page-link,
.bs-pagination-wrap .pagination .page-item.active .page-link {
  background: var(--bs-brand);
  color: #fff;
  border-color: var(--bs-brand);
}

.bs-pagination-wrap .pagination .disabled .page-link,
.bs-pagination-wrap .pagination .page-item.disabled .page-link {
  color: var(--bs-muted);
  background: var(--bs-surface);
  cursor: not-allowed;
  opacity: .6;
}

@media (max-width: 575px) {
  .bs-cat-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .bs-toolbar-left, .bs-toolbar-right {
    width: 100%;
  }

  .bs-toolbar-right {
    justify-content: space-between;
  }

  .bs-toolbar-select-wrap {
    flex: 1;
  }
}

/* =============================================================================
   PRODUCT PAGE — gallery, info, tabs, related, sticky CTA bar, reviews
   ============================================================================= */
.bs-page--product {
  padding-bottom: 0;
}

.bs-page--product .bs-prod-crumb {
  padding: var(--bs-s-4) 0 var(--bs-s-2);
}

/* Hero grid */
.bs-prod {
  padding: var(--bs-s-3) 0 var(--bs-s-7);
  border-bottom: 1px solid var(--bs-border);
}

.bs-prod-grid {
  display: grid;
  gap: var(--bs-s-5);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .bs-prod-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--bs-s-7);
    align-items: start;
  }
}

/* Gallery */
.bs-prod-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.bs-prod-main {
  position: relative;
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-prod-main .xzoom5,
.bs-prod-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: var(--bs-s-4);
}

@media (min-width: 1024px) {
  .bs-prod-gallery {
    position: sticky;
    top: 90px;
  }
}

.bs-prod-thumbs.xzoom-thumbs,
.bs-prod-thumbs {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
}

.bs-prod-thumbs .all-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.bs-prod-thumbs .all-slider::-webkit-scrollbar {
  height: 4px;
}

.bs-prod-thumbs .all-slider::-webkit-scrollbar-thumb {
  background: var(--bs-border);
  border-radius: 4px;
}

.bs-prod-thumbs .bs-prod-thumb,
.bs-prod-thumbs>.all-slider>a {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-sm);
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color var(--bs-dur) var(--bs-ease),
    box-shadow var(--bs-dur) var(--bs-ease),
    transform var(--bs-dur) var(--bs-ease);
  cursor: pointer;
  text-decoration: none;
}

.bs-prod-thumbs .bs-prod-thumb img,
.bs-prod-thumbs>.all-slider>a img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 6px;
  width: auto !important;
  height: auto !important;
}

.bs-prod-thumbs .bs-prod-thumb:hover,
.bs-prod-thumbs>.all-slider>a:hover {
  border-color: var(--bs-brand);
  transform: translateY(-1px);
}

.bs-prod-thumbs .bs-prod-thumb.is-active,
.bs-prod-thumbs>.all-slider>a.is-active {
  border-color: var(--bs-brand);
  box-shadow: 0 0 0 2px rgba(42, 74, 62, .15);
}

/* Video play badge if youtube present */
.bs-prod-video-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bs-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 5;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(42, 74, 62, .3);
}

.bs-prod-video-badge:hover {
  background: var(--bs-brand-ink);
  color: #fff;
  text-decoration: none;
}

/* Info column */
.bs-prod-info {
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.bs-prod-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bs-brand);
  text-decoration: none;
}

.bs-prod-eyebrow:hover {
  color: var(--bs-brand-ink);
  text-decoration: none;
}

.bs-prod-name {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--bs-ink);
  margin: 0;
}

.bs-prod-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bs-prod-rating .ratings {
  display: inline-flex;
}

.bs-prod-rating .review-count {
  color: var(--bs-ink-muted);
  font-size: 13px;
}

.bs-prod-rating .review-count a {
  color: var(--bs-brand);
  text-decoration: none;
}

.bs-prod-rating .review-count a:hover {
  text-decoration: underline;
}

.bs-prod-rating .mybadge,
.bs-prod-rating .mybadge1 {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bs-prod-rating .mybadge {
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
}

.bs-prod-rating .mybadge1 {
  background: rgba(184, 50, 39, .1);
  color: var(--bs-danger);
}

.bs-prod-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
}

.bs-prod-stock-badge.is-instock {
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
}

.bs-prod-stock-badge.is-out {
  background: rgba(184, 50, 39, .1);
  color: var(--bs-danger);
}

.bs-prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: var(--bs-s-2) 0;
}

.bs-prod-price {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -.01em;
  color: var(--bs-ink);
  line-height: 1;
}

.bs-prod-price-was {
  font-size: 17px;
  color: var(--bs-muted);
  text-decoration: line-through;
}

.bs-prod-price-save {
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.bs-prod-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bs-s-3);
  font-size: 13px;
  color: var(--bs-ink-muted);
  padding-bottom: var(--bs-s-2);
  border-bottom: 1px solid var(--bs-border);
}

.bs-prod-meta-row strong {
  color: var(--bs-ink);
  font-weight: 600;
}

/* Variant blocks */
.bs-prod-variant {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bs-prod-variant-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-ink);
  margin: 0;
}

.bs-prod-variant-label>strong {
  font-weight: 600;
  color: var(--bs-ink-muted);
  margin-left: 4px;
}

/* Sizes (chips) — preserves .siz-list .active */
.bs-page--product .siz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bs-page--product .siz-list li {
  margin: 0 !important;
}

.bs-page--product .siz-list li .box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 14px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bs-ink);
  cursor: pointer;
  transition: border-color var(--bs-dur) var(--bs-ease),
    background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease);
}

.bs-page--product .siz-list li:hover .box {
  border-color: var(--bs-brand);
}

.bs-page--product .siz-list li.active .box {
  background: var(--bs-brand);
  border-color: var(--bs-brand);
  color: #fff;
}

/* Color swatches */
.bs-page--product .color-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bs-page--product .color-list li {
  margin: 0 !important;
}

.bs-page--product .color-list li .box {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bs-surface);
  box-shadow: 0 0 0 1px var(--bs-border);
  cursor: pointer;
  transition: transform var(--bs-dur) var(--bs-ease), box-shadow var(--bs-dur) var(--bs-ease);
}

.bs-page--product .color-list li:hover .box {
  transform: scale(1.08);
}

.bs-page--product .color-list li.active .box {
  box-shadow: 0 0 0 2px var(--bs-brand);
}

/* Attribute radio chips */
.bs-attr-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bs-attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bs-attr-options .custom-control {
  position: relative;
  margin: 0;
  padding: 0;
}

.bs-attr-options .custom-control-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.bs-attr-options .custom-control-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bs-ink);
  cursor: pointer;
  transition: border-color var(--bs-dur) var(--bs-ease),
    background var(--bs-dur) var(--bs-ease),
    color var(--bs-dur) var(--bs-ease);
  margin: 0;
  user-select: none;
}

.bs-attr-options .custom-control-label::before,
.bs-attr-options .custom-control-label::after {
  display: none;
}

.bs-attr-options .custom-control-input:checked+.custom-control-label {
  background: var(--bs-brand);
  border-color: var(--bs-brand);
  color: #fff;
}

/* Quantity stepper */
.bs-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-sm);
  overflow: hidden;
  height: 48px;
  background: var(--bs-surface);
}

.bs-stepper>* {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.bs-stepper .qtminus,
.bs-stepper .qtplus {
  width: 44px;
  cursor: pointer;
  color: var(--bs-ink);
  user-select: none;
  font-size: 14px;
  background: var(--bs-surface);
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-stepper .qtminus:hover,
.bs-stepper .qtplus:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
}

.bs-stepper .qttotal {
  min-width: 44px;
  padding: 0 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--bs-ink);
  border-left: 1px solid var(--bs-border);
  border-right: 1px solid var(--bs-border);
}

/* CTA row (stepper + buttons) */
.bs-prod-cta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .bs-prod-cta-row {
    grid-template-columns: auto 1fr 1fr;
  }
}

.bs-prod-cta-row .bs-btn {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: var(--bs-r-sm);
  cursor: pointer;
  transition: background var(--bs-dur) var(--bs-ease), color var(--bs-dur) var(--bs-ease), border-color var(--bs-dur) var(--bs-ease);
  text-decoration: none;
  border: 1px solid transparent;
}

.bs-prod-cta-row .bs-btn-primary,
.bs-prod-cta-row #addcrt {
  background: var(--bs-brand);
  color: #fff;
  border-color: var(--bs-brand);
}

.bs-prod-cta-row .bs-btn-primary:hover,
.bs-prod-cta-row #addcrt:hover {
  background: var(--bs-brand-ink);
  border-color: var(--bs-brand-ink);
  color: #fff;
}

.bs-prod-cta-row .bs-btn-secondary,
.bs-prod-cta-row #qaddcrt {
  background: var(--bs-surface);
  color: var(--bs-ink);
  border-color: var(--bs-ink);
}

.bs-prod-cta-row .bs-btn-secondary:hover,
.bs-prod-cta-row #qaddcrt:hover {
  background: var(--bs-ink);
  color: #fff;
}

.bs-prod-cta-row .cart-out-of-stock {
  background: var(--bs-surface-2);
  color: var(--bs-muted);
  border-color: var(--bs-border);
  pointer-events: none;
}

/* Icon row (wishlist, compare, whatsapp) */
.bs-prod-iconrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bs-prod-iconbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-pill);
  color: var(--bs-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--bs-dur) var(--bs-ease), color var(--bs-dur) var(--bs-ease), border-color var(--bs-dur) var(--bs-ease);
}

.bs-prod-iconbtn i {
  color: var(--bs-brand);
}

.bs-prod-iconbtn:hover {
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
  border-color: var(--bs-brand);
  text-decoration: none;
}

.bs-prod-iconbtn--whatsapp i {
  color: #1ea651;
}

.bs-prod-iconbtn--whatsapp:hover {
  background: rgba(30, 166, 81, .08);
  color: #1ea651;
  border-color: #1ea651;
}

/* Trust strip in info column */
.bs-prod-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--bs-s-3) 0;
  border-top: 1px solid var(--bs-border);
  border-bottom: 1px solid var(--bs-border);
}

.bs-prod-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--bs-ink-muted);
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: 999px;
  padding: 4px 10px;
}

.bs-prod-trust i {
  color: var(--bs-brand);
  font-size: 11px;
}

.bs-prod-shipnote {
  font-size: 13px;
  color: var(--bs-ink-muted);
}

.bs-prod-shipnote strong {
  color: var(--bs-ink);
  font-weight: 600;
}

.bs-prod-report {
  font-size: 12px;
  color: var(--bs-muted);
}

.bs-prod-report a {
  color: var(--bs-muted);
  text-decoration: none;
}

.bs-prod-report a:hover {
  color: var(--bs-danger);
  text-decoration: underline;
}

/* Wholesale block */
.bs-prod-wholesale {
  margin-top: var(--bs-s-3);
  padding: var(--bs-s-3);
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
}

.bs-prod-wholesale h3 {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 var(--bs-s-2);
}

.bs-prod-wholesale table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bs-prod-wholesale th, .bs-prod-wholesale td {
  padding: 8px 0;
  border-bottom: 1px solid var(--bs-border);
  text-align: left;
}

.bs-prod-wholesale th {
  color: var(--bs-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ----- Tabs ----- */
.bs-prod-tabs-section {
  padding: var(--bs-s-7) 0;
}

.bs-prod-tabs .bs-prod-tablist {
  border-bottom: 1px solid var(--bs-border);
  margin-bottom: var(--bs-s-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.bs-prod-tabs .bs-prod-tablist::-webkit-scrollbar {
  display: none;
}

.bs-prod-tabs .bs-prod-tabs-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  gap: var(--bs-s-5);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.bs-prod-tabs .bs-prod-tabs-list>li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
}

.bs-prod-tabs .bs-prod-tab-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 0;
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--bs-ink-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  text-transform: none;
  letter-spacing: 0;
  background: transparent;
  transition: color var(--bs-dur) var(--bs-ease),
    border-color var(--bs-dur) var(--bs-ease);
}

.bs-prod-tabs .bs-prod-tab-link:hover {
  color: var(--bs-ink);
  text-decoration: none;
}

.bs-prod-tabs .bs-prod-tab-link.is-active {
  color: var(--bs-ink);
  border-bottom-color: var(--bs-brand);
}

.bs-prod-tabs .bs-prod-tab-content {
  position: relative;
}

.bs-prod-tabs .bs-prod-tab-panel {
  display: none;
  font-size: 14.5px;
  color: var(--bs-ink-muted);
  line-height: 1.7;
  animation: bsTabFade .25s ease;
  max-width: 80ch;
}

.bs-prod-tabs .bs-prod-tab-panel.is-active {
  display: block;
}

.bs-prod-tabs .bs-prod-tab-panel p {
  margin: 0 0 1em;
}

.bs-prod-tabs .bs-prod-tab-panel p:last-child {
  margin-bottom: 0;
}

.bs-prod-tabs .bs-prod-tab-panel :is(h1, h2, h3, h4) {
  font-family: var(--bs-font-display);
  font-weight: 500;
  color: var(--bs-ink);
  margin: 1.5em 0 .5em;
}

@keyframes bsTabFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reviews panel */
.bs-prod-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bs-s-3);
  padding-bottom: var(--bs-s-3);
  border-bottom: 1px solid var(--bs-border);
  margin-bottom: var(--bs-s-3);
}

.bs-prod-reviews-head .bs-prod-rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bs-prod-reviews-head .bs-prod-rating-num {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 36px;
  color: var(--bs-ink);
  line-height: 1;
}

.bs-prod-reviews-head .stars {
  color: var(--bs-accent);
  font-size: 15px;
}

.bs-prod-reviews-head .stars i {
  color: var(--bs-accent);
}

.bs-prod-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bs-brand);
  color: #fff;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--bs-r-pill);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.bs-prod-write-btn:hover {
  background: var(--bs-brand-ink);
  color: #fff;
  text-decoration: none;
}

.all-replay {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.all-replay>li {
  margin: 0;
}

.all-replay .single-review {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--bs-s-3);
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  padding: var(--bs-s-3) var(--bs-s-4);
}

.all-replay .left-area {
  text-align: center;
}

.all-replay .left-area img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 6px;
}

.all-replay .left-area .name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bs-ink);
  margin: 0;
  line-height: 1.2;
}

.all-replay .left-area .date {
  font-size: 11px;
  color: var(--bs-muted);
  margin: 2px 0 0;
}

.all-replay .right-area .header-area {
  margin-bottom: 6px;
}

.all-replay .right-area .review-body p {
  margin: 0;
  font-size: 14px;
  color: var(--bs-ink-muted);
  line-height: 1.6;
}

#review-form .review-area {
  padding: var(--bs-s-3) 0;
}

#review-form .review-area .title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 var(--bs-s-2);
}

#review-form .star-list {
  list-style: none;
  margin: 0 0 var(--bs-s-3);
  padding: 0;
  display: flex;
  gap: 4px;
}

#review-form .star-list .stars {
  color: var(--bs-border);
  cursor: pointer;
}

#review-form .star-list .stars.active {
  color: var(--bs-accent);
}

#review-form .write-comment-area {
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  padding: var(--bs-s-3);
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-2);
}

#review-form input[type="text"],
#review-form input[type="email"],
#review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-sm);
  font: inherit;
  font-size: 14px;
  background: var(--bs-surface);
  color: var(--bs-ink);
}

#review-form textarea {
  min-height: 100px;
  resize: vertical;
}

#review-form input:focus,
#review-form textarea:focus {
  outline: none;
  border-color: var(--bs-brand);
  box-shadow: 0 0 0 3px rgba(42, 74, 62, .08);
}

#review-form .submit-btn {
  align-self: flex-start;
  background: var(--bs-brand);
  color: #fff;
  border: 0;
  padding: 11px 22px;
  border-radius: var(--bs-r-sm);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

#review-form .submit-btn:hover {
  background: var(--bs-brand-ink);
}

/* Mobile sticky CTA bar */
.bs-prod-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--bs-surface);
  border-top: 1px solid var(--bs-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
  padding: 8px 0;
  transform: translateY(100%);
  transition: transform 240ms var(--bs-ease);
}

.bs-prod-stickybar.is-visible {
  transform: translateY(0);
}

.bs-prod-stickybar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bs-prod-stickybar-info {
  flex: 1;
  min-width: 0;
}

.bs-prod-stickybar-name {
  display: block;
  font-size: 12px;
  color: var(--bs-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-prod-stickybar-price {
  display: block;
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--bs-ink);
  line-height: 1.1;
}

.bs-prod-stickybar .bs-btn {
  height: 40px;
  padding: 0 18px;
  background: var(--bs-brand);
  color: #fff;
  border: 0;
  border-radius: var(--bs-r-sm);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bs-prod-stickybar .bs-btn:hover {
  background: var(--bs-brand-ink);
  color: #fff;
}

@media (min-width: 1024px) {
  .bs-prod-stickybar {
    display: none;
  }
}

@media (max-width: 1023px) {
  body.bs-prod-stickybar-active {
    padding-bottom: 72px;
  }
}

/* ----- Fullscreen image lightbox ----- */
.bs-prod-img {
  cursor: zoom-in;
}

.bs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 22, 18, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--bs-ease), visibility 240ms;
}

.bs-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.bs-lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 64px 80px;
}

@media (max-width: 767px) {
  .bs-lightbox-stage {
    padding: 56px 8px 64px;
  }
}

.bs-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-out;
  user-select: none;
  background: #fff;
  border-radius: var(--bs-r-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  transition: opacity 200ms var(--bs-ease);
}

.bs-lightbox.is-loading .bs-lightbox-img {
  opacity: 0;
}

.bs-lightbox-close,
.bs-lightbox-prev,
.bs-lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background var(--bs-dur) var(--bs-ease),
    transform var(--bs-dur) var(--bs-ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bs-lightbox-close:hover,
.bs-lightbox-prev:hover,
.bs-lightbox-next:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.bs-lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 22px;
}

.bs-lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.bs-lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.bs-lightbox-prev:hover {
  transform: translateY(-50%) scale(1.06);
}

.bs-lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.bs-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 575px) {

  .bs-lightbox-prev,
  .bs-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .bs-lightbox-prev {
    left: 8px;
  }

  .bs-lightbox-next {
    right: 8px;
  }

  .bs-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

body.bs-lightbox-open {
  overflow: hidden;
}

/* Related & vendor sections */
.bs-prod-related {
  padding: var(--bs-s-7) 0;
  border-top: 1px solid var(--bs-border);
}

.bs-prod-vendor {
  padding: 0 0 var(--bs-s-7);
}

/* =============================================================================
   CART PAGE — items + sticky summary + sticky mobile checkout + empty state
   ============================================================================= */

.bs-cart-page {
  padding-bottom: 0;
}

.bs-cart-head {
  padding: var(--bs-s-5) 0 var(--bs-s-4);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--bs-s-3);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--bs-border);
  margin-bottom: var(--bs-s-5);
}

.bs-cart-head h1 {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.015em;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--bs-ink);
}

.bs-cart-head .bs-cart-subtitle {
  color: var(--bs-ink-muted);
  font-size: 14px;
}

.bs-cart-continue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bs-brand);
  text-decoration: none;
}

.bs-cart-continue:hover {
  color: var(--bs-brand-ink);
  text-decoration: none;
}

/* Two-column grid */
.bs-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bs-s-5);
  padding-bottom: var(--bs-s-7);
}

@media (min-width: 1024px) {
  .bs-cart-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: var(--bs-s-6);
  }
}

/* ---------- Items column ---------- */
.bs-cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

.bs-cart-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--bs-s-3);
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  padding: var(--bs-s-3);
  position: relative;
  transition: opacity 200ms var(--bs-ease), transform 240ms var(--bs-ease), border-color var(--bs-dur) var(--bs-ease);
}

.bs-cart-item:hover {
  border-color: var(--bs-border-strong);
}

.bs-cart-item.is-removing {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.bs-cart-item.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .55);
  border-radius: var(--bs-r-md);
  pointer-events: none;
}

.bs-cart-item.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px;
  border: 2px solid var(--bs-border);
  border-top-color: var(--bs-brand);
  border-radius: 50%;
  animation: bsCartSpin .8s linear infinite;
  z-index: 2;
}

@keyframes bsCartSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .bs-cart-item {
    grid-template-columns: 110px 1fr auto;
    gap: var(--bs-s-4);
    align-items: start;
    padding: var(--bs-s-4);
  }
}

.bs-cart-item__image {
  width: 96px;
  height: 96px;
  background: var(--bs-surface-2);
  border-radius: var(--bs-r-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .bs-cart-item__image {
    width: 110px;
    height: 130px;
  }
}

.bs-cart-item__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 6px;
}

.bs-cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bs-cart-item__title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--bs-ink);
  margin: 0;
}

.bs-cart-item__title a {
  color: inherit;
  text-decoration: none;
}

.bs-cart-item__title a:hover {
  color: var(--bs-brand);
}

.bs-cart-item__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
}

.bs-cart-variant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bs-surface-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  color: var(--bs-ink-muted);
}

.bs-cart-variant strong {
  color: var(--bs-ink);
  font-weight: 600;
}

.bs-cart-variant .bs-cart-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--bs-border);
}

.bs-cart-item__price {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--bs-ink-muted);
  margin: 4px 0 0;
}

/* Per-row controls (qty + line total + remove) */
.bs-cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bs-s-3);
  padding-top: var(--bs-s-2);
  margin-top: 6px;
  border-top: 1px solid var(--bs-border);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .bs-cart-item__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    margin: 0;
    padding: 0;
    border-top: 0;
    gap: var(--bs-s-3);
    grid-column: auto;
  }
}

.bs-cart-line-total {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--bs-ink);
}

/* Stepper — preserves .adding/.reducing/.prodid/.itemid/.size_qty/.size_price
   so existing custom.js handlers work via parent().parent() */
.bs-cart-qty {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bs-cart-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-pill);
  background: var(--bs-surface);
  height: 40px;
  overflow: hidden;
}

.bs-cart-stepper>* {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.bs-cart-stepper .reducing,
.bs-cart-stepper .adding {
  width: 38px;
  cursor: pointer;
  color: var(--bs-ink);
  user-select: none;
  font-size: 12px;
  background: transparent;
  border: 0;
  transition: background var(--bs-dur) var(--bs-ease), color var(--bs-dur) var(--bs-ease);
}

.bs-cart-stepper .reducing:hover,
.bs-cart-stepper .adding:hover {
  background: var(--bs-surface-2);
  color: var(--bs-brand);
}

.bs-cart-stepper .qttotal1,
.bs-cart-stepper .bs-cart-qty-input {
  min-width: 40px;
  border: 0;
  border-left: 1px solid var(--bs-border);
  border-right: 1px solid var(--bs-border);
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-ink);
  padding: 0 6px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.bs-cart-stepper .bs-cart-qty-input::-webkit-outer-spin-button,
.bs-cart-stepper .bs-cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bs-cart-stepper .bs-cart-qty-input:focus {
  outline: none;
  background: var(--bs-surface-2);
}

.bs-cart-qty-stock {
  font-size: 11px;
  color: var(--bs-muted);
  text-align: center;
}

/* Remove button */
.bs-cart-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  color: var(--bs-muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--bs-r-sm);
  transition: color var(--bs-dur) var(--bs-ease), background var(--bs-dur) var(--bs-ease);
}

.bs-cart-remove i {
  font-size: 13px;
}

.bs-cart-remove:hover {
  color: var(--bs-danger);
  background: rgba(184, 50, 39, .06);
}

/* ---------- Summary column ---------- */
.bs-cart-summary {
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-md);
  padding: var(--bs-s-4);
  display: flex;
  flex-direction: column;
  gap: var(--bs-s-3);
}

@media (min-width: 1024px) {
  .bs-cart-summary {
    position: sticky;
    top: 90px;
    align-self: start;
  }
}

.bs-cart-summary-head h3 {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--bs-ink);
  margin: 0;
}

.bs-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--bs-s-2) 0 var(--bs-s-3);
  border-bottom: 1px solid var(--bs-border);
}

.bs-cart-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--bs-ink-muted);
}

.bs-cart-line strong,
.bs-cart-line b {
  font-weight: 600;
  color: var(--bs-ink);
}

.bs-cart-line.is-discount strong,
.bs-cart-line.is-discount b {
  color: var(--bs-brand);
}

.bs-cart-line.is-hidden {
  display: none;
}

.bs-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--bs-s-3) 0;
}

.bs-cart-total-row .bs-cart-total-label {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--bs-ink);
}

.bs-cart-total-row .bs-cart-total-value {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--bs-ink);
  letter-spacing: -.01em;
}

/* Promo code form */
.bs-cart-promo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bs-cart-promo-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-ink-muted);
}

.bs-cart-promo form {
  display: flex;
  gap: 0;
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-r-pill);
  overflow: hidden;
  height: 42px;
}

.bs-cart-promo input[type="text"],
.bs-cart-promo #code {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 13.5px;
  color: var(--bs-ink);
  min-width: 0;
}

.bs-cart-promo input:focus {
  outline: none;
}

.bs-cart-promo button {
  border: 0;
  background: var(--bs-ink);
  color: #fff;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-cart-promo button:hover {
  background: var(--bs-brand);
}

.bs-cart-promo-msg {
  font-size: 12.5px;
  margin: 0;
  display: none;
}

.bs-cart-promo-msg.is-success {
  display: block;
  color: var(--bs-brand);
}

.bs-cart-promo-msg.is-error {
  display: block;
  color: var(--bs-danger);
}

/* Checkout CTA */
.bs-cart-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bs-brand);
  color: #fff !important;
  height: 50px;
  border-radius: var(--bs-r-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--bs-dur) var(--bs-ease);
}

.bs-cart-checkout:hover {
  background: var(--bs-brand-ink);
  color: #fff;
  text-decoration: none;
}

/* Trust strip in summary */
.bs-cart-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: var(--bs-s-2);
  font-size: 11.5px;
  color: var(--bs-muted);
}

.bs-cart-trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bs-cart-trust i {
  color: var(--bs-brand);
}

/* ---------- Empty state ---------- */
.bs-cart-empty {
  text-align: center;
  padding: var(--bs-s-7) var(--bs-s-4);
  margin: var(--bs-s-5) auto;
  max-width: 520px;
  border: 1px dashed var(--bs-border);
  border-radius: var(--bs-r-md);
  background: var(--bs-surface);
}

.bs-cart-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-surface-2);
  color: var(--bs-brand);
  font-size: 26px;
  margin-bottom: var(--bs-s-3);
}

.bs-cart-empty__title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--bs-ink);
  margin: 0 0 8px;
}

.bs-cart-empty__text {
  color: var(--bs-ink-muted);
  font-size: 14px;
  margin: 0 0 var(--bs-s-3);
}

/* Override the legacy h3 fallback that custom.js inserts on full-empty */
.cart-table>h3 {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--bs-ink-muted);
  text-align: center !important;
  padding: var(--bs-s-5) 0 !important;
}

/* ---------- Mobile sticky checkout ---------- */
.bs-cart-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--bs-surface);
  border-top: 1px solid var(--bs-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
  padding: 8px 0;
  transform: translateY(0);
}

.bs-cart-stickybar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bs-cart-stickybar-info {
  flex: 1;
  min-width: 0;
}

.bs-cart-stickybar-label {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-muted);
}

.bs-cart-stickybar-total {
  display: block;
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--bs-ink);
  line-height: 1.1;
}

.bs-cart-stickybar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 22px;
  background: var(--bs-brand);
  color: #fff;
  border-radius: var(--bs-r-sm);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}

.bs-cart-stickybar-btn:hover {
  background: var(--bs-brand-ink);
  color: #fff;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .bs-cart-stickybar {
    display: none;
  }
}

@media (max-width: 1023px) {
  body.bs-cart-active {
    padding-bottom: 76px;
  }
}

/* =============================================================================
   CHECKOUT v2 — premium single-column flow, real floating labels, custom stepper
   No Bootstrap pills. No .nav-link/.tab-pane/.disabled inheritance from all.css.
   All hooks namespaced .bs-co-* to escape every legacy CSS rule.
   ============================================================================= */

/* Page wash — distinct warmer surface so checkout reads as its own context */
.bs-co-page {
  background: #FBF7F0;
  padding: 0 0 var(--bs-s-7);
}

/* Sticky top progress strip */
.bs-co-progress {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--bs-border);
  padding: 14px 0;
}

.bs-co-progress-inner {
  display: flex;
  align-items: center;
  gap: var(--bs-s-3);
  flex-wrap: wrap;
}

.bs-co-progress-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--bs-ink-muted);
  text-decoration: none;
  font-weight: 500;
}

.bs-co-progress-back:hover {
  color: var(--bs-brand);
  text-decoration: none;
}

/* Editorial hero strip */
.bs-co-hero {
  padding: var(--bs-s-6) 0 var(--bs-s-4);
  text-align: center;
}

.bs-co-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bs-brand);
  margin-bottom: 12px;
}

.bs-co-hero h1 {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 46px);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--bs-ink);
}

.bs-co-hero p {
  font-size: 14px;
  color: var(--bs-ink-muted);
  margin: 0;
}

/* New stepper (no Bootstrap pills) */
.bs-co-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: var(--bs-s-3) auto var(--bs-s-5);
  max-width: 720px;
  list-style: none;
  padding: 0;
}

.bs-co-step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bs-co-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--bs-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--bs-muted);
  transition: background .25s var(--bs-ease),
    border-color .25s var(--bs-ease),
    color .25s var(--bs-ease);
  flex-shrink: 0;
}

.bs-co-step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--bs-muted);
  white-space: nowrap;
}

.bs-co-step.is-active .bs-co-step-num {
  background: var(--bs-ink);
  border-color: var(--bs-ink);
  color: #fff;
}

.bs-co-step.is-active .bs-co-step-label {
  color: var(--bs-ink);
  font-weight: 600;
}

.bs-co-step.is-done .bs-co-step-num {
  background: var(--bs-brand);
  border-color: var(--bs-brand);
  color: #fff;
}

.bs-co-step.is-done .bs-co-step-num span {
  display: none;
}

.bs-co-step.is-done .bs-co-step-num::after {
  content: "\2713";
  font-size: 16px;
}

.bs-co-step.is-done {
  cursor: pointer;
}

.bs-co-step.is-done .bs-co-step-label {
  color: var(--bs-ink);
}

.bs-co-step-rule {
  flex: 1 1 auto;
  height: 2px;
  background: var(--bs-border);
  min-width: 32px;
  max-width: 80px;
  margin: 0 16px;
  border-radius: 2px;
  transition: background .25s var(--bs-ease);
}

.bs-co-step-rule.is-done {
  background: var(--bs-brand);
}

@media (max-width: 575px) {
  .bs-co-step-label {
    display: none;
  }

  .bs-co-step-rule {
    min-width: 16px;
    margin: 0 8px;
  }
}

/* Layout */
.bs-co-grid {
  display: grid;
  gap: var(--bs-s-5);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1024px) {
  .bs-co-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: var(--bs-s-6);
  }
}

.bs-co-form-col {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .bs-co-form-col {
    margin: 0;
  }
}

/* Step panels (custom — replaces .tab-pane.fade) */
.bs-co-step-panel {
  display: none;
}

.bs-co-step-panel.is-active {
  display: block;
  animation: bsCoSlide .28s var(--bs-ease);
}

@keyframes bsCoSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section card */
.bs-co-card {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: 0 1px 3px rgba(28, 25, 23, .03);
}

.bs-co-card+.bs-co-card {
  margin-top: 16px;
}

@media (max-width: 575px) {
  .bs-co-card {
    padding: 22px 18px;
  }
}

.bs-co-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.bs-co-card-head-titles {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.bs-co-card-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 13.5px;
  flex-shrink: 0;
}

.bs-co-card-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bs-co-card-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -.005em;
  color: var(--bs-ink);
  margin: 0;
  line-height: 1.25;
}

.bs-co-card-sub {
  font-size: 13px;
  color: var(--bs-ink-muted);
  margin: 0;
}

.bs-co-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bs-brand);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

.bs-co-edit-btn:hover {
  background: var(--bs-brand-soft);
}

/* Form rows */
.bs-co-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.bs-co-row+.bs-co-row {
  margin-top: 14px;
}

@media (min-width: 640px) {
  .bs-co-row.bs-co-row--2 {
    grid-template-columns: 1fr 1fr;
  }

  .bs-co-row.bs-co-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Floating-label fields — REAL sibling-based selectors that actually fire */
.bs-co-field {
  position: relative;
  display: block;
}

.bs-co-field>input,
.bs-co-field>select,
.bs-co-field>textarea {
  display: block;
  width: 100%;
  height: 58px;
  padding: 22px 16px 6px;
  background: #fff;
  border: 1.5px solid var(--bs-border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--bs-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: var(--bs-font-body);
}

.bs-co-field>textarea {
  height: auto;
  min-height: 96px;
  padding: 26px 16px 14px;
  resize: vertical;
}

.bs-co-field>select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23292524' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: right 16px center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}

.bs-co-field>input:focus,
.bs-co-field>select:focus,
.bs-co-field>textarea:focus {
  outline: none;
  border-color: var(--bs-brand);
  box-shadow: 0 0 0 4px rgba(42, 74, 62, .1);
}

.bs-co-field>input[readonly] {
  background: #F5F2EB;
  color: var(--bs-ink-muted);
  cursor: not-allowed;
}

.bs-co-field>input::placeholder,
.bs-co-field>textarea::placeholder {
  color: transparent;
}

.bs-co-field>label {
  position: absolute;
  left: 16px;
  top: 18px;
  pointer-events: none;
  color: var(--bs-muted);
  font-size: 15px;
  font-family: var(--bs-font-body);
  background: transparent;
  transition: transform .16s ease, color .16s ease, font-size .16s ease;
  transform-origin: left center;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-co-field>input:focus~label,
.bs-co-field>input:not(:placeholder-shown)~label,
.bs-co-field>input[readonly]~label,
.bs-co-field>textarea:focus~label,
.bs-co-field>textarea:not(:placeholder-shown)~label,
.bs-co-field>select:focus~label,
.bs-co-field>select.bs-has-value~label {
  transform: translateY(-13px) scale(.78);
  color: var(--bs-brand);
  letter-spacing: .02em;
  font-weight: 500;
}

.bs-co-field--required>label::after {
  content: " *";
  color: var(--bs-danger);
}

.bs-co-field--error>input,
.bs-co-field--error>select,
.bs-co-field--error>textarea {
  border-color: var(--bs-danger);
}

.bs-co-field--error>label {
  color: var(--bs-danger);
}

.bs-co-field-error {
  display: none;
  font-size: 12px;
  color: var(--bs-danger);
  margin-top: 6px;
  padding-left: 4px;
}

.bs-co-field--error .bs-co-field-error {
  display: block;
}

.bs-co-field-hint {
  display: block;
  font-size: 12px;
  color: var(--bs-ink-muted);
  margin-top: 6px;
  padding-left: 4px;
}

/* Inline checkbox toggle */
.bs-co-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--bs-ink);
  margin: 0;
}

.bs-co-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--bs-border);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.bs-co-toggle input[type="checkbox"]:checked {
  background: var(--bs-brand);
  border-color: var(--bs-brand);
}

.bs-co-toggle input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bs-co-divider {
  height: 1px;
  background: var(--bs-border);
  margin: 22px 0;
}

/* Radio cards (delivery, packaging, payment) */
.bs-co-options {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bs-co-options.bs-co-options--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.bs-co-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--bs-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
  margin: 0;
  text-decoration: none;
  color: inherit;
}

.bs-co-option:hover {
  border-color: var(--bs-border-strong);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.bs-co-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--bs-border);
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color .18s;
}

.bs-co-option input[type="radio"]:checked {
  border-color: var(--bs-brand);
  border-width: 6px;
}

.bs-co-option.is-active,
.bs-co-option:has(input[type="radio"]:checked) {
  border-color: var(--bs-brand);
  background: var(--bs-brand-soft);
}

.bs-co-option-body {
  flex: 1;
  min-width: 0;
}

.bs-co-option-title {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--bs-ink);
  margin: 0;
  line-height: 1.25;
}

.bs-co-option-text {
  font-size: 12.5px;
  color: var(--bs-ink-muted);
  margin: 4px 0 0;
  line-height: 1.45;
}

.bs-co-option-extra {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--bs-brand);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.bs-co-option-pseudo-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--bs-border);
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color .18s;
}

.bs-co-option.is-active .bs-co-option-pseudo-radio {
  border-color: var(--bs-brand);
  border-width: 6px;
}

/* Recap */
.bs-co-recap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .bs-co-recap {
    grid-template-columns: 1fr 1fr;
  }
}

.bs-co-recap-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bs-co-recap-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bs-muted);
}

.bs-co-recap-value {
  font-size: 14px;
  color: var(--bs-ink);
  line-height: 1.5;
  word-break: break-word;
}

/* Item list (review) */
.bs-co-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bs-co-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--bs-border);
}

.bs-co-item:first-child {
  padding-top: 0;
}

.bs-co-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bs-co-item-img {
  width: 60px;
  height: 76px;
  background: var(--bs-surface-2);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-co-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 4px;
}

.bs-co-item-name {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 14.5px;
  margin: 0;
  color: var(--bs-ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bs-co-item-name a {
  color: inherit;
  text-decoration: none;
}

.bs-co-item-name a:hover {
  color: var(--bs-brand);
}

.bs-co-item-meta {
  font-size: 12.5px;
  color: var(--bs-ink-muted);
  margin: 6px 0 0;
}

.bs-co-item-meta strong {
  color: var(--bs-ink);
  font-weight: 600;
}

.bs-co-item-price {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--bs-ink);
  white-space: nowrap;
}

/* Pay area (legacy gateway partials get loaded into #v-pills-tabContent) */
.bs-co-payarea {
  margin-top: 16px;
  padding: 18px;
  background: var(--bs-bg);
  border-radius: 10px;
  border: 1px dashed var(--bs-border);
  position: relative;
  min-height: 56px;
}

.bs-co-payarea.d-none {
  display: none;
}

.bs-co-payarea.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px;
  border: 2px solid var(--bs-border);
  border-top-color: var(--bs-brand);
  border-radius: 50%;
  animation: bsCartSpin .8s linear infinite;
}

.bs-co-payarea .tab-pane {
  display: none;
}

.bs-co-payarea .tab-pane.active,
.bs-co-payarea .tab-pane.show {
  display: block;
}

.bs-co-payarea input[type="text"],
.bs-co-payarea input[type="number"],
.bs-co-payarea input[type="email"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid var(--bs-border);
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  color: var(--bs-ink);
  margin-bottom: 10px;
}

.bs-co-payarea input:focus {
  outline: none;
  border-color: var(--bs-brand);
}

/* Step navigation */
.bs-co-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.bs-co-prev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--bs-ink-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 8px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.bs-co-prev:hover {
  color: var(--bs-brand);
  background: var(--bs-brand-soft);
}

.bs-co-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 32px;
  background: var(--bs-ink);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: var(--bs-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .15s, opacity .15s;
}

.bs-co-next:hover {
  background: var(--bs-brand);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.bs-co-next:disabled,
.bs-co-next.is-loading {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.bs-co-next.is-loading {
  pointer-events: none;
}

.bs-co-next.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bsCartSpin .8s linear infinite;
}

.bs-co-next--final {
  background: var(--bs-brand);
}

.bs-co-next--final:hover {
  background: var(--bs-brand-ink);
}

/* Sidebar */
.bs-co-summary {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .bs-co-summary {
    position: sticky;
    top: 96px;
  }
}

.bs-co-summary-head {
  background: var(--bs-accent-ink);
  color: #fff !important;
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bs-co-summary-head h3 {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 17px;
  margin: 0;
  letter-spacing: .005em;
  color: #fff !important;
}

.bs-co-summary-head-count {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
}

.bs-co-summary-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bs-co-summary-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bs-border);
}

.bs-co-summary-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--bs-surface-2);
  border: 1px solid var(--bs-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-co-summary-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 3px;
}

.bs-co-summary-thumb-qty {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bs-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  border: 2px solid #fff;
}

.bs-co-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bs-co-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--bs-ink-muted);
}

.bs-co-summary-line strong,
.bs-co-summary-line b {
  font-weight: 500;
  color: var(--bs-ink);
  font-family: var(--bs-font-body);
}

.bs-co-summary-line.is-discount strong,
.bs-co-summary-line.is-discount b {
  color: var(--bs-brand);
}

.bs-co-summary-line.is-hidden {
  display: none;
}

/* Inline parenthetical info (e.g. "(3 items)" / "(5%)" / "(4.5 kg)") */
.bs-co-summary-line-meta {
  font-size: 12px;
  color: var(--bs-muted);
  font-weight: 400;
  letter-spacing: .01em;
  margin-left: 4px;
}

/* Free-shipping pill */
.bs-co-free {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bs-brand-soft);
  color: var(--bs-brand);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--bs-font-body);
}

/* Helpful nudges under the shipping line */
.bs-co-summary-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bs-bg);
  border: 1px dashed var(--bs-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--bs-ink-muted);
}

.bs-co-summary-hint i {
  color: var(--bs-brand);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.bs-co-summary-hint--success {
  background: var(--bs-brand-soft);
  border-style: solid;
  border-color: rgba(42, 74, 62, .25);
  color: var(--bs-brand);
}

.bs-co-summary-hint--success i {
  color: var(--bs-brand);
}

.bs-co-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--bs-border);
}

.bs-co-summary-total-label {
  font-family: var(--bs-font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--bs-ink);
}

.bs-co-summary-total-value {
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -.01em;
  color: var(--bs-ink);
}

.bs-co-promo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bs-co-promo-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bs-muted);
}

.bs-co-promo form {
  display: flex;
  height: 46px;
  border: 1.5px solid var(--bs-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.bs-co-promo input {
  flex: 1;
  border: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--bs-ink);
  min-width: 0;
  background: transparent;
}

.bs-co-promo input:focus {
  outline: none;
}

.bs-co-promo button {
  border: 0;
  background: var(--bs-ink);
  color: #fff;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}

.bs-co-promo button:hover {
  background: var(--bs-brand);
}

.bs-co-trust {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--bs-border);
}

.bs-co-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bs-ink-muted);
}

.bs-co-trust i {
  color: var(--bs-brand);
  width: 16px;
  text-align: center;
  font-size: 12px;
}

/* Mobile sticky bar */
.bs-co-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--bs-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  padding: 10px 0;
}

.bs-co-stickybar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bs-co-stickybar-info {
  flex: 1;
  min-width: 0;
}

.bs-co-stickybar-label {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bs-muted);
  font-weight: 600;
}

.bs-co-stickybar-total {
  display: block;
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--bs-ink);
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .bs-co-stickybar {
    display: none;
  }
}

@media (max-width: 1023px) {
  body.bs-co-active {
    padding-bottom: 80px;
  }
}