/* ==========================================================================
   Storefront design system - CUSTOMER pages only.
   Loaded exclusively by templates/base.html. Every rule is scoped under
   `body.sf` so nothing here can affect the admin panel or the admin login
   pages (which keep using admin.css / style.css untouched).
   Mobile-first: base rules target phones; min-width queries add layout.
   ========================================================================== */

/* ---- 1. Design tokens -------------------------------------------------- */
/* Defaults below match the admin defaults; Admin > Storefront overrides them
   through a validated <style id="sf-theme"> block emitted by base.html. */
body.sf {
  --sf-brand: #0b7a43;
  --sf-brand-dark: #095f34;
  --sf-brand-soft: #e7f4ed;
  --sf-brand-rgb: 11, 122, 67;
  --sf-accent: #f59e0b;
  --sf-accent-dark: #d78a09;
  --sf-accent-ink: #17202a;
  --sf-sale: #d3274b;
  --sf-footer-bg: #04251a;
  --sf-ink: #16201b;
  --sf-ink-2: #44504a;
  --sf-muted: #5b6760;
  --sf-line: #dce8e1;
  --sf-bg: #f0f9f4;
  --sf-surface: #ffffff;
  --sf-success: #0f7a38;
  --sf-danger: #c62828;
  --sf-warning: #8a5300;
  --sf-star: #a86400;
  --sf-radius-sm: 10px;
  --sf-radius: 16px;
  --sf-radius-lg: 22px;
  --sf-shadow-sm: 0 1px 2px rgba(22, 32, 27, 0.06);
  --sf-shadow: 0 4px 14px rgba(22, 32, 27, 0.08);
  --sf-shadow-lg: 0 12px 32px rgba(22, 32, 27, 0.14);
  --sf-gap: 1rem;
  --sf-header-h: 64px;
  --sf-logo-h: 44px;
  --sf-ease: 150ms ease;
  --sf-font: "Noto Sans Bengali", "Nirmala UI", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Re-point Bootstrap's own tokens so every untouched template inherits the system. */
  --bs-primary: var(--sf-brand);
  --bs-primary-rgb: var(--sf-brand-rgb);
  --bs-link-color: var(--sf-brand);
  --bs-link-hover-color: var(--sf-brand-dark);
  --bs-body-color: var(--sf-ink);
  --bs-body-bg: var(--sf-bg);
  --bs-border-color: var(--sf-line);
  --bs-border-radius: var(--sf-radius-sm);
  --bs-body-font-family: var(--sf-font);
  --bs-heading-color: var(--sf-ink);

  background: var(--sf-bg);
  color: var(--sf-ink);
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- 2. Base ----------------------------------------------------------- */
body.sf img { max-width: 100%; height: auto; }
body.sf h1, body.sf h2, body.sf h3, body.sf h4, body.sf h5, body.sf h6 {
  font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--sf-ink);
}
body.sf h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
body.sf h2 { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2rem); }
body.sf h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
body.sf h4 { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.3rem); }
body.sf a { text-underline-offset: 3px; }

/* Visible, consistent keyboard focus everywhere */
body.sf :focus-visible {
  outline: 3px solid rgba(var(--sf-brand-rgb), 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}
body.sf .sf-skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 3000;
  background: var(--sf-ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--sf-radius-sm);
}
body.sf .sf-skip-link:focus { left: 8px; }

/* Fluid container: comfortable gutters on phones, capped on huge screens */
body.sf .container {
  width: 100%; max-width: 1320px;
  padding-left: 1rem; padding-right: 1rem;
}
@media (min-width: 768px) { body.sf .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1600px) { body.sf .container { max-width: 1480px; } }

body.sf main { min-height: 60vh; padding-bottom: 2.5rem; }

