﻿/* Storefront ↔ bFrontshop bridge (host-only).
   Keeps package JS contracts (IDs) while neutralizing package chrome CSS. */

/* -------------------------------------------------------------------------
   Layout / container — beat Bootstrap .container gutters without removing class
   ------------------------------------------------------------------------- */
body.bf-storefront-chrome {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  --bs-gutter-x: 0;
  --bs-body-font-family: 'VazNum', 'Vazirmatn', 'IranSans', Tahoma, sans-serif;
  /* Kill package main.min.css `body{padding:.5rem .25rem .75rem}` — that inset
     left a cream/white strip above the gold ticker on some pages. Keep bottom
     padding for mobile tabbar (set in storefront-theme media queries). */
  padding-top: 0 !important;
  padding-inline: 0 !important;
}

body.bf-storefront-chrome #main-container.bf-main,
body.bf-storefront-chrome #main-container.bf-storefront-main,
body.bf-storefront-chrome #main-container.container.bf-main,
body.bf-storefront-chrome #main-container.container.bf-storefront-main {
  max-width: 1200px !important;
  width: 100%;
  margin-inline: auto;
  /* Content pages pad here (no nested <main>); homepage keeps tight rhythm below. */
  padding-inline: var(--page-x, 16px) !important;
  padding-block: 12px 24px !important;
  flex: 1 1 auto;
  --bs-gutter-x: 0;
}
@media (min-width: 900px) {
  body.bf-storefront-chrome #main-container.bf-main,
  body.bf-storefront-chrome #main-container.bf-storefront-main,
  body.bf-storefront-chrome #main-container.container.bf-main,
  body.bf-storefront-chrome #main-container.container.bf-storefront-main {
    padding-block: 12px 32px !important;
  }
}
body.bf-storefront-chrome.tb-home #main-container.bf-main,
body.bf-storefront-chrome.bf-homepage #main-container.bf-main,
body.bf-storefront-chrome.tb-home #main-container.container.bf-main,
body.bf-storefront-chrome.bf-homepage #main-container.container.bf-main {
  padding-block: 10px 16px !important;
}

body.bf-storefront-chrome #main-container.bf-main > main.bf-home,
body.bf-storefront-chrome #main-container.bf-storefront-main > main.bf-home,
body.bf-storefront-chrome #main-container.bf-main > main,
body.bf-storefront-chrome #main-container.bf-storefront-main > main {
  max-width: 1200px;
  margin-inline: auto;
  padding: 4px var(--page-x, 8px) 8px;
  width: 100%;
}

body.bf-storefront-chrome .bf-create-basket-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--page-x, 8px);
}

body.bf-storefront-chrome.bf-homepage {
  --bs-body-font-family: 'VazNum', 'Vazirmatn', 'IranSans', Tahoma, sans-serif;
}

/* -------------------------------------------------------------------------
   Footer — keep id="main-footer" for package contracts; beat #main-footer
   rules from main.min.css (ID specificity) with equally specific + higher
   cascade under body.bf-storefront-chrome.
   ------------------------------------------------------------------------- */
body.bf-storefront-chrome footer#main-footer.foot,
body.bf-storefront-chrome #main-footer.foot {
  margin-top: 42px !important;
  padding-top: 0 !important;
  padding-inline: var(--page-x, 8px) !important;
  padding-bottom: 88px !important;
  border-radius: 42px 42px 0 0 !important;
  background: transparent !important;
  background-image: none !important;
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  flex: 0 0 auto;
  box-shadow: none !important;
  border: 0 !important;
  color: inherit;
}

body.bf-storefront-chrome #main-footer .foot-box {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(20, 40, 60, 0.06);
}

/* Beat Bootstrap reboot padding on footer lists (32px inline-start indent). */
body.bf-storefront-chrome #main-footer .foot-col ul,
body.bf-storefront-chrome #main-footer .foot-col ol {
  padding: 0 !important;
  padding-inline: 0 !important;
  margin: 0;
  list-style: none;
}
body.bf-storefront-chrome #main-footer .foot-col li {
  padding-inline: 0;
}
body.bf-storefront-chrome #main-footer .trust .ic {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kill leftover package footer child selectors if markup ever overlaps */
body.bf-storefront-chrome #main-footer .logo-container,
body.bf-storefront-chrome #main-footer .links-container,
body.bf-storefront-chrome #main-footer .footer-content-box {
  all: unset;
  display: contents;
}

body.bf-storefront-chrome .bikaraan-footer {
  display: none !important;
}

@media (max-width: 899px) {
  body.bf-storefront-chrome.tb-home footer#main-footer.foot {
    display: block;
  }
}

/* -------------------------------------------------------------------------
   Header — ONLY .hdr is sticky; gold bar + subcats scroll away naturally
   ------------------------------------------------------------------------- */
body.bf-storefront-chrome header#main-header.hdr {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  border: 0;
  margin: 0;
  padding: 0;
}

