/* Storefront — modern retail catalog */
:root {
  --sf-ink: #141c27;
  --sf-ink-soft: #3d4a5c;
  --sf-muted: #6b7785;
  --sf-line: #dde3ea;
  --sf-surface: #f3f5f8;
  --sf-paper: #ffffff;
  --sf-accent: #0e7c66;
  --sf-accent-deep: #0a5c4c;
  --sf-warm: #e8a54b;
  --sf-radius: 14px;
  --sf-radius-sm: 10px;
  --sf-max: 1180px;
  --sf-font: "Figtree", "Segoe UI", sans-serif;
  --sf-display: "Outfit", "Figtree", sans-serif;
  --sf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.sf-body {
  margin: 0;
  font-family: var(--sf-font);
  color: var(--sf-ink);
  background: var(--sf-surface);
  -webkit-font-smoothing: antialiased;
  /* overflow-x:hidden sticky navbar/sidebar-i bozýar — clip sticky-ni saklaýar */
  overflow-x: clip;
}

body.sf-body .page,
body.sf-body .page-wrapper,
body.sf-body .page-body {
  background: transparent !important;
}

.sf-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

.sf-main {
  flex: 1 1 auto;
}

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

/* ——— Top bar ——— */
.sf-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 28, 39, 0.06);
}

.sf-topbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding-block: 0.55rem;
}

.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--sf-ink);
  flex-shrink: 0;
  min-width: 0;
}

.sf-brand img,
.sf-brand__logo {
  width: auto;
  height: 40px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.sf-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #1aa892, #0e7c6b);
  color: #fff;
  font-family: var(--sf-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.sf-brand__name {
  font-family: var(--sf-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.sf-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 992px) {
  .sf-nav { display: flex; }
}

.sf-nav a {
  text-decoration: none;
  color: var(--sf-ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s var(--sf-ease), background 0.2s var(--sf-ease);
}

.sf-nav a:hover {
  color: var(--sf-ink);
  background: rgba(20, 28, 39, 0.04);
}

.sf-search {
  flex: 1 1 auto;
  max-width: 420px;
  margin-inline: auto;
  display: none;
}

@media (min-width: 768px) {
  .sf-search { display: block; }
}

.sf-search form {
  display: flex;
  align-items: stretch;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.2s var(--sf-ease), box-shadow 0.2s var(--sf-ease);
}

.sf-search form:focus-within {
  border-color: rgba(14, 124, 102, 0.45);
  box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.12);
  background: #fff;
}

.sf-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.6rem 1rem;
  font: inherit;
  color: var(--sf-ink);
  outline: none;
}

.sf-search button {
  border: 0;
  background: transparent;
  color: var(--sf-muted);
  padding: 0 0.95rem;
  cursor: pointer;
}

.sf-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.sf-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  color: var(--sf-ink-soft);
  text-decoration: none;
  transition: background 0.2s var(--sf-ease), color 0.2s var(--sf-ease);
}

.sf-icon-btn:hover {
  background: rgba(20, 28, 39, 0.05);
  color: var(--sf-ink);
}

.sf-icon-btn .sf-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--sf-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 0.65rem 1.15rem;
  transition: transform 0.2s var(--sf-ease), background 0.2s var(--sf-ease), color 0.2s var(--sf-ease);
}

.sf-btn:active { transform: translateY(1px); }

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

.sf-btn--primary:hover {
  background: var(--sf-accent-deep);
  color: #fff;
}

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

.sf-btn--ghost:hover {
  background: rgba(20, 28, 39, 0.05);
  color: var(--sf-ink);
}

.sf-btn--outline {
  background: transparent;
  color: var(--sf-ink);
  border: 1px solid var(--sf-line);
}

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

.sf-btn--lg {
  padding: 0.9rem 1.45rem;
  font-size: 1rem;
}

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

.sf-menu-toggle {
  display: inline-flex;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--sf-ink);
}

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

