/* Limira Mirror — Storefront v2 (Quiet Commerce) */

:root {
  --brand-red: #EE203A;
  --brand-red-dark: #c91a32;
  --brand-red-soft: rgba(238, 32, 58, 0.08);
  --ink: #0f1114;
  --text: #3a3f4d;
  --muted: #6b7280;
  --surface: #ffffff;
  --canvas: #f7f8fa;
  --border: #e5e7eb;
  --radius: 10px;
  --radius-sm: 6px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 17, 20, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 17, 20, 0.06);
  --shadow-lift: 0 12px 40px rgba(15, 17, 20, 0.08);
  --header-h: 72px;
  --container: 1240px;
  --gutter: clamp(24px, 5vw, 48px);
  --section-y: clamp(48px, 8vw, 120px);
  --focus-ring: 0 0 0 3px rgba(238, 32, 58, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body.sf-body {
  margin: 0;
  padding: 0;
  --bs-body-font-family: var(--font);
  --bs-font-sans-serif: var(--font);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-red); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

h1, .sf-display { font-size: clamp(2rem, 4vw, 2.75rem); }
h2, .sf-h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 600; }
h3, .sf-h3 { font-size: 1.125rem; font-weight: 500; }
.sf-small { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

.sf-container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.sf-main { min-height: calc(100vh - var(--header-h) - 200px); }

.sf-home + .sf-footer,
.sf-main:has(.sf-home) ~ .sf-footer {
  margin-top: 0;
}

/* ── Header ── */
.sf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  background: transparent;
  border-bottom: none;
  height: auto;
  min-height: var(--header-h);
  overflow: visible;
}

.sf-logo img { height: 40px; width: auto; flex-shrink: 0; }

.sf-header__nav-wrap {
  flex: 1;
  min-width: 0;
  display: none;
}

.sf-header__nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

@media (min-width: 992px) {
  .sf-header__nav-wrap,
  .sf-header__nav {
    overflow: visible;
  }
}

.sf-header__nav::-webkit-scrollbar { display: none; }

.sf-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.sf-nav > .sf-nav__item.sf-nav__item--has-menu {
  position: relative;
  z-index: 2;
}

.sf-nav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
}

.sf-nav__chevron { opacity: 0.5; transition: transform 0.15s; }

.sf-nav__item--has-menu:hover .sf-nav__chevron,
.sf-nav__item--has-menu:focus-within .sf-nav__chevron {
  transform: rotate(180deg);
}

.sf-nav > .sf-nav__item > a:hover,
.sf-nav > .sf-nav__item > a.is-active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

/* Mega menu */
.sf-mega {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 32px));
  width: max-content;
  padding-top: 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 1001;
  overflow: visible;
  font-family: var(--font);
}

.sf-nav__item--has-menu:last-child .sf-mega,
.sf-nav__item--has-menu:nth-last-child(2) .sf-mega {
  left: auto;
  right: 0;
}

.sf-nav__item--has-menu:hover .sf-mega,
.sf-nav__item--has-menu:focus-within .sf-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sf-mega__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
  min-width: 240px;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  list-style: none;
}

.sf-mega__col {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.sf-mega__col + .sf-mega__col {
  border-top: 1px solid var(--border);
}

.sf-mega__heading {
  display: block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding: 11px 16px;
  line-height: 1.4;
  white-space: normal;
  border-bottom: none;
  border-radius: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.sf-mega__heading:hover,
.sf-mega__heading.is-active,
.sf-mega__heading:focus-visible {
  color: var(--brand-red);
  background: var(--brand-red-soft);
  border-bottom: none;
}

.sf-mega__links {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}

.sf-mega__links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-mega__links a {
  display: block;
  padding: 11px 16px 11px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  white-space: normal;
  border-bottom: none;
  border-radius: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.sf-mega__links a:hover,
.sf-mega__links a.is-active,
.sf-mega__links a:focus-visible {
  color: var(--brand-red);
  background: var(--brand-red-soft);
  border-bottom: none;
}

.sf-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.sf-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}

.sf-icon-btn:hover { background: var(--canvas); color: var(--brand-red); }

.sf-cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--brand-red);
  border-radius: 999px;
}

