/* ==========================================================================
   Beautifly Shop — storefront

   Mobile first, and meant literally: four customers in five arrive on a
   phone, so the phone layout is the stylesheet and the desktop is one media
   query at the end.

   The look follows the current beautiflybd.com closely — the same magenta,
   the same product card, the same coral "Save NN%" pill — because the shop's
   customers already recognise it. What changes is the parts that were
   measurably wrong on a phone:

     - sort and filter exist here (the live site hides Sort below 640px);
     - add-to-cart is pinned to the bottom instead of being scrolled past;
     - the cart bar and the buy bar are the same strip, so neither covers
       the other;
     - out-of-stock shades are visibly disabled, not selectable-then-refused.
   ========================================================================== */

:root {
  --brand: #C9005D;
  --brand-dark: #A0004A;
  --brand-soft: #FCE8F0;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --muted-soft: #9A9A9A;
  --line: #ECE7EA;
  --line-strong: #DCD5D9;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --wash: #FAF7F9;
  --sale: #F0808A;
  --dead: #EDEBEC;
  --ok: #2C965D;
  --warn: #C9761B;
  --r: 14px;
  --r-sm: 10px;
  --r-pill: 999px;
  --shadow: 0 1px 3px rgba(26, 26, 26, .06);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --head-h: 70px;
  --bar-h: 62px;
  --tap: 44px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-body, "DM Sans", -apple-system, BlinkMacSystemFont, Roboto, sans-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 0;
}
.bf-main {
  padding: 8px 12px calc(var(--bar-h) + var(--safe-bottom));
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
body.bf-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading, "DM Sans", sans-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------- marquee */
 
.bf-marquee { background: var(--brand); color: #fff; overflow: hidden; font-size: 13px; font-weight: 500; }
.bf-marquee-track {
  display: flex; gap: 40px; white-space: nowrap; padding: 6px 0;
  animation: bf-scroll 16s linear infinite;
  will-change: transform;
}
@keyframes bf-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- header */

.bf-head {
  position: sticky; top: 0; z-index: 30;
  height: var(--head-h); padding: 0;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.bf-head-in {
  max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-sizing: border-box;
}
.bf-logo {
  flex: 0 0 auto; text-align: left; display: flex; align-items: center;
  font-weight: 800; font-size: 17px; letter-spacing: -.3px; color: var(--brand);
}
.bf-logo-img { max-height: 44px; width: auto; object-fit: contain; }
.bf-nav { display: none; }
.bf-head-right { display: flex; align-items: center; gap: 8px; }
.bf-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--ink); cursor: pointer; position: relative;
  flex: 0 0 auto;
}
.bf-burger {
  background: #FCE7F3; border-radius: 8px; color: var(--brand, #D20062);
}
.bf-cart {
  background: #FCE7F3; border-radius: 50%; color: var(--brand, #D20062);
}
.bf-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
               stroke-linecap: round; stroke-linejoin: round; }
.bf-badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
  border-radius: var(--r-pill); background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; padding: 0 4px;
}
.bf-lang {
  display: none !important;
}
.bf-langpill {
  display: none !important;
}

/* ------------------------------------------------------------ search */

.bf-searchbar {
  position: sticky; top: var(--head-h); z-index: 29;
  background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 10px;
}
.bf-searchbar[hidden] { display: none; }
.bf-searchbar form { display: flex; gap: 6px; align-items: center; }
.bf-searchbar input {
  flex: 1; font: inherit; font-size: 16px;   /* 16px or iOS zooms the page */
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 0 14px; min-height: var(--tap); background: var(--wash);
}
.bf-suggest {
  position: absolute; left: 10px; right: 10px; top: calc(100% - 4px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(26,26,26,.12); max-height: 60vh; overflow-y: auto; z-index: 31;
}
.bf-suggest[hidden] { display: none; }
.bf-suggest a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.bf-suggest a:last-child { border-bottom: 0; }
.bf-suggest img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--r-sm); background: var(--wash); }
.bf-suggest b { font-size: 13.5px; font-weight: 600; flex: 1; }
.bf-suggest span { font-size: 13px; color: var(--brand); font-weight: 700; }

/* ------------------------------------------------------------ drawer */

.bf-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
}
.bf-scrim[hidden] {
  display: none !important;
}

.bf-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 266px;
  max-width: 80vw;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: none;
  animation: bfDrawerSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes bfDrawerSlideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.bf-drawer[hidden] {
  display: none !important;
}

.bf-drawer-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 16px 14px;
  background: #ffffff;
}
.bf-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 0, 93, 0.15);
  color: #da1e28;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.bf-drawer-close:hover {
  transform: scale(1.06);
}

.bf-drawer-cattitle-bar {
  background: #f3f4f6;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  box-sizing: border-box;
}
.bf-drawer-back-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #000000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.bf-drawer-back-btn:hover {
  transform: scale(1.08);
}
.bf-drawer-back-btn[hidden] {
  display: none !important;
}

.bf-drawer-cattitle {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  margin: 0;
}
.bf-drawer-cattitle.bf-back {
  cursor: pointer;
}

.bf-drawer-body {
  flex: 1;
  overflow-y: auto;
}
.bf-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bf-drawer-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  padding: 0;
  transition: background 0.15s ease;
}
.bf-drawer-list li:last-child {
  border-bottom: 1px solid #f3f4f6;
}
.bf-drawer-list li:hover {
  background: #f3f4f6;
}
.bf-drawer-list a {
  flex: 1;
  padding: 14px 20px 14px 28px;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.bf-drill {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #000000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: transform 0.15s ease;
}
.bf-drill:hover {
  transform: scale(1.08);
}
.bf-drill svg {
  width: 18px;
  height: 18px;
  stroke: #000000;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bf-drawer-foot {
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
}
.bf-langpill {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: none;
  border-radius: var(--r-pill);
  padding: 0 16px;
  min-height: 38px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.bf-back {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------- main */

.bf-crumb { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.bf-crumb a { color: var(--muted); }
.bf-crumb span { color: var(--brand); }
.bf-h1 { font-size: 22px; margin: 0 0 12px; letter-spacing: -.4px; }

.bf-sec { margin: 0 0 28px; }
.bf-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
  gap: 10px;
}
.bf-sec-title {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  text-align: left;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bf-sec-view-all-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand, #D20062);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.bf-sec-view-all-pill:hover { opacity: 0.9; }
.bf-sec-view-all-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}
.bf-sec-cta {
  display: none; /* Shown on desktop */
}
.bf-btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand, #D20062); color: #fff; font-size: 13.5px; font-weight: 700;
  text-transform: uppercase; padding: 11px 28px; border-radius: 4px;
  letter-spacing: 0.5px; transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}
.bf-btn-cta:hover { opacity: 0.92; transform: translateY(-1px); color: #fff; }

.bf-more {
  color: var(--brand); font-size: 13px; font-weight: 700;
  border: 1px solid var(--brand); border-radius: var(--r-pill);
  padding: 0 12px; min-height: 34px; display: inline-flex; align-items: center;
  white-space: nowrap;
}

/* --------------------------------------------------------------- hero */

.bf-hero {
  position: relative; margin: 0 0 16px; overflow: hidden;
  border-radius: 0 !important;
}
.bf-hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 0 !important;
}
.bf-hero-track::-webkit-scrollbar { display: none; }
.bf-hero-slide { flex: 0 0 100%; scroll-snap-align: start; display: block; border-radius: 0 !important; overflow: hidden; }
.bf-hero img {
  width: 100%; height: auto; display: block; aspect-ratio: 1920 / 526; object-fit: cover;
  border-radius: 0 !important;
}

/* --------------------------------------------------------- shop by category */

.bf-sec-cats { margin: 6px 0 24px; }
.bf-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.bf-cat-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0 !important;
  overflow: hidden;
  background: #1e293b;
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.bf-cat-card:hover { transform: translateY(-2px); }
.bf-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}
.bf-cat-name {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 6px 6px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

/* --------------------------------------------------------- categories */

.bf-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bf-cats.is-page { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0 40px; }
.bf-cats.is-page .bf-cat {
  position: relative; aspect-ratio: 1 / 1; border-radius: 0; overflow: hidden;
  background: #111; display: flex; flex-direction: column; justify-content: flex-end;
}
.bf-cats.is-page .bf-cat img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.bf-cats.is-page .bf-cat:hover img { transform: scale(1.03); }
.bf-cats.is-page .bf-cat span {
  position: relative; z-index: 2; width: 100%; box-sizing: border-box;
  padding: 16px 12px 10px; color: #fff; font-size: 15px; font-weight: 700;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.bf-cat { position: relative; border-radius: 10px; overflow: hidden; background: var(--wash);
          aspect-ratio: 1 / 1; display: block; }
.bf-cat img { width: 100%; height: 100%; object-fit: cover; }
.bf-cat span {
  position: absolute; inset: auto 0 0 0; padding: 18px 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.68), transparent);
  color: #fff; font-weight: 700; font-size: 12.5px;
}

