/* Storefront icons (no Font Awesome) */
.sf-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.2em;
  flex-shrink: 0;
}
.sf-icon--heart { color: inherit; }
/* ============================================================
   Storefront /m — Fashion boutique customer catalog
   ============================================================ */

@font-face {
  font-family: 'AzarMehr-Regular';
  src: url('/static/fonts/AzarMehr-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AzarMehr-Bold';
  src: url('/static/fonts/AzarMehr-Bold.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sf-primary: #ff4f9a;
  --sf-primary-dark: #7a183f;
  --sf-ink: #1a0a12;
  --sf-muted: #6b5e64;
  --sf-bg: #faf7f8;
  --sf-surface: #ffffff;
  --sf-border: #eadfe4;
  --sf-radius: 18px;
  --sf-shadow: 0 12px 40px rgba(26, 10, 18, 0.08);
  --sf-shadow-hover: 0 20px 50px rgba(122, 24, 63, 0.14);
  --font: "AzarMehr-Regular", Tahoma, sans-serif;
  --font-bold: "AzarMehr-Bold", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html { height: 100%; }
body.sf-body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--sf-bg);
  color: var(--sf-ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.sf-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.sf-main {
  flex: 1 0 auto;
}
.sf-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.sf-body h1, .sf-body h2, .sf-body h3,
.sf-logo, .sf-btn, .sf-price, .sf-cat-section__title {
  font-family: var(--font-bold);
}

a { color: var(--sf-primary-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--sf-primary); }

/* ---- Topbar ---- */
.sf-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 223, 228, 0.8);
}
.sf-topbar__inner {
  width: 100%;
  padding: 0.85rem clamp(0.75rem, 3vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
}
.sf-logo {
  font-weight: 900; font-size: 1.2rem; color: var(--sf-ink);
  letter-spacing: -0.02em;
}
.sf-logo span { color: var(--sf-primary); }
.sf-topbar__nav a {
  font-family: var(--font-bold);
  font-size: 0.88rem;
  color: var(--sf-ink);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.sf-topbar__nav a:hover {
  background: #fff0f6;
  color: var(--sf-primary-dark);
}
/* brand + separator + maisons link (start side) */
.sf-topbar__start { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.sf-topbar__sep { color: var(--sf-border); font-size: 1.1rem; line-height: 1; user-select: none; }
.sf-topbar__maisons {
  font-family: var(--font-bold);
  font-size: 0.88rem;
  color: var(--sf-ink);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.sf-topbar__maisons:hover { background: #fff0f6; color: var(--sf-primary-dark); }
/* account link: profile icon only, inside a circle */
.sf-topbar__nav a.sf-topbar__account {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; padding: 0;
  border: 1.5px solid var(--sf-primary); border-radius: 50%;
  color: var(--sf-primary-dark);
}
.sf-topbar__nav a.sf-topbar__account[hidden] { display: none; }
.sf-topbar__account .sf-icon { width: 1.3rem; height: 1.3rem; vertical-align: 0; }

/* ---- Notifications (bell next to the account icon) ---- */
.sf-topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.sf-notifications { position: relative; }
.sf-notifications[hidden] { display: none; }
.sf-notifications__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--sf-ink);
  cursor: pointer;
}
.sf-notifications__trigger:hover,
.sf-notifications__trigger[aria-expanded="true"] {
  background: #fff0f6;
  color: var(--sf-primary-dark);
}
.sf-notifications__trigger .sf-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sf-primary);
}
.sf-notifications__badge {
  position: absolute;
  top: -0.12rem;
  inset-inline-end: -0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--sf-primary);
  color: #fff;
  font-family: var(--font-bold);
  font-size: 0.62rem;
  line-height: 0.85rem;
}
.sf-notifications__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  inset-inline-end: 0;
  z-index: 60;
  width: min(23rem, calc(100vw - 1.5rem));
  overflow: hidden;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(26, 10, 18, 0.16);
}
.sf-notifications__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--sf-border);
}
.sf-notifications__head strong {
  font-family: var(--font-bold);
  font-size: 0.92rem;
}
.sf-notifications__read-all {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--sf-primary-dark);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.sf-notifications__hint {
  margin: 0;
  padding: 0.55rem 1rem 0;
  color: var(--sf-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}
.sf-notifications__hint:empty { display: none; }
.sf-notifications__list { max-height: 22rem; overflow-y: auto; }
.sf-notification {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--sf-border);
  background: #fff;
  color: var(--sf-ink);
  text-align: right;
  cursor: pointer;
}
.sf-notification:hover { background: #fff7fa; }
.sf-notification--unread { background: #fff3f8; }
.sf-notification__title,
.sf-notification__body,
.sf-notification__time { display: block; }
.sf-notification__title {
  margin-bottom: 0.18rem;
  font-family: var(--font-bold);
  font-size: 0.86rem;
}
.sf-notification__body {
  color: var(--sf-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}
.sf-notification__time {
  margin-top: 0.3rem;
  color: var(--sf-muted);
  font-size: 0.7rem;
}
.sf-notifications__empty {
  margin: 0;
  padding: 2rem 1rem;
  color: var(--sf-muted);
  text-align: center;
  font-size: 0.84rem;
}

.sf-main {
  width: 100%;
  margin: 0;
  padding: 1.5rem clamp(0.75rem, 3vw, 2.5rem) 4rem;
  flex: 1 0 auto;
}

.sf-footer {
  border-top: 1px solid var(--sf-border);
  background: var(--sf-surface);
  padding: 1.35rem 0;
}
.sf-footer__inner {
  width: 100%;
  padding: 0 clamp(0.75rem, 3vw, 2.5rem);
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: space-between;
  color: var(--sf-muted); font-size: 0.85rem;
}

/* ---- Hero / list ---- */
.sf-hero { text-align: center; margin: 1.5rem 0 2.25rem; }
.sf-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.sf-hero p { margin: 0; color: var(--sf-muted); font-size: 0.95rem; }

.sf-maison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.35rem;
}
.sf-maison-card {
  background: var(--sf-surface);
  border: 1px solid transparent;
  border-radius: var(--sf-radius);
  overflow: hidden;
  box-shadow: var(--sf-shadow);
  color: inherit;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.sf-maison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sf-shadow-hover);
  color: inherit;
}
.sf-maison-card__media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #fce7f3, #fff5f9);
  overflow: hidden;
  max-width: 160px;
  margin: 1.25rem auto 0;
  border-radius: 20px;
}
.sf-maison-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.sf-maison-card__placeholder,
.sf-product-card__placeholder {
  width: 100%; height: 100%; min-height: 140px;
  display: flex; align-items: center; justify-content: center;
  color: #be185d;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(145deg, #fce7f3 0%, #fdf2f8 50%, #fff5f9 100%);
  letter-spacing: -0.02em;
}
.sf-maison-card__initial {
  font-family: var(--font-bold, inherit);
  font-size: 1.75em;
  line-height: 1;
  color: #be185d;
  user-select: none;
}
.sf-product-card__placeholder--lg { min-height: 280px; font-size: 3rem; }
.sf-maison-card__body { padding: 1rem 1.1rem 1.35rem; }
.sf-maison-card__body h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.sf-maison-card__body p { margin: 0; font-size: 0.82rem; color: var(--sf-muted); }
.sf-maison-card__arrow {
  display: none; /* only on mobile */
}

/* ---- Banner 16:6 ---- */
.sf-banner {
  position: relative;
  border-radius: calc(var(--sf-radius) + 4px);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #1a0a12;
  aspect-ratio: 16 / 6;
  width: 100%;
  box-shadow: var(--sf-shadow);
}
.sf-banner__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sf-banner__fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a0a12 0%, #3d1428 45%, #6b2042 100%);
}
.sf-banner__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.sf-banner__logo {
  width: 64px; height: 64px; border-radius: 16px; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.9);
  margin-bottom: 0.65rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.sf-banner__overlay h1 {
  margin: 0; font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}
.sf-banner__overlay p {
  margin: 0.4rem 0 0; font-size: 0.9rem;
  opacity: 0.92; max-width: 36rem;
}

.sf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--sf-muted);
  line-height: 1.4;
  margin: 0 0 0.85rem;
  padding: 0.15rem 0;
}
.sf-breadcrumb a { color: var(--sf-primary-dark); text-decoration: none; }
.sf-breadcrumb a:hover { text-decoration: underline; }
.sf-breadcrumb__sep { color: var(--sf-muted); opacity: 0.7; user-select: none; }
.sf-breadcrumb__current { color: var(--sf-text, #222); font-weight: 500; }

/* ---- Branch section ---- */
.sf-branch {
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--sf-shadow);
}
.sf-branch__head {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 0.85rem;
}
.sf-branch__head h2 { margin: 0; font-size: 1.2rem; letter-spacing: -0.02em; }
.sf-branch__meta { display: grid; gap: 0.4rem; margin-bottom: 0.85rem; }
.sf-meta-row { font-size: 0.9rem; }
.sf-meta-row i { color: var(--sf-primary); width: 1.2rem; margin-left: 0.35rem; }

.sf-hours h3, .sf-cats h3 {
  margin: 0.85rem 0 0.55rem; font-size: 0.92rem;
  letter-spacing: 0.02em; text-transform: none;
}
.sf-hours ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.sf-hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem; padding: 0.3rem 0;
  border-bottom: 1px dashed var(--sf-border);
}
.sf-hours .is-closed { color: #b42318; font-weight: 700; }

.sf-social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.sf-social a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: #fff0f6; border: 1px solid var(--sf-border);
  font-size: 0.82rem; color: var(--sf-primary-dark);
}
.sf-social a:hover { background: #ffe4f0; }

.sf-cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.9rem;
}
.sf-cat-card {
  display: block; text-align: center; color: inherit;
  border-radius: 16px; overflow: hidden;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sf-cat-card:hover {
  color: inherit; border-color: #f9a8d4;
  transform: translateY(-3px);
  box-shadow: var(--sf-shadow);
}
.sf-cat-card__media {
  aspect-ratio: 1 / 1;
  background: #fce7f3;
  overflow: hidden;
}
.sf-cat-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sf-cat-card__placeholder {
  width: 100%; height: 100%; min-height: 110px;
  display: flex; align-items: center; justify-content: center;
  color: #db2777; font-size: 1.5rem; background: #fce7f3;
}
.sf-cat-card__title {
  padding: 0.5rem 0.4rem 0.65rem;
  font-size: 0.8rem; font-family: var(--font-bold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- Buttons ---- */
.sf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.35rem; border-radius: 999px;
  font-weight: 900; font-size: 0.88rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.sf-btn--primary {
  background: linear-gradient(135deg, #ff4f9a 0%, #e83a84 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 79, 154, 0.28);
}
.sf-btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 79, 154, 0.36);
}
.sf-btn--outline {
  background: transparent;
  color: var(--sf-primary, #ff4f9a);
  border: 1.5px solid var(--sf-primary, #ff4f9a);
  box-shadow: none;
}
.sf-btn--outline:hover {
  background: rgba(255, 79, 154, 0.08);
  color: var(--sf-primary-dark, #e0367e);
  border-color: var(--sf-primary-dark, #e0367e);
}
.sf-btn--ghost {
  background: transparent; border-color: var(--sf-border); color: var(--sf-ink);
}
.sf-btn--ghost:hover { border-color: var(--sf-primary); color: var(--sf-primary-dark); }
.sf-btn--block { width: 100%; }
.sf-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.sf-badge {
  font-size: 0.78rem; font-weight: 700; color: var(--sf-muted);
  background: #f3f0f1; padding: 0.3rem 0.7rem; border-radius: 999px;
}

.sf-page-head { margin-bottom: 1.5rem; }
.sf-page-head h1 {
  margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  letter-spacing: -0.02em;
}
.sf-muted { color: var(--sf-muted); font-size: 0.9rem; }

/* ---- Category sections on branch page ---- */
.sf-cat-section { margin-bottom: 2.25rem; }
.sf-cat-section__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.9rem;
}
.sf-cat-section__head h2 { margin: 0; font-size: 1.15rem; }
.sf-cat-section__title {
  color: var(--sf-ink);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.sf-cat-section__title:hover {
  color: var(--sf-primary-dark);
  border-bottom-color: var(--sf-primary);
}
.sf-link {
  font-size: 0.85rem; font-family: var(--font-bold);
  white-space: nowrap;
}

.sf-swiper { padding: 0.25rem 2.25rem 1rem; position: relative; overflow: hidden; }
/* عرض اسلاید را Swiper با slidesPerView عددی ست می‌کند؛ width ثابت باعث بهم‌ریختگی عکس می‌شد */
.sf-swiper .swiper-slide {
  width: auto;
  height: auto;
  box-sizing: border-box;
}
.sf-swiper .swiper-button-prev,
.sf-swiper .swiper-button-next {
  color: var(--sf-primary-dark);
  --swiper-navigation-size: 18px;
}

/* Product card — 4:5 */
.sf-product-card {
  display: block; background: var(--sf-surface);
  border: 1px solid transparent; border-radius: 16px;
  overflow: hidden; color: inherit; height: 100%;
  box-shadow: 0 4px 16px rgba(26, 10, 18, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.sf-product-card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--sf-shadow-hover);
}
.sf-product-card__media {
  aspect-ratio: 4 / 5;
  background: #f8f0f3;
  overflow: hidden;
}
.sf-product-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.sf-product-card:hover .sf-product-card__media img {
  transform: scale(1.04);
}
.sf-product-card__body {
  padding: 0.7rem 0.8rem 0.9rem;
  text-align: center;
}
.sf-product-card__body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.sf-product-card__size {
  display: block;
  font-size: 0.72rem;
  color: var(--sf-muted);
  margin: 0 0 0.35rem;
  text-align: center;
  line-height: 1.3;
}
.sf-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--sf-muted);
  margin-bottom: 0.25rem;
  justify-content: center;
}
.sf-product-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.15rem;
}
.sf-product-card__prices--both {
  justify-content: space-between;
}
.sf-product-card__prices .sf-price {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.25;
}
.sf-product-card__prices .sf-price small {
  font-size: 0.68rem;
}
.sf-price { font-weight: 900; color: var(--sf-primary-dark); font-size: 0.92rem; }
.sf-price small { font-weight: 600; font-size: 0.72rem; }
.sf-price--lg { font-size: 1.3rem; margin: 0.85rem 0; }

/* Category grid: 2 / 4 / 6 / 8 */
.sf-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (min-width: 576px) {
  .sf-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .sf-product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .sf-product-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.sf-pagination {
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center;
  margin-top: 1.75rem;
}
.sf-pagination a, .sf-pagination span {
  min-width: 2.15rem; height: 2.15rem; display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--sf-border);
  font-size: 0.85rem; background: #fff;
}
.sf-pagination .is-active {
  background: var(--sf-primary); color: #fff; border-color: var(--sf-primary);
}

/* ---- Product detail ---- */
.sf-product-detail {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  background: var(--sf-surface);
  border-radius: var(--sf-radius);
  padding: 1.15rem;
  box-shadow: var(--sf-shadow);
}
@media (min-width: 900px) {
  .sf-product-detail {
    grid-template-columns: minmax(280px, 440px) 1fr;
    align-items: start;
    padding: 1.5rem;
  }
}
.sf-product-detail__media {
  aspect-ratio: 4 / 5;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #f8f0f3;
}
@media (min-width: 900px) {
  .sf-product-detail__media { margin: 0; max-width: none; }
}
.sf-product-detail__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sf-zoom-trigger {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}
.sf-zoom-trigger__hint {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(26, 10, 18, 0.55);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; pointer-events: none;
  opacity: 0.85; transition: opacity 0.2s ease;
}
.sf-zoom-trigger:hover .sf-zoom-trigger__hint { opacity: 1; }

.sf-product-detail__info h1 {
  margin: 0 0 0.35rem; font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  letter-spacing: -0.02em;
}
.sf-specs { list-style: none; margin: 0.85rem 0; padding: 0; }
.sf-specs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0; border-bottom: 1px solid var(--sf-border); font-size: 0.92rem;
}
.sf-desc { margin: 0.85rem 0; font-size: 0.92rem; }
.sf-product-actions {
  display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.35rem;
}

.sf-similar {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sf-border);
}
.sf-similar__title {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.sf-empty {
  text-align: center; padding: 2.25rem 1rem; color: var(--sf-muted);
  background: var(--sf-surface); border: 1px dashed var(--sf-border);
  border-radius: var(--sf-radius);
}
.sf-empty[hidden] { display: none !important; }
.sf-empty--sm { padding: 1rem; font-size: 0.88rem; }

/* علاقه‌مندی‌ها: دکمه حذف داخل کارت */
.sf-fav-remove {
  display: flex;
  width: calc(100% - 1.6rem);
  margin: 0 0.8rem 0.9rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.76rem;
}
.sf-empty--page { padding: 3.5rem 1rem; }
.sf-empty--page h1 { margin: 0 0 0.5rem; color: var(--sf-primary-dark); }

/* ---- Lightbox + zoom (pinch / wheel / double-tap) ---- */
.sf-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.sf-lightbox[hidden] { display: none !important; }
.sf-lightbox:not([hidden]) { animation: sfLbFade 0.22s ease-out; }
@keyframes sfLbFade { from { opacity: 0; } to { opacity: 1; } }
.sf-lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 4, 8, 0.92);
}
/* لودینگ تا آماده شدن عکس */
.sf-lightbox.is-loading .sf-lightbox__stage::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sfLbSpin 0.8s linear infinite;
}
@keyframes sfLbSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sf-lightbox:not([hidden]),
  .sf-lightbox.is-loading .sf-lightbox__stage::after { animation: none; }
}
.sf-lightbox__close {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.12); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.sf-lightbox__close:hover { background: rgba(255,255,255,0.22); }
.sf-lightbox__stage {
  position: relative; z-index: 1;
  width: min(96vw, 900px);
  height: min(82vh, 1100px);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.sf-lightbox__stage.is-dragging { cursor: grabbing; }
.sf-lightbox__img {
  position: absolute;
  left: 50%; top: 50%;
  max-width: none;
  max-height: none;
  width: auto; height: auto;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease; /* فقط fade؛ روی transform نه، تا pan/zoom روان بماند */
}
.sf-lightbox__img.is-ready { opacity: 1; }
.sf-lightbox__tip {
  position: relative; z-index: 1;
  margin: 0.85rem 1rem 0;
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  text-align: center;
}
body.sf-lightbox-open { overflow: hidden; }

.sf-footer__muted a { color: var(--sf-primary-dark); text-decoration: none; }
.sf-footer__muted a:hover { text-decoration: underline; }

/* Terms / legal page */
.sf-legal {
  max-width: 820px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  line-height: 1.95;
  color: var(--sf-ink);
}
.sf-legal h2 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.05rem;
}
.sf-legal p { margin: 0 0 0.6rem; }
.sf-legal ul { margin: 0 0 0.6rem; padding-inline-start: 1.25rem; }
.sf-legal li { margin-bottom: 0.3rem; }
.sf-legal__actions { margin-top: 2rem; text-align: center; }
@media (max-width: 576px) {
  .sf-legal { padding: 1.1rem 1rem 1.3rem; border-radius: 12px; }
}

.sf-footer__brand { font-family: var(--font-bold); color: var(--sf-ink); }
.sf-footer__brand span { color: var(--sf-primary); }
.sf-topbar__login {
  background: #fff0f6 !important;
  color: var(--sf-primary-dark) !important;
}

/* ========== Maison hero (full-bleed fashion) ========== */
.sf-hero-maison {
  position: relative;
  margin: -1.5rem calc(-1 * clamp(0.75rem, 3vw, 2.5rem)) 1.5rem;
  overflow: hidden;
  background: #1a0a12;
  /* ارتفاع از خود بنر می‌آید — بدون برش */
}
.sf-hero-maison__media {
  position: relative;
  width: 100%;
  line-height: 0;
}
.sf-hero-maison__media img {
  width: 100%;
  height: auto;
  display: block;
  /* همان نسبت آپلود پنل (۱۶:۶) بدون object-fit: cover */
}
.sf-hero-maison__fallback {
  width: 100%;
  aspect-ratio: 3 / 1;
  background: linear-gradient(135deg, #1a0a12 0%, #3d1428 40%, #6b2042 100%);
}
.sf-hero-maison__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,4,8,0.88) 0%, rgba(10,4,8,0.35) 45%, rgba(10,4,8,0.15) 100%);
  pointer-events: none;
}
.sf-hero-maison__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  padding: clamp(1.25rem, 3.5vw, 2.5rem) clamp(0.75rem, 3vw, 2.5rem);
  color: #fff;
  box-sizing: border-box;
}
.sf-hero-maison__logo {
  width: 72px; height: 72px; border-radius: 18px;
  object-fit: cover; border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  margin-bottom: 0.85rem;
}
.sf-hero-maison__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
}
.sf-hero-maison__kicker {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--sf-primary, #ff4f9a);
  font-family: var(--font-bold);
  opacity: 1;
}
.sf-hero-maison h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  display: inline;
}
.sf-hero-maison__desc {
  margin: 0.45rem 0 0;
  max-width: 28rem;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-hero-maison__logo {
  display: none; /* لوگو فقط برای فاکتور — روی بنر نشان داده نمی‌شود */
}
.sf-hero-maison__pills { display: none; }
.sf-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff !important;
  font-size: 0.8rem;
  font-family: var(--font-bold);
  backdrop-filter: blur(8px);
}
.sf-pill:hover {
  background: rgba(255,255,255,0.22);
  color: #fff !important;
}
.sf-breadcrumb--tight { margin-top: 0; margin-bottom: 0.75rem; }

/* Location card (maison branches) — single source of truth */
.sf-branch-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sf-loc {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(26, 10, 18, 0.07);
  box-shadow: 0 8px 28px rgba(26, 10, 18, 0.05);
  padding: 1.35rem 1.4rem;
  overflow: hidden;
}
.sf-loc__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
  gap: 1.25rem 0;
  align-items: stretch;
}
.sf-loc__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-inline-end: 1.25rem;
}
.sf-loc__head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.sf-loc__head-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
}
.sf-loc__tag {
  font-size: 0.75rem;
  color: var(--sf-primary);
  font-family: var(--font-bold);
  letter-spacing: 0.04em;
}
.sf-loc__name {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-family: var(--font-bold);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1a0a12;
}
.sf-loc__head-cta.sf-btn--outline {
  padding: 0.4rem 1.05rem;
  font-size: 0.84rem;
  border-radius: 999px;
  flex-shrink: 0;
}

/* دسته‌ها — هر ردیف حداکثر ۴؛ ردیف ناقص وسط‌چین (flex) */
.sf-loc__looks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 0.9rem;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  flex: 0 1 680px;
}
.sf-loc__looks .sf-look {
  flex: 0 0 calc((100% - 2.7rem) / 4);
  max-width: calc((100% - 2.7rem) / 4);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.sf-loc__looks .sf-look {
  transition: transform 0.18s ease;
}
.sf-loc__looks .sf-look:hover {
  transform: translateY(-2px);
  color: inherit;
}
.sf-loc__looks .sf-look__img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f3eef0;
}
.sf-loc__looks .sf-look__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-loc__looks .sf-look__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b4bc;
}
.sf-loc__looks .sf-look__name {
  display: block;
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.78rem;
  font-family: var(--font-bold);
  color: #2a1a22;
}