.sf-icon-btn--cart { position: relative; }

.sf-lang {
  display: flex;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sf-lang a {
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.sf-lang a.is-active {
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.sf-menu-toggle { display: inline-flex; }

@media (min-width: 992px) {
  .sf-header__nav-wrap { display: block; }
  .sf-menu-toggle { display: none; }
}

.sf-header__search {
  position: relative;
}

.sf-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  z-index: 1002;
}

.sf-search-panel[hidden] {
  display: none;
}

.sf-search-panel__form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sf-search-panel__form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-family: var(--font);
  font-size: 0.875rem;
  background: var(--canvas);
  color: var(--ink);
}

.sf-search-panel__form input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: var(--focus-ring);
}

.sf-search-panel__submit {
  flex-shrink: 0;
}

/* Mobile nav drawer */
.sf-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}

.sf-mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.sf-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 20, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
}

.sf-mobile-nav.is-open .sf-mobile-nav__backdrop { opacity: 1; }

.sf-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--surface);
  padding: var(--space-3);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.sf-mobile-nav.is-open .sf-mobile-nav__panel { transform: translateX(0); }

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

.sf-mobile-nav__search { margin-top: var(--space-2); }

.sf-mobile-nav__search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.sf-mobile-nav__list,
.sf-mobile-nav__categories {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
}

.sf-mobile-nav__list--secondary { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--border); }

.sf-mobile-nav__section-title {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sf-mobile-nav li { border-bottom: 1px solid var(--border); }

.sf-mobile-nav__list a,
.sf-mobile-nav__cat-single {
  display: block;
  padding: var(--space-2) 0;
  font-weight: 500;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.sf-mobile-nav__cat-toggle,
.sf-mobile-nav__sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-2) 0;
  font-weight: 600;
  background: none;
  border: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.sf-mobile-nav__cat-link {
  display: block;
  padding: 0 0 var(--space-1);
  font-size: 0.8125rem;
  color: var(--brand-red);
  font-weight: 500;
}

.sf-mobile-nav__cat-link--sm { padding-left: var(--space-2); }

.sf-mobile-nav__sub,
.sf-mobile-nav__subsub {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-1) var(--space-2);
}

.sf-mobile-nav__sub a,
.sf-mobile-nav__subsub a {
  display: block;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
}

.sf-mobile-nav__sub-toggle { font-weight: 500; font-size: 0.9375rem; padding: 8px 0; }

.sf-mobile-nav__cat-toggle[aria-expanded="true"] svg,
.sf-mobile-nav__sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ── Footer ── */
.sf-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-6);
}

.sf-footer a { color: rgba(255, 255, 255, 0.75); }
.sf-footer a:hover { color: #fff; }

.sf-footer__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .sf-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .sf-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.sf-footer__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-2);
}

.sf-footer__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: var(--space-3);
}

.sf-footer__social {
  display: flex;
  gap: var(--space-2);
}

.sf-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.sf-footer__social a:hover { background: var(--brand-red); color: #fff; }

.sf-footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: var(--space-2);
}

.sf-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-footer__links li { margin-bottom: var(--space-1); }

.sf-footer__bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Buttons ── */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 14px 32px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: none;
}

.sf-btn--primary {
  background: var(--brand-red);
  color: #fff;
}

.sf-btn--primary:hover {
  background: var(--brand-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.sf-btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.sf-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.sf-btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.sf-btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.sf-btn--block { width: 100%; }

.sf-btn:disabled,
.sf-btn[aria-disabled="true"],
.sf-btn--cart-blocked {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
  filter: grayscale(0.15);
}

.sf-btn--cart-blocked:hover {
  opacity: 0.55;
}

/* ── Page title ── */
.sf-page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0 var(--space-3);
}

.sf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  margin: 0 0 var(--space-1);
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.sf-breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-1);
  color: var(--border);
}

