/* Customer storefront. Tokens live in smilemart_theme.css. */

.sf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sf-body {
  background: var(--color-paper-dim);
  color: var(--color-ink);
  min-height: 100vh;
}

.sf-main {
  flex: 1;
  width: 100%;
  padding-bottom: 5.5rem;
}

.sf-wrap {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
}

.sf-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.5rem 0 2rem;
}

.sf-kicker,
.sf-eyebrow,
.sf-card-vendor,
.sf-menu-label {
  font-size: 0.6875rem;
  line-height: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.sf-kicker,
.sf-card-vendor,
.sf-menu-label { color: var(--color-ink-400); }

.sf-eyebrow { color: var(--color-gold-600); }

/* Announcement */

.sf-announce {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  /* Body is a column flex container, so this bar's min-content width
     becomes the page width. A long nowrap promo must be allowed to shrink. */
  min-width: 0;
  max-width: 100%;
  background: var(--color-navy-600);
  color: #fff;
  padding: 0.55rem 0.75rem;
}

.sf-announce-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 1.25rem;
  overflow: hidden;
}

.sf-announce-item {
  display: none;
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.25rem;
  gap: 0.75rem;
}

.sf-announce-item.is-active {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.sf-announce-item strong,
.sf-announce-item a {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-announce-item span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-announce-item strong { letter-spacing: 0.06em; text-transform: uppercase; }
.sf-announce-item span { color: rgba(255, 255, 255, 0.85); }
.sf-announce-item a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.sf-announce-arrow,
.sf-hero-arrow {
  border: 0;
  background: transparent;
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
}

.sf-announce-arrow:hover,
.sf-hero-arrow:hover { background: rgba(255, 255, 255, 0.12); }

/* Header */

.sf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-navy-800);
  color: #fff;
}

.sf-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0.9rem 1rem 0.4rem;
}

.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
}

.sf-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: transparent;
}

.sf-menus { display: none; gap: 0.25rem; align-items: center; }
.sf-menus.is-open { display: flex; flex-basis: 100%; flex-wrap: wrap; }

@media (max-width: 899px) {
  .sf-menu-panel { position: static; margin-top: 0.35rem; width: min(100%, 320px); }
}

.sf-menu { position: relative; }
.sf-menu summary {
  list-style: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
}
.sf-menu summary::-webkit-details-marker { display: none; }
.sf-menu summary:hover,
.sf-menu[open] summary { background: rgba(255, 255, 255, 0.1); }

.sf-menu-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 240px;
  background: #fff;
  color: var(--color-ink);
  border-radius: 1.25rem;
  border: 1px solid var(--color-paper-edge);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 50;
}

.sf-menu-panel ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; margin: 0.35rem 0 0.8rem; }
.sf-menu-panel a:hover { color: var(--color-navy-600); }
.sf-menu-empty { color: var(--color-ink-500); font-size: 0.8rem; margin: 0.35rem 0 0.8rem; }

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

.sf-search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--color-ink-400);
  stroke-width: 1.6;
}

.sf-search input {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 1rem 0 2.5rem;
  background: #fff;
  color: var(--color-ink);
}

.sf-search input:focus { outline: 2px solid var(--color-gold-600); }

.sf-header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.sf-nav-toggle,
.sf-signin {
  height: 36px;
  border-radius: 999px;
  padding: 0 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.sf-nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.sf-signin { background: #fff; color: var(--color-navy-800); display: inline-flex; align-items: center; }
.sf-hello { display: none; font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }

.sf-cart-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: #fff;
}

.sf-cart-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sf-cart-link.is-active,
.sf-cart-link:hover { background: #fff; color: var(--color-navy-600); }

.sf-cart-badge,
.sf-tab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--color-crimson-600);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.sf-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0.35rem 1rem 0.85rem;
  scrollbar-width: none;
}
.sf-chips::-webkit-scrollbar { display: none; }