/* ستون کناری: آدرس، تلفن، ساعات، سوشال — خط عمودی جداکننده از محصولات */
.sf-loc__side {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 0.15rem 0;
  padding-inline-start: 1.25rem;
  border-inline-start: 1px solid rgba(26, 10, 18, 0.08);
  align-self: stretch;
}
.sf-loc__side-top {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(26, 10, 18, 0.08);
}
.sf-loc__addr {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #4a3a42;
}
.sf-loc__addr .sf-icon {
  color: var(--sf-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.sf-loc__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-family: var(--font-bold);
  color: var(--sf-primary-dark);
  text-decoration: none;
  align-self: flex-start;
}
.sf-loc__map-link .sf-icon { color: var(--sf-primary); }
.sf-loc__map-link:hover { text-decoration: underline; }
.sf-loc__phones {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  margin-top: 0.15rem;
}
.sf-loc__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: #2a1a22;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}
.sf-loc__tel .sf-icon { color: var(--sf-primary); }
.sf-loc__tel:hover { color: var(--sf-primary-dark); }

.sf-loc__hours {
  padding-bottom: 0.55rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid rgba(26, 10, 18, 0.08);
}
.sf-loc__hours-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-family: var(--font-bold);
  color: #9a8a92;
  text-align: center;
}
.sf-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.sf-hours-table thead th {
  font-size: 0.68rem;
  color: #9a8a92;
  font-family: var(--font-bold);
  font-weight: normal;
  text-align: center;
  padding: 0 0.25rem 0.4rem;
  border-bottom: 1px solid rgba(26, 10, 18, 0.06);
}
.sf-hours-table thead th:first-child {
  text-align: right;
  width: 3.5rem;
}
.sf-hours-table tbody th {
  text-align: right;
  font-weight: normal;
  padding: 0.3rem 0.25rem;
  color: #3a2a32;
  white-space: nowrap;
}
.sf-hours-table td {
  text-align: center;
  padding: 0.3rem 0.2rem;
  color: #4a3a42;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 0.76rem;
}
.sf-hours-table td.is-closed,
.sf-hours-table .is-closed {
  color: #c45c5c;
  font-family: var(--font-bold);
  direction: rtl;
}
.sf-hours-table tr.is-today th,
.sf-hours-table tr.is-today td {
  background: #faf5f7;
}
.sf-hours-table tr.is-today th {
  font-family: var(--font-bold);
}

.sf-loc__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding-top: 0.45rem;
  margin-top: 0;
}
.sf-loc__social a {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #faf5f7;
  color: #8a6b78;
  border: 1px solid rgba(26, 10, 18, 0.05);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.sf-loc__social a:hover {
  transform: translateY(-1px);
}
/* رنگ برند */
.sf-loc__social a.sf-social--instagram { color: #E1306C; background: rgba(225, 48, 108, 0.1); border-color: rgba(225, 48, 108, 0.15); }
.sf-loc__social a.sf-social--telegram { color: #2AABEE; background: rgba(42, 171, 238, 0.12); border-color: rgba(42, 171, 238, 0.18); }
.sf-loc__social a.sf-social--whatsapp { color: #25D366; background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.18); }
.sf-loc__social a.sf-social--bale {
  color: #00C9A7;
  background: rgba(0, 201, 167, 0.1);
  border-color: rgba(0, 201, 167, 0.16);
}
/* روبیکا: فقط خود آیکون رنگی — بدون بک‌گراند آبی/نارنجی قوی */
.sf-loc__social a.sf-social--rubika {
  color: inherit;
  background: #f4f5f7;
  border-color: rgba(26, 10, 18, 0.06);
}
.sf-loc__social a.sf-social--youtube { color: #FF0000; background: rgba(255, 0, 0, 0.1); border-color: rgba(255, 0, 0, 0.15); }
.sf-loc__social a.sf-social--twitter { color: #1D9BF0; background: rgba(29, 155, 240, 0.12); border-color: rgba(29, 155, 240, 0.18); }
.sf-loc__social a.sf-social--facebook { color: #1877F2; background: rgba(24, 119, 242, 0.12); border-color: rgba(24, 119, 242, 0.18); }

@media (max-width: 900px) {
  .sf-loc__body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .sf-loc__main {
    padding-inline-end: 0;
  }
  .sf-loc__side {
    border-inline-start: none;
    padding-inline-start: 0;
    border-top: 1px solid rgba(26, 10, 18, 0.08);
    padding-top: 1rem;
  }
  /* دو شماره: یکی چسبیده به راست، دیگری به چپ */
  .sf-loc__phones {
    width: 100%;
    justify-content: space-between;
  }
  .sf-loc__mid {
    flex-wrap: wrap;
  }
  .sf-loc__looks {
    max-width: none;
    margin-inline: 0;
  }
  .sf-loc__looks .sf-look {
    flex: 0 0 calc((100% - 0.9rem) / 2);
    max-width: calc((100% - 0.9rem) / 2);
  }
  .sf-loc__head-cta.sf-btn--outline {
    width: auto;
  }
}



/* ========== Auth / login ========== */
.sf-auth {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0 2rem;
  min-height: min(70vh, 560px);
}
.sf-auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--sf-surface);
  border-radius: 24px;
  padding: 1.75rem 1.5rem 1.85rem;
  box-shadow: 0 16px 48px rgba(26, 10, 18, 0.1);
  border: 1px solid var(--sf-border);
}
.sf-auth__brand {
  font-family: var(--font-bold);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.sf-auth__brand span { color: var(--sf-primary); }
.sf-auth__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.sf-auth__sub {
  margin: 0 0 1.35rem;
  color: var(--sf-muted);
  font-size: 0.9rem;
}
.sf-auth__form { display: flex; flex-direction: column; gap: 0.85rem; }
.sf-field { display: flex; flex-direction: column; gap: 0.35rem; }
.sf-field span {
  font-size: 0.82rem;
  font-family: var(--font-bold);
  color: var(--sf-muted);
}
.sf-field input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--sf-border);
  padding: 0 0.95rem;
  font-family: var(--font);
  font-size: 1rem;
  background: #fff;
  color: var(--sf-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sf-field input:focus {
  outline: none;
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.15);
}
.sf-auth__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sf-muted);
}
.sf-auth__back {
  border: 0; background: none; cursor: pointer;
  color: var(--sf-muted); font-size: 0.85rem;
  font-family: var(--font);
  margin-top: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sf-auth__alert {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  background: #fff5f5;
  color: #b42318;
  border: 1px solid #f5c2c7;
}
.sf-auth__alert.is-ok {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

/* ========== Large button ========== */
.sf-btn--lg {
  height: 52px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* ========== Login (split professional) ========== */
.sf-login {
  display: grid;
  grid-template-columns: 1fr;
  margin: -1.5rem calc(-1 * clamp(0.75rem, 3vw, 2.5rem)) -4rem;
  min-height: calc(100dvh - 3.5rem);
  background: #fff;
}
@media (min-width: 900px) {
  .sf-login {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.sf-login__visual {
  display: none;
  position: relative;
  overflow: hidden;
  color: #fff;
}
@media (min-width: 900px) {
  .sf-login__visual { display: flex; align-items: flex-end; }
}
.sf-login__visual-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(26,10,18,0.25) 0%, rgba(26,10,18,0.75) 100%),
    linear-gradient(135deg, #1a0a12 0%, #5c1a38 45%, #ff4f9a 140%);
}
.sf-login__visual-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,79,154,0.35) 0%, transparent 45%);
}
.sf-login__visual-content {
  position: relative; z-index: 1;
  padding: 3rem 2.75rem 3.25rem;
  max-width: 28rem;
}
.sf-login__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  font-family: var(--font-bold);
}
.sf-login__headline {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.sf-login__lead {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.7;
}
.sf-login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 2.5rem;
  background: #fff;
}
.sf-login__panel-inner {
  width: 100%;
  max-width: 380px;
}
.sf-login__logo {
  display: inline-block;
  font-family: var(--font-bold);
  font-size: 1.15rem;
  color: var(--sf-ink);
  margin-bottom: 2rem;
}
.sf-login__logo span { color: var(--sf-primary); }
.sf-login__steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.sf-login__step {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-bold);
  background: #f3eef0;
  color: var(--sf-muted);
}
.sf-login__step.is-active {
  background: var(--sf-primary);
  color: #fff;
}
.sf-login__step-line {
  flex: 0 0 2rem;
  height: 2px;
  background: #eadfe4;
  border-radius: 2px;
}
.sf-login__title {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}
.sf-login__sub {
  margin: 0 0 1.5rem;
  color: var(--sf-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.sf-login__form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.sf-login-field { display: flex; flex-direction: column; gap: 0.4rem; }
.sf-login-field__label {
  font-size: 0.8rem;
  font-family: var(--font-bold);
  color: var(--sf-muted);
}
.sf-login-field__control {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  overflow: hidden;
  background: #faf7f8;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sf-login-field__control:focus-within {
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.14);
  background: #fff;
}
.sf-login-field__prefix {
  display: flex; align-items: center;
  padding: 0 0.75rem;
  font-size: 0.88rem;
  color: var(--sf-muted);
  background: #f3eef0;
  border-left: 1px solid var(--sf-border);
  font-family: var(--font-bold);
}
.sf-login-field__control input {
  flex: 1;
  border: 0;
  background: transparent;
  height: 50px;
  padding: 0 0.9rem;
  font-size: 1.05rem;
  font-family: var(--font);
  color: var(--sf-ink);
  direction: ltr;
  text-align: left;
}
.sf-login-field__control input:focus { outline: none; }
.sf-login-field__otp {
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--sf-border);
  background: #faf7f8;
  font-size: 1.45rem;
  letter-spacing: 0.45em;
  text-align: center;
  font-family: var(--font-bold);
  direction: ltr;
  padding: 0 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sf-login-field__otp:focus {
  outline: none;
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.14);
  background: #fff;
}
.sf-login__sent {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sf-muted);
  line-height: 1.6;
}
.sf-login__link {
  border: 0; background: none; padding: 0;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sf-login__alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.86rem;
  background: #fff5f5;
  color: #b42318;
  border: 1px solid #f5c2c7;
}
.sf-login__alert.is-ok {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}
.sf-login__legal {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  color: var(--sf-muted);
  text-align: center;
  line-height: 1.5;
}

/* ========== PDP — سه ستونه (RTL): گالری | مشخصات | خرید/فروشنده ========== */
.sf-pdp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: -0.25rem 0 0;
  background: #fff;
  min-height: 0;
}
/* تبلت: دو ستون (گالری + مشخصات)، buybox تمام‌عرض زیر */
@media (min-width: 900px) and (max-width: 1099px) {
  .sf-pdp {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 0 1rem;
  }
  .sf-pdp__buybox {
    grid-column: 1 / -1;
  }
}
/* دسکتاپ عریض: سه ستون — DOM: گالری(راست) → مشخصات(وسط) → buybox(چپ) در RTL */
@media (min-width: 1100px) {
  .sf-pdp {
    /* RTL: ستون۱ راست=گالری | ستون۲ وسط=مشخصات | ستون۳ چپ=خرید */
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr) minmax(300px, 360px);
    align-items: start;
    gap: 0 1.25rem;
    padding-inline: 0.5rem;
  }
}
.sf-pdp__gallery {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 900px) {
  .sf-pdp__gallery {
    top: auto;
    align-self: center;
    min-height: 0;
    max-height: none;
    padding: 1.25rem 0.75rem 1.25rem 0.25rem;
  }
}
/* Product PhotoConfig aspectRatio 4:5 — روی دسکتاپ عرض/ارتفاع کمتر */
.sf-pdp__frame {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: #f3eef1;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(26,10,18,0.08);
}
@media (min-width: 900px) {
  .sf-pdp__frame {
    width: min(100%, 380px);
    max-height: min(62vh, 520px);
    /* اگر max-height محدود کرد، عرض را بر اساس نسبت نگه می‌داریم */
    aspect-ratio: 4 / 5;
  }
}
.sf-pdp__shot {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.sf-pdp__shot img {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  object-position: center center;
  display: block;
}
@media (min-width: 900px) {
  .sf-pdp__shot img {
    max-height: min(62vh, 520px);
  }
}
.sf-pdp__shot--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c02674;
  font-size: 3rem;
  cursor: default;
  min-height: 0;
}
.sf-pdp__zoom {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(26, 10, 18, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  pointer-events: none;
}
.sf-pdp__aside {
  padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 560px;
  min-width: 0;
}
@media (min-width: 900px) {
  .sf-pdp__aside {
    max-width: none;
    padding-top: 1.35rem;
    padding-bottom: 1.75rem;
  }
}

/* ---- ستون خرید / فروشنده (چپ‌ترین در RTL) ---- */
.sf-pdp__buybox {
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
@media (min-width: 1100px) {
  .sf-pdp__buybox {
    top: auto;
    align-self: center;
    padding-top: 1.35rem;
    padding-bottom: 1.75rem;
  }
}
.sf-pdp__buybox .sf-pdp__branch-trust {
  margin: 0;
}
.sf-pdp__buybox .sf-pdp__actions {
  margin-top: 0.25rem;
}
.sf-pdp__buybox .sf-pdp__trust {
  margin: 0;
}


/* ---- Sticky CTA (mobile) ---- */
.sf-pdp-sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--sf-border);
  box-shadow: 0 -8px 28px rgba(26, 10, 18, 0.08);
  backdrop-filter: blur(10px);
}
.sf-pdp-sticky[hidden] { display: none !important; }
.sf-pdp-sticky__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}
.sf-pdp-sticky__price {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.sf-pdp-sticky__price-num {
  font-family: var(--font-bold);
  font-size: 1.05rem;
  color: var(--sf-primary-dark, #7A183F);
  letter-spacing: -0.02em;
}
.sf-pdp-sticky__price-unit {
  font-size: 0.72rem;
  color: var(--sf-muted);
}
.sf-pdp-sticky__price--muted {
  font-size: 0.88rem;
  color: var(--sf-muted);
}
.sf-pdp-sticky__btn {
  flex: 0 1 auto;
  white-space: nowrap;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
}
@media (min-width: 900px) {
  .sf-pdp-sticky { display: none !important; }
}

/* ---- Size guide modal ---- */
.sf-size-guide {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sf-size-guide[hidden] { display: none !important; }
.sf-size-guide__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 18, 0.45);
}
.sf-size-guide__panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(88vh, 560px);
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 1.25rem 1.15rem 1.5rem;
  box-shadow: 0 -12px 40px rgba(26, 10, 18, 0.15);
}
@media (min-width: 640px) {
  .sf-size-guide { align-items: center; }
  .sf-size-guide__panel {
    border-radius: 16px;
    max-height: min(80vh, 520px);
  }
}
.sf-size-guide__close {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: #f3eef1;
  color: #1a0a12;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.sf-size-guide__title {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.1rem;
}
.sf-size-guide__hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--sf-muted);
  line-height: 1.5;
}
.sf-size-guide__table-wrap { overflow-x: auto; }
.sf-size-guide__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.sf-size-guide__table th,
.sf-size-guide__table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--sf-border);
  text-align: center;
}
.sf-size-guide__table th {
  color: var(--sf-muted);
  font-weight: 600;
  font-size: 0.78rem;
}
.sf-size-guide__table td:first-child,
.sf-size-guide__table th:first-child {
  font-family: var(--font-bold);
}
.sf-size-guide__unit {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--sf-muted);
  text-align: center;
}

.sf-pdp__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--sf-muted);
  margin-bottom: 1.15rem;
}
.sf-pdp__crumb a { color: var(--sf-muted); }
.sf-pdp__crumb a:hover { color: var(--sf-primary-dark); }
.sf-pdp__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.sf-pdp__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.45rem;
}
.sf-pdp__sku {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sf-muted);
}
.sf-pdp__prices {
  margin: 1.1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sf-pdp__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.sf-pdp__price-label {
  font-size: 0.82rem;
  color: var(--sf-muted);
  min-width: 2.5rem;
}
.sf-pdp__price-num {
  font-family: var(--font-bold);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.sf-pdp__price-unit {
  font-size: 0.85rem;
  color: var(--sf-muted);
}
/* اجاره: صورتی/بنفش برند */
.sf-pdp__price--rent .sf-pdp__price-label,
.sf-pdp__price--rent .sf-pdp__price-num {
  color: var(--sf-primary-dark, #7A183F);
}
/* فروش: سبز متمایز */
.sf-pdp__price--sale .sf-pdp__price-label,
.sf-pdp__price--sale .sf-pdp__price-num {
  color: #0f766e;
}
.sf-pdp__price-unit small { font-size: 0.75rem; }
.sf-pdp__attrs {
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--sf-border);
}
.sf-pdp__attr {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sf-border);
  margin: 0;
}
.sf-pdp__attr dt {
  margin: 0;
  color: var(--sf-muted);
  font-size: 0.88rem;
}
.sf-pdp__attr dd {
  margin: 0;
  font-family: var(--font-bold);
  font-size: 0.92rem;
}

/* ---- سایز (چیپ) ---- */
.sf-pdp__sizes {
  margin-top: 1.15rem;
}
.sf-pdp__sizes-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}
.sf-pdp__sizes-label { color: var(--sf-muted); }
.sf-pdp__sizes-current {
  font-family: var(--font-bold);
  color: #1a0a12;
}
.sf-pdp__size-guide {
  margin-inline-start: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--sf-primary, #c02674);
  font-size: 0.82rem;
  font-family: var(--font-bold);
  cursor: pointer;
  text-decoration: none;
}
.sf-pdp__size-guide:hover {
  text-decoration: underline;
}

/* ---- ویژگی‌ها (گرید شبیه دیجی‌کالا) ---- */
.sf-pdp__features {
  margin-top: 1.35rem;
}
.sf-pdp__features-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-family: var(--font-bold);
  color: #1a0a12;
}
.sf-pdp__features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 520px) {
  .sf-pdp__features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sf-pdp__feature {
  background: #f6f3f5;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 3.4rem;
}
.sf-pdp__feature-label {
  font-size: 0.72rem;
  color: var(--sf-muted);
  line-height: 1.3;
}
.sf-pdp__feature-value {
  font-size: 0.86rem;
  font-family: var(--font-bold);
  color: #1a0a12;
  line-height: 1.35;
}

.sf-pdp__desc {
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  color: #3d2a33;
  line-height: 1.75;
}
.sf-pdp__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sf-pdp__back {
  text-align: center;
  font-size: 0.88rem;
  color: var(--sf-muted);
  font-family: var(--font-bold);
}
.sf-pdp__back:hover { color: var(--sf-primary-dark); }

.sf-similar--pdp {
  margin-top: 0;
  border-top: 1px solid var(--sf-border);
  background: var(--sf-bg);
  margin: -0.25rem 0 0;
}
.sf-similar__head {
  margin-bottom: 1.25rem;
}

/* OTP digit cells */
.sf-otp {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0.5rem;
}
.sf-otp__cell {
  width: 2.75rem;
  height: 3.15rem;
  border-radius: 12px;
  border: 1.5px solid var(--sf-border);
  background: #faf7f8;
  text-align: center;
  font-size: 1.35rem;
  font-family: var(--font-bold);
  color: var(--sf-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sf-otp__cell:focus {
  outline: none;
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.16);
  background: #fff;
}
@media (max-width: 380px) {
  .sf-otp__cell { width: 2.4rem; height: 2.85rem; font-size: 1.15rem; }
}

/* Favorite button */
.sf-pdp__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: space-between;
}
.sf-pdp__title-row .sf-pdp__title { flex: 1; }
.sf-fav {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--sf-border);
  background: #fff;
  color: var(--sf-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.sf-fav:hover { color: var(--sf-primary); border-color: #f9a8d4; }
.sf-fav.is-on {
  color: #e11d48;
  background: #fff1f2;
  border-color: #fecdd3;
}
.sf-pdp__visits {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(26, 10, 18, 0.55);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.5;
  pointer-events: none;
}
.sf-pdp__visits:empty { display: none; }

/* ========== Login: Clean Light Theme ========== */
.sf-login-page {
  position: relative;
  overflow: hidden;
  margin: -1.5rem calc(-1 * clamp(0.75rem, 3vw, 2.5rem)) -4rem;
  min-height: calc(100dvh - 3.25rem);
  display: grid;
  grid-template-columns: 1fr;
  background: #fdfbfb;
}

.sf-login-page::before,
.sf-login-page__ribbons {
  display: none !important;
}

@media (min-width: 900px) {
  .sf-login-page {
    grid-template-columns: 1fr 1fr;
  }
  .sf-login-page__panel {
    grid-column: 1;
  }
  .sf-login-page__visual {
    grid-column: 2;
  }
}

/* پنل فرم */
.sf-login-page__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 1.5rem 3rem;
  background: #ffffff;
  box-shadow: 0 0 40px rgba(26, 10, 18, 0.04);
}

@media (min-width: 900px) {
  .sf-login-page__panel {
    padding: 3rem;
    border-radius: 0 0 0 40px;
  }
}

.sf-login-page__panel-inner {
  width: 100%;
  max-width: 360px;
}

.sf-login-page__heading {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--sf-muted);
}

.sf-login-page__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
}
.sf-login-page__form[hidden] { display: none !important; }

.sf-login-page__label {
  display: block;
  font-size: 0.95rem;
  font-family: var(--font-bold);
  color: var(--sf-ink);
  margin-bottom: 0.35rem;
}