.sf-breadcrumb a:hover { color: var(--brand-red); }

.sf-page-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }

/* ── Sections ── */
.sf-section { padding: var(--space-5) 0; }
.sf-section--tight { padding: var(--space-4) 0; }

/* ── Homepage (modern e-commerce layout) ── */
.sf-home {
  background: var(--surface);
}

.sf-home-hero {
  padding: var(--section-y) 0;
  background: var(--surface);
}

.sf-home-hero__inner {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 992px) {
  .sf-home-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 5vw, 96px);
  }
}

.sf-home-hero__title {
  font-size: clamp(2.75rem, 4.5vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 clamp(20px, 3vw, 28px);
  max-width: 14ch;
}

.sf-home-hero__lead {
  font-size: clamp(1rem, 1.2vw + 0.75rem, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 clamp(32px, 4vw, 48px);
  max-width: 42ch;
}

.sf-home-hero__cta { margin: 0; }

.sf-home-hero__visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas);
}

.sf-home-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.sf-home-featured {
  padding: var(--section-y) 0;
  background: var(--canvas);
}

.sf-home-featured__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.sf-home-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.sf-home-section-title {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.sf-home-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.sf-home-link:hover {
  opacity: 0.65;
  color: var(--ink);
}

.sf-product-grid--home {
  gap: clamp(24px, 3vw, 40px);
}

@media (min-width: 768px) {
  .sf-product-grid--home { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .sf-product-grid--home { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .sf-product-grid--home { grid-template-columns: repeat(4, 1fr); }
}

.sf-home-values {
  padding: var(--section-y) 0;
  background: var(--surface);
}

.sf-home-values__grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

@media (min-width: 768px) {
  .sf-home-values__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4vw, 48px);
  }
}

.sf-home-values__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.3;
}

.sf-home-values__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 32ch;
}

/* ── Product grid ── */
.sf-product-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

@media (max-width: 419px) {
  .sf-product-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .sf-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .sf-product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
}

.sf-shop-main .sf-product-grid {
  /* Collections: keep 4-up desktop; slightly tighter gap for narrower cards */
  gap: clamp(12px, 1.5vw, 20px);
}

.sf-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  border-radius: var(--radius);
  border: none;
  overflow: visible;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sf-product-card:hover {
  transform: translateY(-4px);
}

.sf-product-card__media-wrap {
  flex-shrink: 0;
}

.sf-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--canvas);
  overflow: hidden;
  border-radius: var(--radius);
}

.sf-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.sf-product-card__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.sf-product-card__sold {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 20px);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 17, 20, 0.72);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.sf-product-card__body {
  padding: var(--space-2) 4px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-height: 0;
}

.sf-product-card__title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.sf-product-card__title a:hover { color: var(--ink); opacity: 0.7; }

.sf-product-card__price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.sf-product-card__notice {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.sf-product-card__actions {
  margin-top: auto;
  padding-top: var(--space-1);
}

.sf-product-card:hover .sf-product-card__media {
  box-shadow: var(--shadow-lift);
}

/* ── Shop / collections ── */
.sf-shop {
  padding: var(--space-4) 0 var(--space-5);
  background: var(--canvas);
}

.sf-shop-shell {
  width: calc(100% - (var(--gutter) * 2));
  max-width: none;
  margin-inline: auto;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 992px) {
  .sf-shop-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
  }
}

.sf-shop-filters {
  position: sticky;
  top: calc(var(--header-h) + var(--space-2));
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.sf-shop-filters__title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-2);
  color: var(--muted);
}

.sf-shop-filters__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.sf-shop-filters__list li { margin: 0; }

.sf-shop-cat {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sf-shop-cat:hover {
  background: var(--brand-tint);
  color: var(--ink);
}

.sf-shop-cat.is-active {
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-weight: 700;
  border-left-color: var(--brand-red);
}

.sf-shop-main {
  min-width: 0;
}

.sf-shop-main.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s;
}