.sf-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.sf-chip.is-active,
.sf-chip:hover { background: #fff; color: var(--color-navy-800); }
.sf-chip.is-quiet { border-style: dashed; }

/* Buttons, badges, tiles */

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.sf-btn-primary { background: var(--color-navy-600); color: #fff; }
.sf-btn-primary:hover { background: var(--color-navy-700); }
.sf-btn-inverse { background: #fff; color: var(--color-ink); }
.sf-btn-inverse:hover { background: var(--color-paper-dim); }
.sf-btn-outline { background: transparent; border-color: var(--color-fog-300); color: var(--color-ink); }
.sf-btn-block { width: 100%; }
.sf-text-btn {
  background: none;
  border: 0;
  color: var(--color-navy-600);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.sf-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-paper-edge);
  background: var(--color-paper);
  padding: 0.15rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sf-badge-sale { background: var(--color-crimson-600); border-color: var(--color-crimson-600); color: #fff; }
.sf-badge-brand { background: var(--color-navy-50); border-color: var(--color-navy-200); color: var(--color-navy-600); }
.sf-badge-ok { background: var(--color-success-soft); border-color: rgba(63, 107, 92, 0.3); color: var(--color-success); }
.sf-badge-danger { background: var(--color-crimson-50); border-color: rgba(110, 20, 32, 0.3); color: var(--color-crimson-600); }
.sf-badge-warn { background: var(--color-gold-50); border-color: var(--color-gold-200); color: var(--color-gold-800); }

.sf-tile {
  background: #fff;
  border: 1px solid var(--color-paper-edge);
  border-radius: 1.25rem;
  padding: 1.1rem;
}
.sf-tile-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-paper-edge);
  margin-bottom: 0.25rem;
}

.sf-empty {
  background: #fff;
  border: 1px dashed var(--color-paper-edge);
  border-radius: 1.25rem;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}
.sf-empty p, .sf-fine { color: var(--color-ink-500); }

.sf-page-head h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.sf-page-head p { color: var(--color-ink-500); margin-top: 0.35rem; }
.sf-crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--color-ink-400); font-size: 0.8rem; }
.sf-crumbs a:hover { color: var(--color-navy-600); }

.sf-messages { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sf-messages-wrap { padding-top: 1rem; }
.sf-message { border-radius: 999px; padding: 0.65rem 1rem; background: #fff; border: 1px solid var(--color-paper-edge); }
.sf-message-success { background: var(--color-success-soft); color: var(--color-success); }
.sf-message-error { background: var(--color-crimson-50); color: var(--color-crimson-700); }
.sf-message-info { background: var(--color-navy-50); color: var(--color-navy-700); }

/* Hero, categories, sale, cards */

.sf-hero-frame {
  position: relative;
  min-height: 420px;
  border-radius: 1.75rem;
  overflow: hidden;
  background: var(--color-navy-800);
}

.sf-hero-slide { display: none; min-height: 420px; }
.sf-hero-slide.is-active { display: block; position: relative; min-height: 420px; }
.sf-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.sf-hero-media.is-fallback {
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 148, 17, 0.45), transparent 32%),
    radial-gradient(circle at 10% 80%, rgba(110, 20, 32, 0.45), transparent 36%),
    linear-gradient(145deg, #132a6d, #0b1942 60%);
}
.sf-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  padding: 2.2rem 1.4rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  min-height: 420px;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(8, 18, 47, 0.05), rgba(8, 18, 47, 0.72));
}
.sf-hero-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.sf-hero-copy p { color: rgba(255, 255, 255, 0.86); font-size: 1rem; max-width: 34rem; }
.sf-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(8, 18, 47, 0.45);
}
.sf-hero-prev { left: 0.8rem; }
.sf-hero-next { right: 0.8rem; }
.sf-hero-dots { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: 0.35rem; z-index: 2; }
.sf-hero-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.sf-hero-dots button.is-active { background: #fff; width: 1.3rem; }

.sf-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.sf-section-head h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.sf-section-head a { color: var(--color-navy-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.sf-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.sf-bento-tile { display: flex; flex-direction: column; gap: 0.45rem; color: var(--color-ink); }
.sf-bento-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 1.25rem;
  background: var(--color-paper-deep) center/cover no-repeat;
  overflow: hidden;
}
.sf-bento-swatch { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: #fff; }
.sf-bento-tile:nth-child(3n+1) .sf-bento-swatch { background: var(--color-navy-600); }
.sf-bento-tile:nth-child(3n+2) .sf-bento-swatch { background: var(--color-crimson-600); }
.sf-bento-tile:nth-child(3n) .sf-bento-swatch { background: var(--color-gold-600); color: var(--color-ink); }
.sf-bento-name { font-weight: 700; }
.sf-bento-count { color: var(--color-ink-500); font-size: 0.8rem; }

.sf-sale { display: flex; flex-direction: column; gap: 1rem; }
.sf-sale-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 280px;
  padding: 1.5rem;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(217, 148, 17, 0.35), transparent 28%),
    var(--color-crimson-600);
  color: #fff;
}
.sf-sale-panel h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 0.95; letter-spacing: -0.03em; }
.sf-sale-panel p { color: rgba(255, 255, 255, 0.88); }
.sf-sale-body { flex: 1; min-width: 0; }