.sf-mobile-panel {
  display: none;
  border-top: 1px solid var(--sf-line);
  padding: 0.75rem 0 1rem;
}

.sf-mobile-panel.is-open { display: block; }

.sf-mobile-panel a {
  display: block;
  padding: 0.55rem 0;
  color: var(--sf-ink);
  text-decoration: none;
  font-weight: 600;
}

.sf-mcat-label {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-muted);
}

.sf-mcat {
  display: block;
  padding: 0.55rem 0;
  padding-left: calc(var(--sf-mcat-d, 0) * 0.9rem);
  color: var(--sf-ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(20, 28, 39, 0.06);
}

.sf-mcat--home {
  font-weight: 700;
}

.sf-mcat--nested {
  font-weight: 500;
  color: var(--sf-ink-soft, #3a4656);
  font-size: 0.95rem;
}

.sf-mobile-search {
  margin-top: 0.5rem;
}

.sf-mobile-search form {
  display: flex;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.sf-mobile-search input {
  flex: 1;
  border: 0;
  padding: 0.7rem 0.9rem;
  outline: none;
  font: inherit;
}

.sf-mobile-search button {
  border: 0;
  background: var(--sf-accent);
  color: #fff;
  padding: 0 1rem;
}

/* ——— Carousel ——— */
.sf-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0 0 1rem 1rem;
}

.sf-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #f3f0ea;
}

.sf-slider__track {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.sf-slider__slide {
  display: none;
  position: relative;
  width: 100%;
  max-width: 100%;
  animation: sf-slide-in 0.45s ease both;
}

.sf-slider__slide.is-active {
  display: block;
}

.sf-slider__slide.is-broken {
  display: none !important;
}

.sf-slider__slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(42vw, 480px);
  aspect-ratio: 21 / 8;
  object-fit: contain;
  object-position: center;
  display: block;
}

@keyframes sf-slide-in {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-slider__slide {
    animation: none;
  }
}

.sf-carousel__link {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}

.sf-carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 2.25rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 100%);
  color: #fff;
  pointer-events: none;
}

.sf-carousel__caption h2 {
  font-family: var(--sf-display);
  font-size: clamp(1.1rem, 2.6vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.sf-carousel__caption p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.sf-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  pointer-events: none;
}

.sf-slider__dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.25);
  opacity: 0.85;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.sf-slider__dot.is-active {
  background: #fff;
  opacity: 1;
  transform: scale(1.25);
}

.sf-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 28, 39, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.sf-slider__btn i {
  font-size: 1.35rem;
  line-height: 1;
}

.sf-slider__btn--prev { left: 0.75rem; }
.sf-slider__btn--next { right: 0.75rem; }

.sf-slider__btn:hover,
.sf-slider__btn:focus-visible {
  background: rgba(20, 28, 39, 0.7);
  opacity: 1;
  outline: none;
}