.sf-shop-subcats {
  margin-bottom: var(--space-4);
}

.sf-shop-subcats__head {
  margin-bottom: var(--space-2);
}

.sf-shop-subcats__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.sf-subcat-swiper {
  position: relative;
  padding: 4px 2px 8px;
  overflow: hidden;
}

.sf-subcat-swiper .swiper-slide {
  height: auto;
  width: auto;
}

.sf-subcat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 12px 10px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-height: 100%;
}

.sf-subcat-tile:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
  color: inherit;
}

.sf-subcat-tile.is-active {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 1px var(--brand-red);
}

.sf-subcat-tile__media {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-subcat-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-subcat-tile__placeholder {
  color: var(--brand-red);
}

.sf-subcat-tile__name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 12ch;
}

.sf-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.sf-shop-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.sf-shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sf-shop-sort__select {
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-family: inherit;
}

/* legacy shop-layout aliases (unused by new shell, keep harmless) */
.sf-shop-layout {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 992px) {
  .sf-shop-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.sf-shop-filters ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-shop-filters__sub,
.sf-shop-filters__subsub {
  display: none;
}

.sf-shop-filters a:hover,
.sf-shop-filters a.is-active {
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-weight: 500;
}

/* ── Product detail ── */
.sf-pdp {
  display: grid;
  gap: var(--space-4);
}

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

.sf-pdp__gallery-main {
  aspect-ratio: 1;
  background: var(--canvas);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.sf-pdp__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sf-pdp__thumbs {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
  overflow-x: auto;
}

.sf-pdp__thumb {
  flex: 0 0 72px;
  height: 72px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
}

.sf-pdp__thumb.is-active { border-color: var(--brand-red); }

.sf-pdp__buybox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

@media (min-width: 992px) {
  .sf-pdp__buybox { position: sticky; top: calc(var(--header-h) + var(--space-2)); }
}

.sf-pdp__price {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.sf-pdp__tax { font-size: 0.875rem; color: var(--muted); margin-bottom: var(--space-2); }

.sf-pdp__stock {
  font-size: 0.875rem;
  color: var(--brand-red);
  margin-bottom: var(--space-2);
}

.sf-qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: var(--space-3) 0;
}

.sf-qty-row input[type="number"] {
  width: 88px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

/* Variant buttons — JS renders .variant-btn inside #productVariationsContainer */
.sf-variant-group { margin-bottom: var(--space-2); }

.sf-variant-group h5,
.sf-variant-group h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.sf-variant-options,
.sf-variant-group .variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.sf-variant-btn,
.sf-variant-group .variant-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  max-width: 100%;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sf-variant-btn:hover,
.sf-variant-group .variant-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.sf-variant-btn.is-active,
.sf-variant-btn.active,
.sf-variant-group .variant-btn.is-active,
.sf-variant-group .variant-btn.active {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #fff;
}

.sf-variant-btn.active:hover,
.sf-variant-group .variant-btn.active:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #fff;
}

.sf-variant-btn:disabled,
.sf-variant-group .variant-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 575.98px) {
  .sf-variant-btn,
  .sf-variant-group .variant-btn {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
}

.sf-child-variants,
.child-variants-container {
  margin-top: var(--space-2);
  padding: var(--space-2);
  background: var(--canvas);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-red);
}

.variant-btn.parent-variant-btn.active,
.variant-btn.child-variant-btn.active,
.variant-btn.single-level-btn.active {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #fff;
}

.sf-total-box {
  margin-top: var(--space-2);
  padding: var(--space-2);
  background: var(--canvas);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

/* ── Cart ── */
.sf-cart-layout {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 992px) {
  .sf-cart-layout { grid-template-columns: 1fr 360px; align-items: start; }
}

.sf-cart-lines { display: flex; flex-direction: column; gap: var(--space-2); }

.sf-cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
}

.sf-cart-line__img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--canvas);
}