/* ---- 3. Buttons, inputs, cards, badges (restyled Bootstrap) ------------- */
body.sf .btn {
  --bs-btn-border-radius: var(--sf-radius-sm);
  font-weight: 600; min-height: 44px; /* comfortable touch target */
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: background-color var(--sf-ease), border-color var(--sf-ease), box-shadow var(--sf-ease), transform var(--sf-ease);
}
body.sf .btn-sm { min-height: 36px; font-size: 0.875rem; }
body.sf .btn-lg { min-height: 52px; font-size: 1.05rem; }
body.sf .btn:active:not(:disabled) { transform: translateY(1px); }
body.sf .btn-primary {
  --bs-btn-color: var(--sf-accent-ink); --bs-btn-hover-color: var(--sf-accent-ink); --bs-btn-active-color: var(--sf-accent-ink); --bs-btn-disabled-color: var(--sf-accent-ink);
  --bs-btn-bg: var(--sf-accent); --bs-btn-border-color: var(--sf-accent);
  --bs-btn-hover-bg: var(--sf-accent-dark); --bs-btn-hover-border-color: var(--sf-accent-dark);
  --bs-btn-active-bg: var(--sf-accent-dark); --bs-btn-active-border-color: var(--sf-accent-dark);
  --bs-btn-disabled-bg: var(--sf-accent); --bs-btn-disabled-border-color: var(--sf-accent);
}
body.sf .btn-outline-primary {
  --bs-btn-color: var(--sf-brand); --bs-btn-border-color: var(--sf-brand);
  --bs-btn-hover-bg: var(--sf-brand); --bs-btn-hover-border-color: var(--sf-brand); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--sf-brand-dark); --bs-btn-active-border-color: var(--sf-brand-dark); --bs-btn-active-color: #fff;
}
body.sf .btn-outline-secondary { --bs-btn-color: var(--sf-ink-2); --bs-btn-border-color: #c9d6ce; --bs-btn-hover-bg: var(--sf-brand-soft); --bs-btn-hover-color: var(--sf-ink); --bs-btn-hover-border-color: #b5c6bb; }
body.sf .btn-outline-dark { --bs-btn-color: var(--sf-ink); --bs-btn-border-color: var(--sf-ink); }

body.sf .form-control, body.sf .form-select {
  min-height: 46px; border-radius: var(--sf-radius-sm); border: 1px solid #d3d7e0;
  background-color: #fff; font-size: 1rem; /* 16px: prevents iOS zoom-on-focus */
}
body.sf textarea.form-control { min-height: 96px; }
body.sf .form-control:focus, body.sf .form-select:focus {
  border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(var(--sf-brand-rgb), 0.18);
}
body.sf .form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
body.sf .form-check-input { width: 1.15em; height: 1.15em; margin-top: 0.2em; }
body.sf .form-check-input:checked { background-color: var(--sf-brand); border-color: var(--sf-brand); }
body.sf .form-text, body.sf .small.text-muted, body.sf .text-muted { color: var(--sf-muted) !important; }

body.sf .card {
  border: 1px solid var(--sf-line); border-radius: var(--sf-radius);
  background: var(--sf-surface); box-shadow: var(--sf-shadow-sm);
}
body.sf .badge { font-weight: 600; letter-spacing: 0.01em; }
body.sf .alert { border-radius: var(--sf-radius-sm); border: 1px solid transparent; }
body.sf .table { --bs-table-bg: transparent; }
body.sf .breadcrumb { font-size: 0.875rem; margin-bottom: 1rem; flex-wrap: wrap; }
body.sf .pagination { flex-wrap: wrap; gap: 0.25rem; }
body.sf .page-link { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--sf-radius-sm) !important; color: var(--sf-ink-2); }
body.sf .page-item.active .page-link { background: var(--sf-brand); border-color: var(--sf-brand); color: #fff; }

/* ---- 4. Header ----------------------------------------------------------- */
body.sf .sf-topbar { background: var(--sf-brand); color: #fff; font-size: 0.92rem; }
body.sf .sf-topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 1.1rem; padding-top: 0.3rem; padding-bottom: 0.3rem; min-height: 40px; text-align: center; }
body.sf .sf-topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
body.sf .sf-topbar a { color: #fff; font-weight: 600; text-decoration: underline; display: inline-block; padding: 0.3rem 0; }
body.sf .sf-topbar a:hover { color: #fff; opacity: 0.85; }
@media (min-width: 576px) { body.sf .sf-topbar__item + .sf-topbar__item::before { content: "|"; opacity: 0.6; margin-right: 1.1rem; } }

body.sf .sf-header { position: sticky; top: 0; z-index: 1030; background: var(--sf-surface); border-bottom: 1px solid var(--sf-line); }
body.sf .sf-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-height: var(--sf-header-h); padding-top: 0.4rem; }
body.sf .sf-brand {
  display: inline-flex; align-items: center; min-height: 48px; max-width: 52vw; margin-right: auto; padding: 0.2rem 0.75rem;
  background: #fff; border: 1px solid var(--sf-line); border-radius: var(--sf-radius); color: var(--sf-ink); text-decoration: none; overflow: hidden;
}
body.sf .sf-brand:hover { color: var(--sf-brand); }
body.sf .sf-brand__logo { height: var(--sf-logo-h); width: auto; max-width: 100%; object-fit: contain; display: block; }
body.sf .sf-brand__text { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.sf .sf-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--sf-ink);
  border-radius: 50%; font-size: 1.3rem; text-decoration: none; cursor: pointer;
  transition: background-color var(--sf-ease);
}
body.sf .sf-icon-btn:hover { background: var(--sf-brand-soft); color: var(--sf-ink); }
body.sf .sf-icon-btn--ring { width: 48px; height: 48px; border: 1px solid var(--sf-line); background: #fff; }
body.sf .sf-count {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--sf-brand); color: #fff; font-size: 0.7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
body.sf .sf-count[data-zero="true"] { display: none; }
body.sf .sf-hide-xs { display: none; }
@media (min-width: 576px) { body.sf .sf-hide-xs { display: inline-flex; } }

/* Search: own row on phones (never cramped), inline from 576px */
body.sf .sf-search { position: relative; flex: 1 1 100%; order: 3; margin-bottom: 0.6rem; }
body.sf .sf-search__field { position: relative; display: flex; }
body.sf .sf-search__input { min-height: 48px; padding-left: 1.1rem; padding-right: 6.4rem; border-radius: 999px; background: #fff; border: 1px solid var(--sf-line); }
body.sf .sf-search__input:focus { background: #fff; }
body.sf .sf-search__clear, body.sf .sf-search__submit {
  position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
  width: 40px; height: 40px; border-radius: 50%; color: var(--sf-ink-2); display: inline-flex; align-items: center; justify-content: center;
}
body.sf .sf-search__submit { right: 4px; background: var(--sf-accent); color: var(--sf-accent-ink); }
body.sf .sf-search__submit:hover { background: var(--sf-accent-dark); }
body.sf .sf-search__clear { right: 48px; }
body.sf .sf-search__clear[hidden] { display: none; }
body.sf .sf-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1060; background: #fff;
  border: 1px solid var(--sf-line); border-radius: var(--sf-radius); box-shadow: var(--sf-shadow-lg);
  max-height: 60vh; overflow-y: auto; display: none; padding: 0.25rem;
}
body.sf .sf-suggest.is-open { display: block; }
body.sf .sf-suggest__item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.6rem; border-radius: var(--sf-radius-sm);
  color: var(--sf-ink); text-decoration: none; min-height: 48px;
}
body.sf .sf-suggest__item:hover, body.sf .sf-suggest__item[aria-selected="true"] { background: var(--sf-brand-soft); }
body.sf .sf-suggest__item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; background: var(--sf-bg); }
body.sf .sf-suggest__status { padding: 0.75rem; color: var(--sf-muted); font-size: 0.9rem; }

/* Category bar (desktop) */
body.sf .sf-catbar { display: none; border-top: 1px solid var(--sf-line); background: var(--sf-surface); }
body.sf .sf-catbar__list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
body.sf .sf-catbar__list::-webkit-scrollbar { display: none; }
body.sf .sf-catbar__link {
  display: inline-block; padding: 0.7rem 0.9rem; font-size: 0.92rem; font-weight: 600;
  color: var(--sf-ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent;
}
body.sf .sf-catbar__link:hover { color: var(--sf-brand); border-bottom-color: var(--sf-brand); }
body.sf .sf-catbar .dropdown-menu { border-radius: var(--sf-radius); border-color: var(--sf-line); box-shadow: var(--sf-shadow); }
body.sf .sf-catbar .dropdown-toggle::after { margin-left: 0.3rem; }

@media (min-width: 576px) {
  body.sf .sf-search { order: 0; flex: 1 1 auto; max-width: 560px; margin: 0 0.5rem; }
  body.sf .sf-brand { max-width: 260px; margin-right: 0; }
  body.sf .sf-header__actions { margin-left: auto; }
  body.sf .sf-header__bar { flex-wrap: nowrap; padding-bottom: 0.4rem; }
}
@media (min-width: 992px) {
  body.sf .sf-catbar { display: block; }
  body.sf .sf-menu-toggle { display: none; }
}
body.sf .sf-header__actions { display: flex; align-items: center; gap: 0.4rem; }
body.sf .sf-header__account-text { display: none; }
@media (min-width: 1200px) { body.sf .sf-header__account-text { display: inline; font-size: 0.9rem; font-weight: 600; margin-left: 0.25rem; } body.sf .sf-icon-btn--wide { width: auto; padding: 0 0.75rem; border-radius: 999px; } }

/* Mobile menu (off-canvas) */
body.sf .sf-drawer {
  position: fixed; inset: 0; z-index: 2000; visibility: hidden; pointer-events: none;
  transition: visibility 0s linear 220ms; /* keep visible while the panel slides out */
}
body.sf .sf-drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
body.sf .sf-drawer__panel > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
body.sf .sf-suggest__img-ph { width: 40px; height: 40px; border-radius: 6px; background: var(--sf-bg); flex: none; }
body.sf .sf-drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 23, 31, 0.5); opacity: 0; transition: opacity 200ms ease; }
body.sf .sf-drawer.is-open .sf-drawer__backdrop { opacity: 1; }
body.sf .sf-drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: #fff;
  transform: translateX(-100%); transition: transform 220ms ease; display: flex; flex-direction: column; box-shadow: var(--sf-shadow-lg);
}
body.sf .sf-drawer--right .sf-drawer__panel { left: auto; right: 0; transform: translateX(100%); }
body.sf .sf-drawer.is-open .sf-drawer__panel { transform: none; }
body.sf .sf-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--sf-line); }
body.sf .sf-drawer__title { font-size: 1.05rem; font-weight: 700; margin: 0; }
body.sf .sf-drawer__body { overflow-y: auto; padding: 0.5rem 1rem 1.25rem; flex: 1; -webkit-overflow-scrolling: touch; }
body.sf .sf-drawer__foot { padding: 0.75rem 1rem; border-top: 1px solid var(--sf-line); }
body.sf .sf-navlist { list-style: none; margin: 0; padding: 0; }
body.sf .sf-navlist a, body.sf .sf-navlist summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0.5rem 0;
  color: var(--sf-ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--sf-line); cursor: pointer; list-style: none;
}
body.sf .sf-navlist summary::-webkit-details-marker { display: none; }
body.sf .sf-navlist details[open] > summary i { transform: rotate(180deg); }
body.sf .sf-navlist .sf-navlist__sub a { font-weight: 500; padding-left: 1rem; color: var(--sf-ink-2); }
body.sf.sf-lock { overflow: hidden; }