/* ----------------------------------------------------- category banner & desc */

.bf-cat-banner {
  width: 100%;
  aspect-ratio: 1300 / 380;
  max-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 16px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.bf-cat-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bf-cat-showcase-banner {
  margin: 32px 0 20px;
  border-radius: 12px;
  overflow: hidden;
}
.bf-cat-showcase-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}
.bf-cat-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4b5563;
  margin: -4px 0 16px;
  max-width: 800px;
}

/* ----------------------------------------------------- subcategory rail */

.bf-subrail {
  display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 0 10px; margin: 10px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #e5e7eb;
  -webkit-overflow-scrolling: touch;
}
.bf-subrail::-webkit-scrollbar {
  height: 6px;
  display: block;
}
.bf-subrail::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 999px;
}
.bf-subrail::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 999px;
}
.bf-subrail::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}
.bf-subcard {
  flex: 0 0 100px; width: 100px; height: 100px; display: block;
  position: relative; border-radius: 10px; overflow: hidden;
  text-decoration: none; cursor: pointer; transition: transform 0.2s ease, outline-color 0.2s ease;
  outline: 4px solid #9ca3af; outline-offset: -4px; border: 0;
  margin: 4px; background: #fff; box-sizing: border-box;
}
.bf-subcard:hover { transform: translateY(-2px); outline-color: #6b7280; }
.bf-subcard.is-on {
  outline: 4px solid var(--brand) !important;
}
.bf-subcard-img {
  width: 100%; height: 100%; display: block; position: absolute; inset: 0;
}
.bf-subcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
.bf-subcard.is-all {
  background: rgba(201, 0, 93, 0.22);
}
.bf-subcard.is-all .bf-subcard-img img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.85;
}
.bf-subcard-title {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 20px 8px 4px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: #fff; font-size: 12.8px; font-weight: 500; line-height: 1.2;
  text-align: left;
}
.bf-subcard.is-all .bf-subcard-title {
  font-size: 16px; font-weight: 500; color: #fff; line-height: 1.15;
  padding: 20px 8px 6px 8px; white-space: pre-line;
}
.bf-subcard.is-on .bf-subcard-title {
  color: #fff;
}
.bf-h1 {
  font-size: 26px; font-weight: 400; color: #374151; margin: 0 0 12px;
  line-height: 1.2;
}
.bf-h1-count {
  font-size: 1em; font-weight: 400; color: #374151;
}
.bf-crumb {
  font-size: 15px; color: #9ca3af; margin: 16px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.bf-crumb a { color: #9ca3af; text-decoration: none; font-weight: 400; }
.bf-crumb a:hover { text-decoration: underline; color: #4b5563; }
.bf-crumb-cur { color: var(--brand); font-weight: 700; }

/* --------------------------------------------------- promo mid-banner */

.bf-promobanner { margin: 28px 0 32px; overflow: hidden; }
.bf-promobanner img { width: 100%; height: auto; display: block; object-fit: cover; }

/* ---------------------------------------------------------- the cards */

/* Two across on a phone. Three would make the name unreadable and the
   picture too small to judge a shade by, which is the one thing a
   cosmetics customer is actually doing here. */
.bf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.bf-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 45%;
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -12px; padding: 0 12px 6px; scrollbar-width: none;
}
.bf-rail::-webkit-scrollbar { display: none; }
.bf-rail > * { scroll-snap-align: start; }

.bf-card { display: flex; flex-direction: column; background: #fff; padding-bottom: 4px; }
.bf-card-img {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 244 / 304;
  background: #f8fafc; border-radius: 8px; overflow: hidden; margin: 0 0 8px;
}
.bf-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.bf-noimg { display: block; width: 100%; height: 100%; background: var(--wash); border-radius: 8px; }
.bf-noimg.is-big { aspect-ratio: 244 / 304; border-radius: 8px; }
.bf-off {
  position: absolute; left: 8px; top: 8px; z-index: 5;
  background: #E97171; color: #fff; font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 2.5px 8px; line-height: 1.2;
}
.bf-off.is-inline { position: static; display: inline-block; }
.bf-outband {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  background: rgba(0,0,0,0.62); color: #fff; text-align: center;
  font-size: 13px; font-weight: 600; padding: 7px 0;
  text-transform: uppercase; letter-spacing: 0.5px;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 2;
}
.bf-card.is-out .bf-card-img img { opacity: .75; }
.bf-card-name {
  font-size: 14px; line-height: 1.4; font-weight: 400; color: #374151; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  height: 38px;
}
.bf-card-price { margin: 2px 0 8px; display: flex; align-items: baseline; gap: 6px; }
.bf-card-price strong { font-size: 15px; font-weight: 700; color: #111827; }
.bf-card-price s { font-size: 12.5px; color: #9ca3af; text-decoration: line-through; }

.bf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; height: 38px; padding: 0 16px; border: 1.5px solid var(--brand, #D20062);
  border-radius: 6px; background: transparent; color: var(--brand, #D20062);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center;
  text-transform: uppercase; letter-spacing: 0.3px;
  transition: background 0.15s ease, color 0.15s ease;
}
.bf-btn:hover, .bf-btn:active { background: var(--brand, #D20062); color: #fff; }
.bf-btn:active { transform: translateY(1px); }
.bf-btn-out { background: transparent; color: var(--brand); }
.bf-btn-out:hover { background: var(--brand); color: #fff; }
.bf-btn-dead { background: transparent; border: 0; color: #6B7280; cursor: not-allowed; }
.bf-card .bf-btn { width: 100%; margin-top: auto; }

/* -------------------------------------------------------- sort/filter */

.bf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.bf-total { margin: 0; font-size: 13px; color: var(--muted); }
.bf-toolbtn { min-height: 40px; font-size: 13px; padding: 0 12px; }
.bf-toolbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
                  stroke-linecap: round; }

/* A bottom sheet, because a phone's reachable area is the bottom third and
   a filter is something you open, poke at and dismiss. */
.bf-sheet {
  position: fixed; inset: auto 0 0 0; z-index: 1050;
  background: var(--surface); border-radius: 0;
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 -8px 32px rgba(26,26,26,.3);
}
.bf-sheet[hidden] { display: none; }
.bf-sheet form { display: flex; flex-direction: column; min-height: 0; }
.bf-sheet-head { display: flex; align-items: center; justify-content: space-between;
                 padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--line); }
.bf-sheet-body { padding: 14px 16px; overflow-y: auto; }
.bf-sheet-foot {
  display: flex; gap: 10px; padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
}
.bf-sheet-foot .bf-btn { flex: 1; }

.bf-fs { border: 0; margin: 0 0 16px; padding: 0; }
.bf-fs legend { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 0 0 6px; }
.bf-radio, .bf-check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; }
.bf-radio input, .bf-check input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.bf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bf-input {
  width: 100%; font: inherit; font-size: 16px; min-height: var(--tap);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 12px;
  background: var(--surface);
}

/* --------------------------------------------------------- sub-chips */

.bf-subs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -12px 12px; padding: 0 12px 4px;
}
.bf-subs::-webkit-scrollbar { display: none; }
.bf-subchip {
  flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 0 14px; min-height: 36px; display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface);
}
.bf-subchip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------------------------------ product page */

.bf-pd { margin-bottom: 30px; }
.bf-pd-left { min-width: 0; }
.bf-pd-media { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.bf-pd-thumbs.is-vertical {
  display: flex; flex-direction: column; gap: 8px; width: 76px; max-height: 520px;
  overflow-y: auto; flex-shrink: 0; scrollbar-width: thin;
}
.bf-pd-thumbs::-webkit-scrollbar { display: none; }
.bf-thumb {
  width: 72px; height: 88px; border-radius: 4px; border: 1.2px solid #E5E7EB;
  background: #fff; padding: 2px; cursor: pointer; flex-shrink: 0; transition: border-color 0.2s;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.bf-thumb.is-on { border: 2px solid var(--brand); }
.bf-thumb img { width: 100%; height: 100%; object-fit: contain; }

.bf-pd-main {
  position: relative; flex: 1; min-width: 0; aspect-ratio: 1 / 1; max-height: 520px;
  background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #F3F4F6; overflow: hidden;
}
.bf-pd-main img { width: 100%; height: 100%; object-fit: contain; }
.bf-zoom-btn {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(201, 0, 93, 0.15); color: #fff; border: 0; display: flex; align-items: center;
  justify-content: center; cursor: pointer; z-index: 5; transition: background 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.bf-zoom-btn:hover { background: rgba(201, 0, 93, 0.25); }
.bf-zoom-btn svg { stroke: #ffffff; }

.bf-pd-info { padding: 0; }
.bf-pd-title { font-size: 28px; line-height: 1.25; font-weight: 700; color: var(--brand); margin: 0 0 12px; }
.bf-pd-brand { margin: 0 0 12px; font-size: 14px; color: var(--muted); font-weight: 500; }

.bf-pd-pricebox { margin: 0 0 18px; }
.bf-pd-pricelabel { font-size: 14px; font-weight: 500; color: #9CA3AF; margin: 0 0 4px; }
.bf-pd-prices { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bf-pd-curprice { font-size: 20px; font-weight: 700; color: #111827; }
.bf-pd-wasprice { font-size: 15px; color: #9CA3AF; text-decoration: line-through; }
.bf-pd-wasprice[hidden] { display: none; }
.bf-save-pill {
  background: #334155; color: #fff; font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 9999px; white-space: nowrap; display: inline-flex; align-items: center;
}
.bf-save-pill[hidden] { display: none; }

.bf-opts { margin: 0 0 16px; }
.bf-optrow { margin: 0 0 14px; }
.bf-opt-label { display: block; font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 8px; text-transform: capitalize; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bf-chip {
  border: 1.2px solid #E5E7EB; border-radius: 9999px; padding: 8px 20px;
  font: inherit; font-size: 14px; font-weight: 500; background: #fff;
  color: #374151; cursor: pointer; transition: all 0.15s; min-height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
}
.bf-chip:hover { border-color: rgba(201, 0, 93, 0.4); }
.bf-chip.is-on {
  border: 1.5px solid #f472b6; background: #fdf2f8;
  color: #111827; font-weight: 600;
}
.bf-chip.is-dead {
  color: #9CA3AF; background: #F9FAFB; border-color: #E5E7EB;
  cursor: not-allowed; text-decoration: line-through; opacity: 0.55;
}
.bf-chip:disabled {
  color: #9CA3AF; background: #F9FAFB; border-color: #E5E7EB;
  cursor: not-allowed; text-decoration: line-through; opacity: 0.55;
}

.bf-low { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; color: #D97706; }
.bf-low[hidden] { display: none; }

/* Action buttons */
.bf-buy-actions { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }
.bf-buy-actions[hidden] { display: none; }
.bf-buy-row1 { display: flex; gap: 10px; align-items: center; width: 100%; }
.bf-qty {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid #f472b6; border-radius: 6px; height: 44px; width: 130px;
  background: #fff; overflow: hidden; padding: 0 2px; flex-shrink: 0;
}
.bf-qty button {
  width: 36px; height: 100%; border: 0; background: transparent; color: var(--brand);
  font-size: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.bf-qty input {
  width: 44px; height: 100%; border: 0; background: transparent; text-align: center;
  font-size: 16px; font-weight: 700; color: #111827; -moz-appearance: textfield; padding: 0;
}
.bf-btn-cart {
  flex: 1; height: 44px; border: 1.5px solid var(--brand); background: #ffffff;
  color: var(--brand); font-weight: 700; font-size: 14px; border-radius: 6px;
  text-transform: uppercase; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px;
}
.bf-btn-cart:hover { background: rgba(201, 0, 93, 0.05); }
.bf-btn-buy {
  width: 100%; height: 46px; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 15px; border-radius: 6px; text-transform: uppercase;
  border: none; cursor: pointer; transition: opacity 0.15s;
  display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px;
  margin-top: 10px;
}
.bf-btn-buy:hover { opacity: 0.92; }
.bf-btn-dead {
  width: 100%; height: 44px; background: #afafaf; color: #fff;
  font-weight: 600; font-size: 14px; border-radius: 6px; text-transform: uppercase;
  border: none; cursor: not-allowed; display: flex; align-items: center; justify-content: center;
}

.bf-desc { font-size: 14.5px; line-height: 1.65; color: #374151; }
.bf-desc p { margin: 0 0 10px; }
.bf-desc strong { color: #111827; font-weight: 700; }
.bf-desc.is-desktop { display: block; margin-top: 32px; padding-top: 24px; border-top: 1px solid #E5E7EB; }
.bf-desc.is-mobile { display: none; }

.bf-details { margin: 18px 0; background: var(--brand-soft); border-radius: var(--r); padding: 12px 14px; }
.bf-details h3 { font-size: 13px; color: var(--brand); margin: 0 0 8px; }
.bf-details dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.bf-details dt { color: var(--muted); }
.bf-details dd { margin: 0; text-align: right; }

/* Lightbox Modal */
.bf-lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.88); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px);
}
.bf-lightbox-in {
  position: relative; max-width: 90vw; max-height: 90vh; background: #fff;
  border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.bf-lightbox-in img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.bf-lightbox-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.6); color: #fff; border: 0; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 10;
}

/* ------------------------------------------------------- bottom bars */

/* One strip, two jobs. On a product page it buys; everywhere else it is
   the cart. They can never overlap because they are never both shown. */
.bf-buybar, .bf-cartbar {
  position: fixed; inset: auto 0 0 0; z-index: 35;
  height: calc(var(--bar-h) + var(--safe-bottom));
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.bf-buybar[hidden], .bf-cartbar[hidden] { display: none; }
.bf-buybar .bf-btn { flex: 1; }
.bf-qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); flex: 0 0 auto; }
.bf-qty button { width: 38px; height: var(--tap); border: 0; background: none; font-size: 19px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.bf-qty input {
  width: 36px; height: var(--tap); border: 0; text-align: center; font: inherit;
  font-weight: 700; font-size: 16px; -moz-appearance: textfield; padding: 0;
}
.bf-qty input::-webkit-outer-spin-button, .bf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bf-cartbar { background: var(--brand); color: #fff; border-top: 0; justify-content: center; font-weight: 700; }
.bf-cartbar-n {
  min-width: 24px; height: 24px; border-radius: var(--r-pill); background: rgba(255,255,255,.24);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px;
}

/* -------------------------------------------------- floating sidecart */
.bf-sidecart {
  position: fixed; top: 167px; right: 17px; z-index: 60;
  min-width: 78px; width: auto; max-width: 120px;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 10px rgba(201, 0, 93, 0.45); background: #fff;
  display: flex; flex-direction: column; cursor: pointer; text-align: center;
  border: 1px solid rgba(201, 0, 93, 0.2);
  padding: 0 !important; margin: 0; outline: none; -webkit-appearance: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-origin: center right;
  will-change: transform;
}
.bf-sidecart:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(201,0,93,0.55); }
.bf-sidecart[hidden] { display: none !important; }
.bf-sidecart-top {
  background: var(--brand); color: #fff; padding: 10px 12px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; box-sizing: border-box;
}
.bf-sidecart-top svg { width: 24px; height: 24px; fill: #fff; }
.bf-sidecart-top span { font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1; }
.bf-sidecart-bot {
  background: rgba(201, 0, 93, 0.12); color: var(--brand); padding: 5px 8px;
  font-size: 12px; font-weight: 700; border-top: 1px solid rgba(201, 0, 93, 0.1);
  width: 100%; box-sizing: border-box; text-align: center; letter-spacing: 0.2px;
  white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 2px;
}
.bf-sidecart-bot span { font-size: 11.5px; font-weight: 700; opacity: 0.95; }
.bf-sidecart-bot strong {
  font-size: 12px; font-weight: 700; color: var(--brand);
  display: inline; text-align: center;
}

@keyframes bfCartVibrate {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.12) rotate(-6deg); }
  30% { transform: scale(1.12) rotate(6deg); }
  45% { transform: scale(1.08) rotate(-4deg); }
  60% { transform: scale(1.04) rotate(3deg); }
  75% { transform: scale(1.02) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.bf-sidecart.is-vibrating {
  animation: bfCartVibrate 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  box-shadow: 0 0 20px rgba(201, 0, 93, 0.75);
}

.bf-pdp-feedback {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(201, 0, 93, 0.08); border: 1px solid rgba(201, 0, 93, 0.22);
  color: var(--brand); font-size: 14.5px; font-weight: 600; padding: 11px 16px;
  border-radius: 8px; margin-top: 12px; text-align: center;
  animation: bfFadeSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bf-pdp-feedback svg { stroke: var(--brand); flex-shrink: 0; }
.bf-pdp-feedback[hidden] { display: none !important; }
@keyframes bfFadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------- quick variant modal (zatiq) */
.bf-modal-scrim {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.bf-modal-scrim[hidden] { display: none !important; }
.bf-quick-card {
  background: #fff; border-radius: 16px 16px 0 0; max-width: 500px; width: 100%;
  padding: 22px 18px calc(24px + var(--safe-bottom)) 18px;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.18);
  animation: bfSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh; overflow-y: auto; box-sizing: border-box;
}
@keyframes bfSlideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) {
  .bf-modal-scrim { align-items: center; padding: 16px; }
  .bf-quick-card { border-radius: 16px; animation: bfModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1); padding: 24px; }
}
.bf-quick-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.bf-quick-title { font-size: 17.5px; font-weight: 700; color: var(--brand, #c9005d); margin: 0; line-height: 1.35; flex: 1; }
.bf-quick-close {
  border: none; background: transparent; font-size: 22px; color: #6b7280;
  cursor: pointer; padding: 0 4px; line-height: 1; border-radius: 4px;
}
.bf-quick-close:hover { color: #111827; }
.bf-quick-pricebox { margin: 8px 0 16px; }
.bf-quick-pricelabel { display: block; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }
.bf-quick-prices { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bf-quick-curprice { font-size: 20px; font-weight: 700; color: #111827; }
.bf-quick-wasprice { font-size: 14.5px; color: #6b7280; text-decoration: line-through; }
.bf-save-pill {
  background: #2D3748; color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}
.bf-save-pill[hidden] { display: none; }
.bf-quick-opts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.bf-quick-opt-group { display: flex; flex-direction: column; gap: 8px; }
.bf-quick-opt-title { font-size: 14px; font-weight: 600; color: #374151; margin: 0; }
.bf-quick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-quick-chip {
  padding: 8px 18px; font-size: 13px; font-weight: 600; border: 1.5px solid #d1d5db;
  border-radius: 999px; background: #fff; cursor: pointer; transition: all 0.15s ease; color: #374151;
}
.bf-quick-chip:hover { border-color: var(--brand, #c9005d); }
.bf-quick-chip.is-active { border-color: #ec4899; background: #fdf2f8; color: var(--brand, #c9005d); }
.bf-quick-chip.is-disabled {
  text-decoration: line-through; color: #9ca3af; background: #f9fafb; border-color: #e5e7eb; cursor: not-allowed;
}
.bf-quick-stockmsg {
  color: #ef4444; font-size: 13px; font-weight: 600; margin: 8px 0 10px;
}
.bf-quick-stockmsg[hidden] { display: none; }
.bf-quick-actions { display: flex; gap: 12px; align-items: stretch; margin-top: 14px; }
.bf-quick-actions .bf-qty {
  border: 1.5px solid #f472b6; border-radius: 8px;
  height: 44px; display: flex; align-items: center; background: #fff; width: 120px;
}
.bf-quick-actions .bf-qty button {
  color: #db2777; font-size: 18px; font-weight: 700; width: 36px; height: 100%;
  border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.bf-quick-actions .bf-qty input {
  width: 44px; text-align: center; font-size: 15px; font-weight: 700;
  border: none; outline: none; color: #111827; background: transparent;
}
.bf-quick-submit {
  flex: 1; height: 44px; border: none; background: var(--brand, #c9005d);
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.5px;
  text-transform: uppercase; border-radius: 8px; cursor: pointer; transition: all 0.15s ease;
}
.bf-quick-submit:hover { opacity: 0.92; }
.bf-quick-submit:disabled, .bf-quick-submit.is-disabled {
  background: #9ca3af !important; color: #fff !important; cursor: not-allowed; opacity: 0.8;
}

/* ---------------------------------------------------- sticky bottom cart bar */

.bf-cartbar-wrap {
  position: fixed; inset: auto 0 0 0; z-index: 95;
  background: #ffffff;
  padding: 8px 12px calc(8px + var(--safe-bottom)) 12px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}
.bf-cartbar-wrap[hidden] { display: none !important; }
.bf-cartbar {
  width: 100%; height: 48px; border-radius: 10px;
  background: var(--brand, #c9005d); color: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative; text-decoration: none; box-sizing: border-box;
}
.bf-cartbar-n {
  position: absolute; left: 8px; width: 26px; height: 32px;
  border-radius: 6px; background: #fff; color: var(--brand, #c9005d);
  font-size: 15px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.bf-cartbar-text {
  font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 0.2px;
}

/* ------------------------------------------- right slide-over cart drawer */
.bf-drawer-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.bf-drawer-scrim[hidden] { display: none !important; }
.bf-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
  background: #fff; z-index: 95; display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.bf-cart-drawer.is-open { transform: translateX(0); }
.bf-cart-drawer[hidden] { display: flex; transform: translateX(100%); pointer-events: none; }
.bf-cart-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.bf-cart-drawer-head h3 { font-size: 16px; font-weight: 700; margin: 0; color: var(--ink); }
.bf-cart-drawer-body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.bf-cart-drawer-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.bf-cart-drawer-line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.bf-cart-drawer-line:last-child { border-bottom: 0; }
.bf-cart-drawer-line img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--wash); }
.bf-cart-drawer-mid { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bf-cart-drawer-mid strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.bf-cart-drawer-opt { font-size: 12px; color: var(--muted); }
.bf-cart-drawer-price { font-size: 13px; font-weight: 600; color: var(--brand); }
.bf-cart-drawer-right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.bf-cart-drawer-right strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.bf-cart-drawer-foot {
  padding: 16px 20px; border-top: 1px solid var(--line); background: var(--wash);
  display: flex; flex-direction: column; gap: 10px;
}
.bf-cart-drawer-subtotal { display: flex; justify-content: space-between; font-size: 15px; }
.bf-cart-drawer-subtotal strong { font-size: 17px; color: var(--brand); }
.bf-btn-checkout {
  background: var(--brand); color: #fff; text-align: center; padding: 13px 16px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; border-radius: var(--r-sm);
  display: block; border: none; cursor: pointer; letter-spacing: 0.5px; text-decoration: none;
}
.bf-btn-checkout:hover { opacity: 0.95; }
.bf-link-viewcart { text-align: center; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* -------------------------------------------------------------- rest */

.bf-empty { text-align: center; padding: 44px 16px; color: var(--muted); }
.bf-pager {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin: 32px 0 20px !important;
  width: 100% !important;
  box-sizing: border-box;
}
.bf-pager .bf-btn,
.bf-pager .bf-btn-dead,
.bf-pager .bf-btn-out {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 110px !important;
  height: 38px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bf-pager .bf-btn,
.bf-pager .bf-btn-out {
  background: #fff !important;
  color: var(--brand, #c9005d) !important;
  border: 1.5px solid var(--brand, #c9005d) !important;
}
.bf-pager .bf-btn:hover,
.bf-pager .bf-btn-out:hover {
  background: #fff1f2 !important;
}
.bf-pager .bf-btn-dead {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border: 1.5px solid #e5e7eb !important;
  cursor: not-allowed !important;
}
.bf-pager-n {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  margin: 0 4px !important;
  white-space: nowrap !important;
}

/* -------------------------------------------------------------- footer (Zatiq Clone) */
.bf-foot {
  background: #fff; border-top: 1px solid #f3f4f6; margin: 36px 0 0 0; padding: 0 !important; width: 100%;
}
.bf-foot-main {
  max-width: 1328px; margin: 0 auto; padding: 32px 16px 20px; width: 100%; box-sizing: border-box;
}
.bf-foot-in {
  display: flex; flex-direction: column; gap: 28px; width: 100%;
}
@media (min-width: 768px) {
  .bf-foot-in { display: grid; grid-template-columns: 1.1fr 1.1fr 1.4fr 1fr; gap: 32px; align-items: start; }
}
.bf-foot-col { display: flex; flex-direction: column; }
.bf-foot-brand { margin-bottom: -4px; }
.bf-foot-logo-wrap { display: inline-block; }
.bf-foot-logo { height: 38px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.bf-logo-text { font-size: 20px; font-weight: 800; color: var(--brand); }
.bf-foot-title {
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  color: #000; margin: 0 0 4px;
}
.bf-foot-bar {
  width: 38px; height: 2px; background: #9ca3af; margin: 6px 0 16px;
}
.bf-foot-links { display: flex; flex-direction: column; gap: 10px; }
.bf-foot-links a {
  font-size: 14.5px; color: #4b5563; text-decoration: none; line-height: 1.6;
  transition: color 0.15s ease;
}
.bf-foot-links a:hover { color: var(--brand); }
.bf-foot-contacts { display: flex; flex-direction: column; gap: 14px; }
.bf-foot-contact-item { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #374151; }
.bf-foot-icon-box {
  width: 36px; height: 36px; border-radius: 8px; background: #fdf2f8;
  color: var(--brand, #c9005d); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bf-foot-icon-box svg { stroke: var(--brand, #c9005d); }
.bf-foot-contact-item a { color: #374151; text-decoration: none; transition: color 0.15s ease; }
.bf-foot-contact-item a:hover { color: var(--brand); }
.bf-foot-social { display: flex; gap: 12px; }
.bf-social-circle {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand, #c9005d); color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.bf-social-circle svg { fill: #fff; stroke: none; }
.bf-social-circle:hover { transform: scale(1.06); opacity: 0.95; }
.bf-foot-copybar {
  width: 100%;
  background: var(--brand, #c9005d);
  color: #fff;
  padding: 20px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin: 32px 0 0;
  box-sizing: border-box;
}
.bf-foot-copybar p { margin: 0; color: #fff; }

.bf-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bar-h) + var(--safe-bottom) + 16px);
  background: var(--brand); color: #fff; border-radius: 999px;
  padding: 11px 22px; font-size: 14px; font-weight: 600; z-index: 999;
  box-shadow: 0 8px 24px rgba(201, 0, 93, 0.4); text-align: center;
  max-width: 90vw; width: max-content;
  animation: bfToastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bf-toast[hidden] { display: none !important; }
@keyframes bfToastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bf-marquee-track { animation: none; }
  * { transition: none !important; }
}

/* ==================================================== cart / checkout */

#bfCartPage { max-width: 800px; margin: 0 auto; min-height: 45vh; padding-bottom: 24px; }
#bfCartLines {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 6px 16px; margin: 16px 0 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
#bfCartLines:empty { display: none; }

.bf-cline {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.bf-cline:last-child { border-bottom: 0; }
.bf-cline > img, .bf-cline > .bf-noimg {
  width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; background: var(--wash);
}
.bf-cline-mid { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bf-cline-mid strong { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.bf-cline-price { font-size: 13.5px; color: var(--brand); font-weight: 600; }
.bf-cline-mid .bf-qty { margin-top: 6px; align-self: flex-start; }
.bf-cline-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.bf-cline-right strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.bf-linkbtn {
  border: 0; background: none; padding: 0; font: inherit; font-size: 12px;
  color: #EF4444; text-decoration: none; cursor: pointer; min-height: 24px;
}
.bf-linkbtn:hover { text-decoration: underline; }
.bf-fineprint { font-size: 12.5px; color: var(--muted); margin: 0; }

.bf-cartsum {
  background: var(--wash); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 20px; margin: 0 0 24px;
}
.bf-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.bf-row[hidden] { display: none !important; }
.bf-row.is-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 16px; }
.bf-row.is-total strong { font-size: 18px; }

#bfCartGo {
  display: flex; gap: 12px; max-width: 800px; margin: 0 auto;
}
#bfCartGo .bf-btn { flex: 1; min-height: 48px; font-size: 15px; }

/* -------------------------------------------------------- checkout 2-col (Zatiq Replica) */
.bf-checkout { max-width: 1280px; margin: 0 auto; padding: 20px 16px 60px; }
.bf-co-title { font-size: 26px; font-weight: 700; color: var(--ink); margin: 0 0 24px; }
.bf-co-form {
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 992px) {
  .bf-co-form {
    flex-direction: row; align-items: flex-start; gap: 36px;
  }
}
.bf-co-left {
  order: 1;
  flex: 1 1 54%; display: flex; flex-direction: column; gap: 24px;
}
.bf-co-right {
  order: 2;
  flex: 1 1 46%;
}
@media (min-width: 992px) {
  .bf-co-left { order: 1; }
  .bf-co-right { order: 2; position: sticky; top: 90px; }
}

.bf-co-card {
  background: #fff; border: 1px solid #f3f4f6; border-radius: 12px;
  padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.bf-co-card-title {
  font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 18px;
}
.bf-co-fields { display: flex; flex-direction: column; gap: 16px; }
.bf-lab { display: block; margin: 0; }
.bf-lab > span { display: block; font-size: 14px; font-weight: 500; color: #374151; margin: 0 0 8px; }
.bf-req { color: #ef4444; }

.bf-phone-wrap {
  display: flex; align-items: stretch; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; background: #fff;
}
.bf-phone-prefix {
  display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f9fafb; border-right: 1px solid #e5e7eb; font-size: 14px; color: #374151;
}
.bf-flag-icon { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.bf-phone-field {
  border: none !important; border-radius: 0 !important; box-shadow: none !important; padding: 12px 14px; font-size: 15px; flex: 1;
}
.bf-input {
  width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 12px 14px; font-size: 15px; background: #fff; color: #111827; outline: none; transition: border-color 0.15s;
}
.bf-input:focus { border-color: var(--brand); }

.bf-select-wrap { position: relative; }
.bf-select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.bf-select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; stroke: #9ca3af; }

.bf-co-geo-col { display: flex; flex-direction: column; gap: 16px; }

/* Delivery Location Grid */
.bf-delivery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px;
}
.bf-delivery-card {
  border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; cursor: pointer; background: #fff; transition: all 0.15s ease; display: flex; flex-direction: column; gap: 4px;
}
.bf-delivery-card.is-active {
  border-color: #3b82f6; background: #f8faff; box-shadow: 0 0 0 1px #3b82f6;
}
.bf-delivery-top {
  display: flex; justify-content: space-between; align-items: center;
}
.bf-delivery-title {
  font-size: 14.5px; font-weight: 600; color: #111827;
}
.bf-delivery-badge {
  background: rgba(59, 130, 246, 0.1); color: #2563eb; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
}
.bf-delivery-card.is-active .bf-delivery-badge {
  background: #3b82f6; color: #fff;
}
.bf-delivery-sub {
  font-size: 12px; color: #6b7280; line-height: 1.3;
}

/* Double Height Address Box */
.bf-addr-double {
  min-height: 84px !important;
  height: 84px !important;
  resize: vertical;
  line-height: 1.45;
  padding: 10px 14px;
  font-family: inherit;
}

/* Payment options cards */
.bf-payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.bf-pay-card {
  border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 16px; cursor: pointer; background: #fff; transition: all 0.15s ease; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100px;
}
.bf-pay-card.is-active {
  border-color: #3b82f6; background: #f8faff;
}
.bf-pay-top { display: flex; justify-content: space-between; align-items: center; }
.bf-pay-name { font-size: 14px; font-weight: 600; color: #111827; }
.bf-pay-check {
  width: 20px; height: 20px; border-radius: 50%; background: #3b82f6; display: flex; align-items: center; justify-content: center;
}
.bf-pay-bot { margin-top: 12px; display: flex; align-items: center; }
.bf-bkash-badge {
  background: #e2136e; color: #fff; font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 6px;
}

.bf-adv-opt-card {
  transition: all 0.15s ease;
  user-select: none;
}
.bf-adv-opt-card:hover {
  border-color: #be123c !important;
}

.bf-advance-notice {
  border: 1px solid #fecaca; background: #fef2f2; border-radius: 8px; padding: 14px 16px; margin-top: 8px;
}
.bf-advance-notice p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #dc2626; }

/* Right Column Summary Box */
.bf-co-summary-box {
  background: #fff; border: 1px solid #f3f4f6; border-radius: 16px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.bf-co-lines { display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }
.bf-co-item { display: flex; gap: 16px; align-items: flex-start; }
.bf-co-item-img {
  width: 120px; height: 150px; border-radius: 12px; overflow: hidden; background: #f9fafb; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.bf-co-item-img img { width: 100%; height: 100%; object-fit: contain; }
.bf-co-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bf-co-item-name { font-size: 15px; font-weight: 600; color: #111827; margin: 0; line-height: 1.35; }
.bf-co-item-price-row { display: flex; align-items: baseline; gap: 8px; }
.bf-co-item-was { font-size: 14px; color: #9ca3af; text-decoration: line-through; }
.bf-co-item-cur { font-size: 18px; font-weight: 700; color: #111827; }

.bf-co-item-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.bf-co-chip {
  background: rgba(201, 0, 93, 0.08); color: var(--brand); font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}

.bf-co-item-bot { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.bf-co-stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--brand); border-radius: 6px; overflow: hidden; background: #fff; height: 32px;
}
.bf-co-stepper button {
  background: none; border: none; width: 32px; height: 32px; font-size: 16px; font-weight: 600; cursor: pointer; color: var(--brand); display: flex; align-items: center; justify-content: center;
}
.bf-co-stepper span { padding: 0 10px; font-size: 14px; font-weight: 700; color: #111827; min-width: 20px; text-align: center; }
.bf-co-item-del {
  background: none; border: none; padding: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.bf-link-addmore {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; margin: 4px 0 20px;
}
.bf-link-addmore:hover { text-decoration: underline; }

.bf-promo-wrap { display: flex; gap: 10px; margin-bottom: 20px; }
.bf-promo-input { flex: 1; height: 44px; border-radius: 8px; font-size: 14px; }
.bf-btn-promo {
  background: #9ca3af; color: #fff; border: none; border-radius: 8px; padding: 0 24px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.15s;
}
.bf-btn-promo:hover { background: var(--brand); }

.bf-co-totals-card {
  background: #fff; border: 1px solid #f3f4f6; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px;
}
.bf-red-text { color: #ef4444; font-size: 12px; font-weight: normal; }
.bf-co-divider { height: 1px; background: #e5e7eb; margin: 10px 0; }
.bf-val { font-weight: 600; color: #111827; }

.bf-policy-check {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 13px; color: #4b5563; line-height: 1.4; cursor: pointer;
}
.bf-policy-check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
.bf-policy-check a { color: var(--brand); font-weight: 500; text-decoration: underline; }

.bf-co-note-box { margin-bottom: 24px; }
.bf-note-label { display: block; font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 8px; }
.bf-note-ta { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 12px 14px; font-size: 14px; resize: vertical; min-height: 80px; }

.bf-btn-confirm-order {
  width: 100%; height: 52px; background: var(--brand); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(201, 0, 93, 0.2); transition: background 0.15s, transform 0.1s;
}
.bf-btn-confirm-order:hover { background: var(--brand-dark); }
.bf-btn-confirm-order:active { transform: scale(0.99); }

.bf-err {
  background: var(--brand-soft); color: var(--brand); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 13.5px; font-weight: 600; margin: 0 0 14px;
}
.bf-err[hidden] { display: none; }

/* ------------------------------------------------------------ receipt & invoice */

.bf-receipt-wrap {
  display: flex;
  justify-content: center;
  padding: 30px 16px 60px;
  background: var(--bg);
}
.bf-receipt-card {
  width: 100%;
  max-width: 680px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 32px 28px;
  margin: 0 auto;
}
.bf-receipt-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.bf-receipt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(44, 150, 93, 0.12);
  margin-bottom: 14px;
}
.bf-receipt-icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bf-receipt-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}
.bf-receipt-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.bf-receipt-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.bf-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.bf-pill-tag.is-serial {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}
.bf-pill-tag.is-status {
  background: #DEF7EC;
  color: #03543F;
}
.bf-pill-tag.is-status.is-cancelled,
.bf-pill-tag.is-status.is-returned {
  background: #FDE8E8;
  color: #9B1C1C;
}
.bf-pill-tag.is-status.is-shipped,
.bf-pill-tag.is-status.is-processing {
  background: #E1EFFE;
  color: #1E429F;
}
.bf-pill-tag.is-payment {
  background: #FEF08A;
  color: #713F12;
}
.bf-pill-tag.is-payment.is-paid {
  background: #DEF7EC;
  color: #03543F;
}

.bf-receipt-block {
  background: #F9FAFB;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.bf-block-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bf-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.bf-info-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bf-info-cell.is-full {
  grid-column: 1 / -1;
}
.bf-cell-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
}
.bf-cell-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.bf-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bf-item-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #E5E7EB;
}
.bf-item-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.bf-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}
.bf-item-noimg {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #E5E7EB;
}
.bf-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bf-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}
.bf-item-opt {
  display: inline-block;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
}
.bf-item-qty {
  font-size: 12.5px;
  color: var(--muted);
}
.bf-item-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.bf-totals-block {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
}
.bf-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: #4B5563;
}
.bf-total-row.is-discount {
  color: var(--brand);
  font-weight: 600;
}
.bf-total-row.is-grand {
  border-top: 2px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.bf-total-row.is-grand strong {
  font-size: 20px;
  color: var(--brand);
}

.bf-receipt-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.bf-receipt-actions .bf-btn {
  flex: 1;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.bf-btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  border: 1px solid var(--brand);
}
.bf-btn-primary:hover {
  background: #A6004D;
  color: #FFFFFF;
}

/* Timeline */
.bf-timeline { margin: 0; padding: 4px 0 0 4px; }
.bf-tl { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 0 0 16px; position: relative; }
.bf-tl:not(:last-child)::before {
  content: ''; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--line);
}
.bf-tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); margin: 6px 0 0 5px; }
.bf-tl.is-now .bf-tl-dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.bf-tl strong { display: block; font-size: 14px; }
.bf-tl time { display: block; font-size: 12.5px; color: var(--muted); }
.bf-tl p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .bf-receipt-card { padding: 20px 16px; border-radius: 12px; }
  .bf-info-grid { grid-template-columns: 1fr; }
  .bf-receipt-actions { flex-direction: column-reverse; }
}

@media print {
  body { background: #fff !important; padding: 0 !important; }
  .bf-head, .bf-marquee, .bf-foot, .bf-buybar, .bf-cartbar, .bf-receipt-actions, .bf-chat-btn { display: none !important; }
  .bf-receipt-wrap { padding: 0 !important; margin: 0 !important; }
  .bf-receipt-card { box-shadow: none !important; border: 0 !important; max-width: 100% !important; padding: 0 !important; }
  .bf-receipt-block { border: 1px solid #ccc !important; break-inside: avoid; }
}

/* ==========================================================================
   Policy pages, social links and the chat bubble
   ========================================================================== */

/* A page of prose, not a grid of products: narrower measure, because a line
   of text 1200px wide is unreadable no matter how good the type is. */
.bf-prose { max-width: 760px; padding-top: 18px; padding-bottom: 48px; }
.bf-prose h1 { font-size: 26px; line-height: 1.25; margin: 0 0 16px; }
.bf-prose h2 { font-size: 20px; margin: 28px 0 10px; }
.bf-prose h3 { font-size: 17px; margin: 22px 0 8px; }
.bf-prose p, .bf-prose li { font-size: 15.5px; line-height: 1.75; }
.bf-prose ul, .bf-prose ol { padding-left: 22px; }
.bf-prose a { color: var(--bf-accent, #C4005A); text-decoration: underline; }
.bf-prose table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.bf-prose td, .bf-prose th { border: 1px solid var(--bf-line, #E6E8EC); padding: 8px 10px; }

.bf-social { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.bf-social a { white-space: nowrap; }

/* The chat bubble sits above the sticky cart bar, not under it — a button
   the customer cannot reach is worse than no button. */
.bf-chat {
  position: fixed; right: 16px; bottom: 24px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
}
.bf-chat-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(16, 20, 30, .22);
  color: #fff; text-decoration: none;
  background: var(--brand, #c9005d);
  transition: transform .15s ease, background-color .25s ease, box-shadow .25s ease;
}
.bf-chat-btn svg { width: 26px; height: 26px; fill: currentColor; }
.bf-chat-btn.is-wa { background: var(--brand, #c9005d); }
.bf-chat-btn.is-fb { background: var(--brand, #c9005d); }
.bf-chat-btn.is-wa:hover { background: #25D366; transform: scale(1.08); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); }
.bf-chat-btn.is-fb:hover { background: #0084FF; transform: scale(1.08); box-shadow: 0 6px 20px rgba(0, 132, 255, 0.45); }
.bf-chat-btn:active { transform: scale(.94); }
.bf-chat-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .bf-chat-btn { transition: none; }
}

@media (max-width: 767px) {
  .bf-sidecart { display: none !important; }
  .bf-chat { right: 14px; bottom: calc(76px + var(--safe-bottom)); z-index: 90; }
  .bf-chat-btn { width: 56px; height: 56px; }   /* thumb-sized */
  .bf-prose h1 { font-size: 22px; }
  .bf-prose p, .bf-prose li { font-size: 16px; }
  .bf-pd-media { flex-direction: column-reverse; gap: 10px; margin-bottom: 16px; }
  .bf-pd-thumbs.is-vertical { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; padding: 2px 0; gap: 8px; }
  .bf-thumb { width: 52px; height: 52px; }
  .bf-pd-title { font-size: 20px; font-weight: 700; color: var(--brand); margin: 0 0 12px; }
  .bf-desc.is-desktop { display: none; }
  .bf-desc.is-mobile { display: block; margin-top: 24px; padding-top: 16px; border-top: 1px solid #F3F4F6; }
  .bf-qty { width: 120px; height: 44px; border: 1.5px solid #f472b6; border-radius: 6px; }
  .bf-btn-cart { height: 44px; font-size: 14px; font-weight: 700; border-radius: 6px; }
  .bf-btn-buy { height: 46px; font-size: 15px; font-weight: 700; border-radius: 6px; margin-top: 10px; }
}

@media print {
  .bf-chat { display: none !important; }
}

@media print {
  .bf-head, .bf-marquee, .bf-foot, .bf-buybar, .bf-cartbar, .bf-rcfoot,
  .bf-drawer, .bf-scrim, .bf-searchbar { display: none !important; }
  body { padding: 0; }
  .bf-rc, .bf-timeline { break-inside: avoid; }
}

/* =============================================== two rows of options */

.bf-optrow { margin: 0 0 14px; }
.bf-optrow h3 {
  font-size: 13px; color: var(--muted); margin: 0 0 8px;
  display: flex; gap: 6px; align-items: baseline;
}
/* The chosen value next to the label, so the shop's own words for the axis
   and the customer's choice read as one line: "Shade · ALTO". */
.bf-optpick { color: var(--ink); font-weight: 700; }

/* A choice that leads nowhere in the current combination. It stays visible
   — hiding it would make the row jump about as you tap — but it cannot be
   picked, which is the whole difference from the site this replaces. */
.bf-chip.is-dead, .bf-chip[disabled] {
  color: var(--muted-soft); background: var(--dead); border-color: var(--dead);
  cursor: not-allowed; text-decoration: line-through;
}

/* ============================================== hero carousel (phase 7) */

/* A horizontal scroller, not a slider. It swipes with no JavaScript, which
   is the behaviour that actually matters on a phone; the dots and the
   auto-advance are decoration added on top. */
.bf-hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bf-hero-track::-webkit-scrollbar { display: none; }
.bf-hero-slide { flex: 0 0 100%; scroll-snap-align: center; display: block; border-radius: 0 !important; }
.bf-hero-slide img { width: 100%; height: auto; border-radius: 0 !important; }
.bf-hero-dots {
  display: none !important;
}
.bf-hero-dot {
  display: none !important;
}

/* ==================================================== stars and reviews */

.bf-stars { position: relative; display: inline-block; margin: 0 0 4px; font-size: 13px; line-height: 1; }
.bf-stars-off { color: var(--line-strong); letter-spacing: 1px; }
.bf-stars-on {
  position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap;
  color: #F2B01E; letter-spacing: 1px;
}
.bf-stars em { font-style: normal; color: var(--muted); font-size: 11.5px; margin-left: 4px; }

.bf-rate-big { font-size: 13px; color: var(--muted); white-space: nowrap; }
.bf-rate-big strong { font-size: 17px; color: var(--ink); }

.bf-review { border-top: 1px solid var(--line); padding: 12px 0; }
.bf-review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; font-size: 13.5px; }
.bf-verified { font-size: 11.5px; font-weight: 700; color: var(--ok); }
.bf-review-title { margin: 0 0 3px; font-weight: 600; font-size: 14px; }
.bf-review-body { margin: 0; font-size: 13.5px; color: var(--muted); }
.bf-review-reply {
  margin: 8px 0 0; padding: 8px 10px; background: var(--brand-soft);
  border-radius: var(--r-sm); font-size: 13px;
}
.bf-reviews .bf-btn { margin-top: 14px; }
.bf-reviewform { margin: 14px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.bf-reviewform[hidden] { display: none; }
.bf-fineprint.is-bad { color: var(--brand); font-weight: 600; }

/* Five radios drawn right-to-left so that hovering or checking one lights
   every star before it — the ordinary star-picker trick, and it needs no
   JavaScript at all. */
.bf-ratepick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.bf-ratepick input { position: absolute; opacity: 0; width: 0; height: 0; }
.bf-ratepick label {
  font-size: 30px; line-height: 1; color: var(--line-strong); cursor: pointer;
  padding: 2px 3px; min-width: 38px; text-align: center;
}
.bf-ratepick input:checked ~ label,
.bf-ratepick label:hover,
.bf-ratepick label:hover ~ label { color: #F2B01E; }
.bf-ratepick input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

/* ======================================================= landing pages */

.bf-head-lp { justify-content: space-between; }
.bf-head-lp .bf-logo { flex: 1; text-align: left; padding-left: 12px; }
.bf-lp { max-width: 720px; }
.bf-lp-hero { width: 100%; height: auto; border-radius: var(--r); margin: 0 0 16px; }
.bf-lp-head { font-size: 24px; line-height: 1.25; letter-spacing: -.4px; margin: 0 0 8px; }
.bf-lp-sub { font-size: 15px; color: var(--muted); margin: 0 0 16px; }

/* =================================================== wider screens only */

@media (min-width: 768px) {
  :root { --head-h: 80px; }
  .bf-marquee { font-size: 15px; }
  .bf-burger { display: none; }
  .bf-logo { flex: 0 0 auto; text-align: left; padding: 0 18px 0 10px; }
  .bf-logo-img { max-height: 60px; }
  .bf-nav { display: flex; gap: 24px; flex: 1; font-size: 15px; font-weight: 600; text-transform: uppercase; }
  .bf-nav a:hover { color: var(--brand); }
  .bf-hero { position: relative; margin: 0 0 32px; border-radius: 0 !important; }
  .bf-hero img { aspect-ratio: 1920 / 526; border-radius: 0 !important; }
  .bf-hero-dots { display: none !important; }
  .bf-hero-dot { display: none !important; }
  .bf-h1 { font-size: 30px; }
  .bf-sec-head { justify-content: center; margin: 36px 0 20px; }
  .bf-sec-title { font-size: 32px; text-align: center; }
  .bf-sec-view-all-pill { display: none !important; }
  .bf-sec-cta { display: flex; justify-content: center; margin: 28px 0 16px; }
  .bf-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .bf-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto;
  }
  .bf-cat-card {
    border-radius: 0 !important;
    aspect-ratio: 1 / 1;
  }
  .bf-cat-card.is-featured-hero {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    aspect-ratio: 1 / 1;
    height: 100%;
  }
  .bf-cats-grid .bf-cat-card:nth-child(n+6) {
    display: none !important;
  }
  .bf-cat-name { font-size: 15px; font-weight: 700; padding: 30px 14px 12px; }
  .bf-cat-card.is-featured-hero .bf-cat-name { font-size: 18px; padding: 40px 18px 16px; }
  .bf-rail { grid-auto-columns: 22%; }
  .bf-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1440px; margin: 0 auto; }
  .bf-cats.is-page { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .bf-cats.is-page .bf-cat { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 1 / 1; border-radius: 0; }
  .bf-cats.is-page .bf-cat span { font-size: 22px; padding: 24px 18px 14px; }
  .bf-subcard { flex: 0 0 150px; width: 150px; height: 150px; border-radius: 10px; margin: 8px; }
  .bf-subcard-img { width: 100%; height: 100%; border-radius: 6px; }
  .bf-subcard-title { font-size: 16px; font-weight: 500; padding: 24px 12px 8px 12px; }
  .bf-subcard.is-all .bf-subcard-title { font-size: 30px; font-weight: 500; line-height: 1.2; padding: 24px 12px 8px 12px; }
  .bf-card-name { font-size: 14px; font-weight: 500; color: #374151; height: 42px; line-height: 1.35; }
  .bf-card-img { aspect-ratio: 244 / 304; }
  .bf-card .bf-btn {
    height: 38px; min-height: 38px; border-radius: 4px; font-size: 13.5px; font-weight: 600;
    text-transform: uppercase; border: 1px solid var(--brand, #C9005D);
    background: transparent; color: var(--brand, #C9005D);
  }
  .bf-card .bf-btn:hover {
    background: var(--brand, #C9005D); color: #fff;
  }

  .bf-pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .bf-pd-info { padding: 0; }
  .bf-pd-title { font-size: 32px; }
  .bf-desc.is-desktop { display: block; }
  .bf-desc.is-mobile { display: none; }
  .bf-buybar { position: static; height: auto; padding: 0; border-top: 0; }
  body { padding-bottom: 0; }
  .bf-cartbar { display: none !important; }

  .bf-sheet { inset: auto auto 0 0; width: 380px; max-height: 100vh; height: 100vh;
              border-radius: 0; z-index: 1050; box-shadow: 4px 0 32px rgba(0,0,0,0.25); }

  /* Checkout gets the classic two columns on a desktop: form on the left,
     summary pinned on the right where it can stay visible. */
  .bf-checkout .bf-co { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
                        gap: 34px; align-items: start; }
  .bf-checkout .bf-co-sum { grid-column: 2; grid-row: 1 / span 5; position: sticky; top: 84px; margin: 0; }
  .bf-checkout .bf-sumbody { display: block !important; }
  .bf-checkout .bf-sumtoggle { pointer-events: none; }
  .bf-checkout .bf-sumtoggle svg { display: none; }
  .bf-cline { grid-template-columns: 84px 1fr auto; }
  .bf-cline > img, .bf-cline > .bf-noimg { width: 84px; height: 84px; }
  .bf-receipt { max-width: 760px; }
  .bf-hero-slide { flex: 0 0 100%; }
  .bf-lp-head { font-size: 32px; }
  .bf-reviews { max-width: 760px; }
}

@media (min-width: 1100px) {
  .bf-grid { grid-template-columns: repeat(5, 1fr); }
  .bf-rail { grid-auto-columns: 18%; }
}

/* ==========================================================================
   BUY NOW & CARD ACTIONS
   ========================================================================== */

.bf-card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  margin-top: auto;
}

.bf-card-actions-grid .bf-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 6px;
  font-size: 11.5px;
  letter-spacing: 0;
  white-space: nowrap;
}

.bf-btn-buynow {
  background: var(--brand, #c9005d) !important;
  color: #ffffff !important;
  border-color: var(--brand, #c9005d) !important;
  font-weight: 700 !important;
  transition: all 0.15s ease;
}

.bf-btn-buynow:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   THEME MODE: FULL STOREFRONT DARK MODE
   ========================================================================== */

body[data-theme-mode="dark"],
body.is-dark-mode {
  --ink: #F8FAFC;
  --muted: #94A3B8;
  --muted-soft: #64748B;
  --line: #334155;
  --line-strong: #475569;
  --bg: #0B0F19;
  --surface: #1E293B;
  --wash: #141E33;
  --dead: #1E293B;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  background-color: #0B0F19 !important;
  color: #F8FAFC !important;
}

body[data-theme-mode="dark"] .bf-head,
body.is-dark-mode .bf-head {
  background: #0F172A;
  border-bottom-color: #1E293B;
}

body[data-theme-mode="dark"] .bf-card,
body.is-dark-mode .bf-card {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}

body[data-theme-mode="dark"] .bf-card-name,
body.is-dark-mode .bf-card-name {
  color: #F1F5F9;
}

body[data-theme-mode="dark"] .bf-card-price strong,
body.is-dark-mode .bf-card-price strong {
  color: #FFFFFF;
}

body[data-theme-mode="dark"] .bf-cats-title,
body.is-dark-mode .bf-cats-title,
body[data-theme-mode="dark"] .bf-h1,
body.is-dark-mode .bf-h1 {
  color: #FFFFFF;
}

body[data-theme-mode="dark"] .bf-drawer,
body.is-dark-mode .bf-drawer,
body[data-theme-mode="dark"] .bf-drawer-pane,
body.is-dark-mode .bf-drawer-pane,
body[data-theme-mode="dark"] .bf-sheet,
body.is-dark-mode .bf-sheet,
body[data-theme-mode="dark"] .bf-modal,
body.is-dark-mode .bf-modal,
body[data-theme-mode="dark"] .bf-cartbar,
body.is-dark-mode .bf-cartbar {
  background: #1E293B;
  color: #F8FAFC;
  border-color: #334155;
}

body[data-theme-mode="dark"] .bf-drawer-list li,
body.is-dark-mode .bf-drawer-list li {
  border-color: #334155;
}

body[data-theme-mode="dark"] .bf-drawer-list a,
body.is-dark-mode .bf-drawer-list a {
  color: #F8FAFC;
}

body[data-theme-mode="dark"] .bf-drawer-list li:hover,
body.is-dark-mode .bf-drawer-list li:hover {
  background: #2D3748;
}

body[data-theme-mode="dark"] .bf-input,
body.is-dark-mode .bf-input,
body[data-theme-mode="dark"] .bf-search-input,
body.is-dark-mode .bf-search-input,
body[data-theme-mode="dark"] input[type="text"],
body.is-dark-mode input[type="text"],
body[data-theme-mode="dark"] input[type="tel"],
body.is-dark-mode input[type="tel"],
body[data-theme-mode="dark"] textarea,
body.is-dark-mode textarea,
body[data-theme-mode="dark"] select,
body.is-dark-mode select {
  background: #0F172A !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}

body[data-theme-mode="dark"] .bf-foot,
body.is-dark-mode .bf-foot {
  background: #0F172A;
  border-top-color: #1E293B;
  color: #94A3B8;
}

body[data-theme-mode="dark"] .bf-foot-head,
body.is-dark-mode .bf-foot-head {
  color: #FFFFFF;
}

body[data-theme-mode="dark"] .bf-policy-page,
body.is-dark-mode .bf-policy-page,
body[data-theme-mode="dark"] .bf-pd-body,
body.is-dark-mode .bf-pd-body {
  color: #E2E8F0;
}

/* ------------------------------------------------ Authentic USA Box & Rich Description */
.bf-auth-box {
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 100%);
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0 20px;
}
.bf-auth-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bf-auth-icon {
  font-size: 24px;
  line-height: 1;
}
.bf-auth-title {
  color: #be123c;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
}
.bf-auth-sub {
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
}
.bf-product-overview, .bf-product-benefits, .bf-product-usage, .bf-product-pledge {
  margin: 16px 0;
}
.bf-product-overview h3, .bf-product-benefits h3, .bf-product-usage h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}
.bf-product-benefits ul {
  margin: 6px 0 0 18px;
  padding: 0;
  color: #374151;
  font-size: 13.5px;
  line-height: 1.6;
}
.bf-product-benefits li {
  margin-bottom: 6px;
}
.bf-product-pledge {
  background: #f8fafc;
  border-left: 3px solid #e11d48;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

body[data-theme-mode="dark"] .bf-auth-box {
  background: #1e1e2e;
  border-color: #881337;
}
body[data-theme-mode="dark"] .bf-auth-title {
  color: #fb7185;
}
body[data-theme-mode="dark"] .bf-auth-sub {
  color: #cbd5e1;
}
body[data-theme-mode="dark"] .bf-product-overview h3,
body[data-theme-mode="dark"] .bf-product-benefits h3,
body[data-theme-mode="dark"] .bf-product-usage h3 {
  color: #f1f5f9;
}
body[data-theme-mode="dark"] .bf-product-benefits ul {
  color: #cbd5e1;
}
body[data-theme-mode="dark"] .bf-product-pledge {
  background: #1e293b;
  color: #94a3b8;
}