.sf-cart-line__img img { width: 100%; height: 100%; object-fit: cover; }

.sf-cart-line__meta { font-size: 0.8125rem; color: var(--muted); }

.sf-cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  position: sticky;
  top: calc(var(--header-h) + var(--space-2));
}

.sf-cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  font-size: 0.9375rem;
}

.sf-cart-summary__row--total {
  font-weight: 600;
  font-size: 1.0625rem;
  border-top: 1px solid var(--border);
  margin-top: var(--space-1);
  padding-top: var(--space-2);
  color: var(--ink);
}

.sf-payment-options label {
  display: block;
  padding: var(--space-1) 0;
  cursor: pointer;
}

/* ── Account sidebar ── */
.sf-account-layout {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 992px) {
  .sf-account-layout { grid-template-columns: 240px 1fr; }
}

.sf-account-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2);
}

.sf-account-nav button,
.sf-account-nav a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.sf-account-nav button:hover,
.sf-account-nav a:hover,
.sf-account-nav button.is-active {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.sf-account-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.sf-account-panel[hidden] { display: none !important; }

/* ── Auth ── */
.sf-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: var(--canvas);
}

.sf-auth-shell { width: min(100%, 960px); }

.sf-auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.sf-auth-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .sf-auth-grid { grid-template-columns: 1fr 1fr; }
}

.sf-field { margin-bottom: var(--space-2); }

.sf-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

.sf-field input,
.sf-field textarea,
.sf-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
}

.sf-field input:focus,
.sf-field textarea:focus {
  border-color: var(--brand-red);
  box-shadow: var(--focus-ring);
}

/* Remember-me: .sf-field input { width:100% } stretches the checkbox */
.sf-auth-card #remember {
  width: auto;
  padding: 0;
  flex: 0 0 auto;
}

.sf-auth-card label[for="remember"] {
  display: inline;
  margin-bottom: 0;
  width: auto;
}

/* ── Cart offcanvas ── */
.sf-cart-drawer.offcanvas { width: min(400px, 100vw); }

.sf-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
}

.sf-cart-drawer__list {
  list-style: none;
  margin: 0;
  padding: var(--space-2);
}

.sf-cart-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.sf-cart-drawer__item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.sf-cart-drawer__footer {
  padding: var(--space-3);
  border-top: 1px solid var(--border);
}

/* ── Chat widget ── */
#chatWindow {
  position: fixed;
  bottom: var(--space-2);
  right: var(--space-2);
  width: min(320px, calc(100vw - var(--space-3)));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 1050;
  display: none;
}

#chatHeader {
  background: var(--brand-red);
  color: #fff;
  padding: var(--space-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

#chatHeader button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

#chatBody {
  height: 280px;
  overflow-y: auto;
  padding: var(--space-2);
  font-size: 0.875rem;
}

#chatFooter {
  padding: var(--space-2);
  border-top: 1px solid var(--border);
}

#chatFooter input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  margin-bottom: var(--space-1);
}

#sendMessage {
  width: 100%;
  background: var(--brand-red);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

#sendMessage:hover { background: var(--brand-red-dark); }

/* ── Pagination ── */
.sf-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  list-style: none;
  padding: 0;
}