/* ---- 5. Toasts -------------------------------------------------------- */
body.sf .sf-toasts {
  position: fixed; z-index: 3000; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;
}
@media (min-width: 576px) { body.sf .sf-toasts { left: auto; right: 1rem; bottom: 1rem; width: 380px; } }
body.sf .sf-toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 0.6rem; background: var(--sf-ink); color: #fff;
  padding: 0.8rem 0.9rem; border-radius: var(--sf-radius); box-shadow: var(--sf-shadow-lg);
  animation: sf-toast-in 200ms ease both; border-left: 4px solid #8b93a5;
}
body.sf .sf-toast--success { border-left-color: #34c26b; }
body.sf .sf-toast--danger { border-left-color: #ff6b6b; }
body.sf .sf-toast--warning { border-left-color: #ffb020; }
body.sf .sf-toast--info { border-left-color: #5aa9ff; }
body.sf .sf-toast__icon { font-size: 1.1rem; margin-top: 1px; }
body.sf .sf-toast__msg { flex: 1; font-size: 0.92rem; word-break: break-word; }
body.sf .sf-toast__close { background: transparent; border: 0; color: #cfd3dc; width: 28px; height: 28px; font-size: 1rem; border-radius: 50%; }
body.sf .sf-toast__close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
body.sf .sf-toast.is-leaving { animation: sf-toast-out 160ms ease both; }
@keyframes sf-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sf-toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---- 6. Sections ------------------------------------------------------ */
body.sf .sf-section { margin-top: 2rem; }
@media (min-width: 992px) { body.sf .sf-section { margin-top: 3rem; } }
body.sf .sf-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
body.sf .sf-section__title { margin: 0; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); }
body.sf .sf-section__more { font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; color: var(--sf-brand); padding: 0.4rem 0; }

/* Hero */
body.sf .sf-hero { padding-top: 1rem; }
body.sf .sf-greeting {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; max-width: 100%; padding: 0.4rem 1rem 0.4rem 0.45rem;
  background: #fff; border: 1px solid var(--sf-line); border-radius: 999px; box-shadow: var(--sf-shadow-sm); font-weight: 600; font-size: 0.95rem;
}
body.sf .sf-greeting i { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sf-brand-soft); color: var(--sf-brand); }
body.sf .sf-hero__frame { position: relative; border-radius: var(--sf-radius-lg); overflow: hidden; background: var(--sf-brand-soft); box-shadow: var(--sf-shadow); }
body.sf .sf-hero .carousel-item img { width: 100%; aspect-ratio: 20 / 9; object-fit: cover; display: block; }
@media (min-width: 768px) { body.sf .sf-hero .carousel-item img { aspect-ratio: 8 / 3; } }
body.sf .sf-hero .carousel-control-prev, body.sf .sf-hero .carousel-control-next { width: 3.25rem; opacity: 1; }
body.sf .sf-hero .carousel-control-prev-icon, body.sf .sf-hero .carousel-control-next-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background-color: rgba(22, 32, 27, 0.55); background-size: 45%;
}
body.sf .sf-hero .carousel-control-prev:hover .carousel-control-prev-icon, body.sf .sf-hero .carousel-control-next:hover .carousel-control-next-icon { background-color: rgba(22, 32, 27, 0.75); }
body.sf .sf-hero__fallback { padding: clamp(1.75rem, 6vw, 3.5rem); text-align: left; }
body.sf .sf-hero__fallback-title { margin: 0 0 0.35rem; font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); font-weight: 800; }
body.sf .sf-hero__fallback-sub { margin: 0 0 1.1rem; color: var(--sf-ink-2); }

/* Category tiles: compact 4-up on phones like the reference, more columns as space allows */
body.sf .sf-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.5rem; }
@media (min-width: 576px) { body.sf .sf-cat-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 0.75rem; } }
@media (min-width: 1200px) { body.sf .sf-cat-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 1rem; } }
body.sf .sf-cat {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 0.6rem 0.3rem 0.65rem; min-width: 0;
  background: var(--sf-surface); border: 1px solid transparent; border-radius: var(--sf-radius);
  text-decoration: none; color: var(--sf-ink); transition: box-shadow var(--sf-ease), border-color var(--sf-ease);
}
body.sf .sf-cat:hover { box-shadow: var(--sf-shadow); border-color: var(--sf-line); color: var(--sf-brand); }
body.sf .sf-cat__media {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--sf-brand-soft); border: 1px solid var(--sf-line);
  display: flex; align-items: center; justify-content: center; color: var(--sf-brand); font-size: 1.4rem; flex: none;
}
@media (min-width: 576px) { body.sf .sf-cat__media { width: 72px; height: 72px; } }
@media (min-width: 1200px) { body.sf .sf-cat__media { width: 84px; height: 84px; } }
body.sf .sf-cat__media img { width: 100%; height: 100%; object-fit: cover; }
body.sf .sf-cat__name {
  font-weight: 500; font-size: 0.78rem; line-height: 1.3; text-align: center; max-width: 100%; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 576px) { body.sf .sf-cat__name { font-size: 0.9rem; } }