@media (max-width: 768px) {
  .sf-carousel {
    border-radius: 0;
  }

  .sf-slider__slide img {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .sf-slider__btn {
    display: none;
  }

  .sf-slider__dots {
    bottom: 0.5rem;
  }

  .sf-slider__dot {
    width: 7px;
    height: 7px;
  }

  .sf-carousel__caption {
    padding: 1rem 0.85rem 1.6rem;
  }

  .sf-carousel__caption h2 {
    font-size: 1rem;
  }

  .sf-carousel__caption p {
    font-size: 0.8rem;
  }
}

/* ——— Sections ——— */
.sf-section {
  padding: 3.25rem 0;
}

.sf-section--tight {
  padding-top: 2rem;
  padding-bottom: 1.25rem;
}

/* Category chips — horizontal browse strip (mobile + desktop) */
.sf-cat-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.65rem;
  margin-bottom: 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.sf-cat-strip::-webkit-scrollbar { height: 4px; }
.sf-cat-strip::-webkit-scrollbar-thumb { background: #c9d2dc; border-radius: 4px; }

.sf-cat-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sf-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: border-color 0.2s var(--sf-ease), background 0.2s var(--sf-ease), color 0.2s var(--sf-ease);
}

.sf-cat-chip:hover,
.sf-cat-chip:focus-visible {
  border-color: rgba(14, 124, 102, 0.45);
  background: rgba(14, 124, 102, 0.06);
  color: var(--sf-accent-deep, #0a5c4c);
  outline: none;
}

.sf-cat-chip.is-active {
  border-color: rgba(14, 124, 102, 0.55);
  background: rgba(14, 124, 102, 0.12);
  color: var(--sf-accent-deep, #0a5c4c);
}

/* Catalog: sidebar filters + product grid */
.sf-catalog {
  padding-bottom: 2.5rem;
}

.sf-page-head--compact {
  padding: 1.25rem 0 0.75rem;
}

.sf-page-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sf-page-head--compact .sf-page-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin: 0;
}

.sf-page-head--compact .sf-page-meta {
  margin: 0;
}

.sf-catalog__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.5rem;
}

.sf-catalog__layout--solo {
  grid-template-columns: 1fr;
}

.sf-sidebar {
  position: sticky;
  top: 5.25rem;
  align-self: start;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 0.85rem 0.75rem 1rem;
  max-height: calc(100vh - 5.25rem - 1.25rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}

.sf-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sf-sidebar__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0 0.35rem 0.65rem;
  border-bottom: 1px solid var(--sf-line);
}

.sf-sidebar__head strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.sf-sidebar__clear {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b42318;
  text-decoration: none;
}

.sf-sidebar__clear:hover { text-decoration: underline; }

.sf-sidebar__close {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--sf-ink);
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  cursor: pointer;
}

.sf-facet {
  border-bottom: 1px solid var(--sf-line);
  padding: 0.35rem 0;
}

.sf-facet:last-child { border-bottom: 0; }

.sf-facet > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sf-muted);
  padding: 0.55rem 0.35rem;
  user-select: none;
}

.sf-facet > summary::-webkit-details-marker { display: none; }

.sf-facet > summary::after {
  content: "";
  float: right;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.sf-facet[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.45rem;
}

.sf-facet__body {
  padding: 0 0.15rem 0.55rem;
}

.sf-facet__list {
  display: flex;
  flex-direction: column;
  max-height: none;
  overflow: visible;
  gap: 0.1rem;
}

.sf-facet__list--scroll {
  max-height: 240px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.sf-facet__search {
  display: block;
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: #f8fafb;
  font-size: 0.8rem;
  color: var(--sf-ink);
  outline: none;
}

.sf-facet__search:focus {
  border-color: rgba(14, 124, 102, 0.45);
  background: #fff;
}

.sf-facet__opt.is-hidden {
  display: none;
}

.sf-facet__empty {
  display: none;
  padding: 0.45rem 0.35rem;
  font-size: 0.78rem;
  color: var(--sf-muted);
}

.sf-facet__empty.is-visible {
  display: block;
}

.sf-facet__opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--sf-ink);
  font-size: 0.86rem;
  font-weight: 500;
}

.sf-facet__check {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid #c5ced8;
  border-radius: 4px;
  background: #fff;
  position: relative;
}

.sf-facet__opt.is-active .sf-facet__check {
  border-color: var(--sf-accent);
  background: var(--sf-accent);
}

.sf-facet__opt.is-active .sf-facet__check::after {
  content: "";
  position: absolute;
  left: 0.22rem;
  top: 0.05rem;
  width: 0.28rem;
  height: 0.5rem;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.sf-facet__text {
  flex: 1 1 auto;
  min-width: 0;
}

.sf-facet__opt em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--sf-muted);
  margin-left: auto;
}

.sf-facet__opt:hover {
  background: rgba(14, 124, 102, 0.06);
}