body.bf-storefront-chrome .brand .bname {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

body.bf-storefront-chrome .brand .bname small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mut, #6b7785);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------------------------
   Gold bar — static (scrolls away); never sticky/fixed
   ------------------------------------------------------------------------- */
body.bf-storefront-chrome .gold-bar {
  position: relative;
  top: auto;
  z-index: 90;
  background: var(--c, #c4122f);
  color: #fff;
  width: 100%;
}

body.bf-storefront-chrome header.hdr,
body.bf-storefront-chrome .gold-bar + header.hdr,
body.bf-storefront-chrome .gold-bar ~ header.hdr,
body.bf-storefront-chrome:has(.gold-bar) .hdr,
body.bf-storefront-chrome:has(.gold-bar) header.hdr {
  top: 0 !important;
  z-index: 100;
}

/* Secondary category nav — sibling of header, not sticky.
   Do not force display here: visibility is owned by .only-d / .only-m
   (a previous display:block !important beat .only-m on desktop). */
body.bf-storefront-chrome nav.subcats {
  position: relative !important;
  top: auto !important;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border-top: 1px solid var(--line, #e6eded);
  border-bottom: 1px solid var(--line, #e6eded);
  grid-template-columns: none !important;
}
body.bf-storefront-chrome nav.subcats .subcats-in {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 var(--page-x, 8px);
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
body.bf-storefront-chrome nav.subcats .subcats-in::-webkit-scrollbar {
  display: none;
}
body.bf-storefront-chrome nav.subcats .subcat {
  flex: 0 0 auto;
  min-width: max-content;
  height: 42px;
  padding: 0 14px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1f2933);
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: color .2s, box-shadow .2s;
}
body.bf-storefront-chrome nav.subcats .subcat:hover,
body.bf-storefront-chrome nav.subcats .subcat:focus-visible {
  color: var(--cd, #8e0c22);
  box-shadow: inset 0 -2px 0 var(--c, #c4122f);
  outline: none;
}
/* Mobile visibility: rely on .only-d (hidden) / .only-m (shown). Do not
   blanket-hide all nav.subcats — that removed the CMS mobile strip. */
@media (min-width: 900px) {
  body.bf-storefront-chrome nav.subcats .subcat {
    height: 44px;
    padding: 0 10px;
    font-size: 13.5px;
  }
}

/* Neutralize package .fixed-gold-price-box white pill — Storefront gold bar is full-bleed red */
body.bf-storefront-chrome .gold-bar a.fixed-gold-price-box,
body.bf-storefront-chrome .gold-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: none;
  direction: rtl;
}

body.bf-storefront-chrome .gold-bar a.fixed-gold-price-box:hover,
body.bf-storefront-chrome .gold-bar a:hover {
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  filter: brightness(1.05);
}

body.bf-storefront-chrome .gold-bar .fixed-gold-price-icon,
body.bf-storefront-chrome .gold-bar .gb-ic {
  width: 22px;
  height: 22px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

body.bf-storefront-chrome .gold-bar .fixed-gold-price-label,
body.bf-storefront-chrome .gold-bar .fixed-gold-price-value,
body.bf-storefront-chrome .gold-bar .fixed-gold-price-currency,
body.bf-storefront-chrome .gold-bar .gb-val {
  color: #fff;
  max-width: none;
  overflow: visible;
  font-weight: 700;
}
body.bf-storefront-chrome .gold-bar .gb-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

/* Mobile: keep gold bar single-line (tighten size/gap; never wrap). */
@media (max-width: 899px) {
  body.bf-storefront-chrome .gold-bar a.fixed-gold-price-box,
  body.bf-storefront-chrome .gold-bar a {
    gap: 6px;
    min-height: 34px;
    padding: 5px 10px;
    font-size: 11.5px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  body.bf-storefront-chrome .gold-bar .gb-text {
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.bf-storefront-chrome .gold-bar .fixed-gold-price-icon,
  body.bf-storefront-chrome .gold-bar .gb-ic {
    width: 18px;
    height: 18px;
  }
  body.bf-storefront-chrome .gold-bar .gb-ic .ic {
    width: 11px;
    height: 11px;
  }
  body.bf-storefront-chrome .gold-bar .gb-arrow {
    width: 14px;
    height: 14px;
  }
}
body.bf-storefront-chrome .gold-bar .gb-sep {
  opacity: 0.55;
  font-weight: 500;
}
body.bf-storefront-chrome .gold-bar .gb-date {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
  letter-spacing: 0.02em;
}
body.bf-storefront-chrome .gold-bar .gb-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.9;
  stroke: currentColor;
  fill: none;
}
body.bf-storefront-chrome .gold-bar a:hover .gb-arrow {
  opacity: 1;
  transform: translateX(-2px);
  transition: transform 0.2s ease;
}

body.bf-storefront-chrome .gold-bar--pending .gold-bar-pending-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   Search sheet
   ------------------------------------------------------------------------- */
body.bf-storefront-chrome .hsearch-sheet.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* Full-page dim under the search sheet (JS toggles .open; theme also keys off body.search-on) */
body.bf-storefront-chrome .ssearch-scrim.open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 115;
  background: rgba(15, 23, 32, 0.42);
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------------------------------------------------------
   Bottom nav — keep id="bottom-navbar" (package); force tabbar chrome
   ------------------------------------------------------------------------- */
body.bf-storefront-chrome #bottom-navbar.navbar {
  all: unset;
}

body.bf-storefront-chrome nav.tabbar#bottom-navbar {
  /* styles from bf-storefront-chrome.css .tabbar */
}

/* -------------------------------------------------------------------------
   Product card / wishlist placement
   ------------------------------------------------------------------------- */
/* Match reference .heart placement (physical left of card image) */
body.bf-storefront-chrome .pcard .bf-wish,
body.bf-storefront-chrome .pcard .bf-wishlist-toggle--card,
body.bf-storefront-chrome .pcard .heart {
  position: absolute;
  top: 8px;
  left: 8px;
  right: auto;
  inset-inline: auto;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: #4a5560;
  box-shadow: 0 2px 8px rgba(20, 40, 60, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0;
}

body.bf-storefront-chrome .pcard .pbody {
  position: relative;
  z-index: 1;
}

body.bf-storefront-chrome .pcard .pic {
  position: relative;
}

body.bf-storefront-chrome .bf-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.bf-storefront-chrome .padd--ghost {
  background: #fff;
  color: var(--c, #c4122f);
  border: 1px solid var(--line, #e6eded);
  box-shadow: none;
}

body.bf-storefront-chrome .pcard.unavailable {
  opacity: 0.55;
  pointer-events: none;
}

body.bf-storefront-chrome .pcard.unavailable .bf-wish {
  pointer-events: auto;
}

/* -------------------------------------------------------------------------
   Homepage product rows — neutralize bFrontshop carousel chrome that forces
   overflow-x scrollbars + fixed 310px cards (breaks Storefront 4-col grid).
   ------------------------------------------------------------------------- */
body.bf-storefront-chrome .products-section {
  overflow: visible;
  padding: 0;
  margin: 0;
  border: 0;
}

body.bf-storefront-chrome .products-section .products-container,
body.bf-storefront-chrome .products-section .pstack.products-container,
body.bf-storefront-chrome .pstack.products-container.bf-pstack,
body.bf-storefront-chrome .bf-home .pstack,
body.bf-storefront-chrome .bf-home .pgrid,
body.bf-storefront-chrome .section-product-type .pstack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  overflow-x: visible !important;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: auto;
  flex-wrap: unset !important;
}

/* Neutralize leftover Bootstrap cols / flex / homepage-polish carousel widths */
body.bf-storefront-chrome .bf-home .pstack > .pcard,
body.bf-storefront-chrome .bf-home .pstack > [class*="col-"],
body.bf-storefront-chrome .section-product-type .pstack > .pcard,
body.bf-storefront-chrome .products-section .products-container > .pcard,
body.bf-storefront-chrome .products-section .products-container > .product-box,
body.bf-storefront-chrome.bf-homepage .products-section .product-box {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 700px) and (max-width: 899px) {
  /* Tablet: keep 2-col like the previous Storefront reference */
  body.bf-storefront-chrome .products-section .products-container,
  body.bf-storefront-chrome .products-section .pstack.products-container,
  body.bf-storefront-chrome .pstack.products-container.bf-pstack,
  body.bf-storefront-chrome .bf-home .pstack,
  body.bf-storefront-chrome .bf-home .pgrid,
  body.bf-storefront-chrome .section-product-type .pstack {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (min-width: 900px) {
  body.bf-storefront-chrome .products-section .products-container,
  body.bf-storefront-chrome .products-section .pstack.products-container,
  body.bf-storefront-chrome .pstack.products-container.bf-pstack,
  body.bf-storefront-chrome .bf-home .pstack,
  body.bf-storefront-chrome .bf-home .pgrid,
  body.bf-storefront-chrome .section-product-type .pstack {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

/* Hide leftover horizontal scrollbars on intentional swipe strips only */
body.bf-storefront-chrome .chips,
body.bf-storefront-chrome .hdr .subcats-in,
body.bf-storefront-chrome nav.subcats .subcats-in,
body.bf-storefront-chrome .blog-chips,
body.bf-storefront-chrome .tabs {
  scrollbar-width: none;
}
body.bf-storefront-chrome .chips::-webkit-scrollbar,
body.bf-storefront-chrome .hdr .subcats-in::-webkit-scrollbar,
body.bf-storefront-chrome nav.subcats .subcats-in::-webkit-scrollbar,
body.bf-storefront-chrome .blog-chips::-webkit-scrollbar,
body.bf-storefront-chrome .tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Soften package product-box chrome when it appears alongside .pcard */
body.bf-storefront-chrome .pcard.product-box,
body.bf-storefront-chrome .products-section .products-container .product-box.pcard {
  filter: none;
  width: auto;
  max-width: 100%;
  min-width: 0;
  flex: unset;
  flex-shrink: 1;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e6eded);
  border-radius: var(--r, 16px);
  box-shadow: none;
  justify-content: flex-start;
  height: 100%;
  margin: 0;
  padding: 0;
}

body.bf-storefront-chrome .pcard.product-box::before {
  content: none !important;
}

/* Kill package fixed image height / radius / margin that break 1:1 .pic.
   custom.min.css uses object-fit:contain !important on .product-card-image — override. */
body.bf-storefront-chrome .pcard .pic {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: #eef3f4;
  flex: 0 0 auto;
  display: block;
}
body.bf-storefront-chrome .pcard .pic picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
body.bf-storefront-chrome .pcard .pic img,
body.bf-storefront-chrome .pcard .product-card-image,
body.bf-storefront-chrome .product-box .product-card-image,
body.bf-storefront-chrome .pcard .pic picture img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  margin: 0 !important;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

/* Package section title underline (extra separator) — design uses ::before bar only */
body.bf-storefront-chrome .section-product-type .section-product-head__title,
body.bf-storefront-chrome .section-product-type h2.section-title {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 18px;
  font-weight: 700;
}

/* Kill polish horizontal title accent (__) that sits beside titles under flex. */
body.bf-storefront-chrome .section-item .section-title::after,
body.bf-storefront-chrome .section-product-type .section-product-head__title::after,
body.bf-storefront-chrome .sec-h h2::after,
body.bf-storefront-chrome .sec-h h2.section-title::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  background: none !important;
}

body.bf-storefront-chrome .section-product-head,
body.bf-storefront-chrome .section-product-head__nav {
  border: 0;
  box-shadow: none;
}

/* Prevent package/polish title margins from inflating the intended 12/14 section gaps */
body.bf-storefront-chrome.bf-homepage .bf-home .section-product-head,
body.bf-storefront-chrome.bf-homepage .bf-home .sec-h,
body.bf-storefront-chrome .bf-home > .sec > .sec-h,
body.bf-storefront-chrome .bf-home > .section-item > .sec-h {
  margin-top: 0;
}

body.bf-storefront-chrome.bf-homepage .bf-home .section-item .section-title,
body.bf-storefront-chrome.bf-homepage .bf-home .section-product-head__title,
body.bf-storefront-chrome .bf-home > .sec .section-title,
body.bf-storefront-chrome .bf-home > .section-item .section-title {
  margin-top: 0;
}

body.bf-storefront-chrome .section-item,
body.bf-storefront-chrome .sec.section-item {
  border: 0;
  box-shadow: none;
  outline: none;
}

/* Kill package .section-item horizontal padding / huge 2em margins (main.min).
   Vertical rhythm is set explicitly below. */
body.bf-storefront-chrome .bf-home > .section-item,
body.bf-storefront-chrome .bf-home > .sec.section-item,
body.bf-storefront-chrome .bf-home > .features-sec.section-item,
body.bf-storefront-chrome.bf-homepage .bf-home > .section-item {
  padding-inline: 0;
}

/* Gold ticker flush to the top of the viewport (no body-padding / BOM gap). */
body.bf-storefront-chrome > .gold-bar,
body.bf-storefront-chrome > .bf-gold-ticker,
body.bf-storefront-chrome .gold-bar.bf-gold-ticker {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

body.bf-storefront-chrome header#main-header.hdr,
body.bf-storefront-chrome header.hdr {
  margin-top: 0 !important;
}

/*
  Homepage vertical rhythm — visible air above AND below each section.
  12px felt like ~0; keep below the old 44px+padding stack, but clearly readable.
  Categories after the banner stay a bit closer than other section gaps.
*/
body.bf-storefront-chrome.bf-homepage .bf-home > .sec.section-item,
body.bf-storefront-chrome.bf-homepage .bf-home > .features-sec.section-item,
body.bf-storefront-chrome.bf-homepage .bf-home > .section-blog-type.section-item,
body.bf-storefront-chrome .bf-home > .sec.section-item,
body.bf-storefront-chrome .bf-home > .features-sec.section-item {
  margin-top: 32px;
  margin-bottom: 16px;
  padding-block: 8px;
  padding-inline: 0;
}

body.bf-storefront-chrome.bf-homepage .bf-home > .section-banner-type.section-item,
body.bf-storefront-chrome.bf-homepage .bf-home > .bf-banner-sec.section-item,
body.bf-storefront-chrome .bf-home > .section-banner-type.section-item,
body.bf-storefront-chrome .bf-home > .bf-banner-sec.section-item {
  margin-top: 4px;
  margin-bottom: 8px;
  padding-block: 0;
}

@media (max-width: 899px) {
  /* Top gap = side gutter (--page-x); theme zeros container/main top padding. */
  body.bf-storefront-chrome.bf-homepage .bf-home > .section-banner-type.section-item,
  body.bf-storefront-chrome.bf-homepage .bf-home > .bf-banner-sec.section-item,
  body.bf-storefront-chrome .bf-home > .section-banner-type.section-item,
  body.bf-storefront-chrome .bf-home > .bf-banner-sec.section-item {
    margin-top: var(--page-x, 8px);
  }
}

/* Categories: closer to the banner than other section-to-section gaps */
body.bf-storefront-chrome.bf-homepage .bf-home > .section-banner-type + .sec.section-item,
body.bf-storefront-chrome.bf-homepage .bf-home > .bf-banner-sec + .sec.section-item,
body.bf-storefront-chrome.bf-homepage .bf-home > .section-banner-type + .section-item,
body.bf-storefront-chrome.bf-homepage .bf-home > .bf-banner-sec + .section-item,
body.bf-storefront-chrome.bf-homepage .bf-home > .section-banner-type + .section-category-type,
body.bf-storefront-chrome.bf-homepage .bf-home > .bf-banner-sec + .section-category-type {
  margin-top: 24px;
}

body.bf-storefront-chrome.bf-homepage .bf-home > .sec-special.section-item,
body.bf-storefront-chrome.bf-homepage .bf-home > .section-product-type.sec-special {
  margin-top: 32px;
  margin-bottom: 16px;
  padding-block: 8px;
}

/* Hero: keep dots; never show prev/next even if markup reappears */
body.bf-storefront-chrome .hero-slider .hs-nav {
  display: none;
}

/* Qty wrap inside card foot must not inflate card width */
body.bf-storefront-chrome .pcard .bf-add-wrap,
body.bf-storefront-chrome .pcard .bf-qty-wrap {
  flex: 0 0 auto;
}
/* Header / icon-btn badges: physical top-right; right must come after any inset-inline. */
body.bf-storefront-chrome .ibtn .bdg,
body.bf-storefront-chrome .bf-header-basket-badge,
body.bf-storefront-chrome .bf-header-wishlist-badge {
  color: #fff !important;
  top: -2px !important;
  left: auto !important;
  right: -2px !important;
  width: auto !important;
  max-width: 42px !important;
  flex: 0 0 auto !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding-top: 1px !important;
  transform: none !important;
}
body.bf-storefront-chrome .ibtn .bdg.on,
body.bf-storefront-chrome .bf-header-basket-badge.on,
body.bf-storefront-chrome .bf-header-wishlist-badge.on,
body.bf-storefront-chrome .bf-header-wishlist-badge.is-on {
  display: inline-flex !important;
}
/* Tabbar cart badge: glued to bag top-right corner. */
body.bf-storefront-chrome .tabbar .bdg,
body.bf-storefront-chrome .tabbar .js-cart-bdg {
  color: #fff !important;
  top: -2px !important;
  left: auto !important;
  right: 0 !important;
  width: auto !important;
  max-width: 42px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  transform: none !important;
}

body.bf-storefront-chrome .pcard .padd {
  box-shadow: none !important;
  color: #fff;
}
body.bf-storefront-chrome .pcard .padd .ic {
  stroke: #fff !important;
  color: #fff !important;
}
body.bf-storefront-chrome .pcard .padd:hover,
body.bf-storefront-chrome .pcard .padd:focus-visible {
  background: color-mix(in srgb, var(--c, #c4122f) 78%, #fff) !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
body.bf-storefront-chrome .pcard .padd:hover .ic,
body.bf-storefront-chrome .pcard .padd:focus-visible .ic {
  stroke: #fff !important;
  color: #fff !important;
}
body.bf-storefront-chrome .pcard .bf-qty-wrap .padd {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
@media (max-width: 899px) {
  body.bf-storefront-chrome .pcard .padd,
  body.bf-storefront-chrome .pcard .bf-qty-wrap .padd {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  body.bf-storefront-chrome .pcard .padd .ic {
    width: 15px;
    height: 15px;
  }
}
body.bf-storefront-chrome .pcard .in-basket-amount-container {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #1f2933);
  min-width: 1.5em;
  text-align: center;
}

/* Category icons: size comes from bf-storefront-chrome.css (.cc-ic 64/76); fill the circle */
body.bf-storefront-chrome .cat-circle .cc-ic img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
@media (min-width: 900px) {
  body.bf-storefront-chrome .cat-circle .cc-ic img {
    width: 48px;
    height: 48px;
  }
}

body.bf-storefront-chrome .sec-h h2.section-title,
body.bf-storefront-chrome .sec-h h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.bf-storefront-chrome .sec-h h2::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: var(--c, #c4122f);
}

body.bf-storefront-chrome .bcard-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

body.bf-storefront-chrome .bcard-media {
  position: relative;
}

/* -------------------------------------------------------------------------
   Package modals / offcanvas — keep markup; light visual alignment only
   ------------------------------------------------------------------------- */
body.bf-storefront-chrome #categories-sidebar.offcanvas {
  border-radius: 0 20px 20px 0;
}

body.bf-storefront-chrome #addToCartBoxModal .modal-content {
  border-radius: 20px;
  border: 0;
  overflow: hidden;
}

body.bf-storefront-chrome #main-container > .alert,
body.bf-storefront-chrome #main-container > .toast-container {
  margin-bottom: 8px;
}

/* Products listing */
body.bf-storefront-chrome .bf-products-page .pgrid,
body.bf-storefront-chrome .pgrid.products-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 700px) {
  body.bf-storefront-chrome .bf-products-page .pgrid,
  body.bf-storefront-chrome .pgrid.products-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (min-width: 1000px) {
  body.bf-storefront-chrome .bf-products-page .pgrid,
  body.bf-storefront-chrome .pgrid.products-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
body.bf-storefront-chrome .bf-filter-slot {
  margin-top: 16px;
}
body.bf-storefront-chrome .bf-preview-banner {
  border-radius: 14px;
  font-size: 13px;
}

/* PDP gallery — main contain; thumbs may crop; columns stay minmax(0,…) */
body.bf-storefront-chrome.page-product .pd {
  width: 100%;
  max-width: 100%;
}
body.bf-storefront-chrome.page-product .gal,
body.bf-storefront-chrome.page-product .pi {
  min-width: 0 !important;
  max-width: 100% !important;
}
body.bf-storefront-chrome.page-product .thumbs {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
}
body.bf-storefront-chrome.page-product .gal .main img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  max-width: none !important;
  max-height: none !important;
}
body.bf-storefront-chrome.page-product .thumbs button img {
  object-fit: cover;
  object-position: center;
}
@media (min-width: 900px) {
  body.bf-storefront-chrome.page-product .pd {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  body.bf-storefront-chrome.page-product .gal .main img.is-hover-zoom {
    transform: scale(1.35) !important;
  }
}
@media (max-width: 899px) {
  /* Single column only on mobile — do not override desktop 2-col */
  body.bf-storefront-chrome.page-product .pd {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.bf-storefront-chrome .hero-slider,
  body.bf-storefront-chrome .hero-slider .hs-slide,
  body.bf-storefront-chrome .pcard .pic {
    overflow: hidden;
  }
  body.bf-storefront-chrome .hero-slider .hs-slide img,
  body.bf-storefront-chrome .pcard .pic img,
  body.bf-storefront-chrome .pcard .pic picture img {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
  }
  body.bf-storefront-chrome,
  body.bf-storefront-chrome #main-container {
    overflow-x: clip;
    max-width: 100vw;
  }
}

/* Card prices: always flush to the inline-start (right in RTL) */
body.bf-storefront-chrome .pcard .pfoot {
  direction: rtl;
}
body.bf-storefront-chrome .pcard .pprice {
  direction: rtl;
  text-align: right;
  align-items: flex-start;
}
body.bf-storefront-chrome .pcard .pprice .row1,
body.bf-storefront-chrome .pcard .pprice .now {
  text-align: right;
  justify-content: flex-start;
  width: 100%;
}

body.bf-storefront-chrome.page-product .pi {
  direction: rtl;
  text-align: right;
}
body.bf-storefront-chrome.page-product .pi .prices {
  direction: rtl;
  justify-content: flex-start;
  text-align: right;
  align-items: baseline;
}
body.bf-storefront-chrome.page-product .pi .prices.prices--hero {
  margin-bottom: 6px;
}
body.bf-storefront-chrome.page-product .pi .prices .now {
  text-align: right;
  margin-inline-end: 0;
  order: 0;
}
body.bf-storefront-chrome.page-product .pi h1 {
  text-align: right;
  font-weight: 600;
}
body.bf-storefront-chrome.page-product .pi .meta .stock-qty,
body.bf-storefront-chrome.page-product .pdp-facts .stock-qty {
  font-size: 20px;
  font-weight: 700;
  color: #2a333c;
  margin-inline-start: 6px;
}
body.bf-storefront-chrome.page-product .pi .meta {
  justify-content: flex-start;
}
body.bf-storefront-chrome.page-product .pi .prices .pct {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(229, 2, 31, 0.12);
  color: var(--cd, #8e0c22);
  font-size: 12.5px;
  font-weight: 700;
}
body.bf-storefront-chrome.page-product .bf-atc {
  margin-top: 16px;
}
body.bf-storefront-chrome.page-product .bf-atc-box {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  direction: rtl;
  text-align: right;
}
body.bf-storefront-chrome.page-product .bf-atc-box .loading-state {
  min-height: 64px;
}
body.bf-storefront-chrome.page-product .bf-atc-box #pricesTable,
body.bf-storefront-chrome.page-product .bf-atc-box #pricesTableHead,
body.bf-storefront-chrome.page-product .bf-atc-box #pricesTableBody,
body.bf-storefront-chrome.page-product .bf-atc-box #productImage,
body.bf-storefront-chrome.page-product .bf-atc-box #productImage:not([src]),
body.bf-storefront-chrome.page-product .bf-atc-box .text-center.mb-4.d-none {
  display: none !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .mb-3 {
  margin-bottom: 14px !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1f2933);
  margin: 0 0 6px;
  text-align: right;
}
body.bf-storefront-chrome.page-product .bf-atc-box .form-control,
body.bf-storefront-chrome.page-product .bf-atc-box .form-select,
body.bf-storefront-chrome.page-product .bf-atc-box select.form-control,
body.bf-storefront-chrome.page-product .bf-atc-box textarea.form-control,
body.bf-storefront-chrome.page-product .bf-atc-box .input-group-text,
body.bf-storefront-chrome.page-product .bf-atc-box .input-group > .form-control,
body.bf-storefront-chrome.page-product .bf-atc-box .input-group > .form-floating,
body.bf-storefront-chrome.page-product .bf-atc-box .input-group > .form-select,
body.bf-storefront-chrome.page-product .bf-atc-box .input-group > .input-group-text {
  min-height: 48px !important;
  height: auto !important;
  border: 1px solid var(--line, #e6eded) !important;
  background: #f4f7f8 !important;
  font-size: 14px !important;
  color: var(--ink, #1f2933) !important;
  box-shadow: none !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  direction: rtl;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line, #e6eded);
  background: #f4f7f8;
}
body.bf-storefront-chrome.page-product .bf-atc-box .input-group > .form-control {
  border: 0 !important;
  border-radius: 0 !important;
  text-align: right !important;
  flex: 1 1 auto;
  padding: 0 14px !important;
  background: transparent !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .input-group > .input-group-text {
  border: 0 !important;
  border-inline-start: 1px solid var(--line, #e6eded) !important;
  border-radius: 0 !important;
  background: #eef2f5 !important;
  color: var(--mut, #6b7785) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 14px !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box select.form-control,
body.bf-storefront-chrome.page-product .bf-atc-box .form-select,
body.bf-storefront-chrome.page-product .bf-atc-box textarea.form-control {
  border-radius: 14px !important;
  padding: 12px 14px !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .form-control:focus,
body.bf-storefront-chrome.page-product .bf-atc-box select.form-control:focus,
body.bf-storefront-chrome.page-product .bf-atc-box textarea.form-control:focus,
body.bf-storefront-chrome.page-product .bf-atc-box .input-group:focus-within {
  background: #fff !important;
  border-color: var(--c, #c4122f) !important;
  box-shadow: 0 0 0 3px rgba(229, 2, 31, 0.14) !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .input-group:focus-within > .form-control,
body.bf-storefront-chrome.page-product .bf-atc-box .input-group:focus-within > .input-group-text {
  background: #fff !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box textarea.form-control {
  min-height: 110px !important;
  resize: vertical;
}

/* Price calculation panel — kill Bootstrap float overlap */
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert {
  display: grid !important;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line, #e6eded);
  border-radius: 16px;
  background: #f7fafb;
  color: var(--ink, #1f2933);
  box-shadow: none;
  position: relative;
}
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert.d-none {
  display: none !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert > div {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  float: none !important;
  width: 100%;
  direction: rtl;
}
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert .float-end,
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert .float-start {
  float: none !important;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  flex: 0 0 auto;
  order: 2;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert > div > strong {
  order: 1;
  margin: 0 !important;
  flex: 0 0 auto;
  text-align: right;
}
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--mut, #8a96a1);
}
body.bf-storefront-chrome.page-product .bf-atc-box #customerDescriptionContainer {
  display: none !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert #calculatedFeePrice,
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert #calculatedTotalPrice {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1f2933);
}
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert .raw-price-line-through-container,
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert #calculatedRawPrice {
  color: #97a1ab;
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationAlert small {
  font-size: 12px;
  color: var(--mut, #6b7785);
  font-weight: 500;
}
body.bf-storefront-chrome.page-product .bf-atc-box #priceCalculationSpinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(247, 250, 251, 0.72);
  border-radius: 16px;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit--view {
  --bf-cta-h: 48px;
  height: var(--bf-cta-h) !important;
  min-height: var(--bf-cta-h) !important;
  max-height: var(--bf-cta-h) !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: var(--c, #c4122f) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  letter-spacing: -0.01em;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px !important;
  /* flex: grow in row without overflowing share/heart (min-width:auto was the overlap bug) */
  flex: 1 1 0% !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit:hover,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit:focus-visible,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit:hover,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit:focus-visible {
  background: color-mix(in srgb, var(--c, #c4122f) 82%, #000) !important;
  color: #fff !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit .ic {
  width: 18px;
  height: 18px;
  stroke: #fff !important;
  color: #fff !important;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
/* Hover: only lighten brand red — no darker red, no blue Bootstrap, no glow */
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit:hover,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit:focus-visible {
  background: color-mix(in srgb, var(--c, #c4122f) 78%, #fff) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit:hover .ic,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit:focus-visible .ic {
  stroke: #fff !important;
  color: #fff !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit:active {
  background: color-mix(in srgb, var(--c, #c4122f) 88%, #fff) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* View-cart morph: outline (not filled brand red like Add-to-cart) — same box size as add */
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit--view,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit.bf-atc-submit--view {
  background: #fff !important;
  color: var(--ink, #1f2933) !important;
  border: 1.5px solid var(--line, #e6eded) !important;
  box-shadow: none !important;
  height: var(--bf-cta-h, 48px) !important;
  min-height: var(--bf-cta-h, 48px) !important;
  max-height: var(--bf-cta-h, 48px) !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit--view:hover,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit--view:focus-visible,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit.bf-atc-submit--view:hover,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit.bf-atc-submit--view:focus-visible,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.btn-primary.bf-atc-submit--view:hover,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.btn-primary.bf-atc-submit--view:focus-visible {
  background: rgba(229, 2, 31, 0.08) !important;
  color: var(--cd, #8e0c22) !important;
  border-color: rgba(229, 2, 31, 0.35) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit--view .bf-atc-arrow,
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit--view .bf-atc-label {
  color: inherit;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit--view .bf-atc-arrow {
  order: 1;
  display: inline-flex;
  line-height: 1;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit--view .bf-atc-label {
  order: 0;
}
body.bf-storefront-chrome.page-product .bf-atc-box #addToCartSubmit.bf-atc-submit--view .bf-atc-arrow svg {
  stroke: currentColor;
  color: inherit;
  display: block;
}

/* View-basket link: brand outline, not Bootstrap secondary slate hover */
body.bf-storefront-chrome .go-to-basket-link,
body.bf-storefront-chrome .bf-go-basket,
body.bf-storefront-chrome.page-product .bf-atc-box .go-to-basket-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px !important;
  border-radius: 999px !important;
  border: 1px solid var(--line, #e6eded) !important;
  background: #fff !important;
  color: var(--ink, #1f2933) !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
body.bf-storefront-chrome .go-to-basket-link:hover,
body.bf-storefront-chrome .go-to-basket-link:focus-visible,
body.bf-storefront-chrome .bf-go-basket:hover,
body.bf-storefront-chrome .bf-go-basket:focus-visible,
body.bf-storefront-chrome.page-product .bf-atc-box .go-to-basket-link:hover,
body.bf-storefront-chrome.page-product .bf-atc-box .go-to-basket-link:focus-visible {
  background: #fdf0f1 !important;
  border-color: rgba(196, 18, 47, 0.35) !important;
  color: var(--cd, #8e0c22) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* Hide native amount field; show +/- stepper */
body.bf-storefront-chrome.page-product .bf-atc-box #productAmountContainer.bf-amount-has-stepper > .input-group {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box #productAmountContainer.bf-amount-has-stepper {
  position: relative;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line, #e6eded);
  border-radius: 999px;
  background: #fff;
  height: 48px;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 1px 2px rgba(31, 41, 51, 0.04);
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-stepper button {
  width: 48px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink, #1f2933);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-stepper button:hover {
  color: var(--cd, #8e0c22);
  background: #fdf0f1;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-stepper .ic {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-stepper output {
  flex: 1;
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink, #1f2933);
}

body.bf-storefront-chrome.page-product .pdp-facts {
  list-style: none;
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line, #e6eded);
  border-radius: 16px;
  background: #fff;
  display: grid;
  gap: 8px;
}
body.bf-storefront-chrome.page-product .pdp-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink, #1f2933);
}
body.bf-storefront-chrome.page-product .pdp-facts b {
  font-weight: 600;
  color: var(--mut, #6b7785);
}
body.bf-storefront-chrome.page-product .pdp-facts span {
  font-weight: 700;
}

body.bf-storefront-chrome.page-product .share-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line, #e6eded);
  background: #fff;
  color: var(--ink, #1f2933);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
body.bf-storefront-chrome.page-product .share-btn:hover {
  border-color: #f3c3cb;
  color: var(--cd, #8e0c22);
  background: #fff8f9;
}
body.bf-storefront-chrome.page-product .share-btn.is-done {
  border-color: #b7e4c7;
  color: #1b7a3d;
  background: #f3fbf6;
}
body.bf-storefront-chrome.page-product .share-btn .ic {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* CTA row: buy + share + heart — same height in every ATC state (add / view / qty change). */
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta {
  --bf-cta-h: 48px;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
  justify-content: stretch !important;
  align-items: center !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta #addToCartSubmit {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-product-share--compact,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-product-share {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  flex: 0 0 var(--bf-cta-h) !important;
  width: var(--bf-cta-h) !important;
  min-width: var(--bf-cta-h) !important;
  max-width: var(--bf-cta-h) !important;
  height: var(--bf-cta-h) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: center;
  position: relative;
  z-index: 2;
  overflow: visible;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-wishlist-toggle--cta,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-product-share__trigger,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-product-share__trigger--icon {
  flex: 0 0 var(--bf-cta-h) !important;
  width: var(--bf-cta-h) !important;
  height: var(--bf-cta-h) !important;
  min-width: var(--bf-cta-h) !important;
  min-height: var(--bf-cta-h) !important;
  max-width: var(--bf-cta-h) !important;
  max-height: var(--bf-cta-h) !important;
  padding: 0 !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  line-height: 0;
  box-sizing: border-box !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-product-share__trigger-icon svg,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-wishlist-toggle--cta svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2;
}
/* Share hover: brand red wash (not Bootstrap outline-secondary blue) */
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-product-share__trigger:hover,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-product-share__trigger:focus-visible,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-product-share__trigger.btn-outline-secondary:hover,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-wishlist-toggle--cta:hover,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-wishlist-toggle--cta:focus-visible {
  background: rgba(229, 2, 31, 0.08) !important;
  border-color: rgba(229, 2, 31, 0.35) !important;
  color: var(--cd, #8e0c22) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-wishlist-toggle--cta.is-active,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-wishlist-toggle--cta.is-active:hover {
  color: #E53935 !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-add-to-cart-cta .bf-wishlist-toggle--cta.is-active svg {
  fill: currentColor !important;
  stroke: none !important;
  color: #E53935 !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .go-to-basket-link-container {
  display: none !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-qty-stepper {
  width: auto;
  max-width: 220px;
  direction: ltr !important;
}
body.bf-storefront-chrome.page-product .bf-atc-box .bf-qty-stepper__value {
  direction: ltr !important;
}
/* Beat generic ATC form-control right-align — qty digit stays centered beside unit. */
body.bf-storefront-chrome.page-product .bf-atc-box .bf-qty-stepper .form-control,
body.bf-storefront-chrome.page-product .bf-atc-box .bf-qty-stepper__input {
  min-height: 44px !important;
  height: 44px !important;
  width: 2.5ch !important;
  min-width: 2ch !important;
  max-width: 4.5ch !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
  direction: ltr !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.bf-storefront-chrome.page-product .bf-pdp-tabs.panel {
  margin-top: 22px;
}
body.bf-storefront-chrome.page-product .sbar .btn-p .ic {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}
/* Keep gold bar static on PDP too */
body.bf-storefront-chrome.page-product .gold-bar {
  position: relative;
  top: auto;
}
body.bf-storefront-chrome.page-product header.hdr {
  top: 0;
}

/* Gold demo chart (non-SoR) */
body.bf-storefront-chrome .gold-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  margin-top: 10px;
}
body.bf-storefront-chrome .gold-bars span {
  flex: 1;
  background: var(--c, #c4122f);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

/* Static pages */
body.bf-storefront-chrome .about-hero img {
  width: 100%;
  border-radius: 22px;
  display: block;
  max-height: 320px;
  object-fit: cover;
}
body.bf-storefront-chrome .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
body.bf-storefront-chrome .bgrid {
  display: grid;
  gap: 12px;
}
@media (min-width: 700px) {
  body.bf-storefront-chrome .bgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
body.bf-storefront-chrome .bcard {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line, #e6eded);
  padding: 14px;
}
body.bf-storefront-chrome .cart-checkout-wrap {
  margin-top: 18px;
  padding-bottom: 24px;
}
body.bf-storefront-chrome .cart-checkout-wrap .btn-p,
body.bf-storefront-chrome .btn.btn-p {
  background: var(--c, #c4122f);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
}

/* Task 24: listing mobile — 0.5rem vertical rhythm (override padding-block:24px) */
@media (max-width: 991.98px) {
  body.bf-storefront-chrome.bf-listing-page #main-container.container.bf-main,
  body.bf-storefront-chrome.bf-listing-page #main-container.container.bf-storefront-main {
    padding-block: .5rem !important;
  }
}

