/* sf.css - Simple Flat Design */

:root {
  /* Colors */
  --sf-orange: #f97316;
  --sf-orange-dark: #ea580c;
  --sf-orange-deep: #c2410c;
  --sf-orange-soft: #fff7ed;
  --sf-orange-tint: #ffedd5;
  --sf-orange-border: #fed7aa;
  
  --sf-green: #f97316; /* alias to orange per requirements */
  --sf-green-dark: #ea580c;
  --sf-green-ink: #0f172a;
  --sf-green-soft: #fff7ed;
  
  --sf-accent: #f97316;
  --sf-accent-dark: #ea580c;
  --sf-accent-soft: #fff7ed;
  
  --sf-wa: #25d366;
  --sf-wa-dark: #128c7e;
  
  --sf-leaf: #16a34a;
  --sf-leaf-dark: #15803d;
  --sf-leaf-soft: #f0fdf4;
  
  --sf-ink: #0f172a;
  --sf-ink-light: #334155;
  --sf-muted: #6b7280;
  
  --sf-border: #e5e7eb;
  --sf-border-subtle: #f1f5f9;
  
  --sf-bg: #ffffff;
  --sf-card: #ffffff;
  --sf-surface-alt: #f8fafc;
  
  /* Borders & Shadows */
  --sf-radius: 4px;
  --sf-radius-sm: 4px;
  --sf-radius-lg: 4px;
  --sf-shadow: none;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: var(--sf-ink);
  background-color: var(--sf-bg);
  padding-bottom: 68px; /* For bottom nav */
}

body.has-sticky {
  padding-bottom: 122px;
}

@media (min-width: 992px) {
  body { padding-bottom: 0 !important; }
}

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

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  margin: 0;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.sf-skip {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sf-orange);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
}
.sf-skip:focus {
  top: 10px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.sf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}
@media (min-width: 640px) { .sf-container { padding-left: 16px; padding-right: 16px; } }
@media (min-width: 768px) { .sf-container { padding-left: 20px; padding-right: 20px; } }
@media (min-width: 1024px) { .sf-container { padding-left: 24px; padding-right: 24px; } }

.sf-icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}
/* Font Awesome overrides — when .sf-icon is on <i> */
i.sf-icon {
  width: auto;
  height: auto;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: middle;
}
i.sf-icon.sf-icon-lg { font-size: 1.8em; }

/* ==========================================================================
   Top Bar
   ========================================================================== */
.sf-topbar {
  display: none;
  background-color: var(--sf-orange-soft);
  border-bottom: 1px solid var(--sf-border);
  font-size: 12px;
}
@media (min-width: 992px) {
  .sf-topbar { display: block; }
}

.sf-topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
}

.sf-topbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sf-topbar a {
  color: var(--sf-ink-light);
}
.sf-topbar a:hover {
  color: var(--sf-orange);
}

.sf-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--sf-border);
}

.sf-pill-live {
  background-color: var(--sf-orange);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--sf-radius);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

/* ==========================================================================
   Header — Option D: Orange Gradient Hero
   ========================================================================== */
.sf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ea580c;
  border-bottom: none;
  color: #fff;
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.18);
  overflow: visible;
}

.sf-header-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.sf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-brand-mark {
  width: 38px;
  height: 38px;
  background-color: #fff;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.16);
}
.sf-brand-mark svg {
  width: 20px;
  height: 20px;
}

.sf-brand-text {
  display: flex;
  flex-direction: column;
}

.sf-brand-name {
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.sf-brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.7px;
  font-weight: 600;
}

.sf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #fff;
  color: #128c7e;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.9);
}
.sf-wa-btn:hover {
  background-color: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.sf-wa-txt {
  display: none;
  color: #0f172a;
}

.sf-bag-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background-color: #0f172a;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 700;
  overflow: visible;
}
.sf-bag-btn:hover {
  background-color: #1e293b;
}

.sf-bag-ic {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}

.sf-bag-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  z-index: 5;
  white-space: nowrap;
  text-align: center;
}

.sf-bag-meta {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sf-search {
  width: 100%;
  order: 3;
  position: relative;
}

.sf-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}
.sf-search-form:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.28), 0 6px 20px rgba(0,0,0,0.18);
}