.sf-login-page__input {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1.5px solid var(--sf-border);
  background: #faf7f8;
  color: var(--sf-ink);
  padding: 0 1.1rem;
  font-size: 1.05rem;
  font-family: var(--font);
  direction: ltr;
  text-align: left;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sf-login-page__input::placeholder { color: #a89fa3; }
.sf-login-page__input:focus {
  outline: none;
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 4px rgba(255, 79, 154, 0.15);
  background: #fff;
}

.sf-login-page__btn {
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff4f9a 0%, #d6266f 100%);
  color: #fff;
  font-family: var(--font-bold);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(216, 39, 112, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.sf-login-page__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(216, 39, 112, 0.35); }
.sf-login-page__btn:active { transform: translateY(0); }
.sf-login-page__btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

.sf-login-page__sent {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  color: var(--sf-muted);
  line-height: 1.7;
}
.sf-login-page__sent strong {
  color: var(--sf-ink);
  font-family: var(--font-bold);
}

.sf-login-page__link {
  display: inline-block;
  border: 0;
  background: none;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sf-login-page__timer {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--sf-muted);
}

.sf-login-page__otp {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  direction: ltr;
  margin-bottom: 0.25rem;
}
.sf-login-page__otp .sf-otp__cell {
  flex: 1;
  min-width: 0;
  height: 3.4rem;
  border-radius: 12px;
  border: 1.5px solid var(--sf-border);
  background: #faf7f8;
  color: var(--sf-ink);
  font-size: 1.3rem;
  font-family: var(--font-bold);
  text-align: center;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sf-login-page__otp .sf-otp__cell:focus {
  outline: none;
  border-color: var(--sf-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 79, 154, 0.15);
}

.sf-login-page__resend {
  border: 0;
  background: none;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.4rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sf-login-page__resend:disabled { opacity: 0.4; cursor: not-allowed; }

/* ورود با Google */
.sf-login-page__google { margin-top: 1.25rem; }
.sf-login-page__google[hidden] { display: none !important; }
.sf-login-page__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--sf-muted);
}
.sf-login-page__or::before,
.sf-login-page__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sf-border);
}
.sf-login-page__google-btn {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.sf-login-page__legal {
  margin: 1.75rem 0 0;
  font-size: 0.78rem;
  color: var(--sf-muted);
  line-height: 1.7;
  text-align: center;
}
.sf-login-page__legal a {
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
}

/* بخش تصویرسازی (سمت چپ) */
/* موبایل: SVG بالای فرم (order:-1)، جمع‌وجور و بدون کپشن */
.sf-login-page__visual {
  display: flex;
  order: -1;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff0f6 0%, #faf7f8 100%);
}
@media (max-width: 899.98px) {
  .sf-login-page { grid-template-rows: auto 1fr; }
  .sf-login-page__panel {
    margin-top: -1.5rem;
    padding-top: 1.75rem;
    border-radius: 28px 28px 0 0;
  }
  .sf-login-page__caption { display: none; }
}
@media (min-width: 900px) {
  .sf-login-page__visual { order: 0; }
}

.sf-login-page__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem 1rem 2.25rem;
}
@media (min-width: 900px) {
  .sf-login-page__illustration { padding: 2rem 1rem 5rem; }
}

/* SVG عروس: هم ارتفاع با پنل، با نسبت تصویر اصلی */
.sf-login-page__svg {
  width: auto;
  height: 190px;
  max-width: 85%;
  filter: drop-shadow(0 12px 24px rgba(255, 79, 154, 0.18));
}
@media (min-width: 900px) {
  .sf-login-page__svg {
    height: 100%;
    max-height: min(75vh, 620px);
    filter: drop-shadow(0 20px 40px rgba(255, 79, 154, 0.18));
  }
}

.sf-login-page__caption {
  position: absolute;
  bottom: 2.25rem;
  right: 0;
  left: 0;
  text-align: center;
  padding: 0 1.5rem;
  pointer-events: none;
}
.sf-login-page__caption strong {
  display: block;
  font-family: var(--font-bold);
  font-size: 1.15rem;
  color: var(--sf-ink);
  margin-bottom: 0.35rem;
}
.sf-login-page__caption span {
  display: block;
  font-size: 0.88rem;
  color: var(--sf-muted);
}

/* ========== Reviews (Play Store style) ========== */
.sf-pdp__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: auto;
  color: inherit;
  text-decoration: none;
}
.sf-pdp__rating-num {
  font-family: var(--font-bold);
  font-size: 0.95rem;
  color: var(--sf-ink);
}
.sf-pdp__rating-count {
  font-size: 0.82rem;
  color: var(--sf-muted);
}
.sf-stars {
  display: inline-flex;
  gap: 0.08rem;
  color: #e5e0e2;
  letter-spacing: 0;
  font-size: 0.95rem;
  line-height: 1;
}
.sf-stars--lg { font-size: 1.15rem; }
.sf-stars::before {
  content: "★★★★★";
  background: linear-gradient(
    90deg,
    #f5a623 0 calc(var(--pct, 0) * 1%),
    #e5e0e2 calc(var(--pct, 0) * 1%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sf-reviews {
  margin: 2.75rem 0 0;
  padding: 1rem clamp(0.75rem, 3vw, 2.5rem) 1rem;
  background: #fff;
  border-top: 1px solid var(--sf-border);
}
.sf-reviews__title {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.sf-reviews__summary {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
  padding: 1.15rem;
  background: #faf7f8;
  border-radius: 16px;
}
@media (min-width: 640px) {
  .sf-reviews__summary {
    grid-template-columns: 140px 1fr;
    align-items: center;
  }
}
.sf-reviews__score { text-align: center; }
.sf-reviews__score-num {
  font-family: var(--font-bold);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sf-ink);
}
.sf-reviews__score-count {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--sf-muted);
}
.sf-reviews__bars { display: grid; gap: 0.35rem; }
.sf-reviews__bar-row {
  display: grid;
  grid-template-columns: 1.2rem 1fr 2rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--sf-muted);
}
.sf-reviews__bar-track {
  height: 8px;
  border-radius: 999px;
  background: #efe6ea;
  overflow: hidden;
}
.sf-reviews__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5a623, #ffb84d);
  min-width: 0;
}
.sf-reviews__compose {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px dashed var(--sf-border);
  border-radius: 16px;
  background: #fff;
}
.sf-reviews__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sf-muted);
}
.sf-review-form { display: flex; flex-direction: column; gap: 0.75rem; }
.sf-review-form__label {
  margin: 0;
  font-size: 0.88rem;
  font-family: var(--font-bold);
}
.sf-star-input {
  display: flex;
  gap: 0.2rem;
  direction: ltr;
  justify-content: flex-start;
}
.sf-star-input__btn {
  border: 0;
  background: none;
  font-size: 1.75rem;
  color: #e5e0e2;
  cursor: pointer;
  padding: 0.1rem;
  line-height: 1;
}
.sf-star-input__btn.is-on,
.sf-star-input__btn.is-hover { color: #f5a623; }
.sf-review-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--sf-muted);
}
.sf-review-form__field input,
.sf-review-form__field textarea {
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--sf-ink);
  background: #faf7f8;
}
.sf-review-form__field input:focus,
.sf-review-form__field textarea:focus {
  outline: none;
  border-color: var(--sf-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.12);
}
.sf-review-form__msg {
  margin: 0;
  font-size: 0.86rem;
  color: #166534;
}
.sf-review-form__msg.is-err { color: #b42318; }

/* فرم نظر: در دسکتاپ جمع‌وجور (امتیاز کنار متن) */
@media (min-width: 768px) {
  .sf-reviews__compose {
    padding: 0.9rem 1.1rem;
  }
  /* راست به چپ: کادر نظر ← امتیاز ← دکمه ثبت؛ یک ردیف کامل */
  .sf-review-form:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "field rating btn"
      "msg   msg    msg";
    column-gap: 1.25rem;
    row-gap: 0.4rem;
    align-items: center;
  }
  .sf-review-form__field { grid-area: field; }
  .sf-review-form__field textarea {
    min-height: 84px;
    padding: 0.55rem 0.75rem;
    resize: vertical;
  }
  .sf-review-form__rating {
    grid-area: rating;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }
  .sf-review-form__rating .sf-review-form__label { text-align: center; }
  .sf-review-form #sfReviewSubmit {
    grid-area: btn;
    white-space: nowrap;
    padding-block: 0.6rem;
  }
  .sf-review-form__msg { grid-area: msg; }
  .sf-star-input__btn { font-size: 1.5rem; }
}
.sf-reviews__list { display: grid; gap: 1rem; }

/* Swiper صفحه محصول (نظرات + مشابه) */
.sf-pdp-swiper {
  position: relative;
  padding: 0.25rem 2.25rem 1rem;
}
.sf-pdp-swiper .swiper-slide { height: auto; }
.sf-pdp-swiper .swiper-button-prev,
.sf-pdp-swiper .swiper-button-next {
  color: var(--sf-primary-dark);
  --swiper-navigation-size: 18px;
}
@media (max-width: 576px) {
  .sf-pdp-swiper { padding-inline: 0.25rem; }
  .sf-pdp-swiper .swiper-button-prev,
  .sf-pdp-swiper .swiper-button-next { display: none; }
}
.sf-pdp-swiper--reviews .sf-review-item {
  height: 100%;
  min-height: 210px;
  padding: 1.25rem 1.3rem;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(26, 10, 18, 0.06);
}
.sf-pdp-swiper--reviews .sf-review-item:last-child { border-bottom: 1px solid var(--sf-border); }
.sf-pdp-swiper--reviews .sf-review-item__body {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-reviews__empty {
  margin: 0;
  color: var(--sf-muted);
  font-size: 0.9rem;
}
.sf-review-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--sf-border);
}
.sf-review-item:last-child { border-bottom: 0; }
.sf-review-item__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.sf-review-item__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3e9ee;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--sf-border);
}
.sf-review-item__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}
.sf-review-item__author {
  font-family: var(--font-bold);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-review-item__date {
  font-size: 0.78rem;
  color: var(--sf-muted);
}
.sf-review-item__stars {
  display: inline-block;
  margin-bottom: 0.5rem;
}
.sf-review-item__body {
  margin: 0;
  font-size: 0.95rem;
  color: #3d2a33;
  line-height: 1.7;
}
.sf-review-item__reply {
  margin-top: 0.7rem;
  padding: 0.55rem 0.75rem;
  background: #fff5f9;
  border-inline-start: 3px solid var(--sf-primary);
  border-radius: 8px;
}
.sf-review-item__reply-label {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-bold);
  font-size: 0.78rem;
  color: var(--sf-primary-dark);
}
.sf-review-item__reply-body {
  margin: 0;
  font-size: 0.85rem;
  color: #3d2a33;
  line-height: 1.65;
}
.sf-pdp-swiper--reviews .sf-review-item__reply-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Try-on booking ========== */
.sf-tryon__head { margin-bottom: 1.25rem; }
.sf-tryon__head h1 { margin: 0 0 0.35rem; font-size: 1.4rem; }
.sf-tryon__alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  background: #fff5f5;
  color: #b42318;
  border: 1px solid #f5c2c7;
}
.sf-tryon__alert.is-ok {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}
.sf-tryon__layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .sf-tryon__layout { grid-template-columns: 280px 1fr; align-items: start; }
}
.sf-tryon__product {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--sf-border);
  overflow: hidden;
  box-shadow: var(--sf-shadow);
}
.sf-tryon__product-ph,
.sf-tryon__product-img {
  aspect-ratio: 4 / 5;
  background: #f8f0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #db2777;
  font-size: 2rem;
}
.sf-tryon__product-ph,
.sf-tryon__product-img { width: 100%; object-fit: cover; display: block; }
.sf-tryon__product-meta { padding: 1rem 1.1rem 1.25rem; }
.sf-tryon__product-meta h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.sf-tryon__book {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--sf-border);
  padding: 1.25rem;
  box-shadow: var(--sf-shadow);
}
.sf-tryon__step { margin-bottom: 1.35rem; }
.sf-tryon__step h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.sf-tryon__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.sf-tryon__date {
  border: 1px solid var(--sf-border);
  background: #faf7f8;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  min-width: 4.5rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--sf-ink);
  text-align: center;
}
.sf-tryon__date:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sf-tryon__date.is-active {
  border-color: var(--sf-primary);
  background: #fff0f6;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
}
.sf-tryon__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2.5rem;
}
.sf-tryon__slot {
  border: 1px solid var(--sf-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: var(--font);
  direction: ltr;
}
.sf-tryon__slot.is-active {
  border-color: var(--sf-primary);
  background: linear-gradient(135deg, #ff4f9a 0%, #e83a84 100%);
  color: #fff;
  font-family: var(--font-bold);
}
.sf-tryon__picked {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--sf-muted);
}
.sf-tryon__picked strong { color: var(--sf-ink); font-family: var(--font-bold); }

.sf-tryons__list { display: grid; gap: 0.85rem; }
.sf-tryon-card {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 16px rgba(26,10,18,0.05);
}
.sf-tryon-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.sf-tryon-card__title {
  margin: 0;
  font-size: 1rem;
}
.sf-tryon-card__badge {
  font-size: 0.75rem;
  font-family: var(--font-bold);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f3f0f1;
  color: var(--sf-muted);
}
.sf-tryon-card__badge.is-pending { background: #fff7ed; color: #c2410c; }
.sf-tryon-card__badge.is-confirmed { background: #f0fdf4; color: #166534; }
.sf-tryon-card__badge.is-canceled { background: #fff5f5; color: #b42318; }
.sf-tryon-card__badge.is-done { background: #eff6ff; color: #1d4ed8; }
.sf-tryon-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sf-muted);
  line-height: 1.7;
}
.sf-tryon-card__actions { margin-top: 0.75rem; }

/* ========== Phase 2: trust / bookability / favorites ========== */
.sf-bookability {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-bold);
}
.sf-bookability--available { background: #f0fdf4; color: #166534; }
.sf-bookability--on_rent { background: #fff7ed; color: #c2410c; }
.sf-bookability--blocked { background: #f8fafc; color: #475569; }
.sf-bookability--retired,
.sf-bookability--sold { background: #fff5f5; color: #b42318; }
.sf-pdp__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 1rem 0 0.5rem;
}
.sf-pdp__trust-detail { font-size: 0.82rem; color: var(--sf-muted); }
.sf-pdp__branch-trust {
  margin: 0.85rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #faf7f8;
  border: 1px solid var(--sf-border);
  display: grid;
  gap: 0.4rem;
}
.sf-pdp__branch-trust-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-bold);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.sf-pdp__branch-line {
  font-size: 0.86rem;
  color: var(--sf-muted);
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}
.sf-pdp__branch-line .sf-icon { color: var(--sf-primary); margin-top: 0.15rem; }
.sf-pdp__branch-trust-title .sf-icon { color: var(--sf-primary); }
a.sf-pdp__branch-line:hover { color: var(--sf-primary-dark); }
.sf-open-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-bold);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.sf-open-pill.is-open { background: #f0fdf4; color: #166534; }
.sf-open-pill.is-closed { background: #f3f0f1; color: #6b5e64; }
.sf-empty--rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2.75rem 1.25rem;
}
.sf-empty__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: #fff0f6;
  color: var(--sf-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.sf-empty__title {
  margin: 0;
  font-family: var(--font-bold);
  font-size: 1.05rem;
  color: var(--sf-ink);
}
.sf-loc__name { display: inline; margin-left: 0.35rem; }

/* ========== Phase 3: filters / search / rich maison cards / SEO helpers ========== */
.sf-filters {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(26,10,18,0.04);
}
.sf-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.sf-filters__search {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #faf7f8;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 0 0.75rem;
  min-height: 44px;
}
.sf-filters__search i { color: var(--sf-muted); font-size: 0.85rem; }
.sf-filters__search input {
  border: 0;
  background: transparent;
  flex: 1;
  height: 42px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--sf-ink);
}
.sf-filters__search input:focus { outline: none; }
.sf-filters__select,
.sf-filters__price {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--sf-border);
  background: #faf7f8;
  padding: 0 0.75rem;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--sf-ink);
  min-width: 7rem;
}
.sf-filters__price { width: 6.5rem; direction: ltr; }
.sf-search-results { margin-bottom: 1.75rem; }
.sf-search-results__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.sf-maison-card--rich {
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}
.sf-maison-card__cover {
  height: 88px;
  background: linear-gradient(135deg, #1a0a12, #6b2042);
  overflow: hidden;
}
.sf-maison-card__cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sf-maison-card__cover-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a0a12 0%, #6b2042 100%);
}
.sf-maison-card--rich .sf-maison-card__media {
  margin-top: -36px;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(26,10,18,0.12);
}
.sf-maison-card__cities {
  margin: 0 0 0.35rem !important;
  font-size: 0.8rem !important;
  color: var(--sf-primary-dark) !important;
  font-family: var(--font-bold);
}
.sf-maison-card__stats {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: var(--sf-muted);
}
.sf-readiness {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.88rem;
  border: 1px solid #fed7aa;
}
.sf-readiness i { margin-top: 0.15rem; }

/* ========== Phase 4: account / profile / rentals / reminders ========== */
.sf-account__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .sf-account__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sf-stat {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  padding: 0.9rem 0.75rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(26,10,18,0.04);
}
.sf-stat strong {
  display: block;
  font-family: var(--font-bold);
  font-size: 1.35rem;
  color: var(--sf-primary-dark);
}
.sf-stat span { font-size: 0.78rem; color: var(--sf-muted); }
.sf-account__links {
  display: grid;
  gap: 0.55rem;
}
.sf-account__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  color: var(--sf-ink);
  font-family: var(--font-bold);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sf-account__link i { color: var(--sf-primary); width: 1.2rem; text-align: center; }
.sf-account__link:hover {
  border-color: #f9a8d4;
  box-shadow: 0 8px 20px rgba(122,24,63,0.08);
  color: var(--sf-ink);
}
.sf-reminders {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 16px;
  background: #fff0f6;
  border: 1px solid #fbcfe8;
}
.sf-reminders__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.sf-reminder-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0;
  border-top: 1px dashed #f9a8d4;
  font-size: 0.88rem;
}
.sf-reminder-card:first-of-type { border-top: 0; }
.sf-reminder-card a { color: var(--sf-primary-dark); font-family: var(--font-bold); }
.sf-profile__form {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fff;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--sf-border);
}
.sf-rentals__list { display: grid; gap: 0.85rem; }
.sf-rental-card {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.sf-rental-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.sf-rental-card__top h3 { margin: 0; font-size: 1rem; }
.sf-rental-card__meta {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--sf-muted);
  line-height: 1.65;
}
.sf-rental-card__links {
  margin-top: 0.55rem;
  font-size: 0.85rem;
}
.sf-rental-card__links a:not(.sf-btn) { color: var(--sf-primary-dark); font-family: var(--font-bold); }

.sf-account__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.sf-account__section-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--sf-muted);
}
.sf-account__link span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sf-account__link strong {
  font-family: var(--font-bold);
  font-size: 0.95rem;
}
.sf-account__link small {
  font-size: 0.78rem;
  color: var(--sf-muted);
  font-family: var(--font);
}

/* ========== Account shell (right nav) ========== */
.sf-account-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  /* RTL: first column is on the right → nav stays right, content left */
  .sf-account-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    direction: rtl;
  }
  .sf-account-nav {
    grid-column: 1;
  }
  .sf-account-main {
    grid-column: 2;
  }
}
.sf-account-nav__card {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(26,10,18,0.05);
  position: sticky;
  top: 1rem;
}
.sf-account-nav__user {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--sf-border);
}
.sf-account-nav__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #faf7f8;
}
.sf-account-nav__user strong { display: block; font-size: 0.92rem; }
.sf-account-nav__user .sf-muted { font-size: 0.78rem; }
.sf-account-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.sf-account-nav__links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--sf-ink);
  font-size: 0.9rem;
}
.sf-account-nav__links a i { width: 1.1rem; color: var(--sf-primary); text-align: center; }
.sf-account-nav__links a:hover,
.sf-account-nav__links a.is-active {
  background: #fff0f6;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
}
.sf-account-nav__divider {
  height: 1px;
  background: var(--sf-border);
  margin: 0.75rem 0;
}
.sf-account-nav__logout {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: #b42318;
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
}
.sf-account-nav__logout:hover { background: #fff5f5; }

.sf-tryons__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .sf-tryons__grid { grid-template-columns: 1fr 1fr; }
}
.sf-tryon-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: start;
}
.sf-tryon-card__media {
  width: 72px; height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f0f3;
}
.sf-tryon-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sf-tryon-card__body { min-width: 0; }

.sf-rental-card__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0;
}
.sf-rental-card__thumbs img {
  width: 44px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8f0f3;
}
.sf-rental-card__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0;
}
.sf-rental-card__flag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-family: var(--font-bold);
}
.sf-rental-card__flag.is-damage { background: #fff5f5; color: #b42318; }

.sf-rental-detail__products {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
.sf-rental-detail__product {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: #fff;
}
.sf-rental-detail__product img {
  width: 64px; height: 80px; object-fit: cover; border-radius: 8px;
}
/* product without photo (rental list + rental detail) */
.sf-photo-ph {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 8px; object-fit: cover;
  color: #db2777;
  background: linear-gradient(145deg, #fce7f3, #fff5f9);
}
.sf-photo-ph--thumb { width: 44px; height: 56px; }
.sf-photo-ph--detail { width: 64px; height: 80px; }
.sf-price-was {
  text-decoration: line-through;
  color: var(--sf-muted);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}
.sf-price-now { font-family: var(--font-bold); color: var(--sf-primary-dark); }
.sf-rental-detail__section {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 14px;
  background: #faf7f8;
  border: 1px solid var(--sf-border);
}
.sf-rental-detail__section h3 { margin: 0 0 0.65rem; font-size: 0.95rem; }
.sf-rental-detail__section ul { margin: 0; padding: 0; list-style: none; }
.sf-rental-detail__section li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--sf-border);
  font-size: 0.88rem;
}
.sf-rental-detail__section li:last-child { border-bottom: 0; }

.sf-profile__avatar-preview {
  text-align: center;
  margin-bottom: 0.5rem;
}
.sf-profile__avatar-preview img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(26,10,18,0.12);
}
.sf-profile__avatar-label {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-family: var(--font-bold);
}
.sf-avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  max-height: 220px;
  overflow: auto;
  padding: 0.35rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: #faf7f8;
}
@media (min-width: 480px) {
  .sf-avatar-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.sf-avatar-opt {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1;
}
.sf-avatar-opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-avatar-opt.is-selected {
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 2px rgba(255, 79, 154, 0.25);
}

a.sf-rental-detail__product--link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.sf-rental-detail__product--link:hover {
  border-color: #f9a8d4;
  box-shadow: 0 6px 18px rgba(122,24,63,0.08);
  color: inherit;
}
.sf-rental-card__thumb-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
}
.sf-rental-card__thumb-link:hover {
  outline: 2px solid var(--sf-primary);
  outline-offset: 1px;
}

/* Mobile account tabs */
.sf-account-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0 0.75rem;
  margin: 0 0 0.5rem;
  border-bottom: 1px solid var(--sf-border);
  scrollbar-width: none;
}
.sf-account-tabs::-webkit-scrollbar { display: none; }
.sf-account-tabs a {
  flex: 1 0 auto;
  min-width: 3.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  font-size: 0.7rem;
  color: var(--sf-muted);
  text-decoration: none;
}
.sf-account-tabs a i { font-size: 1rem; }
.sf-account-tabs a.is-active {
  background: #fff0f6;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
}
@media (min-width: 900px) {
  .sf-account-tabs { display: none; }
}
@media (max-width: 899px) {
  .sf-account-nav { display: none; }
}

.sf-stat--link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.sf-stat--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,10,18,0.08);
  color: inherit;
}