.sf-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.sf-pagination .page-item.active .page-link {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

/* ── Alerts ── */
.sf-alert {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  font-size: 0.9375rem;
}

.sf-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sf-alert--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ── Tables (account orders) ── */
.sf-table-wrap { overflow-x: auto; }

.sf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.sf-table th,
.sf-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.sf-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Utility */
.text-danger { color: var(--brand-red) !important; }
.text-muted { color: var(--muted) !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ══════════════════════════════════════════════════════════
   Unimart-style storefront theme (visual restyle)
   ══════════════════════════════════════════════════════════ */

:root {
  --brand-tint: rgba(238, 32, 58, 0.07);
  --brand-tint-strong: rgba(238, 32, 58, 0.12);
}

body.sf-body {
  font-size: 16px;
}

/* ── Promo bar ── */
.sf-promo-bar {
  background: var(--brand-red);
  color: #fff;
  font-size: 0.875rem;
}

.sf-promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  position: relative;
}

.sf-promo-bar__text {
  margin: 0;
  text-align: center;
  font-weight: 500;
}

.sf-promo-bar__link {
  margin-left: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sf-promo-bar__link:hover { color: #fff; opacity: 0.9; }

.sf-promo-bar__close {
  position: absolute;
  right: var(--gutter);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.85;
}

.sf-promo-bar__close:hover { opacity: 1; }

/* ── Header (Unimart) ── */
.sf-header--um .sf-header__bar {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 17, 20, 0.04);
}

.sf-header--um .sf-header__inner {
  width: 100%;
  max-width: none;
  padding-inline: clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
}

.sf-header--um .sf-header__nav-wrap {
  justify-self: center;
  display: block;
  min-width: 0;
  width: 100%;
}

.sf-header--um .sf-header__nav {
  display: flex;
  justify-content: center;
}

.sf-header--um .sf-header__actions--chips {
  justify-self: end;
}

.sf-header--um .sf-logo img { height: 44px; }

.sf-header--um .sf-nav > .sf-nav__item > a {
  font-size: 0.9375rem;
  padding: 6px 0;
}

.sf-header--um .sf-nav > .sf-nav__item > a.is-active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

.sf-header__actions--chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sf-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.sf-chip:hover {
  background: var(--brand-tint-strong);
  color: var(--brand-red);
}

.sf-chip__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--brand-red);
  border-radius: 999px;
  border: 2px solid var(--surface);
}

.sf-chip__badge--dot {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  top: 6px;
  right: 6px;
}

.sf-lang--chip {
  background: var(--canvas);
  border-radius: 999px;
  padding: 4px;
}

.sf-lang--chip a {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.sf-lang--chip a.is-active {
  background: var(--brand-red);
  color: #fff;
}

.sf-chip--menu { display: inline-flex; }

@media (min-width: 992px) {
  .sf-chip--menu { display: none; }
  .sf-header--um .sf-header__nav-wrap { display: block; }
}

@media (max-width: 991px) {
  .sf-header--um .sf-header__nav-wrap { display: none; }
  .sf-header__search { display: none; }
}

/* ── Unimart hero ── */
.sf-um-hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
  background: var(--surface);
}

@media (min-width: 992px) {
  .sf-um-hero {
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
  }
}

.sf-um-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  background: var(--brand-tint);
}

@media (min-width: 992px) {
  .sf-um-hero__copy {
    padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 72px);
  }
}

.sf-um-hero__eyebrow {
  margin: 0 0 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-red);
}

.sf-um-hero__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
}

.sf-um-hero__lead {
  margin: 0 0 32px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 44ch;
}

.sf-um-hero__media {
  min-height: 280px;
  overflow: hidden;
}

.sf-um-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 992px) {
  .sf-um-hero__media img { min-height: 520px; }
}

/* ── Unimart sections ── */
.sf-um-section {
  padding: clamp(48px, 6vw, 72px) 0;
}

.sf-um-categories {
  background: var(--canvas);
}

.sf-um-products {
  background: var(--surface);
}

.sf-um-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.sf-um-section__title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.sf-um-section__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-red);
}

.sf-um-section__link:hover { color: var(--brand-red-dark); }

/* ── Category tiles ── */
.sf-um-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 576px) {
  .sf-um-cat-grid { grid-template-columns: repeat(4, 1fr); }
}

.sf-um-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 3vw, 28px) 12px;
  background: var(--brand-tint);
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.sf-um-cat-tile:hover {
  background: var(--brand-tint-strong);
  transform: translateY(-2px);
  color: inherit;
}

.sf-um-cat-tile__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(15, 17, 20, 0.06);
}