.sf-search-form .sf-icon {
  color: #9ca3af;
  flex-shrink: 0;
}

.sf-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
}
.sf-search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.sf-search-go {
  background-color: #0f172a;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s, transform 0.15s;
}
.sf-search-go:hover {
  background-color: #1e293b;
  transform: scale(1.04);
}

@media (max-width: 991px) {
  .sf-header .sf-container { padding-left: 16px; padding-right: 16px; }
  .sf-header-in { gap: 10px; padding-left: 2px; padding-right: 2px; }
  .sf-actions { gap: 10px; }
  .sf-icon-btn { margin: 0 2px; }
  .sf-wa-btn,
  .sf-bag-btn { display: none !important; }
}
@media (min-width: 992px) {
  .sf-header-in {
    flex-wrap: nowrap;
    padding: 14px 0;
  }
  .sf-search {
    order: 0;
    max-width: 520px;
    margin: 0 auto;
  }
  .sf-wa-btn {
    width: auto;
    padding: 0 14px;
    gap: 7px;
    border-radius: 999px;
  }
  .sf-wa-txt {
    display: inline;
    font-size: 13px;
    font-weight: 700;
  }
  .sf-bag-meta {
    display: block;
  }
}

/* Brand — logo + one-line name (PN MINI MART) */
.sf-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  flex-shrink: 0;
  display: block;
}
@media (min-width: 992px) {
  .sf-brand-logo { width: 46px; height: 46px; }
}
.sf-brand {
  gap: 10px;
  flex-wrap: nowrap;
}
.sf-brand-name {
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Center nav — Home / Category / Latest Product */
.sf-centernav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}
@media (min-width: 768px) {
  .sf-centernav { display: flex; }
}
.sf-centernav-link {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.sf-centernav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.16);
}
.sf-centernav-link.is-active {
  color: #7c2d12;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.16);
  font-weight: 700;
}

/* Search icon button in header */
.sf-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s, transform 0.15s;
}
.sf-icon-btn:hover {
  background: rgba(255,255,255,0.26);
  transform: translateY(-1px);
}
.sf-icon-btn .sf-icon { width: 18px; height: 18px; }
.sf-search-toggle { flex-shrink: 0; }

/* Search modal — on-screen overlay */
.sf-search-modal[hidden] { display: none !important; }
.sf-search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, 6vh);
}
.sf-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}
.sf-search-sheet {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  overflow: hidden;
  animation: sfSheetIn 0.22s ease;
}
@keyframes sfSheetIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sf-search-modal-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--sf-border);
  position: relative;
  background: #fff;
}
.sf-search-modal-icon {
  color: #9ca3af;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.sf-search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  background: transparent;
  min-width: 0;
}
.sf-search-modal-input::placeholder { color: #9ca3af; }
.sf-search-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sf-search-modal-close:hover { background: #e2e8f0; color: #0f172a; }
.sf-search-modal-go {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sf-search-modal-go:hover { background: #1e293b; }
.sf-suggest-modal {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0;
  border-top: 1px solid var(--sf-border);
  border-radius: 0 0 18px 18px;
  max-height: min(52vh, 420px);
}

/* Category nav removed per request — hidden */
.sf-catnav {
  display: none !important;
}

.sf-catscroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 2px;
}
.sf-catscroll::-webkit-scrollbar {
  display: none;
}

.sf-catlink {
  position: relative;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  border-radius: 999px;
  margin: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s, color 0.15s;
}
.sf-catlink:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.16);
}
.sf-catlink.is-active {
  color: #7c2d12;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.16);
}
.sf-catlink.is-wa {
  color: #fff;
  background-color: rgba(37, 211, 102, 0.22);
  border: 1px solid rgba(255,255,255,0.18);
}
.sf-catlink.is-wa:hover {
  background-color: rgba(37, 211, 102, 0.32);
}

.sf-catlink .sf-icon {
  opacity: 0.95;
}
.sf-catlink.is-active .sf-icon {
  color: #c2410c;
}

.sf-tab-ind {
  display: none !important;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.sf-main {
  padding-top: 24px;
}

.sf-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  padding-top: 16px;
}

.sf-sec-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--sf-ink);
}