.sf-account-next {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff0f6, #fff);
  border: 1px solid #f9a8d4;
}
.sf-account-next__label {
  font-size: 0.75rem;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
  margin-bottom: 0.25rem;
}
.sf-account-next__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--font-bold);
}
.sf-account-next__meta {
  font-size: 0.85rem;
  color: var(--sf-muted);
  margin-bottom: 0.75rem;
}
.sf-account-next__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Profile card redesign */
.sf-profile-card {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 18px;
  padding: 1.25rem 1.35rem 1.5rem;
  max-width: 420px;
  box-shadow: 0 8px 28px rgba(26,10,18,0.05);
}
.sf-profile-card__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--sf-border);
}
.sf-profile-card__avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.sf-profile-card__avatar-wrap img {
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(26,10,18,0.12);
  background: #faf7f8;
}
.sf-profile-card__change-av {
  border: 1px solid var(--sf-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--sf-primary-dark);
}
.sf-profile-card__change-av:hover { background: #fff0f6; }
.sf-profile-card__locked {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sf-profile-card__locked-label {
  font-size: 0.75rem;
  color: var(--sf-muted);
}
.sf-profile-card__locked-value {
  font-family: var(--font-bold);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.sf-profile-card__hint { margin: 0.35rem 0 0; font-size: 0.78rem; }
.sf-profile-card .sf-login-field { margin-bottom: 1rem; }

/* Modal */
.sf-modal[hidden] { display: none !important; }
.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) {
  .sf-modal { align-items: center; }
}
.sf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 18, 0.45);
}
.sf-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(88vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}
@media (min-width: 640px) {
  .sf-modal__sheet {
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  }
}
.sf-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.sf-modal__head h2 { margin: 0; font-size: 1.05rem; }
.sf-modal__close {
  border: 0; background: transparent;
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--sf-muted);
}
.sf-modal__preview {
  text-align: center;
  margin-bottom: 0.75rem;
}
.sf-modal__preview img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(26,10,18,0.1);
}
.sf-avatar-grid--modal {
  max-height: 240px;
  margin-bottom: 0.85rem;
}
.sf-avatar-opt[hidden] { display: none; }
/* female / male tabs above the avatar grid */
.sf-seg.sf-seg--avatar { display: flex; margin-bottom: 0.75rem; }
.sf-seg--avatar .sf-seg__btn { flex: 1; padding-inline: 0.4rem; white-space: nowrap; }
.sf-modal__foot {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Segmented control */
.sf-seg {
  display: inline-flex;
  background: #faf7f8;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 0.2rem;
  margin-bottom: 1rem;
  gap: 0.15rem;
}
.sf-seg__btn {
  border: 0;
  background: transparent;
  padding: 0.45rem 1.1rem;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--sf-muted);
}
.sf-seg__btn.is-active {
  background: #fff;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
  box-shadow: 0 2px 8px rgba(26,10,18,0.06);
}

.sf-tryon-card--upcoming {
  border-color: #f9a8d4;
}
.sf-tryon-card__when {
  font-family: var(--font-bold);
  font-size: 0.95rem;
  margin: 0.2rem 0;
}

.sf-rental-card {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.sf-rental-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.sf-rental-card__top h3 { margin: 0; font-size: 1rem; }
.sf-rental-card__total {
  font-family: var(--font-bold);
  font-size: 0.95rem;
  margin: 0.35rem 0;
  color: var(--sf-primary-dark);
}
/* labelled dates on the rental card */
.sf-rental-card__dates {
  display: grid;
  gap: 0.3rem;
  margin: 0.55rem 0;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: #faf7f8;
}
.sf-rental-card__date {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.75rem; font-size: 0.85rem;
}
.sf-rental-card__date span { color: var(--sf-muted); }
.sf-rental-card__date strong { font-family: var(--font-bold); color: var(--sf-ink); font-weight: 700; }
.sf-rental-detail__summary {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff0f6, #fff);
  border: 1px solid #f9a8d4;
  margin-bottom: 1.15rem;
}
.sf-rental-detail__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.sf-rental-detail__money {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--sf-border);
  background: #fff;
}
.sf-rental-detail__money h3 { margin: 0 0 0.65rem; font-size: 0.95rem; }
.sf-rental-detail__money-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--sf-border);
}
.sf-rental-detail__money-row:last-child {
  border-bottom: 0;
  font-family: var(--font-bold);
  padding-top: 0.55rem;
}
.sf-badge-status {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-bold);
  background: #f4f4f5;
  color: #52525b;
}
.sf-badge-status.is-active { background: #ecfdf5; color: #047857; }
.sf-badge-status.is-done { background: #f4f4f5; color: #52525b; }
.sf-badge-status.is-cancel { background: #fef2f2; color: #b91c1c; }

a.sf-tryon-card__media {
  display: block;
  color: inherit;
}
a.sf-tryon-card__title-link {
  color: inherit;
  text-decoration: none;
}
a.sf-tryon-card__title-link:hover .sf-tryon-card__title {
  color: var(--sf-primary-dark);
}

.sf-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 2000;
  max-width: min(92vw, 360px);
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  background: #1a0a12;
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  text-align: center;
}
.sf-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.sf-toast.is-ok { background: #047857; }
.sf-toast.is-err { background: #b91c1c; }

/* ============================================================
   Collection page (/m/.../col/...)
   Hero = همان زبان بصری بنر مزون (sf-col-banner)
   Minimal = عنوان روی عکس + گرادیان نرم پایین
   Editorial = عنوان زیر عکس + استروک
   Luxury / Modern = کارت سفید
   ============================================================ */

.sf-collection {
  --col-bg: #F8F6F2;
  background: var(--col-bg);
  /* فقط پایین و چپ/راست برای گرید محصولات — بنر full-bleed می‌شود */
  padding: 0 1rem 2.5rem;
  border-radius: 20px;
  margin-top: 0.5rem;
  overflow: hidden;
}

/* —— Hero: تمام‌عرض (بدون فاصله چپ/راست) —— */
.sf-collection__hero {
  position: relative;
  overflow: hidden;
  /* خنثی کردن padding افقی والد */
  margin: 0 -1rem 1.75rem;
  width: calc(100% + 2rem);
  max-width: none;
  border-radius: 0;
  background: #1a0a12;
}
.sf-collection__hero--plain {
  background: var(--col-bg, #F8F6F2);
  min-height: auto;
}
.sf-collection__hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 1; /* دسکتاپ 1200×300 */
  overflow: hidden;
  background: #1a0a12;
}
.sf-collection__hero-media .sf-collection__hero-img,
.sf-collection__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.sf-collection__hero--plain .sf-collection__hero-img {
  position: static;
  aspect-ratio: 1200 / 450;
  height: auto;
}

/* متن روی بنر: همان کلاس‌های صفحه مزون (sf-col-banner__*) */
.sf-collection__hero--plain .sf-col-banner__title {
  color: inherit;
  text-shadow: none;
}
.sf-collection__hero--plain .sf-col-banner__meta {
  color: inherit;
  opacity: 0.75;
}
/* دکمه آلبوم: گوشه پایین-چپ بنر */
.sf-collection__album-btn {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  padding: 0.45rem 1.05rem;
  font-size: 0.84rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}
.sf-collection__album-btn:hover {
  background: #fff;
}
.sf-collection__album-btn--plain {
  left: 0.25rem;
  bottom: 0.5rem;
}
/* دکمه آلبوم روی موبایل هم نمایش داده می‌شود */
@media (max-width: 767px) {
  .sf-collection__album-btn {
    display: inline-flex;
    left: 0.65rem;
    bottom: 0.65rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}

.sf-collection__hero-text--plain {
  position: relative;
  padding: 1.25rem 0.25rem 0.5rem;
  text-align: right;
}

.sf-collection[data-bg-tone="dark"] .sf-empty {
  color: rgba(245, 240, 232, 0.85);
}

/* —— Product grid —— */
.sf-collection__grid {
  display: grid;
  gap: 0.75rem 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .sf-collection__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 0.85rem;
  }
}
@media (min-width: 1100px) {
  .sf-collection__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Luxury / Modern: کارت سفید */
.sf-collection .sf-collection__card.sf-product-card,
.sf-collection .sf-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  color: #1a0a12;
}
.sf-collection .sf-product-card__body h3 {
  color: #1a0a12 !important;
}
.sf-collection .sf-product-card__meta,
.sf-collection .sf-product-card__meta span {
  color: #6b6560 !important;
}
.sf-collection .sf-product-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f0ebe6;
}
.sf-collection .sf-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* —— Minimal: بدون کارت سفید؛ عنوان روی عکس + گرادیان نرم —— */
.sf-collection--minimal .sf-collection__grid {
  gap: 1rem 0.85rem;
}
.sf-collection--minimal .sf-collection__card--minimal {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.sf-collection--minimal .sf-collection__card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a0a12;
}
.sf-collection--minimal .sf-collection__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.sf-collection--minimal .sf-collection__card--minimal:hover .sf-collection__card-media img {
  transform: scale(1.04);
}
.sf-collection--minimal .sf-collection__card-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(
    to top,
    rgba(10, 4, 8, 0.55) 0%,
    rgba(10, 4, 8, 0.22) 45%,
    transparent 100%
  );
  pointer-events: none;
}
/* caption بیرون media است؛ absolute روی خود کارت = روی پایین عکس */
.sf-collection--minimal .sf-collection__card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.85rem 0.6rem 0.35rem;
  text-align: center;
  direction: rtl;
}
.sf-collection--minimal .sf-collection__card-title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 0.82rem;
  font-family: var(--font-bold);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* —— Editorial: بدون کارت؛ عنوان زیر عکس + استروک —— */
.sf-collection--editorial .sf-collection__grid {
  gap: 1.2rem 1rem;
}
.sf-collection--editorial .sf-collection__card--editorial {
  display: block;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  color: inherit;
}
.sf-collection--editorial .sf-collection__card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e2dc;
  border-radius: 2px;
}
.sf-collection--editorial .sf-collection__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.sf-collection--editorial .sf-collection__card--editorial:hover .sf-collection__card-media img {
  transform: scale(1.03);
}
.sf-collection--editorial .sf-collection__card-scrim {
  display: none !important;
}
.sf-collection--editorial .sf-collection__card-caption {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.25rem 0;
  text-align: center;
  direction: rtl;
}
.sf-collection--editorial .sf-collection__card-title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 0.88rem;
  font-family: var(--font-bold);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  /* متن زیر عکس روی bg مشخص — بدون stroke/multi-shadow */
  color: #1a0a12;
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.9);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.45),
    1px 0 0 rgba(255, 255, 255, 0.3),
    -1px 0 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sf-collection--editorial[data-bg-tone="dark"] .sf-collection__card-title {
  color: #f7f2ec;
  -webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.55);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.45);
}
/* —— Luxury: قاب طلایی ملایم، سایه نرم، عنوان وسط‌چین، فاصله باز —— */
.sf-collection--luxury .sf-collection__grid {
  gap: 1.5rem 1.2rem;
}
.sf-collection--luxury .sf-product-card {
  background: #faf8f5;
  border: 1px solid rgba(184, 155, 114, 0.55);
  border-radius: 0;
  box-shadow: 0 14px 36px rgba(26, 10, 18, 0.1);
  outline: 1px solid rgba(184, 155, 114, 0.22);
  outline-offset: 4px;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sf-collection--luxury .sf-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(26, 10, 18, 0.14);
}
.sf-collection--luxury .sf-product-card__media {
  border-radius: 0;
  margin: 0.45rem 0.45rem 0;
  width: calc(100% - 0.9rem);
  box-sizing: border-box;
}
.sf-collection--luxury .sf-product-card__body {
  text-align: center;
  padding: 1rem 0.85rem 1.15rem;
  background: transparent;
}
.sf-collection--luxury .sf-product-card__body h3 {
  font-size: 0.9rem !important;
  letter-spacing: 0.03em;
  font-weight: 700;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.sf-collection--luxury .sf-product-card__meta {
  justify-content: center;
  margin-top: 0.35rem;
  font-size: 0.68rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8560 !important;
}
.sf-collection--luxury .sf-product-card__meta span {
  color: #9a8560 !important;
}
.sf-collection--luxury[data-bg-tone="dark"] .sf-product-card {
  background: #1c1814;
  border-color: rgba(201, 168, 108, 0.4);
  outline-color: rgba(201, 168, 108, 0.18);
  color: #f5f0e8;
}
.sf-collection--luxury[data-bg-tone="dark"] .sf-product-card__body h3 {
  color: #f5f0e8 !important;
}
.sf-collection--luxury[data-bg-tone="dark"] .sf-product-card__meta,
.sf-collection--luxury[data-bg-tone="dark"] .sf-product-card__meta span {
  color: #c9a86c !important;
}

/* —— Modern: گوشه صفر، بدون سایه، نوار مشکی پایین، تایپ فشرده و تیز —— */
.sf-collection--modern .sf-collection__grid {
  gap: 0.55rem 0.55rem;
}
.sf-collection--modern .sf-collection__hero {
  border-radius: 0;
}
.sf-collection--modern .sf-product-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 3px solid #1a0a12;
  box-shadow: none;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.sf-collection--modern .sf-product-card:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.92;
}
.sf-collection--modern .sf-product-card__media {
  border-radius: 0;
  background: #111;
}
.sf-collection--modern .sf-product-card__media img {
  transition: filter 0.25s ease;
}
.sf-collection--modern .sf-product-card:hover .sf-product-card__media img {
  filter: contrast(1.05) saturate(1.05);
}
/* رنگ عنوان/کد ثابت است و به روشن/تیره بودن پس‌زمینه کالکشن وابسته نیست:
   بدنه کارت همیشه سفید با متن تیره */
.sf-collection--modern .sf-product-card__body {
  padding: 0.55rem 0.5rem 0.45rem;
  background: #fff;
}
.sf-collection--modern .sf-product-card__body {
  text-align: center;
}
.sf-collection--modern .sf-product-card__body h3 {
  text-align: center;
  color: #1a0a12 !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.sf-collection--modern .sf-product-card__meta {
  justify-content: center;
  margin-top: 0.2rem;
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #1a0a12 !important;
}
.sf-collection--modern .sf-product-card__meta span {
  color: #1a0a12 !important;
}

/* Branch page — collection banner cards */
.sf-branch-collections {
  margin: 0 0 2rem;
}
.sf-branch-collections__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .sf-branch-collections--two .sf-branch-collections__grid {
    grid-template-columns: 1fr 1fr;
  }
  .sf-branch-collections--three .sf-branch-collections__grid {
    grid-template-columns: 1fr 1fr;
  }
  .sf-branch-collections--three .sf-branch-col:first-child {
    grid-column: 1 / -1;
  }
  .sf-branch-collections--four .sf-branch-collections__grid {
    grid-template-columns: 1fr 1fr;
  }
  .sf-branch-collections--one .sf-branch-collections__grid {
    grid-template-columns: 1fr;
  }
}
.sf-branch-col {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  position: relative;
}
.sf-branch-col__media {
  position: relative;
  aspect-ratio: 16 / 6;
  min-height: 140px;
  background: #2a2420;
}
.sf-branch-col__media img,
.sf-branch-col__ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-branch-col__ph { background: linear-gradient(135deg, #3a322c, #1a1614); }
.sf-branch-col__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 30%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0.05) 80%,
    transparent 100%
  );
  pointer-events: none;
}
.sf-branch-col__text {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  padding: 1rem 1.1rem 1.15rem;
  max-width: min(34rem, 92%);
  z-index: 1;
  text-align: start;
}
.sf-branch-col__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}
.sf-branch-col__text h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.sf-branch-col__desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Filters — RTL clean (Phase B fix) */
.sf-filters {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: #faf8f5;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
}
.sf-filters__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
}
.sf-filters__search {
  position: relative;
  flex: 1 1 220px;
  min-width: min(100%, 200px);
}
.sf-filters__search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 2.4rem 0.6rem 0.85rem;
  border: 1px solid #e5e0d8;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  color: #1a0a12;
}
.sf-filters__search input:focus {
  outline: none;
  border-color: #c4a35a;
  box-shadow: 0 0 0 3px rgba(196,163,90,0.15);
}
.sf-filters__search-ico {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  color: #9a928a;
  pointer-events: none;
  display: flex;
  line-height: 0;
}
.sf-filters__search-ico .sf-icon {
  width: 1em;
  height: 1em;
}
.sf-filters__select {
  padding: 0.55rem 0.85rem;
  border: 1px solid #e5e0d8;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  min-width: 7.5rem;
}
.sf-filters__submit {
  border-radius: 999px !important;
  padding: 0.55rem 1.15rem !important;
}
.sf-filters__reset {
  font-size: 0.85rem;
  color: #8a827a;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
}
.sf-filters__reset:hover { color: #1a0a12; }
.sf-filters__more {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: #6b6560;
}
.sf-filters__more summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.sf-filters__more summary::-webkit-details-marker { display: none; }
.sf-filters__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.sf-filters__price-row input {
  width: 8.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e5e0d8;
  border-radius: 10px;
  font: inherit;
  direction: ltr;
  text-align: left;
}
.sf-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.sf-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e0d8ce;
  color: #4a433c;
  font-size: 0.8rem;
  text-decoration: none;
}
.sf-chip:hover { border-color: #b89b72; }


/* Category layout: sidebar filters + toolbar */
.sf-cat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem 1.75rem;
  align-items: start;
}
@media (max-width: 900px) {
  .sf-cat-layout { grid-template-columns: 1fr; }
  /* bottom-sheet در بلوک پایین‌تر تعریف شده — اینجا static نگذار */
}
.sf-cat-sidebar {
  position: sticky;
  top: 5.5rem;
}
.sf-side-filters {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.15rem;
}
.sf-side-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.sf-side-filters__head .sf-side-filters__title {
  margin: 0;
}
.sf-side-filters__head .sf-side-filters__clear {
  flex-shrink: 0;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.sf-side-filters__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: #1a0a12;
}
.sf-side-filters__block {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.sf-side-filters__block:last-of-type { border-bottom: 0; }
.sf-side-filters__label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a433c;
}
.sf-side-filters__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e5e0d8;
  border-radius: 10px;
  font: inherit;
  background: #faf8f5;
}
.sf-side-filters__input:focus {
  outline: none;
  border-color: #c4a35a;
  background: #fff;
}
.sf-side-filters__checks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 12rem;
  overflow: auto;
}
.sf-side-filters__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #3d3832;
  cursor: pointer;
}
.sf-side-filters__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.sf-side-filters__apply { width: 100%; border-radius: 10px !important; }
/* clear دکمه outline در head — استایل اصلی از sf-btn--outline */

.sf-price-range__values {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.sf-price-range__val {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  direction: rtl;
  width: 100%;
}
/* راست‌ترین: از/تا — وسط: عدد — چپ‌ترین: تومان */
.sf-price-range__hint {
  color: #8a827a;
  font-size: 0.85rem;
  flex: 0 0 auto;
  min-width: 1.4rem;
  text-align: right;
}
.sf-price-range__num {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 0.95rem;
  font-family: var(--font-bold);
  color: #2c2a40;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(26, 10, 18, 0.12);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  background: #fff;
  direction: ltr;
}
.sf-price-range__num:focus {
  outline: none;
  border-color: var(--sf-primary, #ff4f9a);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.12);
}
.sf-price-range__unit {
  font-size: 0.75rem;
  color: #9a928a;
  flex: 0 0 auto;
  text-align: left;
}
.sf-price-range__slider {
  position: relative;
  height: 28px;
  direction: ltr;
}
.sf-price-range__slider input[type="range"] {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: transparent;
  height: 28px;
  direction: ltr;              /* ← تضمین LTR برای خودِ range */
}
.sf-price-range__slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #3b82f6;
  /* فقط لایه hitEl درگ می‌کند تا در RTL معکوس نشود */
  pointer-events: none;
  cursor: pointer;
}
.sf-price-range__slider input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  pointer-events: none;
  cursor: pointer;
}
.sf-price-range__track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
  z-index: 0;
}
.sf-price-range__slider::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
}
.sf-price-range__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #9a928a;
  direction: ltr;              /* ← تغییر مهم: هم‌راستا با اسلایدر */
}

.sf-cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sf-cat-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
}
.sf-cat-sort__label { color: #6b6560; margin-left: 0.25rem; }
.sf-cat-sort__item {
  color: #8a827a;
  text-decoration: none;
  padding: 0.15rem 0;
}
.sf-cat-sort__item:hover { color: #1a0a12; }
.sf-cat-sort__item.is-active {
  color: #e11d48;
  font-weight: 600;
}
.sf-cat-toolbar__count {
  color: #6b6560;
  font-size: 0.9rem;
  white-space: nowrap;
}
.sf-cat-toolbar__divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0.75rem 0 1.25rem;
}


/* Category product grid: 4 columns desktop */
.sf-cat-main .sf-product-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
/* کارت دسته: عنوان، سایز و قیمت وسط‌چین */
.sf-cat-main .sf-product-card__body h3,
.sf-cat-main .sf-product-card__body .sf-price,
.sf-cat-main .sf-product-card__size {
  text-align: center;
}
.sf-cat-main .sf-product-card__meta {
  justify-content: center;
  align-items: center;
}
@media (max-width: 1100px) {
  .sf-cat-main .sf-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .sf-cat-main .sf-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  /* موبایل: همچنان دو محصول در هر ردیف */
  .sf-cat-main .sf-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
}

/* Color swatches (sidebar) */
.sf-color-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem 0.4rem;
}
.sf-color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  margin: 0;
}
.sf-color-swatch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.sf-color-swatch__chip {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.sf-color-swatch__chip--all {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #f3f4f6 !important;
  font-size: 0.65rem;
  color: #6b7280;
}
.sf-color-swatch.is-active .sf-color-swatch__chip,
.sf-color-swatch:has(input:checked) .sf-color-swatch__chip {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b82f6;
  transform: scale(1.04);
}
.sf-color-swatch__name {
  font-size: 0.72rem;
  color: #5b564f;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Collapsible filter rows */
.sf-side-filters__search {
  margin-bottom: 0.75rem;
}
.sf-filter-acc {
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.sf-filter-acc__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c2a40;
  user-select: none;
}
.sf-filter-acc__sum::-webkit-details-marker { display: none; }
.sf-filter-acc__sum::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-inline-start: 0.65rem;
  margin-inline-end: 0.45rem;
  flex-shrink: 0;
}
.sf-filter-acc[open] > .sf-filter-acc__sum::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}
.sf-filter-acc__body {
  padding: 0 0 1rem;
}