.sf-facet__opt.is-active {
  background: rgba(14, 124, 102, 0.1);
  color: var(--sf-accent-deep, #0a5c4c);
  font-weight: 700;
}

.sf-catalog__toolbar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sf-filter-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sf-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--sf-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.sf-catalog__clear-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #b42318;
  text-decoration: none;
}

.sf-grid--catalog {
  padding-bottom: 0.5rem;
}

@media (min-width: 1100px) {
  .sf-catalog__layout:not(.sf-catalog__layout--solo) .sf-grid--catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sf-sidebar-backdrop {
  display: none;
}

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

  .sf-catalog__toolbar {
    display: flex;
  }

  .sf-sidebar {
    position: fixed;
    z-index: 1200;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    max-height: none;
    overflow: auto;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--sf-line);
    transform: translateX(-105%);
    transition: transform 0.28s var(--sf-ease);
    box-shadow: 8px 0 28px rgba(20, 28, 39, 0.12);
  }

  .sf-sidebar.is-open {
    transform: translateX(0);
  }

  .sf-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sf-sidebar__clear {
    margin-left: 0;
    margin-right: auto;
  }

  .sf-sidebar-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(15, 23, 42, 0.35);
  }

  body.sf-filter-lock {
    overflow: hidden;
  }
}

.sf-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sf-section__title {
  font-family: var(--sf-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--sf-ink);
}

.sf-section__sub {
  margin: 0.35rem 0 0;
  color: var(--sf-muted);
  font-size: 0.95rem;
}

.sf-link {
  color: var(--sf-accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sf-link:hover { color: var(--sf-accent-deep); }

.sf-section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sf-accent, #e30a40);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.sf-section__link:hover {
  color: var(--sf-accent-deep, #b80833);
}

/* Brands strip */
.sf-brands {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.sf-brands::-webkit-scrollbar { height: 4px; }
.sf-brands::-webkit-scrollbar-thumb { background: #c9d2dc; border-radius: 4px; }

.sf-brand-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 104px;
  text-align: center;
  text-decoration: none;
  color: var(--sf-ink);
}

.sf-brand-chip__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--sf-line);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.25s var(--sf-ease), border-color 0.25s var(--sf-ease);
}

.sf-brand-chip:hover .sf-brand-chip__logo {
  transform: translateY(-3px);
  border-color: rgba(14, 124, 102, 0.45);
}

.sf-brand-chip__logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.sf-brand-chip__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sf-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product grid — interaction tiles, not heavy cards */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (min-width: 768px) {
  .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
}

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

.sf-product {
  display: flex;
  flex-direction: column;
  background: var(--sf-paper);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  overflow: hidden;
  transition: transform 0.25s var(--sf-ease), border-color 0.25s var(--sf-ease);
}

.sf-product:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 124, 102, 0.35);
}

.sf-product__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
}

.sf-product__media img:not(.sf-product__badge-img),
.sf-product__img {
  position: absolute;
  inset: 5%;
  box-sizing: border-box;
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  transition: transform 0.35s var(--sf-ease), opacity 0.35s var(--sf-ease);
}

.sf-product__img--alt {
  opacity: 0;
}

.sf-product.has-hover-img:hover .sf-product__img--main {
  opacity: 0;
}

.sf-product.has-hover-img:hover .sf-product__img--alt {
  opacity: 1;
}

.sf-product:hover .sf-product__media img:not(.sf-product__badge-img),
.sf-product:hover .sf-product__img {
  transform: scale(1.03);
}

.sf-product__badges {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  top: 0.35rem;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.2rem;
  pointer-events: none;
}

.sf-product__media .sf-product__badges {
  opacity: 0;
}

.sf-product__media.is-photo .sf-product__badges {
  opacity: 1;
}

.sf-product__img--alt:not([src]) {
  visibility: hidden;
}