.sf-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.sf-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-paper-edge);
  border-radius: 1.25rem;
  overflow: hidden;
  min-width: 0;
}
.sf-card:hover { border-color: var(--color-fog-400); transform: translateY(-2px); }
.sf-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--color-paper-dim);
  overflow: hidden;
}
.sf-card-media img,
.sf-line-media img,
.sf-gallery-stage img,
.sf-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sf-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--color-navy-50);
  color: var(--color-navy-600);
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
}
.sf-fallback-lg { min-height: 320px; font-size: 4rem; }
.sf-card .sf-badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.sf-card-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.9rem; flex: 1; }
.sf-card-body h3 { font-size: 0.92rem; line-height: 1.3; }
.sf-card-body h3 a:hover { color: var(--color-navy-600); }
.sf-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; padding-top: 0.4rem; }
.sf-card-price { display: flex; flex-direction: column; }
.sf-price, .sf-compare, .sf-line-total, .sf-summary dd {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.sf-price { font-weight: 700; font-size: 1rem; }
.sf-price-lg { font-size: 1.7rem; }
.sf-compare { color: var(--color-ink-400); text-decoration: line-through; font-size: 0.78rem; }
.sf-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.6rem;
  border: 1px solid var(--color-navy-600);
  background: var(--color-navy-600);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sf-icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sf-icon-btn:hover { background: var(--color-navy-700); }

/* Product detail */

.sf-pdp { display: grid; gap: 1.5rem; }
.sf-gallery-stage {
  background: var(--color-paper-dim);
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  max-height: 200px;
  display: grid;
}
.sf-gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.sf-gallery-thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--color-paper-edge);
  background: #fff;
  cursor: pointer;
}
.sf-gallery-thumbs button.is-active { border-color: var(--color-navy-600); }
.sf-buy h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.25rem 0 0.7rem; }
.sf-badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sf-buy-price { display: flex; align-items: baseline; gap: 0.7rem; margin: 0.9rem 0 0.3rem; }
.sf-sku { color: var(--color-ink-400); font-size: 0.8rem; margin-bottom: 1rem; }
.sf-buy-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin-bottom: 1.2rem; }
.sf-buy-form label { width: 100%; font-size: 0.8rem; font-weight: 700; color: var(--color-ink-700); }
.sf-qty-input { max-width: 6rem; }
.sf-seller, .sf-prose {
  border-top: 1px solid var(--color-paper-edge);
  padding-top: 1rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sf-prose p { color: var(--color-ink-700); line-height: 1.6; }

/* Cart, checkout, auth */

.sf-split { display: grid; gap: 1rem; }
.sf-lines { list-style: none; }
.sf-line { display: grid; grid-template-columns: 84px 1fr; gap: 0.8rem; padding: 0.9rem 0; border-bottom: 1px solid var(--color-paper-edge); }
.sf-line:last-child { border-bottom: 0; }
.sf-line-media { display: block; width: 84px; height: 84px; border-radius: 0.8rem; overflow: hidden; background: var(--color-paper-dim); }
.sf-line-copy h2 { font-size: 0.95rem; }
.sf-line-actions { display: flex; gap: 0.8rem; align-items: center; margin-top: 0.45rem; }
.sf-line-actions form { display: flex; align-items: center; gap: 0.35rem; }
.sf-line-actions button[name="qty"] {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--color-paper-edge);
  background: #fff;
  cursor: pointer;
}
.sf-qty { min-width: 1.2rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.sf-line-total { display: none; }
.sf-cart-links { display: flex; justify-content: space-between; gap: 1rem; }

.sf-summary {
  background: #fff;
  border: 1px solid var(--color-paper-edge);
  border-radius: 1.25rem;
  padding: 1.1rem;
  height: fit-content;
}
.sf-summary dl, .sf-success-meta { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.8rem 0; }
.sf-summary dl div, .sf-success-meta div, .sf-summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.sf-summary-total { font-weight: 800; padding-top: 0.45rem; border-top: 1px solid var(--color-paper-edge); }
.sf-summary-lines { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; margin: 0.5rem 0 0.8rem; }

.sf-steps { list-style: none; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sf-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-ink-400);
  font-weight: 700;
  font-size: 0.82rem;
}
.sf-steps span {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-paper-edge);
  color: var(--color-ink);
  font-size: 0.75rem;
}
.sf-steps .is-active { color: var(--color-navy-700); }
.sf-steps .is-active span { background: var(--color-navy-600); color: #fff; }

.sf-checkout { display: flex; flex-direction: column; gap: 1rem; }
.sf-checkout fieldset { border: 1px solid var(--color-paper-edge); }
.sf-checkout legend { font-family: var(--font-heading); font-weight: 800; padding: 0 0.3rem; }
.sf-fields { display: grid; gap: 0.75rem; }
.sf-fields label, .sf-auth-card label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.82rem; font-weight: 700; color: var(--color-ink-700); }
.sf-fields label span { font-weight: 500; color: var(--color-ink-400); }
.sf-input {
  width: 100%;
  height: 44px;
  border-radius: 0.8rem;
  border: 1px solid var(--color-paper-edge);
  background: var(--color-paper-dim);
  padding: 0 0.8rem;
  color: var(--color-ink);
}
.sf-input:focus { outline: 2px solid var(--color-navy-200); background: #fff; }
.sf-pay-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--color-paper-edge);
  border-radius: 1rem;
  padding: 0.85rem;
  margin-top: 0.7rem;
}
.sf-pay-option.is-selected { border-color: var(--color-navy-600); background: var(--color-navy-50); }
.sf-pay-option.is-disabled { opacity: 0.6; }
.sf-pay-option small { display: block; font-weight: 500; color: var(--color-ink-500); }