/* —— Collection portrait slideshow (height capped to branch card) —— */
.sf-loc__mid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem 1.5rem;
  width: 100%;
}
/* عنوان کوچک بخش‌ها: «کالکشن‌ها» و «دسته‌بندی محصولات» */
.sf-loc__label {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-family: var(--font-bold);
  color: var(--sf-primary-dark);
  text-align: right;
}
.sf-loc__cats {
  flex: 0 1 680px;
  width: 100%;
  max-width: 680px;
  min-width: 0;
}
.sf-loc__cats .sf-loc__looks {
  max-width: none;
  margin-inline: 0;
}
.sf-loc__mid.has-cols .sf-loc__cats {
  flex: 0 1 680px;
}
.sf-col-slide {
  flex: 0 0 auto;
  width: 260px;
}
.sf-col-slide__track {
  position: relative;
  width: 260px;
  height: 360px; /* ≈ ارتفاع دو ردیف دسته */
  overflow: hidden;
  border-radius: 18px;
  background: #f3eef0;
  box-shadow: 0 6px 20px rgba(26, 10, 18, 0.1);
}
.sf-col-slide__item {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  border-radius: 16px;
  overflow: hidden;
}
.sf-col-slide__item.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.sf-col-slide__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
}
.sf-col-slide__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.sf-col-slide__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b4bc;
  background: #f3eef0;
}
.sf-col-slide__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 1.85rem 0.5rem 0.55rem;
  text-align: center;
  font-size: 0.95rem;
  font-family: var(--font-bold);
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(to top, rgba(10, 4, 8, 0.88) 0%, rgba(10, 4, 8, 0.45) 50%, transparent 100%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.sf-col-slide__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0;
}
.sf-col-slide__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #d4c4cc;
  cursor: pointer;
}
.sf-col-slide__dot.is-active {
  background: var(--sf-primary, #ff4f9a);
  transform: scale(1.2);
}
/* رسپانسیو: اسلایدشو کالکشن با عکس بنر (افقی، تمام‌عرض) */
@media (max-width: 900px) {
  .sf-col-slide {
    width: 100%;
  }
  .sf-col-slide__track {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 450;
  }
  .sf-loc__cats,
  .sf-loc__mid.has-cols .sf-loc__cats {
    flex: 1 1 100%;
    max-width: none;
  }
}


/* Placeholders + empty branch state */
.sf-ph {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, #f7f2f4 0%, #efe8eb 50%, #faf6f7 100%);
  color: #c4b0ba;
}
.sf-ph[hidden] {
  display: none !important;
}
.sf-ph .sf-icon {
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.55;
}
.sf-ph--cat {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}
.sf-ph--col {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  flex-direction: column;
  gap: 0.55rem;
  background:
    linear-gradient(165deg, #f0e8ec 0%, #e8dfe4 45%, #f5eef2 100%);
  border: 1px solid rgba(26, 10, 18, 0.06);
}
.sf-ph--col .sf-ph__icon {
  display: flex;
  opacity: 0.45;
}
.sf-ph--col .sf-ph__icon .sf-icon {
  width: 2rem;
  height: 2rem;
}
.sf-ph--col .sf-ph__label {
  font-size: 0.78rem;
  font-family: var(--font-bold);
  letter-spacing: 0.06em;
  color: #9a8a92;
}
.sf-look__img {
  position: relative;
  background: #f3eef0;
}
.sf-look__img .sf-ph--cat {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.sf-loc__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 2rem 1.25rem;
  min-height: 160px;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf7f8 0%, #f5f0f2 100%);
  border: 1px dashed rgba(26, 10, 18, 0.08);
}
.sf-loc__empty-icon {
  display: flex;
  color: var(--sf-primary, #ff4f9a);
  opacity: 0.7;
  margin-bottom: 0.25rem;
}
.sf-loc__empty-icon .sf-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.sf-loc__empty-title {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--font-bold);
  color: #2a1a22;
}
.sf-loc__empty-text {
  margin: 0;
  font-size: 0.84rem;
  color: #8a7a82;
  max-width: 22rem;
  line-height: 1.5;
}


/* Social brand logos (PNG) */
.sf-loc__social a .sf-icon--img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  display: block;
}
.sf-loc__social a.sf-social--bale,
.sf-loc__social a.sf-social--rubika {
  background: #f4f5f7;
  border-color: rgba(26, 10, 18, 0.06);
  padding: 0.35rem;
  box-sizing: border-box;
}


/* Branch page — collection banner slideshow */
.sf-branch-col-slide {
  margin: 0 0 1.75rem;
}
.sf-col-banner-swiper {
  border-radius: 18px;
  overflow: hidden;
  background: #1a0a12;
}
/* بنر تکی بدون کلاس‌های داخلی Swiper — ارتفاع از aspect-ratio می‌آید */
.sf-col-banner-swiper--single {
  display: block;
  width: 100%;
}
.sf-col-banner-swiper--single .sf-col-banner {
  display: block;
  width: 100%;
}
.sf-col-banner {
  display: block;
  text-decoration: none;
  color: #fff;
}
.sf-col-banner__media {
  position: relative;
  width: 100%;
  /* بنر دسکتاپ کالکشن: 1200×300 (۴:۱) — همان نسبت آپلود پنل */
  aspect-ratio: 4 / 1;
  overflow: hidden;
  background: #1a0a12;
}
.sf-col-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.sf-col-banner__ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a1a22, #4a2a38);
}
.sf-col-banner__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.1rem 1.25rem 1.2rem;
  text-align: right;
}
.sf-col-banner__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-family: var(--font-bold);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  /* خط دور حروف (stroke ساده، بدون blur/سایه) — ضخامت: ۱.۵px */
  text-shadow:
    -1.5px -1.5px 0 #0a0408, 0 -1.5px 0 #0a0408, 1.5px -1.5px 0 #0a0408,
    -1.5px 0 0 #0a0408,                            1.5px 0 0 #0a0408,
    -1.5px 1.5px 0 #0a0408,  0 1.5px 0 #0a0408,  1.5px 1.5px 0 #0a0408;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.sf-col-banner__tag {
  color: var(--sf-primary, #ff4f9a);
  font-size: 0.85em;
}
.sf-col-banner__meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  opacity: 0.9;
  color: #fff;
}
.sf-col-banner-swiper__pag {
  bottom: 0.65rem !important;
}
.sf-col-banner-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.45;
}
.sf-col-banner-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--sf-primary, #ff4f9a);
}
.sf-col-banner-swiper__nav {
  color: #fff;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 4, 8, 0.35);
  border-radius: 50%;
}
.sf-col-banner-swiper__nav::after {
  font-size: 0.85rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .sf-col-banner-swiper__nav {
    display: none;
  }
}


/* بنر کالکشن: دسکتاپ ۴:۱ (1200×300) · موبایل ۱۰:۷ (500×350) */
.sf-col-banner__media picture,
.sf-collection__hero-media picture {
  display: contents;
}
@media (max-width: 640px) {
  .sf-col-banner__media,
  .sf-collection__hero-media {
    aspect-ratio: 10 / 7;
  }
}

/* Branch page — contact footer */
.sf-branch-contact {
  margin: 2.5rem 0 1rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.sf-branch-contact__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem 1.15rem;
  max-width: 720px;
  margin-inline: auto;
}
.sf-branch-contact__card {
  flex: 1 1 280px;
  max-width: 340px;
  min-width: 0;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(26, 10, 18, 0.07);
  box-shadow: 0 6px 22px rgba(26, 10, 18, 0.04);
  box-sizing: border-box;
}
.sf-branch-contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  /* سوشال چسبیده به پایین کارت */
  min-height: 100%;
}
.sf-branch-contact__info .sf-branch-contact__social {
  margin-top: auto;
  padding-top: 0.85rem;
  justify-content: center;
  width: 100%;
}
.sf-branch-contact__hours {
  display: flex;
  flex-direction: column;
}
.sf-branch-contact__addr {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a3a42;
}
.sf-branch-contact__addr .sf-icon { color: var(--sf-primary); flex-shrink: 0; margin-top: 0.15rem; }
.sf-branch-contact__map {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-family: var(--font-bold);
  color: var(--sf-primary-dark);
  text-decoration: none;
}
.sf-branch-contact__map .sf-icon {
  color: var(--sf-primary);
  flex-shrink: 0;
}
.sf-branch-contact__map:hover { text-decoration: underline; }
.sf-branch-contact__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.sf-branch-contact__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #2a1a22;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}
.sf-branch-contact__tel .sf-icon { color: var(--sf-primary); }
.sf-branch-contact__tel:hover { color: var(--sf-primary-dark); }
.sf-branch-contact__social {
  margin-top: 0.35rem;
  justify-content: center;
}
.sf-branch-contact__hours .sf-loc__hours-title {
  text-align: center;
  width: 100%;
}
@media (max-width: 640px) {
  .sf-branch-contact__info,
  .sf-branch-contact__hours {
    flex: 1 1 100%;
  }
}

/* ============================================================
   Category: mobile filter bottom-sheet + sticky breadcrumb
   ============================================================ */

/* دکمه فیلتر موبایل — پیش‌فرض مخفی */
.sf-cat-filter-btn {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid #e5e0d8;
  border-radius: 999px;
  background: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  color: #1a0a12;
  cursor: pointer;
  margin: 0 0 0.85rem;
}
.sf-cat-filter-btn:hover { border-color: #c4a35a; }
.sf-cat-filter-btn .sf-icon { color: var(--sf-primary, #ff4f9a); }
.sf-cat-filter-btn__badge {
  background: var(--sf-primary, #ff4f9a);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-bold);
}

/* سرِ شیت موبایل — پیش‌فرض مخفی در دسکتاپ */
.sf-side-filters__mobile-head { display: none; }

@media (max-width: 900px) {
  .sf-cat-filter-btn { display: inline-flex; }

  /* سایدبار → Bottom-Sheet Modal */
  .sf-cat-layout { grid-template-columns: 1fr; }
  .sf-cat-sidebar {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    z-index: 1100;
    background: rgba(26, 10, 18, 0.5);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    order: 0 !important;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }
  .sf-cat-sidebar.is-open { display: flex; }
  body.sf-filter-open { overflow: hidden; }

  .sf-side-filters {
    background: #fff;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    overflow-y: auto;
    padding: 0 1.1rem 1.1rem;
    position: relative;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
    -webkit-overflow-scrolling: touch;
    animation: sfSheetUp 0.22s ease;
  }
  @keyframes sfSheetUp {
    from { transform: translateY(24px); opacity: 0.4; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .sf-side-filters__mobile-head {
    display: flex;
    position: sticky;
    top: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0 0.75rem;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0.75rem;
    z-index: 2;
  }
  .sf-side-filters__mobile-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #1a0a12;
  }
  .sf-side-filters__mobile-close {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: #f3f0f1;
    border-radius: 50%;
    font-size: 1.15rem;
    line-height: 1;
    color: #6b5e64;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* هدر دسکتاپ داخل شیت مخفی شود */
  .sf-side-filters > .sf-side-filters__head { display: none; }

  /* دکمه اعمال چسبیده به پایین شیت */
  .sf-side-filters__actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 0.75rem 0 0.35rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* ========== دسکتاپ: Breadcrumb ========== */
@media (min-width: 901px) {
  .sf-breadcrumb {
    margin: 0 0 1rem;
    padding: 0.35rem 0;
  }
  .sf-cat-sidebar { top: 6.1rem; }
}

/* PDP multi-photo thumbs */
.sf-pdp__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: flex-start;
}
.sf-pdp__thumb {
  width: 4.25rem;
  height: 5.3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f0f3;
  cursor: pointer;
  flex-shrink: 0;
}
.sf-pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-pdp__thumb.is-active {
  border-color: var(--sf-primary, #ff4f9a);
}
.sf-pdp__thumb:hover {
  border-color: rgba(255, 79, 154, 0.45);
}

/* ============================================================
   Collection album — overlay تمام‌صفحه، دو صفحه کنار هم
   ============================================================ */
body.sf-album-open { overflow: hidden; }

.sf-album {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: #1b1b1f;
  color: #f5f0e8;
}
.sf-album[hidden] { display: none; }

.sf-album__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  flex-shrink: 0;
}
.sf-album__bar-title {
  flex: 1;
  font-family: var(--font-bold);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-album__bar-meta {
  font-size: 0.85rem;
  opacity: 0.75;
  direction: ltr;
}
.sf-album__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.sf-album__close:hover { background: rgba(255, 255, 255, 0.22); }

.sf-album__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 0.75rem;
}
.sf-album__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.sf-album__nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.26); }
.sf-album__nav:disabled { opacity: 0.25; cursor: default; }

.sf-album__spread {
  flex: 1;
  min-width: 0;
  max-width: 980px;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0.5rem 0 1rem;
}
.sf-album__page {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #000;
  color: #f5f0e8;
  padding: 1.75rem 1.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
/* صفحه سیاه؛ با بردر روشن، هاله نور بیرونی و سایه داخلی کنار شیار جدا دیده می‌شود */
.sf-album__page--right {
  border-radius: 3px 12px 12px 3px;
  border-left: 0;
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.10),
    inset 14px 0 18px -12px rgba(255, 255, 255, 0.16);
}
.sf-album__page--left {
  border-radius: 12px 3px 3px 12px;
  border-right: 0;
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.10),
    inset -14px 0 18px -12px rgba(255, 255, 255, 0.16);
}
.sf-album__gutter {
  width: 3px;
  background: linear-gradient(to right, #3a3a3a, #777, #3a3a3a);
  flex-shrink: 0;
}
.sf-album__frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-album__frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.sf-album__frame.is-empty img { display: none; }
.sf-album__caption {
  flex-shrink: 0;
  min-height: 2.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.sf-album__name {
  color: inherit;
  font-family: var(--font-bold);
  font-size: 0.9rem;
  text-decoration: none;
}
.sf-album__name:hover { color: var(--sf-primary-dark, #e0367e); }
.sf-album__code { font-size: 0.75rem; opacity: 0.6; }
.sf-album__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.9;
}
.sf-album__meta-item { white-space: nowrap; }


.sf-album__hint {
  margin: 0;
  padding: 0.4rem 1rem 0.8rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.55;
  flex-shrink: 0;
}

/* آلبوم موبایل: عکس حداکثر، فلش‌ها زیر عکس */
@media (max-width: 767px) {
  .sf-album__bar {
    padding: 0.55rem 0.75rem;
  }
  .sf-album__stage {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.25rem 0 0.5rem;
    min-height: 0;
    flex: 1;
  }
  .sf-album__page--left,
  .sf-album__gutter {
    display: none !important;
  }
  .sf-album__spread {
    flex: 1 1 auto;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
  }
  .sf-album__page--right {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 0.25rem 0.5rem 0.35rem;
    background: transparent;
    gap: 0.45rem;
  }
  .sf-album__frame {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-height: none;
  }
  .sf-album__frame img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .sf-album__caption {
    min-height: 0;
    padding: 0 0.35rem;
  }
  .sf-album__nav {
    position: static;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    flex-shrink: 0;
  }
  /* ردیف فلش زیر عکس: با order در flex column */
  .sf-album__nav--prev {
    order: 3;
    align-self: center;
    margin-inline-end: 0.35rem;
  }
  .sf-album__nav--next {
    order: 4;
    align-self: center;
  }
  .sf-album__spread { order: 1; }
  /* wrap navs in visual row via negative margin trick: put both in one flex row using a wrapper alternative */
  .sf-album__stage {
    display: flex;
    flex-direction: column;
  }
  /* Place both arrows in a centered row after spread using grid on stage */
  .sf-album__stage {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-rows: 1fr auto auto;
    align-items: stretch;
    justify-items: center;
  }
  .sf-album__spread {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .sf-album__nav--prev {
    grid-column: 2;
    grid-row: 2;
    order: unset;
    margin: 0.15rem 0.25rem 0;
  }
  .sf-album__nav--next {
    grid-column: 3;
    grid-row: 2;
    order: unset;
    margin: 0.15rem 0.25rem 0;
  }
  .sf-album__hint {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 0.68rem;
    padding: 0.15rem 0.75rem 0.45rem;
  }
  .sf-album__meta {
    justify-content: center;
    font-size: 0.72rem;
  }
}

/* ============================================================
   Account area - one visual language for all tabs
   (summary / profile / tryons / favorites / rentals)
   ============================================================ */
.sf-account-main { min-width: 0; }

/* same header height on every tab so content starts at the same y */
.sf-account-main .sf-page-head {
  margin-bottom: 1.25rem;
  min-height: 3.6rem;
}
.sf-account-main .sf-page-head h1 {
  font-size: 1.4rem;
  line-height: 1.35;
}
.sf-account-main .sf-page-head .sf-muted {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

/* cards: same radius, border and shadow */
.sf-account-main :is(.sf-stat, .sf-tryon-card, .sf-rental-card, .sf-profile-card, .sf-rental-detail__product) {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(26, 10, 18, 0.05);
}
.sf-account-main .sf-tryon-card--upcoming { border-color: #f9a8d4; }

/* spacing: list gap only (no extra card margin) */
.sf-account-main .sf-rentals__list .sf-rental-card { margin-bottom: 0; }
.sf-account-main .sf-rentals__list,
.sf-account-main .sf-tryons__grid { gap: 0.85rem; }

/* buttons inside cards: one size */
.sf-account-main :is(.sf-tryon-card, .sf-rental-card, .sf-product-card) .sf-btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
}

/* favorites: column count fitted to the account content width */
.sf-account-main .sf-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .sf-account-main .sf-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .sf-account-main .sf-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* profile: full content width like the other tabs, fields stay narrow */
.sf-account-main .sf-profile-card {
  max-width: none;
  padding: 1.25rem 1.35rem 1.5rem;
}
.sf-account-main .sf-profile-card .sf-login-field { max-width: 420px; }
@media (min-width: 640px) {
  .sf-account-main .sf-profile-card__identity {
    flex-direction: row;
    align-items: center;
    text-align: start;
    gap: 1.5rem;
  }
}
/* ============================================================
   Product gallery: thumbs column (desktop) / row under image (mobile)
   + lightbox prev/next
   ============================================================ */
.sf-pdp__stage {
  display: flex; flex-direction: column; gap: 0.75rem;
  width: min(100%, 420px);
}
.sf-pdp__stage .sf-pdp__frame { width: 100%; }
/* mobile: all (max 4) photos in one row right under the main image */
.sf-pdp__stage .sf-pdp__thumbs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem; margin-top: 0;
}
.sf-pdp__stage .sf-pdp__thumb {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent;
  padding: 0; background: #f3eef1; cursor: pointer;
}
.sf-pdp__stage .sf-pdp__thumb.is-active {
  border-color: var(--sf-primary, #c02674);
}
.sf-pdp__stage .sf-pdp__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (min-width: 900px) {
  /* thumbs column کنار تصویر (RTL: row-reverse) */
  .sf-pdp__stage {
    flex-direction: row-reverse; align-items: flex-start;
    width: min(100%, 460px); gap: 0.75rem;
  }
  .sf-pdp__stage .sf-pdp__frame { flex: 1 1 auto; min-width: 0; width: auto; max-height: min(62vh, 520px); }
  .sf-pdp__stage .sf-pdp__thumbs {
    display: flex; flex-direction: column; flex: 0 0 3.75rem; gap: 0.5rem;
  }
  .sf-pdp__stage .sf-pdp__thumb { width: 3.75rem; }
}

.sf-lightbox__nav {
  position: absolute; top: 50%; z-index: 3;
  width: 3rem; height: 3rem; margin-top: -1.5rem;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff;
  font-size: 2rem; line-height: 1; padding: 0 0 0.25rem;
  cursor: pointer; transition: background 0.2s ease;
}
.sf-lightbox__nav[hidden] { display: none; }
.sf-lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.sf-lightbox__nav--prev { right: 0.75rem; }
.sf-lightbox__nav--next { left: 0.75rem; }
.sf-lightbox__count {
  position: relative; z-index: 1;
  margin: 0.6rem 0 0; color: #fff;
  font-size: 0.85rem; font-family: var(--font-bold);
}
.sf-lightbox__count[hidden] { display: none; }
@media (max-width: 640px) {
  .sf-lightbox__nav { width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; font-size: 1.7rem; }
  .sf-lightbox__nav--prev { right: 0.35rem; }
  .sf-lightbox__nav--next { left: 0.35rem; }
}
/* ---- Consultation modal ---- */
.sf-consult-bar {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem 0;
  margin-top: -0.5rem;
}
.sf-consult-bar .sf-btn { min-width: 12rem; }
.sf-modal[hidden] { display: none !important; }
.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 640px) {
  .sf-modal { align-items: center; padding: 1rem; }
}
.sf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 8, 0.55);
}
.sf-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(92vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1.25rem 1.15rem 1.5rem;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}
@media (min-width: 640px) {
  .sf-modal__panel {
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  }
}
.sf-modal__close {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
}
.sf-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  text-align: center;
}
.sf-modal__lead {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--sf-muted, #7d7177);
  text-align: center;
}
.sf-consult-form .sf-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.sf-consult-form .sf-field span { font-weight: 600; color: var(--sf-ink, #2a1720); }
.sf-consult-form input,
.sf-consult-form select,
.sf-consult-form textarea {
  border: 1px solid #eadfe4;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: #fff;
}
.sf-consult-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.sf-consult-form__product {
  font-size: 0.82rem;
  color: var(--sf-primary-dark, #7A183F);
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.7rem;
  background: #fff0f6;
  border-radius: 10px;
}
.sf-form-error {
  color: #b42318;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}
.sf-consult-success { text-align: center; padding: 1rem 0.5rem; }
.sf-consult-success__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #e8f8ef;
  color: #1b7a45;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}
.sf-consult-success__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.sf-pdp__actions .sf-consult-open { margin-top: 0.55rem; }

/* CTA مشاوره داخل کارت تماس مزون */
.sf-consult-bar--inline {
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  justify-content: stretch;
}
.sf-consult-bar--inline .sf-btn {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
}
.sf-branch-contact--consult-only {
  margin-top: 1.25rem;
  padding: 1rem;
}
.sf-branch-contact--consult-only .sf-consult-bar--inline {
  margin: 0;
}


/* ========== Mobile: مزون‌ها list — horizontal card like design (only mobile) ========== */
@media (max-width: 640px) {
  .sf-maison-grid {
    display: flex;
    flex-direction: column;
    gap: 15px; /* priority 3: slightly larger gap */
  }

  .sf-maison-card.sf-maison-card--rich {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 10px 12px 14px;
    border-radius: 20px;
    text-align: right;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.04);
    direction: ltr; /* logo left side like the design photo */
    min-height: 110px; /* priority 5: good tap target */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .sf-maison-card.sf-maison-card--rich:hover {
    transform: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  }

  /* hide banner/cover on mobile to match the clean card design */
  .sf-maison-card--rich .sf-maison-card__cover {
    display: none !important;
  }

  /* logo becomes fixed square on the side */
  .sf-maison-card--rich .sf-maison-card__media {
    margin: 0;
    width: 86px;
    height: 86px;
    min-width: 86px;
    max-width: 86px;
    border-radius: 16px;
    border: none;
    box-shadow: none;
    aspect-ratio: auto;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #fce7f3, #fff5f9); /* soft fallback, not gold */
  }

  .sf-maison-card--rich .sf-maison-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .sf-maison-card--rich .sf-maison-card__placeholder {
    min-height: 0;
    height: 100%;
    font-size: 1.75rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #fce7f3 0%, #fdf2f8 55%, #fff5f9 100%);
  }

  .sf-maison-card--rich .sf-maison-card__initial {
    font-size: 1.85rem;
    color: #be185d;
  }

  .sf-maison-card--rich .sf-maison-card__body {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    direction: rtl; /* keep Persian text RTL */
  }

  .sf-maison-card--rich .sf-maison-card__body h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
  }

  .sf-maison-card--rich .sf-maison-card__cities {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    font-size: 0.8rem !important;
    color: #888 !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    direction: rtl; /* pin on left of text like design photo */
  }

  .sf-maison-card__loc-icon {
    display: inline-flex;
    color: #e91e63;
    flex-shrink: 0;
  }

  .sf-maison-card__loc-icon .sf-icon {
    width: 14px;
    height: 14px;
  }

  .sf-maison-card__loc-text {
    line-height: 1.3;
  }

  /* hide stats on mobile to keep the clean look of the design */
  .sf-maison-card--rich .sf-maison-card__stats {
    display: none !important;
  }

  .sf-maison-card--rich .sf-maison-card__desc {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* priority 2: small arrow at the end of mobile card */
  .sf-maison-card--rich .sf-maison-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #c4a0ad;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease;
  }

  .sf-maison-card--rich:active .sf-maison-card__arrow,
  .sf-maison-card--rich:hover .sf-maison-card__arrow {
    color: #be185d;
    opacity: 1;
  }
}

/* desktop: hide location icon + arrow */
@media (min-width: 641px) {
  .sf-maison-card__loc-icon {
    display: none;
  }
  .sf-maison-card__arrow {
    display: none !important;
  }
}

/* ============================================================
   Discover / Index improvements (2026-11)
   ============================================================ */

/* ---- Index hero (maisons list) ---- */
.sf-index-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(145deg, #1a0a12 0%, #3d1428 55%, #6b2042 100%);
  border-radius: calc(var(--sf-radius) + 4px);
  color: #fff;
  box-shadow: var(--sf-shadow);
}
.sf-index-hero__text h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  color: #fff;
}
.sf-index-hero__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  max-width: 36rem;
  line-height: 1.65;
}
.sf-index-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}
.sf-index-hero__count {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
}
.sf-index-hero .sf-btn--primary {
  background: #fff;
  color: var(--sf-primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.sf-index-hero .sf-btn--primary:hover {
  background: #fff5f9;
  color: #be185d;
  transform: translateY(-2px);
}

/* ---- Empty state ---- */
.sf-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  margin: 1rem 0 2rem;
}
.sf-empty-state--compact {
  padding: 2rem 1.25rem;
}
.sf-empty-state__icon {
  font-size: 2.5rem;
  color: var(--sf-primary);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}
.sf-empty-state h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}
.sf-empty-state p {
  margin: 0 0 1.1rem;
  color: var(--sf-muted);
}
.sf-empty-state .sf-btn {
  margin-top: 0.35rem;
}

/* ---- Maison card tweaks ---- */
.sf-maison-card__cover {
  height: 110px;
}
.sf-maison-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-bold);
  background: #fff0f6;
  color: var(--sf-primary-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  border: 1px solid #fce7f3;
}
.sf-maison-card__desc {
  margin: 0.35rem 0 0 !important;
  font-size: 0.8rem !important;
  color: var(--sf-muted) !important;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Discover form ---- */
.sf-hero--discover {
  margin-bottom: 1.25rem;
}
.sf-discover-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.15rem 1rem;
  margin: 0 0 1.25rem;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: 0 6px 20px rgba(26, 10, 18, 0.04);
}
.sf-discover-form__primary,
.sf-discover-form__more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 0.85rem;
}
.sf-discover-field {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-bold);
  font-size: 0.88rem;
  color: var(--sf-ink);
}
.sf-discover-field select {
  min-width: 0;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-family: var(--font);
  color: var(--sf-ink);
  appearance: auto;
}
.sf-discover-field select:focus {
  outline: 2px solid rgba(255, 79, 154, 0.35);
  border-color: var(--sf-primary);
}
.sf-discover-more {
  border: 0;
  padding: 0;
}
.sf-discover-more summary {
  cursor: pointer;
  font-family: var(--font-bold);
  font-size: 0.88rem;
  color: var(--sf-primary-dark);
  padding: 0.35rem 0;
  list-style: none;
  user-select: none;
}
.sf-discover-more summary::-webkit-details-marker { display: none; }
.sf-discover-more summary::before {
  content: '+ ';
  font-weight: 700;
}
.sf-discover-more[open] summary::before {
  content: '− ';
}
.sf-discover-more .sf-discover-form__more {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--sf-border);
}
.sf-discover-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}
.sf-discover-clear {
  font-size: 0.9rem;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
}
.sf-discover-clear:hover {
  color: var(--sf-primary);
}