.sf-sec-head p {
  font-size: 13px;
  color: var(--sf-muted);
  margin-top: 4px;
}

.sf-sec-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-orange);
}

/* ==========================================================================
   Category Tiles
   ========================================================================== */
.sf-tiles {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.sf-tiles::-webkit-scrollbar { display: none; }

.sf-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  flex-shrink: 0;
  gap: 8px;
  text-align: center;
}

.sf-tile-fig {
  width: 48px;
  height: 48px;
  background-color: var(--sf-orange-soft);
  border-radius: var(--sf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sf-orange);
  font-weight: 700;
  font-size: 20px;
  border: 1px solid var(--sf-orange-border);
}

.sf-tile-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--sf-radius);
}

.sf-tile span {
  font-size: 12px;
  font-weight: 600;
  color: var(--sf-ink-light);
  line-height: 1.2;
}

/* ==========================================================================
   Promo Banners
   ========================================================================== */
.sf-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 576px) { .sf-banners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .sf-banners { grid-template-columns: repeat(4, 1fr); } }

.sf-promo {
  display: block;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  overflow: hidden;
}

.sf-po {
  padding: 20px;
  color: #fff;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--sf-radius);
}

.sf-po-kick {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.sf-po h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.sf-po-o { background-color: var(--sf-orange); }
.sf-po-d { background-color: #0f172a; }
.sf-po-g { background-color: #15803d; }
.sf-po-t { background-color: #0f766e; }

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.sf-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.sf-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background-color: var(--sf-surface-alt);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  gap: 8px;
}

.sf-trust-ic {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sf-orange);
}

.sf-trust-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--sf-ink);
}

/* ==========================================================================
   Product Grid & Rail
   ========================================================================== */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .sf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .sf-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .sf-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

.sf-rail {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.sf-rail::-webkit-scrollbar { display: none; }
.sf-rail > * {
  flex: 0 0 148px;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .sf-rail > * { flex: 0 0 176px; }
}

/* ==========================================================================
   Product Card
   ========================================================================== */
.sf-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  height: 100%;
}

.sf-card-media {
  position: relative;
  padding-bottom: 100%; /* 1:1 aspect */
  background-color: var(--sf-surface-alt);
  border-bottom: 1px solid var(--sf-border);
}

.sf-card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.sf-card-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--sf-border);
  width: 48px;
  height: 48px;
}

.sf-chip {
  position: absolute;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--sf-radius);
  z-index: 2;
}
.sf-chip-off {
  top: 8px;
  left: 8px;
  background-color: var(--sf-orange);
  color: #fff;
}
.sf-chip-out {
  top: 8px;
  right: 8px;
  background-color: var(--sf-ink-light);
  color: #fff;
}