/* Brand chips */
body.sf .sf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
body.sf .sf-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 1rem;
  background: #fff; border: 1px solid var(--sf-line); border-radius: 999px; color: var(--sf-ink); text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
body.sf .sf-chip:hover { border-color: var(--sf-brand); color: var(--sf-brand); }
body.sf .sf-chip img { height: 24px; width: auto; }

/* Promo banners */
body.sf .sf-promos { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { body.sf .sf-promos { grid-template-columns: repeat(2, 1fr); } }
body.sf .sf-promos img { width: 100%; border-radius: var(--sf-radius); display: block; }

/* ---- 7. Product grid + card ------------------------------------------- */
body.sf .sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 768px) { body.sf .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { body.sf .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.sf .sf-grid--wide { }
@media (min-width: 1200px) { body.sf .sf-grid--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 359.98px) { body.sf .sf-grid { gap: 0.5rem; } }

/* Product card (redesign): white 24px card, large contained image, muted category,
   green price, full-width rounded Add to Bag button. All rules stay scoped to .sf-card. */
body.sf .sf-card {
  position: relative; display: flex; flex-direction: column; height: 100%; min-width: 0; background: var(--sf-surface);
  border: 1px solid rgba(22, 32, 27, 0.06); border-radius: 24px; padding: 0.6rem; overflow: hidden;
  box-shadow: 0 2px 10px rgba(22, 32, 27, 0.06); transition: box-shadow var(--sf-ease);
}
body.sf .sf-card:hover { box-shadow: 0 6px 18px rgba(22, 32, 27, 0.12); }
body.sf .sf-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-radius: 18px; overflow: hidden; }
body.sf .sf-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 18px; }
body.sf .sf-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #aebcb3; font-size: 2.5rem; background: var(--sf-brand-soft); }
body.sf .sf-card__badges { position: absolute; top: 0.5rem; left: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; z-index: 1; }
body.sf .sf-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1.3; }
body.sf .sf-badge--sale { background: var(--sf-sale); color: #fff; }
body.sf .sf-badge--out { background: #fff; color: var(--sf-danger); border: 1px solid #f3c1c1; }
body.sf .sf-card__body { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem 0.25rem 0.15rem; flex: 1; min-width: 0; }
body.sf .sf-card__brand { font-size: 0.78rem; color: #8a948e; overflow-wrap: anywhere; line-height: 1.3; }
body.sf .sf-card__title { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
body.sf .sf-card__title a { color: var(--sf-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.7em; }
body.sf .sf-card__title a:hover { color: var(--sf-brand); }
body.sf .sf-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is one big link target */
body.sf .sf-rating { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--sf-muted); }
body.sf .sf-stars { color: var(--sf-star); letter-spacing: 1px; white-space: nowrap; }
body.sf .sf-price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.5rem; padding-top: 0.25rem; min-width: 0; }
body.sf .sf-price__from { font-size: 0.8rem; color: var(--sf-muted); }
body.sf .sf-price__now { font-weight: 800; font-size: 1.15rem; color: var(--sf-brand); }
body.sf .sf-price__was { color: #8a948e; text-decoration: line-through; font-size: 0.85rem; }
body.sf .sf-card__actions { position: relative; z-index: 2; margin-top: 0.6rem; }
body.sf .sf-card__actions form { margin: 0; }
body.sf .sf-card__btn { border-radius: 18px; min-height: 46px; padding: 0.65rem 0.75rem; font-weight: 700; }
body.sf .sf-card__actions .btn-primary { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff; color: #fff; }
body.sf .sf-card__btn[disabled] { opacity: 1; background: #eef2ef; border-color: var(--sf-line); color: var(--sf-muted); }

/* Skeleton loading blocks */
body.sf .sf-skel { background: linear-gradient(90deg, #eceef3 25%, #f6f7fa 37%, #eceef3 63%); background-size: 400% 100%; animation: sf-shimmer 1.3s ease infinite; border-radius: 6px; }
@keyframes sf-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- 8. Listing page ---------------------------------------------------- */
body.sf .sf-listing { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { body.sf .sf-listing { grid-template-columns: 270px minmax(0, 1fr); gap: 1.5rem; align-items: start; } }
body.sf .sf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1rem; }
body.sf .sf-toolbar__count { margin: 0; color: var(--sf-ink-2); font-size: 0.92rem; flex: 1 1 100%; }
@media (min-width: 576px) { body.sf .sf-toolbar__count { flex: 1 1 auto; } }
body.sf .sf-toolbar__sort { display: flex; align-items: center; gap: 0.5rem; }
body.sf .sf-filter-toggle { display: inline-flex; }
@media (min-width: 992px) { body.sf .sf-filter-toggle { display: none; } }
/* Filter panel is an off-canvas drawer below 992px and a sticky sidebar above */
@media (min-width: 992px) {
  body.sf #filter-drawer { position: sticky; top: calc(var(--sf-header-h) + 52px); visibility: visible; pointer-events: auto; inset: auto; z-index: auto; }
  body.sf #filter-drawer .sf-drawer__backdrop { display: none; }
  body.sf #filter-drawer .sf-drawer__panel { position: static; transform: none; width: auto; box-shadow: none; border: 1px solid var(--sf-line); border-radius: var(--sf-radius); max-height: calc(100vh - var(--sf-header-h) - 80px); }
  body.sf #filter-drawer .sf-drawer__close { display: none; }
}
body.sf .sf-filter-group { padding: 0.9rem 0; border-bottom: 1px solid var(--sf-line); }
body.sf .sf-filter-group:last-child { border-bottom: 0; }
body.sf .sf-filter-group h3 { font-size: 0.95rem; margin-bottom: 0.6rem; }
body.sf .sf-filter-options { max-height: 220px; overflow-y: auto; }
body.sf .sf-filter-options .form-check { min-height: 40px; display: flex; align-items: center; gap: 0.5rem; padding-left: 0; }
body.sf .sf-filter-options .form-check-input { margin: 0; flex: none; }
body.sf .sf-filter-options .form-check-label { flex: 1; padding: 0.4rem 0; cursor: pointer; }
body.sf .sf-active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
body.sf .sf-empty { text-align: center; padding: 3rem 1rem; background: var(--sf-surface); border: 1px dashed #cfd3dc; border-radius: var(--sf-radius); }
body.sf .sf-empty i { font-size: 3rem; color: #b6bcc8; }

/* ---- 9. Product detail -------------------------------------------------- */
body.sf .sf-pdp { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { body.sf .sf-pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; } }
body.sf .sf-gallery__main { position: relative; background: #fff; border: 1px solid var(--sf-line); border-radius: var(--sf-radius); overflow: hidden; aspect-ratio: 1 / 1; }
body.sf .sf-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
body.sf .sf-gallery__empty { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #b6bcc8; font-size: 4rem; }
body.sf .sf-gallery__thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
body.sf .sf-thumb { flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid var(--sf-line); border-radius: var(--sf-radius-sm); overflow: hidden; background: #fff; cursor: pointer; }
body.sf .sf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.sf .sf-thumb[aria-current="true"], body.sf .sf-thumb:hover { border-color: var(--sf-brand); }

body.sf .sf-pdp__title { margin-bottom: 0.4rem; }
body.sf .sf-pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; font-size: 0.9rem; color: var(--sf-ink-2); margin-bottom: 0.9rem; }
body.sf .sf-pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin-bottom: 0.6rem; }
body.sf #variant-price { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); font-weight: 800; color: var(--sf-brand); }
body.sf #variant-regular-price { color: var(--sf-muted); text-decoration: line-through; font-size: 1.05rem; }
body.sf .sf-stock { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; padding: 0.25rem 0.7rem; border-radius: 999px; }
body.sf .sf-stock--in { background: #e7f6ec; color: var(--sf-success); }
body.sf .sf-stock--out { background: #fdeaea; color: var(--sf-danger); }
body.sf .sf-stock--na { background: #fdeaea; color: var(--sf-danger); }

body.sf .attribute-group { margin-bottom: 1rem; }
body.sf .attribute-group .form-label { display: block; }
body.sf .attribute-option {
  min-width: 48px; min-height: 44px; padding: 0.4rem 1rem; border: 1.5px solid #d3d7e0; border-radius: var(--sf-radius-sm);
  background: #fff; color: var(--sf-ink); font-weight: 600; position: relative;
}
body.sf .attribute-option:hover { border-color: var(--sf-brand); background: #fff; color: var(--sf-ink); }
body.sf .attribute-option.selected { border-color: var(--sf-brand); background: var(--sf-brand-soft); color: var(--sf-brand-dark); box-shadow: inset 0 0 0 1px var(--sf-brand); }
body.sf .attribute-option.selected::after { content: "\2713"; margin-left: 0.4rem; font-size: 0.8em; } /* not colour-only */
body.sf .attribute-option.unavailable { opacity: 0.45; text-decoration: line-through; pointer-events: none; background: var(--sf-bg); }

body.sf .sf-qty { display: inline-flex; align-items: stretch; border: 1.5px solid #d3d7e0; border-radius: var(--sf-radius-sm); background: #fff; overflow: hidden; }
body.sf .sf-qty button { width: 44px; border: 0; background: transparent; font-size: 1.2rem; color: var(--sf-ink); }
body.sf .sf-qty button:hover { background: var(--sf-bg); }
body.sf .sf-qty input { width: 56px; border: 0; text-align: center; font-weight: 700; min-height: 44px; -moz-appearance: textfield; background: transparent; }
body.sf .sf-qty input::-webkit-outer-spin-button, body.sf .sf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.sf .sf-qty--sm button { width: 36px; } body.sf .sf-qty--sm input { width: 44px; min-height: 38px; }

body.sf .sf-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
body.sf .sf-buy .sf-buy__wish { grid-column: 1 / -1; }
@media (min-width: 576px) { body.sf .sf-buy { grid-template-columns: 1fr 1fr auto; } body.sf .sf-buy .sf-buy__wish { grid-column: auto; } }
body.sf .sf-pdp__facts { margin-top: 1rem; font-size: 0.85rem; color: var(--sf-muted); }
body.sf .sf-pdp__note { margin-top: 1.25rem; padding: 0.9rem 1rem; background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: var(--sf-radius); font-size: 0.9rem; color: var(--sf-ink-2); }

body.sf .sf-tabs { margin-top: 2.5rem; }
body.sf .sf-tabs .nav-tabs { border-bottom: 1px solid var(--sf-line); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
body.sf .sf-tabs .nav-link { white-space: nowrap; min-height: 48px; color: var(--sf-ink-2); font-weight: 600; border: 0; border-bottom: 3px solid transparent; background: transparent; }
body.sf .sf-tabs .nav-link.active { color: var(--sf-brand-dark); border-bottom-color: var(--sf-brand); background: transparent; }
body.sf .sf-tabs .tab-content { background: var(--sf-surface); border: 1px solid var(--sf-line); border-top: 0; border-radius: 0 0 var(--sf-radius) var(--sf-radius); padding: 1.25rem; }
body.sf .sf-prose { white-space: pre-line; overflow-wrap: anywhere; }
body.sf .sf-review { padding: 1rem 0; border-bottom: 1px solid var(--sf-line); }
body.sf .sf-review:last-of-type { border-bottom: 0; }

/* Sticky mobile purchase bar on the product page */
body.sf .sf-stickybuy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #fff; border-top: 1px solid var(--sf-line);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 0.75rem;
  transform: translateY(110%); transition: transform 200ms ease; box-shadow: 0 -6px 20px rgba(20, 23, 31, 0.08);
}
body.sf .sf-stickybuy.is-visible { transform: none; }
body.sf .sf-stickybuy__price { font-weight: 800; font-size: 1.1rem; }
body.sf .sf-stickybuy .btn { flex: 1; }
@media (min-width: 992px) { body.sf .sf-stickybuy { display: none; } }

/* ---- 10. Cart ------------------------------------------------------------ */
body.sf .sf-cart { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { body.sf .sf-cart { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
body.sf .sf-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0.9rem; padding: 1rem; background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: var(--sf-radius); margin-bottom: 0.75rem; }
@media (min-width: 576px) { body.sf .sf-line { grid-template-columns: 104px minmax(0, 1fr); } }
body.sf .sf-line__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--sf-radius-sm); background: var(--sf-bg); display: flex; align-items: center; justify-content: center; color: #b6bcc8; overflow: hidden; }
body.sf .sf-line__img img { width: 100%; height: 100%; object-fit: cover; }
body.sf .sf-line__title { font-weight: 600; color: var(--sf-ink); text-decoration: none; overflow-wrap: anywhere; }
body.sf .sf-line__meta { font-size: 0.82rem; color: var(--sf-muted); }
body.sf .sf-line__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.6rem; }
body.sf .sf-line__total { font-weight: 800; }
body.sf .sf-line__actions { display: flex; gap: 0.5rem; }
body.sf .sf-summary { background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: var(--sf-radius); padding: 1.25rem; }
@media (min-width: 992px) { body.sf .sf-summary--sticky { position: sticky; top: calc(var(--sf-header-h) + 60px); } }
body.sf .sf-summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
body.sf .sf-summary__row--total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--sf-line); margin-top: 0.5rem; padding-top: 0.75rem; }
body.sf .sf-summary__row--good { color: var(--sf-success); }

/* ---- 11. Checkout -------------------------------------------------------- */
body.sf .sf-checkout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { body.sf .sf-checkout { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } }
body.sf .sf-panel { background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: var(--sf-radius); padding: 1.1rem; margin-bottom: 1rem; }
@media (min-width: 576px) { body.sf .sf-panel { padding: 1.4rem; } }
body.sf .sf-panel__title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; margin-bottom: 1rem; }
body.sf .sf-step { width: 28px; height: 28px; border-radius: 50%; background: var(--sf-ink); color: #fff; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
body.sf .sf-choice { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; border: 1.5px solid var(--sf-line); border-radius: var(--sf-radius-sm); margin-bottom: 0.6rem; cursor: pointer; background: #fff; transition: border-color var(--sf-ease), background-color var(--sf-ease); }
body.sf .sf-choice:hover { border-color: #c4c9d4; }
body.sf .sf-choice:has(input:checked) { border-color: var(--sf-brand); background: var(--sf-brand-soft); }
body.sf .sf-choice input { margin-top: 0.25rem; flex: none; }
body.sf .sf-choice__body { flex: 1; min-width: 0; }
body.sf .sf-choice__title { font-weight: 600; }
body.sf .sf-choice__sub { font-size: 0.85rem; color: var(--sf-muted); }
body.sf .sf-choice__price { font-weight: 700; white-space: nowrap; }
body.sf .sf-minilines { max-height: 260px; overflow-y: auto; margin-bottom: 0.5rem; }
body.sf .sf-miniline { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; padding: 0.35rem 0; }
body.sf .sf-submit-wrap { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0)); padding-top: 0.75rem; }
body.sf .sf-btn-loading { position: relative; pointer-events: none; opacity: 0.85; }

/* ---- 12. Auth + account --------------------------------------------------- */
body.sf .sf-auth { max-width: 460px; margin: 1.5rem auto 0; }
body.sf .sf-auth__card { padding: 1.5rem; border-radius: var(--sf-radius-lg); }
@media (min-width: 576px) { body.sf .sf-auth__card { padding: 2rem; } }
body.sf .sf-auth__title { text-align: center; margin-bottom: 0.25rem; }
body.sf .sf-auth__sub { text-align: center; color: var(--sf-muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
body.sf .sf-pw { position: relative; }
body.sf .sf-pw .form-control { padding-right: 3rem; }
body.sf .sf-pw__toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--sf-ink-2); border-radius: 50%; }

body.sf .sf-account { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { body.sf .sf-account { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } }
body.sf .sf-accnav { background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: var(--sf-radius); padding: 0.4rem; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
body.sf .sf-accnav::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { body.sf .sf-accnav { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--sf-header-h) + 60px); } }
body.sf .sf-accnav a { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.5rem 0.9rem; border-radius: var(--sf-radius-sm); color: var(--sf-ink-2); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: 0.92rem; }
body.sf .sf-accnav a:hover { background: var(--sf-bg); color: var(--sf-ink); }
body.sf .sf-accnav a[aria-current="page"] { background: var(--sf-brand-soft); color: var(--sf-brand-dark); }
body.sf .sf-accnav a.is-danger { color: var(--sf-danger); }
body.sf .sf-account__main { min-width: 0; background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: var(--sf-radius); padding: 1.1rem; }
@media (min-width: 576px) { body.sf .sf-account__main { padding: 1.5rem; } }
body.sf .table-responsive-sf { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Order status pills + tracker */
body.sf .sf-pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: #eceef3; color: var(--sf-ink-2); }
body.sf .sf-pill--good { background: #e7f6ec; color: var(--sf-success); }
body.sf .sf-pill--warn { background: #fff4de; color: var(--sf-warning); }
body.sf .sf-pill--bad { background: #fdeaea; color: var(--sf-danger); }
body.sf .sf-pill--info { background: #e8f1ff; color: #1b5fc1; }
body.sf .progress-tracker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; margin-bottom: 1.5rem; }
body.sf .tracker-step { padding: 0.5rem 0.25rem; background: #eceef3; color: var(--sf-muted); border-radius: var(--sf-radius-sm); font-size: 0.72rem; font-weight: 600; text-align: center; border: 0; flex: none; }
body.sf .tracker-step.active { background: var(--sf-ink); color: #fff; }
@media (min-width: 576px) { body.sf .tracker-step { font-size: 0.82rem; } }
body.sf .sf-orderlines { display: grid; gap: 0.6rem; }
body.sf .sf-orderline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--sf-line); }
body.sf .sf-orderline__meta { font-size: 0.82rem; color: var(--sf-muted); }

/* Footer */
body.sf .sf-footer { background: var(--sf-footer-bg); color: rgba(255, 255, 255, 0.82); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
body.sf .sf-footer h2 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
body.sf .sf-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; display: inline-block; padding: 0.25rem 0; }
body.sf .sf-footer a:hover { color: #fff; text-decoration: underline; }
body.sf .sf-footer ul { list-style: none; padding: 0; margin: 0; }
body.sf .sf-footer__about { margin: 0 0 1rem; max-width: 42ch; overflow-wrap: anywhere; }
body.sf .sf-footer__contact li { display: flex; gap: 0.5rem; align-items: baseline; overflow-wrap: anywhere; }
body.sf .sf-footer__grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.sf .sf-footer__brand { grid-column: 1 / -1; }
@media (min-width: 768px) { body.sf .sf-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } body.sf .sf-footer__brand { grid-column: auto; } }
body.sf .sf-social { display: flex; gap: 0.5rem; }
body.sf .sf-social a { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-size: 1.15rem; }
body.sf .sf-social a:hover { background: rgba(255, 255, 255, 0.24); text-decoration: none; }
body.sf .sf-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); text-align: center; overflow-wrap: anywhere; }

/* Floating WhatsApp button. Lifts above the mobile buy bar; hidden at checkout so it never covers "Place order". */
body.sf .sf-wa {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1010;
  width: 54px; height: 54px; border-radius: 50%; background: #1a9c4f; color: #fff; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sf-shadow-lg); text-decoration: none;
}
body.sf .sf-wa:hover { background: #148040; color: #fff; }
body.sf:has(.sf-stickybuy.is-visible) .sf-wa { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
body.sf:has(.sf-checkout) .sf-wa { display: none; }
@media (min-width: 992px) { body.sf:has(.sf-stickybuy.is-visible) .sf-wa { bottom: calc(1rem + env(safe-area-inset-bottom)); } }

/* ---- 13. Utilities + motion ---------------------------------------------- */
body.sf .sf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
body.sf [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  body.sf *, body.sf *::before, body.sf *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- 14. Star rating input (radio group; keyboard + screen-reader friendly) ---- */
body.sf .sf-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
body.sf .sf-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.sf .sf-rate label { font-size: 1.9rem; line-height: 1; color: #cfd3dc; cursor: pointer; padding: 0.1rem 0.15rem; border-radius: 6px; transition: color var(--sf-ease); }
body.sf .sf-rate input:checked ~ label, body.sf .sf-rate label:hover, body.sf .sf-rate label:hover ~ label { color: var(--sf-star); }
body.sf .sf-rate input:focus-visible + label { outline: 3px solid rgba(var(--sf-brand-rgb), 0.6); outline-offset: 2px; }
body.sf fieldset > legend.form-label { float: none; width: auto; padding: 0; font-size: 0.9rem; }
body.sf fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }

/* ---- 15. Order cards (account) ---------------------------------------------------- */
body.sf .sf-ordercard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: center; padding: 1rem; border: 1px solid var(--sf-line); border-radius: var(--sf-radius); margin-bottom: 0.75rem; background: #fff; }
body.sf .sf-ordercard__num { font-weight: 700; overflow-wrap: anywhere; }
body.sf .sf-ordercard__meta { font-size: 0.85rem; color: var(--sf-muted); }
body.sf .sf-ordercard__total { font-weight: 800; text-align: right; }
body.sf .sf-ordercard__actions { grid-column: 1 / -1; }
body.sf .sf-pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }
body.sf .sf-pagehead h1, body.sf .sf-pagehead h2 { margin: 0; }
body.sf .sf-confirm { max-width: 560px; margin: 2rem auto; text-align: center; }
body.sf .sf-confirm__icon { font-size: 4rem; color: var(--sf-success); }