/* Active filter chips */
.sf-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
}
.sf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem 0.35rem 0.75rem;
  background: #fff0f6;
  border: 1px solid #fbcfe8;
  border-radius: 99px;
  color: var(--sf-primary-dark);
  font-size: 0.8rem;
  font-family: var(--font-bold);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sf-chip:hover {
  background: #fce7f3;
  border-color: #f9a8d4;
  color: #be185d;
}
.sf-chip__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(190, 24, 93, 0.12);
  font-size: 0.95rem;
  line-height: 1;
}

/* Discover sections */
.sf-discover-section {
  margin-bottom: 2.25rem;
}
.sf-discover-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.sf-discover-section__head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.sf-discover-count {
  font-size: 0.85rem;
  color: var(--sf-muted);
  background: #f3eef0;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
}
.sf-discover-empty {
  margin: 0 0 0.35rem;
  font-family: var(--font-bold);
  color: var(--sf-ink);
}
.sf-muted {
  color: var(--sf-muted);
}

.sf-discover-grid {
  display: grid;
  gap: 1rem;
}
.sf-discover-grid--products {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
}
.sf-discover-grid--maisons {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

/* Maison result cards on search */
.sf-discover-maison-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sf-discover-maison-card:hover {
  box-shadow: var(--sf-shadow);
  transform: translateY(-2px);
  color: inherit;
}
.sf-discover-maison-card__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: #f7f2f4;
}
.sf-discover-maison-card__img--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a88995;
  font-size: 1.1rem;
  font-family: var(--font-bold);
  background: linear-gradient(145deg, #fce7f3, #fff5f9);
}
.sf-discover-maison-card__body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  line-height: 1.35;
}
.sf-discover-maison-card__body p {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--sf-muted);
}

/* Pagination */
.sf-discover-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.75rem 0 0.5rem;
  flex-wrap: wrap;
}
.sf-discover-pagination__status {
  font-size: 0.88rem;
  color: var(--sf-muted);
  padding: 0.4rem 0.75rem;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 10px;
}

/* Mobile refinements */
@media (max-width: 640px) {
  .sf-index-hero {
    padding: 1.25rem 1.1rem;
    margin-bottom: 1.25rem;
  }
  .sf-index-hero__actions {
    width: 100%;
  }
  .sf-index-hero__actions .sf-btn {
    flex: 1 1 auto;
  }
  .sf-discover-form {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .sf-discover-actions {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    background: linear-gradient(to top, var(--sf-bg) 60%, transparent);
    padding: 0.75rem 0 0.15rem;
    margin: 0 -0.15rem;
  }
  .sf-discover-actions .sf-btn--primary {
    flex: 1 1 auto;
    width: 100%;
  }
  .sf-discover-grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .sf-maison-card__cover {
    height: 96px;
  }
  .sf-discover-maison-card {
    grid-template-columns: 56px 1fr;
  }
  .sf-discover-maison-card__img {
    width: 56px;
    height: 56px;
  }
}

/* ---- Maison filter form on /m ---- */
.sf-maison-filter {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 0.85rem;
  align-items: end;
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: 0 6px 20px rgba(26, 10, 18, 0.04);
}
.sf-maison-filter__field {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-bold);
  font-size: 0.88rem;
  color: var(--sf-ink);
  min-width: 0;
}
.sf-maison-filter__field input,
.sf-maison-filter__field select {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-family: var(--font);
  color: var(--sf-ink);
}
.sf-maison-filter__field input:focus,
.sf-maison-filter__field select:focus {
  outline: 2px solid rgba(255, 79, 154, 0.35);
  border-color: var(--sf-primary);
}
.sf-maison-filter__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.1rem;
}

/* Product card: maison (right) + city (left) under title */
.sf-product-card__maison {
  margin: 0.25rem 0 0.35rem !important;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--sf-muted);
}
.sf-product-card__maison-name {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  font-family: var(--font-bold);
  color: var(--sf-primary-dark);
}
.sf-product-card__maison-city {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  color: var(--sf-muted);
}
.sf-product-card__maison-ico {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  opacity: 0.85;
}
.sf-product-card__maison-ico .sf-icon {
  width: 0.95em;
  height: 0.95em;
}

@media (max-width: 720px) {
  .sf-maison-filter {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .sf-maison-filter__actions {
    width: 100%;
  }
  .sf-maison-filter__actions .sf-btn {
    flex: 1 1 auto;
  }
}

/* ---- Discover search layout (sidebar like category) ---- */
.sf-discover-layout {
  margin-top: 0.5rem;
}
.sf-discover-side {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 6.5rem);
  max-height: calc(100dvh - 6.5rem);
  padding-bottom: 0.85rem;
}
.sf-discover-side__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 0.15rem;
  margin-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.sf-discover-side .sf-side-filters__block {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0.85rem 0;
}
.sf-discover-side .sf-side-filters__block:first-child {
  padding-top: 0.15rem;
}
.sf-discover-side .sf-side-filters__actions {
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  bottom: 0;
  background: #fff;
}

.sf-discover-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.sf-discover-toolbar__meta {
  font-size: 0.9rem;
  color: var(--sf-muted);
}
.sf-discover-toolbar__meta strong {
  color: var(--sf-ink);
  font-family: var(--font-bold);
}

/* 4 products per row on desktop */
.sf-discover-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 700px) {
  .sf-discover-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .sf-discover-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sf-discover-side {
    max-height: none;
  }
  .sf-discover-side__scroll {
    max-height: min(60vh, 420px);
  }
}


/* Discover sidebar scroll when using category-style form */
.sf-discover-layout .sf-side-filters {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 6.5rem);
  max-height: calc(100dvh - 6.5rem);
}
.sf-discover-layout .sf-discover-side__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}
.sf-discover-layout .sf-side-filters__actions {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 0.5rem;
}

/* Page head: breadcrumb + mobile filter button on one row */
.sf-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  padding: 0.15rem 0;
}
.sf-page-head .sf-breadcrumb {
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.sf-page-head .sf-cat-filter-btn {
  margin: 0;
  flex-shrink: 0;
}
@media (min-width: 901px) {
  .sf-page-head {
    margin: 0 0 1rem;
    padding: 0.35rem 0;
  }
}
@media (max-width: 900px) {
  .sf-page-head {
    position: sticky;
    top: 3.4rem;
    z-index: 40;
    background: var(--sf-bg);
    padding: 0.35rem 0;
    margin: 0 0 0.75rem;
  }
  /* Standalone breadcrumb (maison, collection, product, …) */
  .sf-breadcrumb {
    margin: 0 0 0.75rem;
    padding: 0.15rem 0;
  }
  .sf-main {
    padding-top: 1rem;
  }
}

/* (replaced by city combo styles below) */

/* Choice grids: pills (2-col) + size squares (4-col) */
.sf-choice-grid {
  display: grid;
  gap: 0.45rem;
}
.sf-choice-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sf-choice-grid--pills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sf-choice-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Size uses same pills; denser grid helper */
.sf-choice-grid--pills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sf-choice-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  /* همه فیلترهای مستطیلی + سایز در موبایل: حداقل 4 در هر ردیف */
  .sf-choice-grid--2,
  .sf-choice-grid--pills,
  .sf-choice-grid--4,
  .sf-choice-grid--size {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .sf-choice-pill {
    min-height: 2.15rem;
    padding: 0.28rem 0.25rem;
    font-size: 0.7rem;
    border-radius: 8px;
    line-height: 1.2;
  }
  /* سایز در موبایل: مستطیل فشرده مثل بقیه */
  .sf-choice-size {
    aspect-ratio: auto;
    height: 2.15rem;
    min-height: 2.15rem;
    max-height: 2.15rem;
    font-size: 0.7rem;
    border-radius: 8px;
    padding: 0.28rem 0.25rem;
    font-family: var(--font);
  }
}
.sf-choice-pill,
.sf-choice-square {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--sf-border);
  background: #fff;
  color: var(--sf-ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sf-choice-pill input,
.sf-choice-square input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sf-choice-pill {
  min-height: 2.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.3;
}
.sf-choice-square {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  font-size: 0.78rem;
  font-family: var(--font-bold);
  padding: 0.25rem;
}
.sf-choice-pill.is-active,
.sf-choice-square.is-active,
.sf-choice-pill:has(input:checked),
.sf-choice-square:has(input:checked) {
  border-color: var(--sf-primary);
  background: #fff0f6;
  color: var(--sf-primary-dark);
  box-shadow: 0 0 0 1px rgba(255, 79, 154, 0.25);
}
.sf-choice-pill--all,
.sf-choice-square--all {
  border-style: dashed;
  color: var(--sf-muted);
}


/* Discover: full-width head divider on desktop */
@media (min-width: 901px) {
  .sf-discover-layout .sf-side-filters__head {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-inline: -1.1rem;
    padding-inline: 1.1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
  }
}

/* City searchable combo — label + field on one row */
.sf-loc-filters {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 0.15rem 0 0.9rem;
  margin-bottom: 0.15rem;
}
.sf-loc-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.sf-loc-inline__label {
  flex-shrink: 0;
  font-family: var(--font-bold);
  font-size: 0.9rem;
  color: var(--sf-ink);
  min-width: 2.2rem;
}
.sf-city-combo {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.sf-city-combo__input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-family: var(--font);
  color: var(--sf-ink);
}
.sf-city-combo__input:focus {
  outline: 2px solid rgba(255, 79, 154, 0.3);
  border-color: var(--sf-primary);
}
.sf-city-combo__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  inset-inline: 0;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(26, 10, 18, 0.12);
}
.sf-city-combo__item {
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
}
.sf-city-combo__item:hover,
.sf-city-combo__item.is-selected {
  background: #fff0f6;
  color: var(--sf-primary-dark);
}

/* Keep accordion arrows clear of scrollbar */
.sf-discover-layout .sf-discover-side__scroll {
  scrollbar-gutter: stable;
  padding-inline-start: 0.15rem;
  padding-inline-end: 0.55rem;
}
.sf-discover-layout .sf-filter-acc__sum {
  padding-inline-end: 0.15rem;
}


/* Category sidebar: full-width divider under "فیلترها" on desktop */
@media (min-width: 901px) {
  .sf-cat-layout .sf-side-filters__head {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-inline: -1.1rem;
    padding-inline: 1.1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
  }
}


/* Size choices: square on desktop (4/row), compact pills on mobile (4/row) */
.sf-choice-grid--size {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.sf-choice-size {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--sf-border);
  background: #fff;
  color: var(--sf-ink);
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  font-size: 0.78rem;
  font-family: var(--font-bold);
  padding: 0.25rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sf-choice-size input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sf-choice-size.is-active,
.sf-choice-size:has(input:checked) {
  border-color: var(--sf-primary);
  background: #fff0f6;
  color: var(--sf-primary-dark);
  box-shadow: 0 0 0 1px rgba(255, 79, 154, 0.25);
}
.sf-choice-size--all {
  border-style: dashed;
  color: var(--sf-muted);
}




/* ========== Search mobile filter-first — compact, no scroll ========== */
.sf-search-landing { display: none; }

@media (max-width: 900px) {
  .sf-search-page.is-filter-first .sf-search-landing {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .sf-search-page.is-filter-first .sf-search-results { display: none !important; }
  .sf-search-page.is-filter-first .sf-page-head .sf-cat-filter-btn { display: none !important; }
  /* Hide breadcrumb row on first visit — saves vertical space, no scroll */
  .sf-search-page.is-filter-first .sf-page-head--filter-first {
    display: none;
  }
  .sf-search-page.is-filter-first .sf-main {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  .sf-search-landing__form {
    display: flex;
    flex-direction: column;
  }

  .sf-search-landing__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.55rem;
    padding-bottom: 0;
  }

  .sf-float-field {
    position: relative;
    min-width: 0;
  }
  .sf-float-field--full {
    grid-column: 1 / -1;
  }
  .sf-float-field__control {
    width: 100%;
    height: 2.85rem;
    padding: 0.85rem 0.8rem 0.35rem;
    border: 1.5px solid #e4dce0;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-family: var(--font);
    font-size: 0.9rem;
    color: #1a0a12;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .sf-float-field__select {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 1.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a89aa3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.7rem center;
    background-size: 12px;
    cursor: pointer;
  }
  .sf-float-field__control:hover { border-color: #d4c4cb; }
  .sf-float-field__control:focus {
    outline: none;
    border-color: var(--sf-primary, #ff4f9a);
    box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.12);
  }

  .sf-float-field__label {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    left: auto;
    transform: translateY(-50%);
    margin: 0;
    padding: 0 0.15rem;
    background: transparent;
    font-size: 0.88rem;
    font-family: var(--font);
    color: #9a8b93;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease, background 0.15s ease;
    z-index: 2;
  }
  .sf-float-field:focus-within .sf-float-field__label,
  .sf-float-field.is-filled .sf-float-field__label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.68rem;
    font-family: var(--font-bold);
    color: #9a8b93;
    background: #fff;
    padding: 0 0.35rem;
  }
  .sf-float-field:focus-within .sf-float-field__label {
    color: var(--sf-primary, #ff4f9a);
  }

  .sf-float-field .sf-city-combo { position: relative; }
  .sf-float-field .sf-city-combo__input { background-image: none; }
  .sf-float-field .sf-city-combo__list {
    border-radius: 12px;
    border: 1px solid #eee4e8;
    box-shadow: 0 12px 28px rgba(26, 10, 18, 0.12);
    max-height: 200px;
  }
  .sf-float-field .sf-city-combo__item {
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
  }


  /* Pick dropdown — same look as city, no typing */
  .sf-pick {
    position: relative;
  }
  .sf-pick__btn {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: right;
    cursor: pointer;
    padding-left: 1.75rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a89aa3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.7rem center;
    background-size: 12px;
  }
  .sf-pick.is-open .sf-pick__btn {
    border-color: var(--sf-primary, #ff4f9a);
    box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.12);
  }
  .sf-pick__value {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #1a0a12;
  }
  .sf-pick__list {
    position: absolute;
    z-index: 25;
    top: calc(100% + 4px);
    inset-inline: 0;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid #eee4e8;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(26, 10, 18, 0.12);
  }
  .sf-pick__item {
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    cursor: pointer;
    color: #1a0a12;
  }
  .sf-pick__item:hover,
  .sf-pick__item.is-selected {
    background: #fff0f6;
    color: var(--sf-primary-dark, #7a183f);
  }

  .sf-landing-price {
    grid-column: 1 / -1;
    border: 1.5px solid #efe6ea;
    border-radius: 14px;
    padding: 0.7rem 0.8rem 0.65rem;
    background: #fff;
  }
  .sf-landing-price__title {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-family: var(--font-bold);
    color: #1a0a12;
  }
  .sf-landing-price__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
  }
  .sf-landing-price__card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
    background: #faf7f8;
    border: 1px solid #f0e6ea;
    min-width: 0;
  }
  .sf-landing-price__hint {
    flex-shrink: 0;
    font-size: 0.68rem;
    color: #9a8b93;
    font-family: var(--font-bold);
  }
  .sf-landing-price__num {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    font-family: var(--font-bold);
    color: #1a0a12;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  .sf-landing-price__unit {
    flex-shrink: 0;
    font-size: 0.62rem;
    color: #b0a3aa;
  }
  .sf-landing-price__slider {
    position: relative;
    height: 1.75rem;
    margin: 0 0.1rem;
  }
  .sf-landing-price__rail {
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 99px;
    background: #f0e6ea;
  }
  .sf-landing-price__track {
    position: absolute;
    top: 50%;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff7ab5 0%, var(--sf-primary, #ff4f9a) 100%);
    z-index: 1;
    pointer-events: none;
  }
  .sf-landing-price__slider input[type="range"] {
    position: absolute;
    left: 0; right: 0; top: 0;
    width: 100%; height: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
  }
  .sf-landing-price__slider input[type="range"]::-webkit-slider-runnable-track {
    height: 5px; background: transparent;
  }
  .sf-landing-price__slider input[type="range"]::-moz-range-track {
    height: 5px; background: transparent; border: none;
  }
  .sf-landing-price__slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    margin-top: -7.5px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--sf-primary, #ff4f9a);
    box-shadow: 0 2px 6px rgba(255, 79, 154, 0.3);
    pointer-events: auto;
    cursor: grab;
  }
  .sf-landing-price__slider input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--sf-primary, #ff4f9a);
    pointer-events: auto;
    cursor: grab;
  }
  .sf-landing-price__ends {
    display: flex;
    justify-content: space-between;
    margin-top: 0.2rem;
    font-size: 0.62rem;
    color: #b0a3aa;
  }

  /* Submit sits under price — NOT fixed to viewport footer */
  .sf-search-landing__actions {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
  }
  .sf-search-landing__apply {
    width: 100%;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-bold);
    box-shadow: 0 6px 18px rgba(255, 79, 154, 0.22);
  }
}

@media (min-width: 901px) {
  .sf-search-landing { display: none !important; }
  .sf-search-results { display: block; }
}

/* Filled float label — softer */
.sf-float-field.is-filled .sf-float-field__label {
  color: #b09aa5 !important;
  font-family: var(--font) !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.95;
}
.sf-float-field:focus-within .sf-float-field__label {
  color: var(--sf-primary, #ff4f9a) !important;
  font-family: var(--font-bold) !important;
  opacity: 1;
}


/* ===== Maison list filter: one-row float fields ===== */
.sf-maison-filter {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0;
  background: transparent;
  border: none;
}
.sf-maison-filter .sf-float-field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
.sf-maison-filter .sf-float-field__control {
  width: 100%;
  height: 2.85rem;
  padding: 0.85rem 0.75rem 0.35rem;
  border: 1.5px solid #e4dce0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-family: var(--font);
  font-size: 0.9rem;
  color: #1a0a12;
}
.sf-maison-filter .sf-float-field__control:focus {
  outline: none;
  border-color: var(--sf-primary, #ff4f9a);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.12);
}
.sf-maison-filter .sf-float-field__label {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 0.2rem;
  background: transparent;
  font-size: 0.88rem;
  color: #9a8b93;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease, background 0.15s ease;
  z-index: 2;
}
.sf-maison-filter .sf-float-field:focus-within .sf-float-field__label,
.sf-maison-filter .sf-float-field.is-filled .sf-float-field__label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.68rem;
  background: #fff;
  padding: 0 0.35rem;
  color: #b09aa5;
}
.sf-maison-filter .sf-float-field:focus-within .sf-float-field__label {
  color: var(--sf-primary, #ff4f9a);
}
.sf-maison-filter .sf-pick { position: relative; }
.sf-maison-filter .sf-pick__btn {
  display: flex;
  align-items: center;
  text-align: right;
  cursor: pointer;
  padding-left: 1.6rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a89aa3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.65rem center;
  background-size: 12px;
}
.sf-maison-filter .sf-pick__value {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-maison-filter .sf-pick__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  inset-inline: 0;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #eee4e8;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(26, 10, 18, 0.12);
}
.sf-maison-filter .sf-pick__item {
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.sf-maison-filter .sf-pick__item:hover,
.sf-maison-filter .sf-pick__item.is-selected {
  background: #fff0f6;
  color: var(--sf-primary-dark);
}
.sf-maison-filter__submit {
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4f9a 0%, #e83a84 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 79, 154, 0.28);
}
.sf-maison-filter__submit .sf-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #fff;
}
.sf-maison-filter__submit:hover {
  filter: brightness(1.03);
}
.sf-maison-filter__clear {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--sf-muted);
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
}
.sf-maison-filter__clear:hover {
  background: #fff0f6;
  color: var(--sf-primary-dark);
}

@media (min-width: 901px) {
  .sf-maison-filter {
    gap: 0.65rem;
    margin-bottom: 1.35rem;
  }
  .sf-maison-filter .sf-float-field__control,
  .sf-maison-filter__submit {
    height: 3.1rem;
  }
  .sf-maison-filter__submit {
    width: 3.1rem;
  }
}

/* ===== Maison filter: centered white card on desktop ===== */
.sf-maison-filter {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
@media (min-width: 901px) {
  .sf-maison-filter {
    max-width: 42rem;
    margin: 0 auto 1.75rem;
    padding: 0.85rem 1rem;
    gap: 0.65rem;
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(26, 10, 18, 0.06);
  }
  .sf-maison-filter .sf-float-field__control,
  .sf-maison-filter__submit {
    height: 3rem;
  }
  .sf-maison-filter__submit {
    width: 3rem;
  }
}

/* ===== Maison cards: same horizontal layout mobile + desktop ===== */
.sf-maison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .sf-maison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}
@media (min-width: 901px) {
  .sf-maison-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.sf-maison-card.sf-maison-card--rich {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.75rem;
  text-align: right;
  padding: 0.75rem 0.85rem;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--sf-border);
  box-shadow: 0 6px 20px rgba(26, 10, 18, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.sf-maison-card.sf-maison-card--rich:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(122, 24, 63, 0.12);
  color: inherit;
}
.sf-maison-card--rich .sf-maison-card__cover {
  display: none !important;
}
.sf-maison-card--rich .sf-maison-card__media {
  flex: 0 0 auto !important;
  width: 80px !important;
  height: 80px !important;
  margin: 0 !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  border-radius: 5px !important;
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
  background: linear-gradient(145deg, #fce7f3, #fff5f9);
}
.sf-maison-card--rich .sf-maison-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-maison-card--rich .sf-maison-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fce7f3, #fff5f9);
  font-size: 1.35rem;
}
.sf-maison-card--rich .sf-maison-card__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 !important;
  text-align: right !important;
}
.sf-maison-card--rich .sf-maison-card__body h2 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.35;
}
.sf-maison-card--rich .sf-maison-card__cities {
  margin: 0 0 0.25rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem !important;
  color: var(--sf-muted) !important;
  font-family: var(--font) !important;
}
.sf-maison-card--rich .sf-maison-card__loc-icon {
  display: inline-flex;
  color: var(--sf-primary);
}
.sf-maison-card--rich .sf-maison-card__loc-icon .sf-icon {
  width: 0.85rem;
  height: 0.85rem;
}
.sf-maison-card--rich .sf-maison-card__desc {
  display: -webkit-box !important;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--sf-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-maison-card--rich .sf-maison-card__stats {
  display: none !important;
}
.sf-maison-card--rich .sf-maison-card__arrow {
  display: none !important;
}
.sf-maison-card--rich .sf-maison-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.35;
}
.sf-maison-card--rich .sf-maison-card__title-ico {
  display: inline-flex;
  color: var(--sf-primary);
}
.sf-maison-card--rich .sf-maison-card__title-ico .sf-icon {
  width: 0.95rem;
  height: 0.95rem;
}
.sf-maison-card--rich .sf-maison-card__title-prefix {
  color: var(--sf-muted);
  font-family: var(--font);
  font-size: 0.82em;
  font-weight: 400;
}
.sf-maison-card--rich .sf-maison-card__title-name {
  font-family: var(--font-bold);
}

@media (min-width: 901px) {
  .sf-maison-card--rich .sf-maison-card__media {
    width: 80px !important;
    height: 80px !important;
    border-radius: 5px !important;
  }
  .sf-maison-card--rich .sf-maison-card__body h2 {
    font-size: 1rem;
  }
  .sf-maison-card--rich .sf-maison-card__cities {
    font-size: 0.78rem !important;
  }
  .sf-maison-card--rich .sf-maison-card__desc {
    font-size: 0.75rem;
  }
}


/* ===== Homepage: swiper + owner CTA ===== */
.sf-home-filter {
  margin-bottom: 1.15rem;
}
.sf-home-maisons {
  margin-bottom: 1.5rem;
}

.sf-swiper.sf-home-swiper {
  padding-inline: 0;
  padding-bottom: 2rem;
  overflow: hidden;
}
.sf-home-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}
.sf-home-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
  width: auto;
}
.sf-home-swiper .sf-maison-card--rich {
  height: 100%;
  min-height: 5.5rem;
}
.sf-home-swiper__pagination {
  bottom: 0 !important;
}
.sf-home-swiper__pagination .swiper-pagination-bullet {
  background: #c4b5bc;
  opacity: 1;
}
.sf-home-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--sf-primary, #ff4f9a);
}