.sf-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sf-card-unit {
  font-size: 11px;
  color: var(--sf-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sf-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-ink);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.sf-stock {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
.sf-stock.ok { color: var(--sf-leaf); }
.sf-stock.no { color: var(--sf-muted); }

.sf-card-foot {
  padding: 12px;
  border-top: 1px solid var(--sf-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--sf-surface-alt);
}

.sf-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.sf-price-now {
  font-size: 16px;
  font-weight: 700;
  color: var(--sf-ink);
}

.sf-price-mrp {
  font-size: 12px;
  color: var(--sf-muted);
  text-decoration: line-through;
}

.sf-price-save {
  font-size: 11px;
  color: var(--sf-leaf);
  font-weight: 600;
  width: 100%;
}

.sf-card-cta {
  display: flex;
  gap: 8px;
}

.sf-add {
  flex: 1;
  height: 32px;
  background-color: var(--sf-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--sf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.sf-add:hover:not(:disabled) {
  background-color: var(--sf-orange-dark);
  color: #fff;
  text-decoration: none;
}
.sf-add:disabled {
  background-color: var(--sf-border);
  color: var(--sf-muted);
  cursor: not-allowed;
}

.sf-wa-mini {
  width: 32px;
  height: 32px;
  background-color: var(--sf-wa);
  color: #fff;
  border-radius: var(--sf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-wa-mini.sf-wa-enquire {
  width: auto;
  padding: 0 8px;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   Stepper
   ========================================================================== */
.sf-stepper {
  flex: 1;
  height: 32px;
  background-color: #0c831f; /* Special green for stepper */
  border-radius: var(--sf-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.sf-stepper button {
  width: 24px;
  height: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.sf-stepper output {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   Toolbar & Filters
   ========================================================================== */
.sf-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  background-color: var(--sf-surface-alt);
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .sf-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sf-toolbar-search {
  flex: 1;
}

.sf-toolbar-sub {
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sf-check {
  padding: 6px 12px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  background: #fff;
  font-size: 13px;
  color: var(--sf-ink);
  font-weight: 600;
}
.sf-check.is-on {
  background-color: var(--sf-orange-soft);
  border-color: var(--sf-orange);
  color: var(--sf-orange-dark);
}

.sf-select {
  padding: 6px 24px 6px 12px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  background-color: #fff;
  font-size: 13px;
  color: var(--sf-ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

.sf-input {
  padding: 6px 12px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  font-size: 13px;
  width: 100%;
}

.sf-pills {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.sf-pills::-webkit-scrollbar { display: none; }

.sf-pill {
  padding: 8px 16px;
  background-color: var(--sf-surface-alt);
  border: 1px solid var(--sf-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--sf-ink);
}
.sf-pill.is-on {
  background-color: var(--sf-orange);
  border-color: var(--sf-orange);
  color: #fff;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.sf-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 12px;
  color: var(--sf-muted);
}
.sf-crumbs a {
  color: var(--sf-ink-light);
}
.sf-crumbs a:hover {
  color: var(--sf-orange);
}
.sf-crumbs li::after {
  content: "/";
  margin-left: 8px;
  color: var(--sf-border);
}
.sf-crumbs li:last-child::after {
  content: "";
  margin-left: 0;
}
.sf-crumbs li:last-child {
  color: var(--sf-ink);
  font-weight: 600;
}

/* ==========================================================================
   Category/Brand Pages
   ========================================================================== */
.sf-catbanner {
  background-color: var(--sf-orange-soft);
  border: 1px solid var(--sf-orange-border);
  border-radius: var(--sf-radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sf-catletter {
  width: 64px;
  height: 64px;
  background-color: #fff;
  border-radius: var(--sf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--sf-orange);
  border: 1px solid var(--sf-orange-border);
}

.sf-catgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .sf-catgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .sf-catgrid { grid-template-columns: repeat(4, 1fr); } }

.sf-catcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  background-color: #fff;
}
.sf-catcard:hover {
  border-color: var(--sf-orange);
  background-color: var(--sf-surface-alt);
}
.sf-catcard h3 {
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
  color: var(--sf-ink);
}
.sf-catcard span {
  font-size: 12px;
  color: var(--sf-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.sf-pdp {
  background-color: #fff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.sf-pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .sf-pdp-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.sf-pdp-media {
  background-color: var(--sf-surface-alt);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--sf-border);
}
@media (min-width: 992px) {
  .sf-pdp-media {
    border-bottom: none;
    border-right: 1px solid var(--sf-border);
  }
}

.sf-pdp-info {
  padding: 24px;
}
@media (min-width: 992px) {
  .sf-pdp-info { padding: 32px; }
}

.sf-brandline {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--sf-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.sf-ptitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--sf-ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

.sf-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.sf-rating .badge {
  background-color: var(--sf-orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--sf-radius);
  font-size: 12px;
  font-weight: 700;
}
.sf-rating .count {
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-pricebox {
  background-color: var(--sf-orange-soft);
  border: 1px solid var(--sf-orange-border);
  border-radius: var(--sf-radius);
  padding: 16px;
  margin-bottom: 24px;
}

.sf-price-lg {
  font-size: 28px;
  font-weight: 700;
  color: var(--sf-ink);
  margin-right: 12px;
}

.sf-stockpill {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--sf-radius);
  margin-bottom: 16px;
}
.sf-stockpill.ok {
  background-color: var(--sf-leaf-soft);
  color: var(--sf-leaf-dark);
  border: 1px solid var(--sf-leaf);
}
.sf-stockpill.no {
  background-color: var(--sf-surface-alt);
  color: var(--sf-muted);
  border: 1px solid var(--sf-border);
}

.sf-save {
  display: block;
  font-size: 13px;
  color: var(--sf-leaf-dark);
  font-weight: 600;
  margin-top: 8px;
}

.sf-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  margin-bottom: 24px;
}
.sf-qty button {
  width: 40px;
  height: 40px;
  font-size: 18px;
  background-color: var(--sf-surface-alt);
}
.sf-qty input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--sf-border);
  border-right: 1px solid var(--sf-border);
  font-weight: 700;
}

.sf-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.sf-delivery {
  border: 1px dashed var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 16px;
  background-color: var(--sf-surface-alt);
  font-size: 13px;
  color: var(--sf-ink-light);
}

.sf-speccard {
  margin-top: 32px;
  border-top: 1px solid var(--sf-border);
  padding-top: 24px;
}
.sf-speccard h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.sf-specgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.sf-specgrid dl {
  display: flex;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--sf-border-subtle);
  font-size: 13px;
}
.sf-specgrid dt {
  flex: 0 0 120px;
  color: var(--sf-muted);
}
.sf-specgrid dd {
  flex: 1;
  margin: 0;
  font-weight: 600;
  color: var(--sf-ink);
}

.sf-stickybar {
  display: none; /* Desktop */
}
@media (max-width: 991px) {
  .sf-stickybar {
    display: flex;
    position: fixed;
    bottom: 52px; /* Above bottom nav */
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--sf-border);
    padding: 12px;
    z-index: 80;
    gap: 8px;
  }
}

/* ==========================================================================
   Split Layout (Category page sidebar)
   ========================================================================== */
.sf-split {
  display: flex;
  gap: 24px;
}

.sf-side {
  display: none;
  width: 88px;
  flex-shrink: 0;
  background-color: var(--sf-surface-alt);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 8px 0;
  align-self: start;
  position: sticky;
  top: 140px;
}
@media (min-width: 992px) {
  .sf-side { display: block; }
}

.sf-side-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
  border-right: 3px solid transparent;
  color: var(--sf-muted);
}
.sf-side-item:hover {
  background-color: #fff;
  color: var(--sf-ink);
}
.sf-side-item.is-active {
  background-color: #fff;
  border-right-color: var(--sf-orange);
  color: var(--sf-orange);
}

.sf-side-ic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--sf-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 20px;
}
.sf-side-item.is-active .sf-side-ic {
  background-color: var(--sf-orange-soft);
  color: var(--sf-orange);
}

.sf-side-label {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
  font-weight: 600;
}

.sf-split-main {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   Cart Drawer
   ========================================================================== */
.sf-scrim {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background-color: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

body.sf-cart-open .sf-scrim {
  opacity: 1;
  pointer-events: auto;
}
body.sf-cart-open .sf-drawer {
  transform: none;
}

.sf-drawer-h {
  padding: 16px;
  border-bottom: 1px solid var(--sf-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--sf-surface-alt);
}
.sf-drawer-h h2 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-drawer-count {
  background-color: var(--sf-orange);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--sf-radius);
}

.sf-x {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--sf-muted);
}

.sf-drawer-b {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.sf-drawer-f {
  padding: 16px;
  border-top: 1px solid var(--sf-border);
  background-color: var(--sf-surface-alt);
}

.sf-line {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--sf-border-subtle);
}
.sf-line:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sf-line-thumb {
  width: 48px;
  height: 48px;
  background-color: var(--sf-surface-alt);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  object-fit: contain;
}

.sf-line-info {
  flex: 1;
}

.sf-line-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-line-sub {
  font-size: 12px;
  color: var(--sf-muted);
  margin-bottom: 8px;
}

.sf-line-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sf-mini-stepper {
  display: flex;
  align-items: center;
  background-color: #0c831f;
  border-radius: var(--sf-radius);
  height: 28px;
  padding: 0 4px;
}
.sf-mini-stepper button {
  width: 20px;
  height: 20px;
  color: #fff;
  font-weight: bold;
}
.sf-mini-stepper output {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */
.sf-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (min-width: 992px) {
  .sf-cart-grid { grid-template-columns: 7fr 5fr; }
}

.sf-panel {
  background-color: #fff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  overflow: hidden;
}

.sf-panel-h {
  padding: 16px;
  background-color: var(--sf-surface-alt);
  border-bottom: 1px solid var(--sf-border);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sf-panel-b {
  padding: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--sf-radius);
  text-align: center;
  transition: opacity 0.2s;
}
.sf-btn:hover { opacity: 0.9; }

.sf-btn-primary { background-color: var(--sf-orange); color: #fff; }
.sf-btn-accent { background-color: var(--sf-orange); color: #fff; }
.sf-btn-dark { background-color: var(--sf-ink); color: #fff; }
.sf-btn-wa { background-color: var(--sf-wa); color: #fff; }
.sf-btn-green { background-color: var(--sf-orange); color: #fff; } /* Alias */

.sf-btn-outline {
  background-color: var(--sf-surface-alt);
  border: 1px solid var(--sf-border);
  color: var(--sf-ink);
}
.sf-btn-outline:hover {
  border-color: var(--sf-orange);
  color: var(--sf-orange);
}

.sf-btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */
.sf-field {
  margin-bottom: 16px;
}
.sf-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sf-muted);
  margin-bottom: 6px;
}
.sf-field input, .sf-field select, .sf-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  font-size: 14px;
  background-color: #fff;
}
.sf-field input:focus, .sf-field select:focus, .sf-field textarea:focus {
  outline: none;
  border-color: var(--sf-orange);
}

/* ==========================================================================
   Bill/Summary
   ========================================================================== */
.sf-bill {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--sf-ink-light);
}
.sf-bill.total {
  border-top: 1px solid var(--sf-border);
  margin-top: 8px;
  padding-top: 16px;
  font-weight: 700;
  color: var(--sf-ink);
  font-size: 16px;
}

.sf-link-danger {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
}
.sf-link-danger:hover { text-decoration: underline; }

/* ==========================================================================
   Empty & Loading
   ========================================================================== */
.sf-empty {
  text-align: center;
  padding: 48px 16px;
  background-color: #fff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  margin-bottom: 24px;
}
.sf-empty svg {
  width: 64px;
  height: 64px;
  color: var(--sf-border);
  margin-bottom: 16px;
}
.sf-empty h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sf-empty p {
  color: var(--sf-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.sf-loading {
  display: flex;
  justify-content: center;
  padding: 48px;
}

.sf-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--sf-border);
  border-top-color: var(--sf-orange);
  border-radius: 50%;
  animation: sfspin 1s linear infinite;
}

@keyframes sfspin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.sf-pagination {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}
.sf-pagination .pagination {
  display: flex;
  list-style: none;
  gap: 4px;
}
.sf-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--sf-border);
  background: #fff;
  border-radius: var(--sf-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-ink);
}
.sf-pagination .page-link:hover {
  background-color: var(--sf-surface-alt);
}
.sf-pagination .page-item.active .page-link {
  background-color: var(--sf-orange);
  border-color: var(--sf-orange);
  color: #fff;
}
.sf-pagination .page-item.disabled .page-link {
  color: var(--sf-muted);
  background-color: var(--sf-surface-alt);
  cursor: not-allowed;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.sf-footer {
  background-color: var(--sf-surface-alt);
  border-top: 1px solid var(--sf-border);
  padding-top: 48px;
  display: block;
}

.sf-footer-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .sf-footer-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.sf-footer h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sf-ink);
  letter-spacing: 1px;
  margin: 0 0 16px 0;
}

.sf-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sf-footer li {
  margin-bottom: 12px;
  padding: 0;
}
.sf-footer a {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
}
.sf-footer a:hover {
  color: var(--sf-orange);
}
/* Company & Legal links — always visible right arrow in orange */
.sf-footer-in > .sf-footer-col:nth-child(2) ul li a::before,
.sf-footer-in > .sf-footer-col:nth-child(3) ul li a::before {
  content: '›';
  color: var(--sf-orange);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  margin-right: 6px;
  display: inline-block;
}
.sf-footer-in > .sf-footer-col:nth-child(2) ul li a,
.sf-footer-in > .sf-footer-col:nth-child(3) ul li a {
  display: inline-flex;
  align-items: center;
}
.sf-footer p {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}

.sf-footer-brand {
  display: inline-block;
  margin-bottom: 16px;
}

/* Footer — logo on top, name below */
.sf-footer-logo-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
  text-decoration: none;
}
.sf-footer-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: block;
}
.sf-footer-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--sf-ink);
  line-height: 1;
}
.sf-footer-desc {
  max-width: 32ch;
}
.sf-footer-diver {
  width: 36px;
  height: 2px;
  background: var(--sf-orange);
  border-radius: 999px;
  margin: -8px 0 14px;
}
.sf-footer-follow { margin-top: 6px; }
.sf-footer-follow-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sf-ink);
  display: block;
  margin-bottom: 6px;
}
.sf-footer-follow .sf-footer-diver { margin: 0 0 10px; }
.sf-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
}
.sf-footer-contact .sf-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.sf-footer-contact li:nth-child(1) .sf-icon { color: var(--sf-orange); }
.sf-footer-contact li:nth-child(2) .sf-icon { color: #25D366; }
.sf-footer-contact li:nth-child(3) .sf-icon { color: #2563eb; }
.sf-footer-contact li:nth-child(4) .sf-icon { color: var(--sf-orange); }
.sf-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}
.sf-social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid transparent;
  padding: 0;
  line-height: 0;
  vertical-align: middle;
}
.sf-social-link .sf-icon,
.sf-social-link i.sf-icon {
  width: auto;
  height: auto;
  font-size: 16px;
  line-height: 1;
  display: block;
  margin: 0;
  color: #fff;
}
.sf-social-fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.sf-social-ig { background: #E4405F; border-color: #E4405F; color: #fff; }
.sf-social-wa { background: #25D366; border-color: #25D366; color: #fff; }
.sf-social-yt { background: #FF0000; border-color: #FF0000; color: #fff; }
/* hover off — keep same real color + white icon */
.sf-social-link:hover { transform: none; filter: none; opacity: 1; color: #fff; }
.sf-social-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.sf-social-ig:hover { background: #E4405F; border-color: #E4405F; color: #fff; }
.sf-social-wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.sf-social-yt:hover { background: #FF0000; border-color: #FF0000; color: #fff; }

.sf-pay {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.sf-pay img {
  height: 24px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  background: #fff;
  padding: 2px;
}

/* Legal pages — fully responsive */
.sf-legal { padding: 24px 0 32px; }
.sf-legal-head { margin-bottom: 24px; }
.sf-legal-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sf-orange); margin-bottom: 8px; }
.sf-legal-title { font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1.15; letter-spacing: -0.02em; }
@media (min-width: 768px) { .sf-legal-title { font-size: 32px; } }
.sf-legal-meta { margin-top: 10px; font-size: 13px; color: #475569; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sf-legal-badge { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.sf-legal-wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .sf-legal-wrap { grid-template-columns: 240px 1fr; align-items: start; } }
.sf-legal-toc { background: #fff; border: 1px solid var(--sf-border); border-radius: 12px; padding: 16px; position: sticky; top: 84px; }
.sf-legal-toc h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0f172a; margin-bottom: 12px; }
.sf-legal-toc a { display: block; font-size: 13px; color: #334155; padding: 8px 10px; border-radius: 8px; line-height: 1.4; }
.sf-legal-toc a:hover { background: #f8fafc; color: var(--sf-orange); }
.sf-legal-card { background: #fff; border: 1px solid var(--sf-border); border-radius: 16px; overflow: hidden; }
.sf-legal-card-in { padding: 20px; }
@media (min-width: 768px) { .sf-legal-card-in { padding: 28px; } }
.sf-legal-card h2 { font-size: 18px; font-weight: 800; color: #0f172a; margin: 28px 0 12px; line-height: 1.3; }
.sf-legal-card h2:first-child { margin-top: 0; }
.sf-legal-card h3 { font-size: 15px; font-weight: 700; color: #1e293b; margin: 20px 0 8px; }
.sf-legal-card p { font-size: 14px; color: #334155; line-height: 1.7; margin: 0 0 12px; }
.sf-legal-card ul, .sf-legal-card ol { margin: 0 0 16px 18px; font-size: 14px; color: #334155; line-height: 1.7; }
.sf-legal-card li { margin-bottom: 6px; }
.sf-legal-card li::marker { color: var(--sf-orange); }
.sf-legal-note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 14px 16px; font-size: 13px; color: #7c2d12; line-height: 1.6; margin: 16px 0; }
.sf-legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 13px; }
.sf-legal-table th, .sf-legal-table td { border: 1px solid var(--sf-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.sf-legal-table th { background: #f8fafc; color: #0f172a; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.sf-legal-table td { color: #334155; }
.sf-legal-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--sf-border); }
.sf-legal-table-wrap .sf-legal-table { margin: 0; border: none; }
.sf-legal-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sf-legal-cta .sf-btn { min-height: 40px; padding: 0 16px; }

.sf-footer-bar {
  border-top: 1px solid var(--sf-border);
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}

/* ==========================================================================
   Bottom Nav
   ========================================================================== */
.sf-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background-color: #fff;
  border-top: 1px solid var(--sf-border);
  display: flex;
  z-index: 120;
}
@media (min-width: 992px) {
  .sf-bottomnav { display: none; }
}

.sf-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--sf-muted);
  gap: 4px;
}
.sf-bottomnav a span {
  font-size: 10px;
  font-weight: 600;
}
.sf-bottomnav a.is-active {
  color: var(--sf-orange);
}

/* ==========================================================================
   Floating Cart Pill — mobile optimized
   ========================================================================== */
.sf-pillcart {
  position: fixed;
  bottom: calc(68px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 150%);
  background-color: var(--sf-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 110;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  max-width: calc(100% - 24px);
  width: max-content;
}
.sf-pillcart.show {
  transform: translate(-50%, 0);
}
@media (min-width: 992px) {
  .sf-pillcart { bottom: 24px; }
}
@media (max-width: 480px) {
  .sf-pillcart {
    bottom: calc(72px + env(safe-area-inset-bottom));
    padding: 10px 14px;
    gap: 10px;
    max-width: calc(100% - 20px);
    font-size: 13px;
  }
  .sf-pillcart-info strong { font-size: 13px; }
  .sf-pillcart-info small { font-size: 11px; }
}

.sf-go {
  background-color: var(--sf-orange);
  color: #fff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   Toast — mobile optimized (Add to bag)
   ========================================================================== */
.sf-toast {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2000;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  max-width: calc(100% - 32px);
  width: auto;
  min-width: 200px;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
}
.sf-toast.show {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 640px) {
  .sf-toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 12px;
    max-width: calc(100% - 24px);
    min-width: 0;
    width: calc(100% - 24px);
  }
}
}
.sf-toast.show {
  display: block;
}

/* ==========================================================================
   Search Suggestions
   ========================================================================== */
.sf-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Exception for dropdown depth */
  z-index: 150;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.sf-suggest-row {
  display: flex;
  padding: 12px;
  border-bottom: 1px solid var(--sf-border-subtle);
  gap: 12px;
  align-items: center;
  color: inherit;
}
.sf-suggest-row:hover {
  background-color: var(--sf-surface-alt);
}
.sf-suggest-row:last-child {
  border-bottom: none;
}

.sf-suggest-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background-color: var(--sf-surface-alt);
  border-radius: var(--sf-radius);
  border: 1px solid var(--sf-border);
}

.sf-suggest-info {
  flex: 1;
}

.sf-suggest-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-ink);
  margin-bottom: 4px;
}

.sf-suggest-cat {
  font-size: 10px;
  background-color: var(--sf-surface-alt);
  color: var(--sf-muted);
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-block;
}

.sf-suggest-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--sf-ink);
}

.sf-suggest-empty {
  padding: 24px;
  text-align: center;
  color: var(--sf-muted);
  font-size: 13px;
}

.sf-suggest-spin {
  padding: 24px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.opacity-50 { opacity: 0.5; }
.sf-muted { color: var(--sf-muted); }
.cv-auto { content-visibility: auto; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