.sf-product__media img.sf-product__badge-img,
.mp-product__gallery .sf-product__badge-img {
  position: static;
  inset: auto;
  display: block;
  flex: 0 0 calc((100% - 0.6rem) / 4);
  width: calc((100% - 0.6rem) / 4);
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.18));
}

.sf-product__brand {
  display: inline-block;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sf-muted);
  text-decoration: none;
}

a.sf-product__brand:hover {
  color: var(--sf-accent);
}

.sf-product__credit {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  line-height: 1.25;
}

.sf-product__credit--soft {
  font-weight: 600;
  color: var(--sf-muted);
}

.sf-product__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0.95rem 1rem;
  flex: 1;
}

.sf-product__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sf-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.sf-product__title:hover { color: var(--sf-accent-deep); }

.sf-product__meta {
  font-size: 0.75rem;
  color: var(--sf-muted);
}

.sf-product__price {
  margin-top: auto;
  padding-top: 0.45rem;
  font-family: var(--sf-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sf-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.sf-product__was {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sf-muted);
  text-decoration: line-through;
}

.sf-product__now {
  color: var(--sf-accent-deep, #b80833);
}

.sf-product__actions {
  margin-top: 0.55rem;
}

.sf-product .sf-btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

/* Category / detail page chrome */
.sf-page-head {
  padding: 2rem 0 1.25rem;
}

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

.sf-breadcrumb a {
  color: var(--sf-muted);
  text-decoration: none;
}

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

.sf-page-title {
  font-family: var(--sf-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.sf-page-meta {
  margin-top: 0.35rem;
  color: var(--sf-muted);
  font-size: 0.92rem;
}

/* Product detail */
.sf-detail {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 3rem;
}

@media (min-width: 900px) {
  .sf-detail {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.sf-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sf-detail__stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.sf-detail__stage img,
.sf-detail__gallery > img {
  position: absolute;
  inset: 1.25rem;
  width: calc(100% - 2.5rem);
  height: calc(100% - 2.5rem);
  object-fit: contain;
  object-position: center;
  padding: 0;
  margin: 0;
}

.sf-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sf-detail__thumb {
  width: 4.25rem;
  height: 4.25rem;
  padding: 0.35rem;
  border: 1px solid var(--sf-line);
  border-radius: 0.65rem;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  display: block;
}

.sf-detail__thumb:hover,
.sf-detail__thumb.is-active {
  border-color: var(--sf-accent);
  box-shadow: 0 0 0 2px rgba(14, 124, 102, 0.18);
}

.sf-detail__info h1 {
  font-family: var(--sf-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.sf-detail__ref {
  color: var(--sf-muted);
  margin-bottom: 1.15rem;
  font-size: 0.92rem;
}

.sf-detail__price {
  font-family: var(--sf-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.sf-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.sf-stock--ok {
  background: rgba(14, 124, 102, 0.1);
  color: var(--sf-accent-deep);
}

.sf-stock--out {
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
}

.sf-detail__desc {
  margin: 1.25rem 0 1.5rem;
  color: var(--sf-ink-soft);
  line-height: 1.65;
}

.sf-detail__desc h2 {
  font-family: var(--sf-display);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--sf-ink);
}

/* Empty */
.sf-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--sf-muted);
}

.sf-empty i {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.55;
}

/* Footer */
.sf-footer {
  margin-top: auto;
  border-top: 1px solid var(--sf-line);
  background: rgba(255, 255, 255, 0.72);
  padding: 2rem 0;
}

.sf-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--sf-muted);
  font-size: 0.9rem;
}

.sf-footer a {
  color: var(--sf-ink);
  font-weight: 700;
  text-decoration: none;
}

.sf-footer a:hover { color: var(--sf-accent); }

@keyframes sf-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.sf-body .dropdown-menu {
  border: 1px solid var(--sf-line) !important;
  border-radius: var(--sf-radius-sm) !important;
  box-shadow: 0 14px 36px rgba(20, 28, 39, 0.12) !important;
}