.sf-home-all-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  height: 100%;
  min-height: 5.5rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1.5px dashed #f3c4d8;
  background: linear-gradient(135deg, #fff7fa 0%, #fff 100%);
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}
.sf-home-all-card:hover {
  border-color: var(--sf-primary);
  color: inherit;
  box-shadow: 0 8px 24px rgba(255, 79, 154, 0.12);
}
.sf-home-all-card__icon {
  display: inline-flex;
  color: var(--sf-primary);
}
.sf-home-all-card__icon .sf-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.sf-home-all-card__title {
  font-family: var(--font-bold);
  font-size: 0.98rem;
  color: var(--sf-ink);
}
.sf-home-all-card__meta {
  font-size: 0.78rem;
  color: var(--sf-muted);
}
.sf-home-all-card__cta {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-family: var(--font-bold);
  color: var(--sf-primary-dark);
}

.sf-home-owner-cta {
  margin: 0.5rem 0 0.5rem;
}
.sf-home-owner-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a0a12 0%, #4a1530 55%, #7a183f 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(26, 10, 18, 0.18);
}
.sf-home-owner-cta__text h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #fff;
}
.sf-home-owner-cta__text p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}
.sf-home-owner-cta .sf-btn--primary {
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(255, 79, 154, 0.35);
}

.sf-footer__dot {
  margin: 0 0.35rem;
  opacity: 0.55;
}
.sf-footer__muted a {
  color: var(--sf-primary-dark);
  text-decoration: none;
}
.sf-footer__muted a:hover {
  color: var(--sf-primary);
}

.sf-home-swiper__nav {
  color: var(--sf-primary-dark);
  width: 2rem;
  height: 2rem;
  margin-top: 0;
  top: 42%;
}
.sf-home-swiper__nav:after {
  font-size: 1rem;
  font-weight: 700;
}
.sf-home-swiper .swiper-button-disabled {
  opacity: 0.25;
}
@media (max-width: 639px) {
  .sf-home-swiper__nav { display: none; }
}


/* ===== Homepage Instagram-style maison cards ===== */
.sf-home-ig-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sf-border);
  box-shadow: 0 4px 14px rgba(26, 10, 18, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sf-home-ig-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(122, 24, 63, 0.12);
  color: inherit;
}
.sf-home-ig-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #fce7f3, #fff5f9);
  overflow: hidden;
}
.sf-home-ig-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-home-ig-card__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-size: 1.75rem;
  color: #be185d;
}
.sf-home-ig-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.35rem 0.4rem 0.45rem;
  text-align: center;
  min-width: 0;
}
.sf-home-ig-card__name,
.sf-home-ig-card__city {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-home-ig-card__name {
  font-family: var(--font-bold);
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--sf-ink);
}
.sf-home-ig-card__city {
  font-size: 0.65rem;
  color: var(--sf-muted);
}
.sf-home-ig-card__ico {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--sf-primary);
}
.sf-home-ig-card__ico .sf-icon {
  width: 0.78rem;
  height: 0.78rem;
}
.sf-home-ig-card__city .sf-home-ig-card__ico {
  color: var(--sf-primary);
}
@media (min-width: 901px) {
  .sf-home-ig-card {
    border-radius: 12px;
  }
  .sf-home-ig-card__meta {
    padding: 0.3rem 0.35rem 0.4rem;
  }
  .sf-home-ig-card__name { font-size: 0.7rem; }
  .sf-home-ig-card__city { font-size: 0.62rem; }
  .sf-home-maisons {
    margin-bottom: 1rem;
  }
  .sf-home-filter {
    margin-bottom: 0.85rem;
  }
  .sf-home-owner-cta__inner {
    padding: 0.85rem 1rem;
  }
  .sf-home-swiper {
    padding-bottom: 1.35rem;
  }
}

.sf-home-all-card.sf-home-ig-all {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 1rem 0.75rem;
}
.sf-home-swiper .sf-home-ig-card,
.sf-home-swiper .sf-home-all-card {
  min-height: auto;
}
.sf-home-swiper {
  padding-bottom: 1.6rem;
}


/* ===== Home mobile tabs + owner actions ===== */
.sf-home-tabs {
  display: none;
}
.sf-home-filter--desktop {
  display: flex;
}
@media (max-width: 900px) {
  .sf-home-filter--desktop {
    display: none !important;
  }
  .sf-home-tabs {
    display: block;
    margin: 0 0 1rem;
    padding: 0.65rem 0.7rem 0.75rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--sf-border);
    box-shadow: 0 6px 20px rgba(26, 10, 18, 0.05);
  }
  .sf-home-tabs__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: #f6f1f3;
  }
  .sf-home-tabs__tab {
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 0.4rem;
    background: transparent;
    font: inherit;
    font-family: var(--font-bold);
    font-size: 0.82rem;
    color: var(--sf-muted);
    cursor: pointer;
  }
  .sf-home-tabs__tab.is-active {
    background: #fff;
    color: var(--sf-primary-dark);
    box-shadow: 0 2px 8px rgba(26, 10, 18, 0.08);
  }
  .sf-home-tabs__panel[hidden] {
    display: none !important;
  }
  .sf-home-filter--mobile {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  /* Reuse float/pick field look inside home dress tab */
  .sf-home-tabs .sf-search-landing__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.55rem;
  }
  .sf-home-tabs .sf-float-field {
    position: relative;
    min-width: 0;
  }
  .sf-home-tabs .sf-float-field--full {
    grid-column: 1 / -1;
  }
  .sf-home-tabs .sf-float-field__control {
    width: 100%;
    height: 2.85rem;
    padding: 0.85rem 0.8rem 0.35rem;
    border: 1.5px solid #e4dce0;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-family: var(--font);
    font-size: 0.9rem;
    color: #1a0a12;
  }
  .sf-home-tabs .sf-float-field__label {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
    margin: 0;
    padding: 0 0.15rem;
    background: transparent;
    font-size: 0.88rem;
    color: #9a8b93;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease, background 0.15s ease;
    z-index: 2;
  }
  .sf-home-tabs .sf-float-field:focus-within .sf-float-field__label,
  .sf-home-tabs .sf-float-field.is-filled .sf-float-field__label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.68rem;
    background: #fff;
    padding: 0 0.35rem;
  }
  .sf-home-tabs .sf-float-field:focus-within .sf-float-field__label {
    color: var(--sf-primary);
  }
  .sf-home-tabs .sf-pick__btn {
    display: flex;
    align-items: center;
    text-align: right;
    cursor: pointer;
    padding-left: 1.75rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a89aa3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.7rem center;
    background-size: 12px;
  }
  .sf-home-tabs .sf-pick__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    inset-inline: 0;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0.3rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid #eee4e8;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(26, 10, 18, 0.12);
  }
  .sf-home-tabs .sf-pick__item {
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
    cursor: pointer;
  }
  .sf-home-tabs .sf-pick__item:hover,
  .sf-home-tabs .sf-pick__item.is-selected {
    background: #fff0f6;
  }
  .sf-home-tabs .sf-landing-price {
    grid-column: 1 / -1;
  }
  .sf-home-tabs .sf-search-landing__actions {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
  }
  .sf-home-tabs .sf-search-landing__apply {
    width: 100%;
    border-radius: 12px;
  }

  .sf-home-owner-cta__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .sf-home-owner-cta__text {
    text-align: center;
  }
  .sf-home-owner-cta__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }
  .sf-home-owner-cta__actions .sf-btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

.sf-home-owner-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.sf-btn--owner-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-bold);
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf-btn--owner-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

@media (min-width: 901px) {
  .sf-home-tabs {
    display: none !important;
  }
  .sf-home-filter--desktop {
    display: flex;
  }
}


/* Home: swiper inside maison tab on mobile; desktop clone outside tabs */
.sf-home-maisons--desktop { display: none; }
.sf-home-maisons--in-tab { display: block; margin: 0.85rem 0 0; }
@media (min-width: 901px) {
  .sf-home-maisons--desktop { display: block; }
  .sf-home-maisons--in-tab { display: none !important; }
}
@media (max-width: 900px) {
  .sf-home-maisons--desktop { display: none !important; }
}

.sf-home-tabs .sf-home-maisons--in-tab {
  width: 100%;
  max-width: 100%;
  margin-top: 0.85rem;
}
.sf-home-tabs .sf-home-swiper {
  width: 100%;
  overflow: hidden;
}
.sf-home-tabs .sf-home-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}


/* ===== Desktop home hero ===== */
.sf-home-hero {
  display: none;
}
@media (min-width: 901px) {
  .sf-home-hero {
    display: block;
    margin: 0 auto 1.35rem;
    max-width: 52rem;
  }
  .sf-home-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #fff5f9 55%, #ffe8f2 100%);
    border: 1px solid #f0dfe6;
    box-shadow: 0 10px 32px rgba(122, 24, 63, 0.08);
  }
  .sf-home-hero__text {
    min-width: 0;
    flex: 1 1 auto;
  }
  .sf-home-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--sf-ink);
  }
  .sf-home-hero__sub {
    margin: 0;
    font-size: 0.92rem;
    color: var(--sf-muted);
    line-height: 1.55;
  }
  .sf-home-hero__btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}


/* ===== Home mobile: maison card text a bit larger (readability) ===== */
@media (max-width: 900px) {
  .sf-home-ig-card__name { font-size: 0.8rem; }
  .sf-home-ig-card__city { font-size: 0.7rem; }
  .sf-home-ig-card__meta { padding: 0.45rem 0.45rem 0.55rem; }
}

/* ===== Home UX polish: discover shell + mobile tagline + swiper peek ===== */
.sf-home-mobile-tagline {
  display: none;
}
@media (max-width: 900px) {
  .sf-home-mobile-tagline {
    display: block;
    margin: 0 0 0.65rem;
    padding: 0 0.15rem;
    text-align: center;
    font-family: var(--font-bold);
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--sf-ink);
  }
  .sf-home-tabs {
    margin-top: 0;
  }
  /* Swiper peek + full width inside tab */
  .sf-home-tabs .sf-home-maisons--in-tab {
    margin-inline: -0.15rem;
  }
  .sf-home-tabs .sf-home-swiper {
    padding: 0.25rem 0.15rem 1.5rem;
    overflow: hidden;
  }
  .sf-home-tabs .sf-home-swiper .swiper-wrapper {
    align-items: stretch;
  }
  .sf-home-tabs .sf-home-swiper .swiper-slide {
    height: auto;
    opacity: 1;
  }
  .sf-home-tabs .sf-home-swiper__pagination {
    bottom: 0 !important;
  }
}

.sf-home-discover {
  display: none;
}
@media (min-width: 901px) {
  .sf-home-discover {
    display: block;
    max-width: 52rem;
    margin: 0 auto 1.25rem;
    padding: 1.15rem 1.25rem 1.2rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
    border: 1px solid #f0dfe6;
    box-shadow: 0 12px 36px rgba(122, 24, 63, 0.08);
  }
  .sf-home-discover .sf-home-hero {
    display: block;
    margin: 0 0 0.95rem;
    max-width: none;
  }
  .sf-home-discover .sf-home-hero__inner {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .sf-home-discover .sf-maison-filter.sf-home-filter--desktop {
    max-width: none;
    margin: 0;
    padding: 0.75rem 0.85rem;
    background: #fff;
    border: 1px solid #efe4e9;
    border-radius: 14px;
    box-shadow: none;
  }
  /* hide old standalone hero rules conflict - hero outside discover should not show */
  .sf-home-hero {
    display: none;
  }
  .sf-home-discover .sf-home-hero {
    display: block;
  }
}

/* Desktop: less gap between topbar and breadcrumb */
@media (min-width: 901px) {
  .sf-main {
    padding-top: 0.65rem;
  }
  .sf-breadcrumb {
    margin-top: 0;
    margin-bottom: 0.85rem;
    padding-top: 0.1rem;
    padding-bottom: 0.2rem;
  }
  .sf-page-head {
    margin-top: 0;
    margin-bottom: 0.85rem;
    padding-top: 0.1rem;
    padding-bottom: 0.2rem;
  }
}

/* =====================================================================
   HOME v2 — customer-first landing  (classes: .sf-hp-*)
   Mobile-first. Tokens reuse --sf-* ; hero gradient = placeholder gradient.
   ===================================================================== */
.sf-hp {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.sf-hp [hidden] { display: none !important; }

/* ---- Hero (full-bleed) ---- */
.sf-main { overflow-x: clip; }
.sf-hp-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: -1.5rem;               /* cancel .sf-main top padding */
  background: radial-gradient(circle at 75% 45%, #f9dfe8 0, rgba(249,223,232,0) 31%), linear-gradient(150deg, #fffdfb 20%, #fff5f7 100%);
  border: 0;
  border-radius: 0;
}
.sf-hp-hero::before,
.sf-hp-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sf-hp-hero::before {            /* big soft circle, left edge */
  width: clamp(110px, 12vw, 230px);
  aspect-ratio: 1;
  left: calc(clamp(110px, 12vw, 230px) / -2.4);
  top: 12%;
  background: #fbe4ed;
  opacity: 0.8;
  filter: blur(3px);
}
.sf-hp-hero::after {             /* small dot, bottom right */
  width: clamp(36px, 3.2vw, 60px);
  aspect-ratio: 1;
  right: 4%;
  bottom: 9%;
  background: #efb5ca;
  opacity: 0.85;
  filter:blur(3px)
}
.sf-hp-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
  max-width: 1308px;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 4.5rem) clamp(1rem, 5vw, 4rem);
}
.sf-hp-hero__main { min-width: 0; }
.sf-hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0dfe6;
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
  font-size: 0.82rem;
}
.sf-hp-eyebrow__ico { font-size: 0.85rem; line-height: 1; }
.sf-hp-hero__title {
  margin: 1.5rem 0 1.1rem;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1.4;
  color: var(--sf-ink);
}
.sf-hp-hero__hl {
  position: relative;
  display: inline-block;
  color: var(--sf-primary-dark);
}
.sf-hp-hero__hl::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -4px;
  width: 95%;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg width='200' height='8' viewBox='0 0 200 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6c55-4 116-6 196-3' stroke='%23ed3f86' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.sf-hp-hero__sub {
  margin: 0 0 1.9rem;
  max-width: 38rem;
  color: var(--sf-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 2.1;
}

/* search bar: keyword + city + action */
.sf-hp-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 42rem;
  padding: 0.6rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #f3dfe8;
  box-shadow: 0 14px 36px rgba(122, 24, 63, 0.08);
}
.sf-hp-search__field { position: relative; min-width: 0; flex: 1 1 100%; }
.sf-hp-search__fico {
  position: absolute;
  inset-inline-start: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sf-muted);
  pointer-events: none;
  display: flex;
}
.sf-hp-search__fico svg { width: 18px; height: 18px; display: block; }
.sf-hp-search input,
.sf-hp-search select {
  width: 100%;
  height: 56px;
  padding: 0 2.8rem;
  border: 1.5px solid var(--sf-border);
  border-radius: 14px;
  background-color: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--sf-ink);
}
.sf-hp-search input::placeholder { color: #9a8f95; }
.sf-hp-search select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-inline-end: 1.9rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236b5e64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: left 0.9rem center;
}
.sf-hp-search input:focus-visible,
.sf-hp-search select:focus-visible {
  outline: 3px solid rgba(255, 79, 154, 0.25);
  border-color: var(--sf-primary);
}
.sf-hp-search .sf-city-combo__input {
  height: 56px;
  padding: 0 2.8rem;
  border: 1.5px solid var(--sf-border);
  border-radius: 14px;
  font-size: 16px;                 /* no iOS zoom on focus */
  -webkit-appearance: none;
  appearance: none;
}
.sf-hp-search .sf-city-combo__list { top: calc(100% + 6px); border-radius: 14px; max-height: min(15rem, 45vh); z-index: 30; }
.sf-hp-search .sf-city-combo__item { padding: 0.65rem 0.9rem; font-size: 0.95rem; }
.sf-hp-search__btn {
  flex: 1 1 100%;
  height: 56px;
  padding-inline: 1.6rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0408e, #dd2a7b);
  color: #fff;
  font-size: 1rem;
  gap: 0.5rem;
  box-shadow: 0 10px 22px rgba(221, 42, 123, 0.3);
}
.sf-hp-search__btn:hover { color: #fff; filter: brightness(1.05); }
.sf-hp-search__ico svg { width: 18px; height: 18px; display: block; }

.sf-hp-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0 0.4rem;
  font-size: 0.82rem;
  color: var(--sf-muted);
}
.sf-hp-hero__trust li { display: inline-flex; align-items: center; gap: 0.35rem; }
.sf-hp-hero__tico { display: inline-flex; color: var(--sf-primary); }
.sf-hp-hero__tico svg { width: 15px; height: 15px; display: block; }