.sf-um-cat-tile__badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-um-cat-tile__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--brand-red);
  background: var(--brand-tint);
}

.sf-um-cat-tile__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* ── Unimart product cards ── */
.sf-product-grid--um {
  gap: clamp(20px, 2.5vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (min-width: 576px) {
  .sf-product-grid--um { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

.sf-product-card--um {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sf-product-card--um:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.sf-product-card--um .sf-product-card__media-wrap {
  position: relative;
}

.sf-product-card--um .sf-product-card__media {
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  background: var(--canvas);
}

.sf-product-card--um .sf-product-card__media img {
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sf-product-card__badge--new {
  background: var(--brand-red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sf-product-card__badge--sale {
  background: #16a34a;
}

.sf-product-card__swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 4px 0;
}

.sf-product-card__swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.sf-product-card__swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-product-card__more {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.sf-product-card--um .sf-product-card__body {
  padding: 12px 4px 4px;
}

.sf-product-card--um .sf-product-card__title {
  font-weight: 500;
  font-size: 0.9375rem;
}

.sf-product-card--um .sf-product-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-red);
}

.sf-product-card--um .sf-product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sf-product-card--um .sf-btn--primary {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
}

/* ── Product sliders (homepage) ── */
.sf-product-slider-section {
  background: var(--surface);
}

.sf-product-slider-section:nth-of-type(even) {
  background: var(--canvas);
}

.sf-product-swiper {
  position: relative;
  padding: 4px 2px 36px;
  overflow: hidden;
}

.sf-product-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.sf-product-swiper .swiper-slide > .sf-product-card {
  width: 100%;
}

.sf-product-swiper__nav {
  color: var(--ink);
  width: 40px;
  height: 40px;
  margin-top: 0;
  top: calc(50% - 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 17, 20, 0.08);
}

.sf-product-swiper__nav::after {
  font-size: 14px;
  font-weight: 700;
}

.sf-product-swiper__nav.swiper-button-disabled {
  opacity: 0.35;
}

.sf-product-swiper__pagination {
  bottom: 0 !important;
}

.sf-product-swiper__pagination .swiper-pagination-bullet {
  background: var(--muted);
  opacity: 0.45;
}

.sf-product-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--brand-red);
  opacity: 1;
}

@media (max-width: 767px) {
  .sf-product-swiper__nav { display: none; }
}

/* ── Unimart footer ── */
.sf-footer--um {
  background: #1a1d24;
  color: rgba(255, 255, 255, 0.78);
  margin-top: clamp(48px, 6vw, 72px);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sf-footer--um .sf-footer__top {
  padding: clamp(36px, 5vw, 56px) 0 28px;
}

.sf-footer--um .sf-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-footer--um .sf-footer__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0;
}

.sf-footer--um .sf-footer__social {
  display: flex;
  gap: 8px;
}

.sf-footer--um .sf-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s;
}

.sf-footer--um .sf-footer__social a:hover {
  background: var(--brand-red);
  color: #fff;
}

.sf-footer--um .sf-footer__columns {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  margin-bottom: 0;
  align-items: start;
}

@media (min-width: 768px) {
  .sf-footer--um .sf-footer__columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .sf-footer--um .sf-footer__columns {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 40px;
  }
}

.sf-footer--um .sf-footer__heading {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  line-height: 1.3;
}

.sf-footer--um .sf-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  line-height: 1.35;
}

.sf-footer--um .sf-footer__links li {
  margin: 0;
}

.sf-footer--um .sf-footer__links a,
.sf-footer--um .sf-footer__contact-list a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  line-height: 1.35;
}

.sf-footer--um .sf-footer__links a:hover,
.sf-footer--um .sf-footer__contact-list a:hover {
  color: #fff;
}

.sf-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sf-footer__contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
  font-size: 0.875rem;
}

.sf-footer__contact-icon { font-size: 1rem; line-height: 1.4; }

.sf-footer__address {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.sf-footer__copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.2);
}

.sf-footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}
