/* Simple — Fluent (`simple-fluent`): the Simple storefront drawn with the
   Fluent theme. Loaded AFTER storefront-ssr/fluent/theme.css, so this file
   only carries what makes it Simple: the brand-filled app bar, 16:5
   category banners, the brand tiles, the wholesale card details, the
   five-item bottom nav and the floating cart total. Every token
   (--fl-*) comes from the Fluent sheet and the inlined brand ramp
   (Support\FluentBrand: Simple's berry-rose #8E2A4C and rose-gold accent
   #B98A5E unless the merchant picked colours). Class prefix `sf-`. */

/* ---------- app bar (brand-filled) ---------- */
.sf-appbar { background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sf-appbar__bar { background: var(--fl-brand); color: var(--fl-on-brand); }
.sf-appbar__row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo end" "search search"; align-items: center; gap: 8px 16px; padding-block: 10px; }
.sf-appbar .fl-logo { grid-area: logo; color: var(--fl-on-brand); }
.sf-appbar .fl-logo__mark { background: rgba(255, 255, 255, .18); color: var(--fl-on-brand); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.sf-appbar__search { grid-area: search; min-width: 0; }
.sf-appbar__end { grid-area: end; justify-self: end; display: flex; align-items: center; gap: 2px; margin-inline-end: -8px; }
.sf-appbar .fl-iconbtn { color: var(--fl-on-brand); }
.sf-appbar .fl-iconbtn:hover { background: rgba(255, 255, 255, .14); color: var(--fl-on-brand); }
.sf-appbar .fl-iconbtn:active { background: rgba(255, 255, 255, .22); }
.sf-appbar .fl-count { box-shadow: 0 0 0 2px var(--fl-brand); }
.sf-appbar__lang { display: none; align-items: center; min-height: 32px; padding: 0 10px; border-radius: var(--fl-r-m); color: var(--fl-on-brand); font-size: 13px; font-weight: 600; }
.sf-appbar__lang:hover { background: rgba(255, 255, 255, .14); }
.sf-appbar :focus-visible { outline-color: var(--fl-on-brand); }
/* the search box sits on the brand fill: a white field, Fluent's underline on focus */
.sf-appbar .dr-search { background: var(--fl-bg-1); border-color: transparent; border-bottom-color: transparent; }
.sf-appbar .dr-search:hover { background: var(--fl-bg-1); }
.sf-appbar .dr-search:focus-within { border-color: transparent; border-bottom-color: var(--fl-brand-30); box-shadow: inset 0 -2px 0 0 var(--fl-brand-30); }
/* Simple keeps its search in view: ignore app.js's scroll-collapse */
.sf-appbar[data-collapsed] .sf-appbar__search { display: block; }
@media (min-width: 900px) {
  .sf-appbar__row { grid-template-columns: auto minmax(260px, 640px) auto; grid-template-areas: "logo search end"; justify-content: space-between; column-gap: 32px; padding-block: 12px; }
  .sf-appbar__lang { display: inline-flex; }
}

/* ---------- home ---------- */
.sf-home { padding-block: 20px 32px; }
.sf-section { padding-block: 12px 20px; }
@media (min-width: 1024px) { .sf-section { padding-block: 16px 28px; } }

/* 16:5 category banners: one per row on a phone, three across from 900px —
   on the home, /categories and a category's drill-down alike */
.sf-banners, .fl-theme-simple-fluent .fl-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .sf-banners, .fl-theme-simple-fluent .fl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.sf-banner { position: relative; display: block; overflow: hidden; border-radius: var(--fl-r-xxl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-4); transition: box-shadow var(--fl-normal) var(--fl-ease), transform var(--fl-normal) var(--fl-ease); }
.sf-banner:hover { box-shadow: var(--fl-shadow-16); }
@media (hover: hover) { .sf-banner:hover { transform: translateY(-2px); } }
.sf-banner:hover .dr-pic img { transform: scale(1.03); }
.sf-banner .dr-pic__plate { font-size: 28px; }
.sf-banner__caption { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 28px 16px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); color: #FFFFFF; }
.sf-banner__name { font: 600 16px/22px var(--fl-font); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.sf-banner__count { flex: none; font-size: 12px; opacity: .9; }

/* brand logo tiles: three across on a phone, six from 700px */
.sf-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .sf-brands { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sf-brand { display: block; padding: 12px; border-radius: var(--fl-r-xxl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-2); transition: box-shadow var(--fl-normal) var(--fl-ease); }
.sf-brand:hover { box-shadow: var(--fl-shadow-8); }
.sf-brand .dr-pic { background: var(--fl-bg-1); }
.sf-brand .dr-pic__plate { font-size: 22px; }

/* ---------- the wholesale card ---------- */
.sf-card .fl-card__media .dr-pic { background: var(--fl-bg-1); }
.sf-card__sku { color: var(--fl-fg-3); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.sf-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: var(--fl-r-m); background: var(--fl-accent-tint); color: var(--fl-accent-fg); font-size: 11px; font-weight: 600; white-space: nowrap; }
.sf-card__tier { display: flex; align-items: center; gap: 4px; color: var(--fl-success-fg); font-size: 12px; line-height: 16px; font-weight: 600; }
.sf-card__tier .dr-icon { width: 12px; height: 12px; flex: none; }

/* ---------- the add stepper: red −, green + (owner, 2026-11-23) ---------- */
.fl-stepper [data-dec] { background: var(--fl-danger); color: #FFFFFF; }
.fl-stepper [data-dec]:hover { background: var(--fl-danger-fg); }
.fl-stepper [data-inc] { background: var(--fl-success); color: #FFFFFF; }
.fl-stepper [data-inc]:hover { background: var(--fl-success-fg); }

/* ---------- product view: a stepper on every variation card ---------- */
.sf-voption { position: relative; display: grid; min-width: 0; }
.sf-voption--stepper .fl-option__box { padding-bottom: 48px; }
.sf-voption__step { position: absolute; inset-inline: 8px; bottom: 8px; z-index: 1; }
.sf-voption__step .fl-stepper__value { min-width: 24px; text-align: center; }

/* ---------- product view: the barcode ---------- */
.sf-barcodebox { display: grid; gap: 4px; justify-items: start; margin-top: 20px; }
.sf-barcode { display: block; width: min(100%, 280px); height: 56px; }
.sf-barcodebox figcaption { color: var(--fl-fg-2); font: 400 13px/18px 'Cascadia Code', Consolas, monospace; letter-spacing: .12em; }

/* ---------- bottom nav: five items with WhatsApp ---------- */
.sf-bottomnav--5 { grid-template-columns: repeat(5, 1fr); }
.sf-bottomnav__wa .dr-icon { color: #25D366; }

/* ---------- the floating cart total ---------- */
.sf-cartbar { position: fixed; z-index: 37; inset-inline: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 8px 8px 8px 12px; border-radius: var(--fl-r-xl); background: var(--fl-bg-1); box-shadow: var(--fl-shadow-28); animation: fl-toast var(--fl-slow) var(--fl-decelerate); }
[dir="rtl"] .sf-cartbar { padding: 8px 12px 8px 8px; }
@media (min-width: 900px) { .sf-cartbar { inset-inline: auto; inset-inline-end: 24px; bottom: 24px; width: min(440px, calc(100vw - 48px)); } }
.sf-cartbar__summary { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; border-radius: var(--fl-r-m); text-align: start; }
.sf-cartbar__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--fl-r-xl); background: var(--fl-brand-tint); color: var(--fl-brand-fg); }
.sf-cartbar__count { color: var(--fl-fg-3); font-size: 12px; line-height: 16px; }
/* app.js writes the bare count; the label is the theme's (data-label, set server-side per locale) */
.sf-cartbar__count::after { content: " " attr(data-label); }
.sf-cartbar__total { font: 600 18px/24px var(--fl-font-display); }
.sf-cartbar__min { grid-column: 1 / -1; }
/* keep the last row of content clear of the bar */
.fl-theme-simple-fluent main { padding-bottom: 96px; }
@media (min-width: 900px) { .fl-theme-simple-fluent .fl-toasts { bottom: 104px; } }
@media (max-width: 899px) { .fl-theme-simple-fluent .fl-toasts { bottom: 148px; } }