.sf-success {
  max-width: 640px;
  margin: 1rem auto;
  background: #fff;
  border: 1px solid var(--color-paper-edge);
  border-radius: 1.75rem;
  padding: 2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.sf-success-mark {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 1.5rem;
}
.sf-address {
  white-space: pre-wrap;
  font-family: var(--font-sans);
  background: var(--color-paper-dim);
  border-radius: 0.9rem;
  padding: 0.8rem;
  color: var(--color-ink-700);
}

.sf-auth {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
}
.sf-auth-card { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.4rem; }
.sf-auth-card h1 { font-size: 1.7rem; }
.sf-auth-card form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.4rem; }
.sf-auth-switch { color: var(--color-ink-500); }
.sf-auth-switch a { color: var(--color-navy-600); font-weight: 700; }
.sf-auth-aside {
  border-radius: 1.75rem;
  background: var(--color-navy-800);
  color: #fff;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
  min-height: 220px;
}
.sf-auth-aside h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.sf-auth-aside p { color: rgba(255, 255, 255, 0.8); }

.sf-cms { line-height: 1.7; }
.sf-cms h2, .sf-cms h3 { margin: 1rem 0 0.4rem; }
.sf-cms p { margin-bottom: 0.7rem; }
.sf-cms a { color: var(--color-navy-600); text-decoration: underline; }