/* visual: arch photo + floating cards (decorative) */
.sf-hp-hero__visual {
  position: relative;
  width: min(100%, 26rem);
  margin-inline: auto;
}
.sf-hp-hero__frame {
  aspect-ratio: 1 / 1.07;
  overflow: hidden;
  border-radius: 999px 999px 36px 36px;
  background: linear-gradient(160deg, #e9ddd9, #cbbdb8);
  box-shadow: 0 30px 60px rgba(122, 24, 63, 0.14);
}
.sf-hp-hero__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sf-hp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(26, 10, 18, 0.12);
  line-height: 1.5;
}
.sf-hp-float strong { display: block; font-family: var(--font-bold); font-size: 0.82rem; color: var(--sf-ink); }
.sf-hp-float small { display: block; font-size: 0.7rem; color: var(--sf-muted); }
.sf-hp-float--ready { top: 15%; right: -1rem; }
.sf-hp-float--rate  { bottom: 6%; left: -1rem; }
.sf-hp-float__dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #d6f3e4; position: relative;
}
.sf-hp-float__dot::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #22b573;
}
.sf-hp-float__star { color: #e8a21b; font-size: 1.2rem; line-height: 1; }

@media (min-width: 640px) {
  .sf-hp-search__field--q { flex: 1 1 14rem; }
  .sf-hp-search__field--city { flex: 0 1 10.5rem; }
  .sf-hp-search__btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .sf-hp-hero { min-height: min(46rem, calc(100vh - 5rem)); display: flex; align-items: center; }
  .sf-hp-hero__inner {
    width: 100%;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 3rem;
  }
  .sf-hp-hero__visual { width: min(100%, 33rem); }
}
@media (max-width: 480px) {
  .sf-hp-float--ready { right: 0; }
  .sf-hp-float--rate { left: 0; }
}

/* ---- Generic section ---- */
.sf-hp-section {
  min-width: 0;
}
.sf-hp-section,
.sf-hp-new,
.sf-hp-how,
.sf-hp-styles,
.sf-hp-signup {
  width: min(1180px, 100%);   /* single content width for every home section */
  margin-inline: auto;
}



.sf-hp-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.sf-hp-section__title { margin: 0; font-size: clamp(1.15rem, 3.2vw, 1.55rem); color: var(--sf-ink); text-wrap: balance; }
.sf-hp-section__hint { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--sf-muted); }
.sf-hp-section__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--sf-primary);
  color: var(--sf-primary-dark);
  font-family: var(--font-bold);
  font-size: 0.84rem;
  white-space: nowrap;
}
.sf-hp-section__link:hover,
.sf-hp-section__link:focus-visible { background: rgba(255, 79, 154, 0.09); color: var(--sf-primary-dark); }

/* ---- Featured maisons (dark full-bleed band) ---- */
.sf-hp-maisons {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  background:
    radial-gradient(60rem 28rem at 0% 0%, rgba(122, 30, 78, 0.75), transparent 70%),
    #3b0a26;
  color: #fff;
}
.sf-hp-maisons__inner { max-width: 1244px; margin-inline: auto; padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2rem); }
.sf-hp-maisons__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.sf-hp-maisons__eyebrow { font-family: var(--font-bold); font-size: 0.82rem; color: #ff7db4; }
.sf-hp-maisons__title { margin: 0.5rem 0 0.7rem; font-size: clamp(1.5rem, 4vw, 2.9rem); line-height: 1.5; color: #fff; }
.sf-hp-maisons__sub { margin: 0; font-size: clamp(0.85rem, 1.8vw, 0.98rem); color: rgba(255, 255, 255, 0.62); }
.sf-hp-maisons__all {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  background: #fbf1f5; color: #3b0a26;
  font-family: var(--font-bold); font-size: 0.95rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.sf-hp-maisons__all:hover { color: #3b0a26; background: #fff; transform: translateY(-2px); }
.sf-hp-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.sf-hp-mcard {
  display: flex; flex-direction: column; min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: var(--sf-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sf-hp-mcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); color: var(--sf-ink); }
.sf-hp-mcard__media { aspect-ratio: 1 / 1; background: #f6eef2; overflow: hidden; }
.sf-hp-mcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sf-hp-mcard__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-bold); font-size: 3.5rem; color: #fff; background: linear-gradient(145deg, #f0408e, #7a183f); }
.sf-hp-mcard__foot { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem; }
.sf-hp-mcard__ico {
  flex: none; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: #fdeaf2; color: var(--sf-primary);
}
.sf-hp-mcard__ico svg { width: 20px; height: 20px; display: block; }
.sf-hp-mcard__meta { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.sf-hp-mcard__meta strong { font-family: var(--font-bold); font-size: 0.92rem; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-hp-mcard__meta > span { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; color: var(--sf-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-hp-mcard__pin { display: inline-flex; flex: none; }
.sf-hp-mcard__pin svg { width: 13px; height: 13px; display: block; }
@media (min-width: 640px) {
  .sf-hp-mcard__foot { padding: 0.9rem 1rem; }
  .sf-hp-mcard__ico { width: 48px; height: 48px; }
  .sf-hp-mcard__meta strong { font-size: 1rem; }
}
@media (min-width: 900px) {
  .sf-hp-mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
}

/* ---- Styles by occasion ---- */
.sf-hp-styles__title { margin-top: 0.45rem; font-size: clamp(1.5rem, 4vw, 2.9rem); line-height: 1.5; }
.sf-hp-styles .sf-hp-section__head { margin-bottom: 1.4rem; }
.sf-hp-styles .sf-hp-section__arrow { margin-inline-start: 0.4rem; }
.sf-hp-sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.sf-hp-scard {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 6 / 7;
  border-radius: 22px;
  background: linear-gradient(160deg, #e7d6de, #9b6a82 60%, #4a1d36);   /* shows until the photo is added */
  color: #fff;
}
.sf-hp-scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: -2; transition: transform 0.5s ease; }
.sf-hp-scard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(32, 8, 24, 0.9) 0%, rgba(32, 8, 24, 0.45) 32%, transparent 62%);
}
.sf-hp-scard:hover { color: #fff; }
.sf-hp-scard:hover img { transform: scale(1.05); }
.sf-hp-scard__txt { position: absolute; inset-inline: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: 0.2rem; padding-inline-end: 2.9rem;
text-shadow: 0 2px 10px rgba(10, 4, 8, 0.55);
}
.sf-hp-scard__txt strong { font-family: var(--font-bold); font-size: clamp(0.95rem, 2.4vw, 1.2rem); line-height: 1.5; }
.sf-hp-scard__txt small { font-size: clamp(0.74rem, 1.8vw, 0.85rem); color: rgba(255, 255, 255, 0.82); }
.sf-hp-scard__go {
  position: absolute; bottom: 1rem; inset-inline-end: 1rem;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}
.sf-hp-scard:hover .sf-hp-scard__go { background: var(--sf-primary); }
@media (min-width: 900px) {
  .sf-hp-sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
}

/* ---- Latest dresses: grid of 4 (2 per row on mobile) ---- */
.sf-hp-section__arrow { margin-inline-start: 0.4rem; }
.sf-hp-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.sf-hp-pcard {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 20px;
  overflow: hidden;
  color: var(--sf-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sf-hp-pcard:hover { transform: translateY(-4px); box-shadow: var(--sf-shadow-hover); color: var(--sf-ink); }
.sf-hp-pcard__media { aspect-ratio: 4 / 5; background: #f3eaee; overflow: hidden; }
.sf-hp-pcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sf-hp-pcard__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.8rem 0.8rem 0.85rem; flex: 1; }
.sf-hp-pcard__maison { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; color: var(--sf-primary-dark); min-width: 0; }
.sf-hp-pcard__ico { display: inline-flex; flex: none; }
.sf-hp-pcard__ico svg { width: 14px; height: 14px; display: block; }
.sf-hp-pcard__title { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--sf-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-hp-pcard__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 0.6rem; font-size: 0.74rem; color: var(--sf-muted); }
.sf-hp-pcard__meta > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.sf-hp-pcard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-top: auto; padding-top: 0.7rem;
  border-top: 1px solid var(--sf-border);
}
.sf-hp-pcard__price small { display: block; font-size: 0.74rem; color: var(--sf-muted); }
.sf-hp-pcard__price strong { display: block; font-family: var(--font-bold); font-size: 0.92rem; color: var(--sf-primary-dark); }
.sf-hp-pcard__price em { font-style: normal; font-size: 0.7rem; }
.sf-hp-pcard__go {
  flex: none; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fdeaf2; color: var(--sf-primary-dark);
}
.sf-hp-new__more { display: flex; justify-content: center; margin-top: 1.5rem; }
.sf-hp-new__btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 2.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--sf-border);
  color: var(--sf-primary-dark);
  font-family: var(--font-bold); font-size: 0.98rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sf-hp-new__btn:hover { background: #fff0f6; border-color: var(--sf-primary); color: var(--sf-primary-dark); }
@media (min-width: 640px) {
  .sf-hp-pcard__body { padding: 1rem 1.1rem 1.1rem; gap: 0.55rem; }
  .sf-hp-pcard__title { font-size: 1.02rem; }
}
@media (min-width: 900px) {
  .sf-hp-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  /* desktop: header link is plain text + arrow (arrow first, like the design) */
  .sf-hp-new .sf-hp-section__link,
  .sf-hp-styles .sf-hp-section__link { border: 0; background: none; padding-inline: 0.2rem; flex-direction: row-reverse; }
  .sf-hp-new .sf-hp-section__link:hover,
  .sf-hp-styles .sf-hp-section__link:hover { background: none; }
}

/* products carousel reuses .sf-swiper/.sf-product-card; keep card text tidy */
.sf-hp-products .sf-product-card__maison { font-size: 0.74rem; }
.sf-hp-products .swiper-slide { height: auto; }
.sf-hp-products .sf-product-card { height: 100%; }

/* ---- Steps ---- */
.sf-hp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  counter-reset: sfstep;
}
.sf-hp-step {
  position: relative;
  counter-increment: sfstep;
  padding: 1.15rem 1.15rem 1.15rem 1.15rem;
  border-radius: 18px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  box-shadow: 0 4px 16px rgba(26, 10, 18, 0.05);
}
.sf-hp-step::after {
  content: counter(sfstep);
  position: absolute;
  inset-block-start: 0.9rem;
  inset-inline-end: 1rem;
  font-family: var(--font-bold);
  font-size: 1.6rem;
  line-height: 1;
  color: #f6c9dc;
}
.sf-hp-step__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 0.7rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff4f9a, #e83a84);
  color: #fff;
}
.sf-hp-step__ico svg { width: 22px; height: 22px; display: block; }
.sf-hp-step h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.sf-hp-step p { margin: 0; font-size: 0.9rem; color: var(--sf-muted); line-height: 1.85; }

/* ---- Benefits ---- */
.sf-hp-benefits { display: grid; gap: 0.8rem; }
.sf-hp-benefit {
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff0f6 0%, #fff 100%);
  border: 1px solid #f3dfe8;
}
.sf-hp-benefit h3 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--sf-primary-dark); }
.sf-hp-benefit p { margin: 0; font-size: 0.9rem; color: var(--sf-muted); line-height: 1.85; }

@media (min-width: 760px) {
  .sf-hp-steps,
  .sf-hp-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

/* ---- Customer sign-up band (contrast: white on #d92a77+ ≥ 4.5:1) ---- */
.sf-hp-signup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: clamp(1.15rem, 3.5vw, 1.9rem);
  border-radius: 22px;
  background: linear-gradient(135deg, #d92a77 0%, #9c1856 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(156, 24, 86, 0.28);
}
.sf-hp-signup__text { min-width: 0; flex: 1 1 18rem; }
.sf-hp-signup h2 { margin: 0 0 0.7rem; font-size: clamp(1.15rem, 3.4vw, 1.55rem); color: #fff; line-height: 1.5; text-wrap: balance; }
.sf-hp-signup__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
}
.sf-hp-signup__list li { display: inline-flex; align-items: center; gap: 0.4rem; }
.sf-hp-signup__list svg { width: 16px; height: 16px; display: block; }
.sf-hp-signup__btn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  padding: 0.6rem 2rem;
  border-radius: 14px;
  background: #fff;
  color: #9c1856;
  font-family: var(--font-bold);
  font-size: 1rem;
  box-shadow: 0 8px 22px rgba(26, 10, 18, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.sf-hp-signup__btn:hover,
.sf-hp-signup__btn:focus-visible { color: #7a1243; transform: translateY(-1px); }
@media (max-width: 639px) { .sf-hp-signup__btn { width: 100%; } }

/* ---- FAQ ---- */
.sf-hp-section--faq { width: 100%; max-width: 54rem; margin-inline: auto; padding-inline: clamp(0.25rem, 3vw, 1.5rem); }
.sf-hp-section--faq .sf-hp-section__head { justify-content: center; text-align: center; margin-bottom: 1.1rem; }
.sf-hp-faq { display: grid; gap: 0.6rem; }
.sf-hp-faq__item {
  border-radius: 16px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  overflow: hidden;
}
.sf-hp-faq__item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  font-family: var(--font-bold);
  font-size: 0.95rem;
  color: var(--sf-ink);
}
.sf-hp-faq__item summary::-webkit-details-marker { display: none; }
.sf-hp-faq__item summary::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 9px; height: 9px;
  border-inline-end: 2px solid var(--sf-primary-dark);
  border-block-end: 2px solid var(--sf-primary-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.sf-hp-faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.sf-hp-faq__item summary:focus-visible { outline: 3px solid rgba(255, 79, 154, 0.3); outline-offset: -3px; }
.sf-hp-faq__item p { margin: 0; padding: 0 1rem 1rem; font-size: 0.9rem; color: var(--sf-muted); line-height: 1.95; }

/* ---- How it works (replaces "why") ---- */
.sf-hp-how {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3.5rem);
}
.sf-hp-how__eyebrow { font-family: var(--font-bold); font-size: 0.82rem; color: var(--sf-primary-dark); }
.sf-hp-how__title { margin: 0.7rem 0 1rem; font-size: clamp(1.7rem, 4.2vw, 3rem); line-height: 1.6; color: var(--sf-ink); text-wrap: balance; }
.sf-hp-how__sub { margin: 0 0 1.75rem; max-width: 34rem; color: var(--sf-muted); font-size: clamp(0.92rem, 1.8vw, 1.02rem); line-height: 2.1; }
.sf-hp-how__btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.8rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0408e, #dd2a7b);
  color: #fff; font-family: var(--font-bold); font-size: 1rem;
  box-shadow: 0 12px 26px rgba(221, 42, 123, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.sf-hp-how__btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.05); }
.sf-hp-how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.sf-hp-how__step { position: relative; display: flex; align-items: center; gap: 1rem; }
.sf-hp-how__num { flex: none; width: 1.4rem; text-align: center; font-family: var(--font-bold); font-size: 0.85rem; color: var(--sf-primary); }
.sf-hp-how__ico {
  position: relative; z-index: 1; flex: none;
  width: 68px; height: 68px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px; background: #fbeef4; color: var(--sf-primary);
}
.sf-hp-how__ico svg { width: 26px; height: 26px; display: block; }
.sf-hp-how__step:not(:last-child)::after {   /* dashed connector under the icon */
  content: "";
  position: absolute;
  inset-inline-start: calc(1.4rem + 1rem + 34px);
  top: 68px;
  height: 1.6rem;
  border-inline-start: 1.5px dashed #ecd3de;
  transform: translateX(50%);
}
.sf-hp-how__step h3 { margin: 0 0 0.3rem; font-size: 1.1rem; color: var(--sf-ink); }
.sf-hp-how__step p { margin: 0; font-size: 0.86rem; color: var(--sf-muted); line-height: 1.9; }
@media (min-width: 900px) {
  .sf-hp-how { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .sf-hp-how__steps { max-width: 30rem; }
}

/* owner CTA: full-bleed band that sits flush on the footer */
.sf-hp .sf-home-owner-cta {
  width: 100vw;
  margin: 0 calc(50% - 50vw) -4rem;   /* both sides (RTL-safe); -4rem cancels .sf-main bottom padding */
  background: #f8dbe5;
}
.sf-hp .sf-home-owner-cta .sf-home-owner-cta__inner {
  max-width: 1244px;
  margin-inline: auto;
  padding: 2.2rem clamp(1rem, 4vw, 2rem);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--sf-ink);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: start;
  gap: 1.25rem;
}
.sf-home-owner-cta__lead { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.sf-home-owner-cta__ico {
  flex: none; width: 66px; height: 66px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px; background: #fff; color: var(--sf-primary-dark);
  box-shadow: 0 6px 16px rgba(122, 24, 63, 0.08);
}
.sf-home-owner-cta__ico svg { width: 28px; height: 28px; display: block; }
.sf-hp .sf-home-owner-cta__text { text-align: start; }
.sf-hp .sf-home-owner-cta__text h2 { margin: 0 0 0.25rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--sf-ink); }
.sf-hp .sf-home-owner-cta__text p { margin: 0; font-size: 0.95rem; color: var(--sf-muted); }
.sf-home-owner-cta__btn {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.7rem;
  border-radius: 14px;
  background: #2a0e1c; color: #fff;
  font-family: var(--font-bold); font-size: 0.98rem;
  box-shadow: 0 10px 22px rgba(42, 14, 28, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.sf-home-owner-cta__btn:hover { color: #fff; background: #3f1329; transform: translateY(-2px); }
@media (max-width: 720px) {
  .sf-hp .sf-home-owner-cta .sf-home-owner-cta__inner { flex-direction: column; align-items: stretch; text-align: center; padding-block: 1.6rem; }
  .sf-home-owner-cta__lead { flex-direction: column; text-align: center; }
  .sf-hp .sf-home-owner-cta__text { text-align: center; }
  .sf-home-owner-cta__btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-hp *, .sf-hp *::before, .sf-hp *::after { transition: none !important; }
}


/* ---- Footer (dark, 4 columns) ---- */
.sf-footer {
  margin-top: auto;
  padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  border-top: 0;
  background: #24141b;
  color: rgba(255, 255, 255, 0.72);
}
.sf-footer .sf-footer__inner {
  width: 100%;
  max-width: 1244px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
  color: inherit;
  font-size: 0.88rem;
}
.sf-footer .sf-footer__brand { display: inline-block; font-size: 1.7rem; line-height: 1.2; color: #fff; font-family: var(--font-bold); }
.sf-footer .sf-footer__brand span { color: var(--sf-primary); }
.sf-footer__about { margin: 0.9rem 0 1.1rem; line-height: 2; max-width: 22rem; font-size: 0.86rem; }
.sf-footer__social { display: flex; gap: 0.6rem; }
.sf-footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, color 0.2s ease;
}
.sf-footer__social a:hover { background: var(--sf-primary); color: #fff; }
.sf-footer__social svg { width: 18px; height: 18px; display: block; }
.sf-footer__col { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.sf-footer__col h3 {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0 0 0.35rem;
  font-size: 0.98rem; color: #fff; font-family: var(--font-bold);
}
.sf-footer__col h3 svg { color: var(--sf-primary); flex: none; }
.sf-footer__col a { color: rgba(255, 255, 255, 0.68); width: fit-content; }
.sf-footer__col a:hover { color: #fff; }
.sf-footer__col--trust p { margin: 0; line-height: 2; font-size: 0.86rem; max-width: 18rem; }
@media (min-width: 640px) {
  .sf-footer .sf-footer__inner { grid-template-columns: 1fr 1fr; }
  .sf-footer__col--brand { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .sf-footer .sf-footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem 3rem; }
  .sf-footer__col--brand { grid-column: auto; }
}


/* ---- Product share (button + dialog) ---- */
.sf-pdp__title-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.sf-share-btn {
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--sf-border);
  background: #fff;
  color: var(--sf-muted);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.sf-share-btn:hover { color: var(--sf-primary); border-color: #f9a8d4; }
.sf-share-btn:focus-visible { outline: 3px solid rgba(255, 79, 154, 0.3); outline-offset: 2px; }

.sf-share[hidden] { display: none; }
.sf-share { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.sf-share-open { overflow: hidden; }
.sf-share__backdrop { position: absolute; inset: 0; background: rgba(26, 10, 18, 0.55); backdrop-filter: blur(2px); }
.sf-share__panel {
  position: relative;
  width: 100%; max-width: 26rem; max-height: 92vh; overflow-y: auto;
  padding: 1.1rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(26, 10, 18, 0.2);
  animation: sfShareUp 0.28s ease;
}
@keyframes sfShareUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sf-share__panel { animation: none; } }
@media (min-width: 640px) {
  .sf-share { align-items: center; }
  .sf-share__panel { border-radius: 24px; padding-bottom: 1.4rem; }
}
.sf-share__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sf-share__title { margin: 0; font-size: 1.1rem; color: var(--sf-ink); }
.sf-share__close {
  width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%;
  background: #f6eef2; color: var(--sf-ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.sf-share__close:hover { background: #fdeaf2; color: var(--sf-primary-dark); }
.sf-share__name {
  margin: 0.4rem 0 1rem; font-size: 0.85rem; color: var(--sf-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sf-share__apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr)); gap: 0.6rem; margin-bottom: 1.1rem; }
.sf-share__app {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.2rem; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.76rem; color: var(--sf-ink);
}
.sf-share__app[hidden] { display: none; }
.sf-share__app-ico {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f6eef2; color: var(--sf-primary-dark);
  transition: transform 0.18s ease, background 0.18s ease;
}
.sf-share__app-ico .sf-icon { width: 1.6rem; height: 1.6rem; }
.sf-share__app-ico .sf-icon--img { width: 1.7rem; height: 1.7rem; object-fit: contain; border-radius: 6px; }
.sf-share__app--telegram .sf-share__app-ico { color: #229ed9; background: #e8f5fc; }
.sf-share__app--whatsapp .sf-share__app-ico { color: #25d366; background: #e7f9ee; }
.sf-share__app:hover .sf-share__app-ico { transform: translateY(-3px); }
.sf-share__app:focus-visible { outline: 3px solid rgba(255, 79, 154, 0.3); outline-offset: 2px; border-radius: 14px; }
.sf-share__link { display: flex; gap: 0.5rem; }
.sf-share__input {
  flex: 1; min-width: 0; height: 46px; padding: 0 0.8rem;
  border: 1.5px solid var(--sf-border); border-radius: 12px;
  background: #faf7f8; color: var(--sf-ink);
  font: inherit; font-size: 0.8rem; text-align: left; text-overflow: ellipsis;
}
.sf-share__copy {
  flex: none; display: inline-flex; align-items: center; gap: 0.4rem;
  height: 46px; padding: 0 1rem; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #f0408e, #dd2a7b); color: #fff;
  font-family: var(--font-bold); font-size: 0.88rem;
}
.sf-share__copy:hover { filter: brightness(1.05); }
.sf-share__qr {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.1rem; padding: 0.9rem;
  border: 1px dashed #ecd3de; border-radius: 16px; background: #fffafc;
}
.sf-share__qr canvas {
  flex: none; width: 120px; height: 120px; border-radius: 12px; background: #fff;
  border: 1px solid var(--sf-border); image-rendering: pixelated;
}
.sf-share__qr-text { min-width: 0; }
.sf-share__qr-text strong { display: flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; color: var(--sf-ink); }
.sf-share__qr-text p { margin: 0.3rem 0 0.6rem; font-size: 0.78rem; line-height: 1.8; color: var(--sf-muted); }
.sf-share__qr-dl {
  padding: 0.5rem 0.9rem; border: 1px solid var(--sf-border); border-radius: 10px;
  background: #fff; color: var(--sf-primary-dark); cursor: pointer; font: inherit; font-size: 0.8rem;
}
.sf-share__qr-dl:hover { background: #fff0f6; border-color: var(--sf-primary); }