/* Footer and tabs */

.sf-footer {
  margin-top: 2rem;
  background: var(--color-navy-800);
  color: #fff;
  border-radius: 2rem 2rem 0 0;
}
.sf-footer-inner { width: min(1400px, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0 6.5rem; }
.sf-footer-brandrow, .sf-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.sf-pay { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.sf-pay li {
  background: #fff;
  color: var(--color-ink);
  border-radius: 0.4rem;
  min-width: 2.6rem;
  height: 2rem;
  padding: 0 0.45rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}
.sf-footer-grid { display: grid; gap: 2rem; margin-top: 2rem; }
.sf-footer h2 { color: rgba(255, 255, 255, 0.92); font-weight: 500; font-size: 1.55rem; line-height: 1.25; max-width: 22rem; }
.sf-footer h3 { color: #fff; font-size: 0.95rem; margin-bottom: 0.6rem; }
.sf-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; }
.sf-footer-cols ul, .sf-legal ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.sf-legal ul { flex-direction: row; flex-wrap: wrap; }
.sf-footer a { color: rgba(255, 255, 255, 0.75); }
.sf-footer a:hover { color: #fff; }
.sf-footer-note, .sf-footer-cols span { color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; margin-top: 0.8rem; }
.sf-news { position: relative; max-width: 24rem; margin-top: 1rem; }
.sf-news input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 3rem 0 0.9rem;
}
.sf-news input::placeholder { color: rgba(255, 255, 255, 0.55); }
.sf-news button {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.sf-news svg { width: 16px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sf-legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }

.sf-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--color-paper-edge);
  padding-bottom: env(safe-area-inset-bottom);
}
.sf-tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0 0.45rem;
  color: var(--color-ink-400);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sf-tab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sf-tab.is-active { color: var(--color-navy-600); }
.sf-tab-badge { top: 0.25rem; right: 18%; background: var(--color-navy-600); }

@media (min-width: 700px) {
  .sf-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-line { grid-template-columns: 96px 1fr auto; align-items: center; }
  .sf-line-total { display: block; font-weight: 700; }
  .sf-fields { grid-template-columns: 1fr 1fr; }
  .sf-span-2 { grid-column: 1 / -1; }
  .sf-auth { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
  .sf-hello { display: inline; }
}

@media (min-width: 900px) {
  .sf-nav-toggle { display: none; }
  .sf-menus { display: flex; order: 2; }
  .sf-search { order: 3; flex: 1 1 280px; max-width: 560px; }
  .sf-header-tools { order: 4; margin-left: 0; }
  .sf-brand { order: 1; }
  .sf-menu-panel { position: absolute; }
  .sf-gallery-stage { aspect-ratio: 1; max-height: none; }
  .sf-pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; align-items: start; }
  .sf-gallery { position: sticky; top: 7.5rem; }
  .sf-split { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr); align-items: start; }
  .sf-sale { flex-direction: row; align-items: stretch; }
  .sf-sale-panel { width: min(340px, 34%); flex: none; min-height: 100%; }
  .sf-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .sf-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-footer-inner { padding-bottom: 2.5rem; }
}

@media (min-width: 1100px) {
  .sf-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sf-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-product-grid-sale { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .sf-tabs { display: none; }
  .sf-main { padding-bottom: 0; }
}
