/* =========================================================
   Sepidroo — One UI 8.5 · Glass · Nude · Mobile App
   ========================================================= */

:root {
  --font: "Shabnam", Tahoma, sans-serif;

  /* Pink palette (default) */
  --bg: #faf3f0;
  --bg-elevated: rgba(255, 251, 250, 0.78);
  --bg-soft: #f3e6e2;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-solid: #fff9f8;
  --glass: rgba(255, 250, 249, 0.58);
  --glass-strong: rgba(255, 252, 251, 0.82);
  --glass-border: rgba(255, 255, 255, 0.62);
  --text: #3a2a30;
  --text-soft: #7a5f68;
  --text-muted: #a88e96;
  --primary: #d4a0a8;
  --primary-deep: #b87a86;
  --primary-soft: #f3dde2;
  --accent: #e8a0b4;
  --accent-soft: #f8e4ea;
  --blush: #f2c4d0;
  --rose: #e891a8;
  --success: #8fa386;
  --danger: #d97a8a;
  --warning: #e0b070;
  --shadow: 0 10px 30px rgba(140, 80, 100, 0.08);
  --shadow-lg: 0 20px 50px rgba(140, 80, 100, 0.12);
  --accent-rgb: 200, 100, 130;
  --blush-rgb: 232, 160, 180;
  --ring: rgba(var(--blush-rgb), 0.38);
  --overlay: rgba(48, 28, 36, 0.32);
  --hairline: rgba(140, 90, 105, 0.1);
  --grad-cta: linear-gradient(145deg, #e8a0b4, #c4788e);
  --grad-cta-hot: linear-gradient(145deg, #ff8fb0 0%, #f06a92 55%, #e2557f 100%);
  --grad-cta-hot-hover: linear-gradient(145deg, #ff9cbc 0%, #f4789e 55%, #e8668c 100%);
  --grad-fab: linear-gradient(145deg, #e8a0b4, #c4788e);
  --grad-mark: linear-gradient(145deg, #f2c4d0, #e8a0b4 55%, #c47a8e);
  --grad-mega: linear-gradient(145deg, #ff8fb0, #e2557f);
  --grad-story: linear-gradient(135deg, #f2c4d0, #e891a8 40%, #d4a084 75%, #e8a0b4);
  --nav-height: 64px;
  --bottom-nav: 58px;
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --blur: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --app-max: 100%;
  --content-max: 100%;
  --grad-hero: radial-gradient(110% 80% at 90% 0%, rgba(242, 196, 208, 0.55), transparent 55%),
    radial-gradient(90% 70% at 8% 18%, rgba(var(--blush-rgb), 0.28), transparent 52%),
    radial-gradient(70% 50% at 50% 100%, rgba(212, 184, 150, 0.18), transparent 55%),
    linear-gradient(180deg, #fff7f5 0%, #f6ebe6 100%);
  --scrollbar-size: 8px;
  --scrollbar-track: rgba(242, 228, 224, 0.55);
  --scrollbar-thumb: rgba(212, 150, 168, 0.72);
  --scrollbar-thumb-hover: rgba(200, 110, 138, 0.9);
  --floral-petal-0: #ffffff;
  --floral-petal-1: #ffe4ec;
  --floral-petal-2: #f5b8c8;
  --floral-petal-3: #ffd6e4;
  --floral-petal-4: #efa0b8;
  --floral-petal-5: #ffeaf1;
  --floral-petal-6: #f2b4c4;
  --floral-petal-7: #ffc8d8;
  --floral-center-0: #ffe8a8;
  --floral-center-1: #f0c070;
  --floral-center-dot: #fff6c8;
  --floral-petal-fall: linear-gradient(145deg, #ffffff, #ffd0e0 60%, #f5a8c0);
  --founder-card-grad: linear-gradient(145deg, rgba(255, 248, 250, 0.92), rgba(242, 196, 208, 0.4));
  --founder-card-grad-dark: linear-gradient(145deg, rgba(58, 42, 52, 0.95), rgba(200, 100, 140, 0.18));
  --founder-placeholder: linear-gradient(160deg, #f8e0e8, #e8a0b4 55%, #c4788e);
  --deal-card-grad: linear-gradient(145deg, rgba(255, 248, 250, 0.94), rgba(242, 196, 208, 0.42));
  --deal-card-grad-dark: linear-gradient(145deg, rgba(58, 42, 52, 0.95), rgba(200, 90, 130, 0.2));
  --deal-glow: radial-gradient(circle, rgba(232, 120, 160, 0.35), transparent 70%);
  --deal-badge-grad: linear-gradient(145deg, #f078a0, #d44878 55%, #b83868);
  --deal-badge-shadow: 0 16px 32px rgba(200, 60, 110, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --promo-banner-grad: linear-gradient(135deg, #e8a0b4, #d48aa0 40%, #c4a484 85%);
  --deal-eyebrow-bg: rgba(232, 100, 140, 0.14);
  --deal-eyebrow-color: #c45a78;
  --deal-pulse: #e85a8a;
}

/* Nude / beige palette (client swatch #E3DAD0) */
html[data-palette="nude"] {
  --bg: #f7f3ee;
  --bg-elevated: rgba(255, 252, 248, 0.82);
  --bg-soft: #ebe3da;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-solid: #faf7f3;
  --glass: rgba(255, 252, 248, 0.6);
  --glass-strong: rgba(255, 253, 250, 0.86);
  --glass-border: rgba(255, 255, 255, 0.62);
  --text: #3a322c;
  --text-soft: #7a6e64;
  --text-muted: #9a8b7e;
  --primary: #c4b3a3;
  --primary-deep: #8f7a68;
  --primary-soft: #ebe3da;
  --accent: #d4c4b4;
  --accent-soft: #f0ebe4;
  --blush: #e3dad0;
  --rose: #c9b8a6;
  --shadow: 0 10px 30px rgba(100, 80, 60, 0.08);
  --shadow-lg: 0 20px 50px rgba(100, 80, 60, 0.12);
  --ring: rgba(196, 179, 163, 0.42);
  --overlay: rgba(40, 32, 26, 0.34);
  --hairline: rgba(120, 100, 80, 0.12);
  --accent-rgb: 143, 122, 104;
  --blush-rgb: 227, 218, 208;
  --grad-cta: linear-gradient(145deg, #d4c4b4, #9a8674);
  --grad-cta-hot: linear-gradient(145deg, #e3dad0 0%, #c4b3a3 50%, #8f7a68 100%);
  --grad-cta-hot-hover: linear-gradient(145deg, #ebe3da 0%, #d0c0b0 50%, #9a8674 100%);
  --grad-fab: linear-gradient(145deg, #d4c4b4, #9a8674);
  --grad-mark: linear-gradient(145deg, #ebe3da, #d4c4b4 55%, #9a8674);
  --grad-mega: linear-gradient(145deg, #d4c4b4, #8f7a68);
  --grad-story: linear-gradient(135deg, #ebe3da, #d4c4b4 40%, #b8a594 75%, #9a8674);
  --floral-petal-0: #ffffff;
  --floral-petal-1: #ffffff;
  --floral-petal-2: #f7f4f0;
  --floral-petal-3: #ffffff;
  --floral-petal-4: #f0ebe6;
  --floral-petal-5: #ffffff;
  --floral-petal-6: #f5f1ec;
  --floral-petal-7: #ebe6e0;
  --floral-center-0: #f5f0ea;
  --floral-center-1: #e3dad0;
  --floral-center-dot: #fffcf8;
  --floral-petal-fall: linear-gradient(145deg, #ffffff, #f7f4f0 55%, #ebe3da);
  --founder-card-grad: linear-gradient(145deg, rgba(255, 252, 248, 0.94), rgba(227, 218, 208, 0.55));
  --founder-card-grad-dark: linear-gradient(145deg, rgba(48, 42, 36, 0.95), rgba(154, 134, 116, 0.22));
  --founder-placeholder: linear-gradient(160deg, #ebe3da, #d4c4b4 55%, #9a8674);
  --deal-card-grad: linear-gradient(145deg, rgba(255, 252, 248, 0.95), rgba(227, 218, 208, 0.55));
  --deal-card-grad-dark: linear-gradient(145deg, rgba(48, 42, 36, 0.95), rgba(154, 134, 116, 0.22));
  --deal-glow: radial-gradient(circle, rgba(196, 179, 163, 0.4), transparent 70%);
  --deal-badge-grad: linear-gradient(145deg, #d4c4b4, #9a8674 55%, #7a6858);
  --deal-badge-shadow: 0 16px 32px rgba(100, 80, 60, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --promo-banner-grad: linear-gradient(135deg, #d4c4b4, #b8a594 40%, #8f7a68 85%);
  --deal-eyebrow-bg: rgba(143, 122, 104, 0.16);
  --deal-eyebrow-color: #8f7a68;
  --deal-pulse: #9a8674;
  --grad-hero: radial-gradient(110% 80% at 90% 0%, rgba(227, 218, 208, 0.75), transparent 55%),
    radial-gradient(90% 70% at 8% 18%, rgba(196, 179, 163, 0.28), transparent 52%),
    radial-gradient(70% 50% at 50% 100%, rgba(184, 165, 148, 0.18), transparent 55%),
    linear-gradient(180deg, #faf7f3 0%, #f0ebe4 100%);
  --scrollbar-track: rgba(235, 227, 218, 0.7);
  --scrollbar-thumb: rgba(184, 165, 148, 0.75);
  --scrollbar-thumb-hover: rgba(143, 122, 104, 0.9);
}

[data-theme="dark"] {
  /* Softer rose-charcoal — pink dark */
  --bg: #241e24;
  --bg-elevated: rgba(52, 42, 50, 0.82);
  --bg-soft: #2e262e;
  --surface: rgba(62, 50, 58, 0.62);
  --surface-solid: #352c34;
  --glass: rgba(58, 46, 54, 0.58);
  --glass-strong: rgba(64, 52, 60, 0.86);
  --glass-border: rgba(255, 210, 220, 0.1);
  --text: #f8eef2;
  --text-soft: #d8c0c8;
  --text-muted: #b098a0;
  --primary: #e8b0bc;
  --primary-deep: #f0c4ce;
  --primary-soft: #4a3842;
  --accent: #f0a8bc;
  --accent-soft: #4a303c;
  --blush: #e8a0b4;
  --rose: #f2b0c0;
  --success: #a8b89f;
  --danger: #f0a0ac;
  --warning: #e8c090;
  --shadow: 0 12px 32px rgba(20, 10, 18, 0.28);
  --shadow-lg: 0 24px 60px rgba(20, 10, 18, 0.36);
  --ring: rgba(240, 168, 188, 0.35);
  --overlay: rgba(18, 10, 16, 0.48);
  --hairline: rgba(255, 210, 220, 0.1);
  --accent-rgb: 232, 160, 180;
  --blush-rgb: 240, 168, 188;
  --grad-cta: linear-gradient(145deg, #f0b8c8, #e8a0b4);
  --grad-cta-hot: linear-gradient(145deg, #f4a0b8 0%, #e8789a 55%, #d86082 100%);
  --grad-cta-hot-hover: linear-gradient(145deg, #f4a0b8 0%, #e8789a 55%, #d86082 100%);
  --grad-fab: linear-gradient(145deg, #f0b8c8, #e8a0b4);
  --grad-mark: linear-gradient(145deg, #e8b0bc, #c4788e);
  --grad-mega: linear-gradient(145deg, #f0a8bc, #d86082);
  --grad-story: linear-gradient(135deg, #e8b0bc, #e891a8 40%, #c4a484 75%, #e8a0b4);
  --grad-hero: radial-gradient(110% 80% at 88% 0%, rgba(232, 120, 160, 0.22), transparent 55%),
    radial-gradient(90% 70% at 10% 20%, rgba(200, 130, 160, 0.16), transparent 50%),
    linear-gradient(180deg, #2a222a 0%, #221c22 100%);
  --scrollbar-track: rgba(36, 28, 34, 0.65);
  --scrollbar-thumb: rgba(var(--blush-rgb), 0.45);
  --scrollbar-thumb-hover: rgba(240, 180, 196, 0.7);
  --deal-eyebrow-bg: rgba(240, 140, 170, 0.16);
  --deal-eyebrow-color: #f0b0c4;
  --deal-pulse: #f0a8bc;
}

html[data-palette="nude"][data-theme="dark"] {
  --bg: #221e1a;
  --bg-elevated: rgba(48, 42, 36, 0.86);
  --bg-soft: #2c2620;
  --surface: rgba(58, 50, 42, 0.64);
  --surface-solid: #322c26;
  --glass: rgba(54, 46, 40, 0.6);
  --glass-strong: rgba(60, 52, 44, 0.88);
  --glass-border: rgba(227, 218, 208, 0.12);
  --text: #f5f0ea;
  --text-soft: #d4c8ba;
  --text-muted: #b0a294;
  --primary: #d4c4b4;
  --primary-deep: #e3dad0;
  --primary-soft: #3a322c;
  --accent: #c9b8a6;
  --accent-soft: #3a322c;
  --blush: #c4b3a3;
  --rose: #d4c4b4;
  --shadow: 0 12px 32px rgba(12, 10, 8, 0.32);
  --shadow-lg: 0 24px 60px rgba(12, 10, 8, 0.4);
  --ring: rgba(212, 196, 180, 0.35);
  --overlay: rgba(14, 12, 10, 0.5);
  --hairline: rgba(227, 218, 208, 0.12);
  --accent-rgb: 196, 179, 163;
  --blush-rgb: 212, 196, 180;
  --grad-cta: linear-gradient(145deg, #d4c4b4, #b8a594);
  --grad-cta-hot: linear-gradient(145deg, #d4c4b4 0%, #b8a594 55%, #9a8674 100%);
  --grad-cta-hot-hover: linear-gradient(145deg, #e3dad0 0%, #c4b3a3 55%, #a8907c 100%);
  --grad-fab: linear-gradient(145deg, #d4c4b4, #b8a594);
  --grad-mark: linear-gradient(145deg, #c4b3a3, #9a8674);
  --grad-mega: linear-gradient(145deg, #d4c4b4, #9a8674);
  --grad-story: linear-gradient(135deg, #c4b3a3, #b8a594 40%, #9a8674 75%, #d4c4b4);
  --grad-hero: radial-gradient(110% 80% at 88% 0%, rgba(196, 179, 163, 0.22), transparent 55%),
    radial-gradient(90% 70% at 10% 20%, rgba(168, 144, 124, 0.16), transparent 50%),
    linear-gradient(180deg, #2a241e 0%, #221e1a 100%);
  --scrollbar-track: rgba(34, 28, 22, 0.7);
  --scrollbar-thumb: rgba(196, 179, 163, 0.45);
  --scrollbar-thumb-hover: rgba(212, 196, 180, 0.7);
  --floral-petal-0: #ffffff;
  --floral-petal-1: #f5f1ec;
  --floral-petal-2: #e8dfd4;
  --floral-petal-3: #f7f4f0;
  --floral-petal-4: #ebe3da;
  --floral-petal-5: #f0ebe6;
  --floral-petal-6: #e3dad0;
  --floral-petal-7: #d4c4b4;
  --floral-center-0: #ebe3da;
  --floral-center-1: #c4b3a3;
  --floral-center-dot: #faf7f3;
  --floral-petal-fall: linear-gradient(145deg, #ffffff, #ebe3da 55%, #d4c4b4);
  --founder-card-grad-dark: linear-gradient(145deg, rgba(48, 42, 36, 0.95), rgba(154, 134, 116, 0.22));
  --founder-placeholder: linear-gradient(160deg, #c4b3a3, #9a8674 55%, #7a6858);
  --deal-card-grad-dark: linear-gradient(145deg, rgba(48, 42, 36, 0.95), rgba(154, 134, 116, 0.22));
  --deal-glow: radial-gradient(circle, rgba(196, 179, 163, 0.28), transparent 70%);
  --deal-badge-grad: linear-gradient(145deg, #c4b3a3, #9a8674 55%, #7a6858);
  --deal-badge-shadow: 0 16px 32px rgba(20, 14, 10, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --promo-banner-grad: linear-gradient(135deg, #c4b3a3, #9a8674 40%, #7a6858 85%);
  --deal-eyebrow-bg: rgba(212, 196, 180, 0.18);
  --deal-eyebrow-color: #e3dad0;
  --deal-pulse: #d4c4b4;
}

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

html {
  scroll-behavior: auto;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Top progress — boot + in-site navigation */
html.sepidroo-booting::before,
html.is-navigating::before {
  content: "";
  position: fixed;
  z-index: 100000;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent, #e8a0b4), var(--primary-deep, #b87a86));
  transform-origin: right center;
  animation: sepidroo-progress 0.9s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) infinite;
}

html.is-ready:not(.is-navigating)::before {
  display: none;
}

@keyframes sepidroo-progress {
  0% { transform: scaleX(0.12); opacity: 0.55; }
  50% { transform: scaleX(0.72); opacity: 1; }
  100% { transform: scaleX(0.28); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  html.sepidroo-booting::before,
  html.is-navigating::before {
    animation: none;
    opacity: 0.85;
    transform: scaleX(0.55);
  }
}

body.sepidroo-app {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image: var(--grad-hero);
  background-attachment: scroll;
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  -webkit-font-smoothing: antialiased;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* App scrollbars — follow active palette */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.drawer__nav::-webkit-scrollbar,
.search-modal__panel::-webkit-scrollbar,
.archive-filters::-webkit-scrollbar,
.search-modal__scroll::-webkit-scrollbar,
.archive-filters__form::-webkit-scrollbar,
.spd-tabs__nav::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.drawer__nav::-webkit-scrollbar-track,
.search-modal__panel::-webkit-scrollbar-track,
.archive-filters::-webkit-scrollbar-track,
.search-modal__scroll::-webkit-scrollbar-track,
.archive-filters__form::-webkit-scrollbar-track,
.spd-tabs__nav::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: var(--radius-pill);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.drawer__nav::-webkit-scrollbar-thumb,
.search-modal__panel::-webkit-scrollbar-thumb,
.archive-filters::-webkit-scrollbar-thumb,
.search-modal__scroll::-webkit-scrollbar-thumb,
.archive-filters__form::-webkit-scrollbar-thumb,
.spd-tabs__nav::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  background-image: none;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.drawer__nav::-webkit-scrollbar-thumb:hover,
.search-modal__panel::-webkit-scrollbar-thumb:hover,
.archive-filters::-webkit-scrollbar-thumb:hover,
.search-modal__scroll::-webkit-scrollbar-thumb:hover,
.archive-filters__form::-webkit-scrollbar-thumb:hover,
.spd-tabs__nav::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
  background-image: none;
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
.drawer__nav::-webkit-scrollbar-corner,
.search-modal__panel::-webkit-scrollbar-corner {
  background: transparent;
}

/* WebKit often ignores custom props on scrollbar pseudos — force nude thumbs */
html[data-palette="nude"]::-webkit-scrollbar-thumb,
html[data-palette="nude"] body::-webkit-scrollbar-thumb,
html[data-palette="nude"] .drawer__nav::-webkit-scrollbar-thumb,
html[data-palette="nude"] .search-modal__panel::-webkit-scrollbar-thumb,
html[data-palette="nude"] .archive-filters::-webkit-scrollbar-thumb,
html[data-palette="nude"] .search-modal__scroll::-webkit-scrollbar-thumb,
html[data-palette="nude"] .archive-filters__form::-webkit-scrollbar-thumb,
html[data-palette="nude"] .spd-tabs__nav::-webkit-scrollbar-thumb {
  background-color: #c4b3a3;
  background-image: none;
}

html[data-palette="nude"]::-webkit-scrollbar-thumb:hover,
html[data-palette="nude"] body::-webkit-scrollbar-thumb:hover,
html[data-palette="nude"] .drawer__nav::-webkit-scrollbar-thumb:hover,
html[data-palette="nude"] .search-modal__panel::-webkit-scrollbar-thumb:hover,
html[data-palette="nude"] .archive-filters::-webkit-scrollbar-thumb:hover,
html[data-palette="nude"] .search-modal__scroll::-webkit-scrollbar-thumb:hover,
html[data-palette="nude"] .archive-filters__form::-webkit-scrollbar-thumb:hover,
html[data-palette="nude"] .spd-tabs__nav::-webkit-scrollbar-thumb:hover {
  background-color: #9a8674;
  background-image: none;
}

html[data-palette="nude"]::-webkit-scrollbar-track,
html[data-palette="nude"] body::-webkit-scrollbar-track,
html[data-palette="nude"] .drawer__nav::-webkit-scrollbar-track,
html[data-palette="nude"] .search-modal__panel::-webkit-scrollbar-track,
html[data-palette="nude"] .archive-filters::-webkit-scrollbar-track,
html[data-palette="nude"] .search-modal__scroll::-webkit-scrollbar-track,
html[data-palette="nude"] .archive-filters__form::-webkit-scrollbar-track,
html[data-palette="nude"] .spd-tabs__nav::-webkit-scrollbar-track {
  background: #ebe3da;
}

.drawer__nav,
.search-modal__panel,
.archive-filters,
.search-modal__scroll,
.archive-filters.is-open .archive-filters__form {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ========== Floral bg (lightweight — pause while scrolling) ========== */
.floral-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.floral-bg__bloom {
  position: absolute;
  width: clamp(140px, 28vw, 260px);
  height: auto;
  opacity: 0.62;
  /* no will-change / drop-shadow — those tank scroll FPS */
}

[data-theme="dark"] .floral-bg__bloom {
  opacity: 0.24;
}

.floral-bg__bloom--a {
  top: 4%;
  left: -3%;
  width: clamp(180px, 34vw, 300px);
  animation: floral-float-a 22s ease-in-out infinite;
}

.floral-bg__bloom--b {
  top: 36%;
  right: -5%;
  width: clamp(150px, 26vw, 240px);
  animation: floral-float-b 26s ease-in-out infinite;
}

.floral-bg__bloom--c {
  bottom: 10%;
  left: 3%;
  width: clamp(120px, 22vw, 200px);
  animation: floral-float-c 24s ease-in-out infinite;
}

.floral-bg__bloom--d {
  top: 56%;
  right: 10%;
  width: clamp(100px, 18vw, 160px);
  opacity: 0.45;
  animation: floral-float-d 20s ease-in-out infinite;
}

[data-theme="dark"] .floral-bg__bloom--d {
  opacity: 0.18;
}

.floral-bg__flower {
  transform-origin: center;
}

/* Nested breathe only on desktop — saves mobile GPU */
@media (min-width: 721px) {
  .floral-bg__flower {
    animation: floral-breathe 14s ease-in-out infinite;
  }

  .floral-bg__bloom--b .floral-bg__flower {
    animation-duration: 16s;
    animation-delay: -3s;
  }

  .floral-bg__bloom--c .floral-bg__flower {
    animation-duration: 18s;
    animation-delay: -5s;
  }
}

/* Falling petal dots */
.floral-bg__petal {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 60% 60% 60% 0;
  background: var(--floral-petal-fall);
  opacity: 0.45;
  transform: rotate(35deg);
  animation: floral-fall 16s linear infinite;
}

[data-theme="dark"] .floral-bg__petal {
  opacity: 0.18;
}

.floral-bg__petal--1 {
  top: -5%;
  left: 18%;
  animation-duration: 16s;
  animation-delay: 0s;
}

.floral-bg__petal--2 {
  top: -8%;
  left: 42%;
  width: 8px;
  height: 12px;
  animation-duration: 13s;
  animation-delay: -4s;
}

.floral-bg__petal--3 {
  top: -6%;
  left: 68%;
  width: 11px;
  height: 15px;
  animation-duration: 18s;
  animation-delay: -7s;
}

.floral-bg__petal--4 {
  top: -10%;
  left: 82%;
  width: 7px;
  height: 11px;
  animation-duration: 15s;
  animation-delay: -2s;
}

.floral-bg__petal--5 {
  top: -4%;
  left: 28%;
  width: 9px;
  height: 13px;
  animation-duration: 17s;
  animation-delay: -9s;
}

@keyframes floral-float-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
  50% { transform: translate3d(18px, 22px, 0) rotate(4deg); }
}

@keyframes floral-float-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(-20px, -16px, 0) rotate(-4deg); }
}

@keyframes floral-float-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-10deg) scale(1); }
  50% { transform: translate3d(14px, -20px, 0) rotate(2deg) scale(1.04); }
}

@keyframes floral-float-d {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(12deg); }
  50% { transform: translate3d(-12px, 18px, 0) rotate(2deg); }
}

@keyframes floral-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes floral-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(20deg);
    opacity: 0;
  }
  8% { opacity: 0.55; }
  100% {
    transform: translate3d(40px, 110vh, 0) rotate(280deg);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .floral-bg__bloom--c,
  .floral-bg__bloom--d,
  .floral-bg__petal--3,
  .floral-bg__petal--4,
  .floral-bg__petal--5 {
    display: none;
  }

  .floral-bg__bloom--a {
    width: 130px;
    opacity: 0.48;
  }

  .floral-bg__bloom--b {
    width: 100px;
    opacity: 0.4;
  }

  .floral-bg__petal {
    animation: none;
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floral-bg__bloom,
  .floral-bg__flower,
  .floral-bg__petal {
    animation: none !important;
  }
}

/* Freeze decorative motion while the user scrolls — big FPS win */
html.is-scrolling .floral-bg__bloom,
html.is-scrolling .floral-bg__flower,
html.is-scrolling .floral-bg__petal,
html.is-scrolling .deal-card__pulse,
html.is-scrolling .deal-badge {
  animation-play-state: paused !important;
}

html.is-scrolling .glass,
html.is-scrolling .glass-strong,
html.is-scrolling .app-header.is-stuck .app-header__bar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Defer paint of below-fold home sections */
.page-pad > .section:nth-child(n + 3) {
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

/* ========== Weekly deal + countdown ========== */
.deal-section {
  margin-top: 28px;
}

.deal-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  background:
    var(--deal-card-grad),
    var(--glass-strong);
}

[data-theme="dark"] .deal-card {
  background:
    var(--deal-card-grad-dark),
    var(--glass-strong);
}

.deal-card__glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 55%;
  height: 80%;
  border-radius: 50%;
  background: var(--deal-glow);
  pointer-events: none;
}

.deal-card__main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  align-items: center;
}

.deal-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--deal-eyebrow-bg);
  color: var(--deal-eyebrow-color);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

[data-theme="dark"] .deal-card__eyebrow {
  background: var(--deal-eyebrow-bg);
  color: var(--deal-eyebrow-color);
}

.deal-card__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--deal-pulse);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
  animation: deal-pulse 2.4s ease-out infinite;
}

.deal-card__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
}

.deal-card__text {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 36ch;
}

.deal-card__product {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--hairline);
}

[data-theme="dark"] .deal-card__product {
  background: rgba(255, 255, 255, 0.05);
}

.deal-card__product strong {
  font-size: 0.92rem;
}

.deal-card__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.deal-card__price-new {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.deal-card__price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.deal-card__timer-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.deal-card__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.deal-unit {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .deal-unit {
  background: rgba(255, 255, 255, 0.06);
}

.deal-unit__value {
  display: block;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.deal-unit__label {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.deal-unit--urgent .deal-unit__value {
  color: var(--primary-deep);
}

.deal-section.is-urgent .deal-unit--urgent {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
  animation: deal-tick 1s ease-in-out infinite;
}

.deal-section.is-ended .deal-card__eyebrow,
.deal-section.is-ended .deal-card__pulse {
  display: none;
}

.btn-deal {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--grad-cta-hot);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.32);
  width: fit-content;
}

.deal-card__badge {
  display: flex;
  justify-content: center;
}

.deal-badge {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 45%),
    var(--deal-badge-grad);
  box-shadow: var(--deal-badge-shadow);
  animation: deal-badge-float 4.5s ease-in-out infinite;
}

.deal-badge__amount {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.deal-badge__note {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 4px;
}

@keyframes deal-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

@keyframes deal-tick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes deal-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (min-width: 720px) {
  .deal-card {
    padding: 28px 32px;
  }

  .deal-card__main {
    grid-template-columns: 1.4fr auto;
    gap: 28px;
  }

  .deal-badge {
    width: 152px;
    height: 152px;
  }

  .deal-badge__amount {
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deal-card__pulse,
  .deal-badge,
  .deal-section.is-urgent .deal-unit--urgent {
    animation: none !important;
  }
}


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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

/* App shell — full-width mobile, centered desktop */
.app-shell {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--bottom-nav) + var(--safe-b) + 12px);
  overflow: visible;
}

@media (min-width: 600px) {
  .app-shell {
    max-width: 920px;
  }
}

@media (min-width: 900px) {
  .app-shell {
    max-width: 1280px;
    padding-bottom: 40px;
  }
}

/* Glass utilities — One UI */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(calc(var(--blur) + 8px)) saturate(1.3);
  -webkit-backdrop-filter: blur(calc(var(--blur) + 8px)) saturate(1.3);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.pill {
  border-radius: var(--radius-pill);
}

.pressable {
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  touch-action: manipulation;
}

.pressable:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* ========== Top App Bar ========== */
.app-header {
  position: relative;
  z-index: 50;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  transition: padding 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.app-header-spacer {
  display: none;
  width: 100%;
  pointer-events: none;
}

.app-header-spacer.is-active {
  display: block;
}

.app-header__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  min-height: var(--nav-height);
  min-width: 0;
  transition:
    border-radius 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background 0.28s var(--ease);
}

/* After scroll: fixed to viewport top, square top corners */
.app-header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: var(--safe-t);
  padding-inline: 0;
  padding-bottom: 0;
  z-index: 200;
}

.app-header.is-stuck .app-header__bar {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.16);
  background: var(--glass-strong);
  backdrop-filter: blur(calc(var(--blur) + 10px)) saturate(1.35);
  -webkit-backdrop-filter: blur(calc(var(--blur) + 10px)) saturate(1.35);
}

/* Drawer open: header under overlay + menu (menu > overlay > header) */
body.drawer-open .app-header,
body.drawer-open .app-header.is-stuck {
  z-index: 70;
}

.app-header__menu-btn {
  order: 0;
}

.app-header__brand {
  order: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.header-menus {
  order: 2;
}

.app-header__actions {
  order: 3;
}

/* Logo on visual left (RTL: end of flex row) */
.app-header__bar[data-logo-side="left"] .app-header__brand {
  order: 4;
}

.app-header__bar[data-logo-side="left"] .app-header__actions {
  order: 1;
}

.app-header__bar[data-logo-side="left"] .header-menus {
  order: 2;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
  flex-shrink: 0;
}

.app-header__brand.has-logo .brand-text strong {
  font-size: 0.95rem;
}

@media (max-width: 420px) {
  .app-header__brand.has-logo .brand-text span {
    display: none;
  }

  .brand-logo {
    height: 34px;
    max-width: min(140px, 46vw);
  }
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, #fff6f8, transparent 45%),
  background: var(--grad-mark);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px rgba(var(--accent-rgb), 0.22);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  flex-shrink: 0;
  position: relative;
}

.icon-btn svg,
.bottom-nav__item svg,
.drawer__link .ico svg,
.cat-card__icon svg,
.product-card__fav svg,
.emoji-dot svg,
.nav-fab svg,
.search-chip svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.cat-card__icon svg,
.drawer__link .ico svg,
.emoji-dot svg {
  width: 20px;
  height: 20px;
}

.product-card__fav svg {
  width: 18px;
  height: 18px;
}

.search-chip svg {
  width: 18px;
  height: 18px;
}

.icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--surface-solid);
}

.search-chip {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.search-chip span {
  display: none;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .search-chip {
    display: inline-flex;
  }
}

@media (min-width: 1100px) {
  .search-chip {
    width: auto;
    max-width: 220px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
  }

  .search-chip span {
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ========== Drawer ========== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 16, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
  z-index: 80;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(86vw, 340px);
  z-index: 90;
  transform: translateX(105%);
  transition: transform 0.38s var(--ease), visibility 0.38s;
  padding: calc(18px + var(--safe-t)) 16px calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  will-change: transform;
  touch-action: pan-y;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

/* Keep closed-drawer descendants from painting (visibility:visible children can escape) */
.drawer:not(.is-open),
.drawer:not(.is-open) * {
  visibility: hidden !important;
  pointer-events: none !important;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer--left {
  right: auto;
  left: 0;
  transform: translateX(-105%);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.drawer--left.is-open {
  transform: translateX(0);
}

.drawer--cats {
  width: min(90vw, 360px);
  max-width: 100%;
}

.drawer--cats .drawer-mega {
  flex: 1 1 auto;
  margin: 0;
  min-height: 0;
}

.drawer--cats .drawer-mega__viewport {
  min-height: 0;
}

/* ========== Lite drawer (rom1-inspired) ========== */
.drawer.drawer--lite {
  width: min(82vw, 320px);
  padding: calc(10px + var(--safe-t)) 0 calc(16px + var(--safe-b));
  border-radius: 0;
  background: #fff;
  border: 0;
  box-shadow: -12px 0 40px rgba(40, 20, 30, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
}

[data-theme="dark"] .drawer.drawer--lite {
  background: #1f1a1d;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

.drawer.drawer--lite.drawer--left {
  box-shadow: 12px 0 40px rgba(40, 20, 30, 0.12);
}

[data-theme="dark"] .drawer.drawer--lite.drawer--left {
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
}

.drawer-lite__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 48px 10px;
  flex-shrink: 0;
}

.drawer-lite__close {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.drawer-lite__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-lite__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: calc(100% - 24px);
}

.drawer-lite__brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}

.drawer-lite__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(180px, 58vw);
  object-fit: contain;
}

.drawer-lite__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.drawer-lite__auth {
  display: block;
  padding: 14px 20px 16px;
  text-align: right;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
}

.drawer-lite__auth:hover,
.drawer-lite__auth:focus-visible {
  color: var(--primary-deep);
}

.drawer-lite__rule {
  height: 1px;
  margin: 0;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

[data-theme="dark"] .drawer-lite__rule {
  background: rgba(255, 255, 255, 0.1);
}

.drawer-lite__foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 16px 0;
}

.theme-toggle-row--lite {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
}

[data-theme="dark"] .theme-toggle-row--lite {
  border-color: rgba(255, 255, 255, 0.1);
}

.drawer__avatar--grid {
  color: var(--primary-deep);
  background: linear-gradient(145deg, var(--primary-soft), rgba(var(--blush-rgb), 0.35));
}

.drawer__avatar--grid svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.drawer__profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer__avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--primary-soft), var(--primary));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.drawer__profile h3 {
  font-size: 1rem;
}

.drawer__profile p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  overflow: visible;
}

.drawer__links-block {
  flex: 1 1 auto;
  margin-top: 4px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 4px;
}

.drawer__foot {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: background 0.2s var(--ease);
}

.drawer__link:hover,
.drawer__link:focus-visible {
  background: var(--surface);
}

.drawer__link .ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.drawer__link .ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.theme-switch {
  width: 52px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  position: relative;
  border: 1px solid var(--hairline);
}

.theme-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.28s var(--ease);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .theme-switch::after {
  transform: translateX(-22px);
}

/* ========== Main content ========== */
.page-pad {
  padding: 4px 16px 20px;
  overflow: visible;
}

.section {
  margin-top: 22px;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section__head h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.section__head p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.link-more {
  font-size: 0.82rem;
  color: var(--primary-deep);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  white-space: nowrap;
}

/* Stories / highlights — Swiper */
.stories-swiper {
  overflow: visible;
  margin-inline: -2px;
  padding: 4px 2px 8px;
}

.stories-swiper .swiper-slide {
  width: 72px;
}

.story {
  display: block;
  width: 72px;
  text-align: center;
}

.story__ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 22px;
  padding: 2px;
  background: var(--grad-story);
}

.story__inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 2px solid var(--bg);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.story__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story span {
  font-size: 0.72rem;
  color: var(--text-soft);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.chip-row > .chip,
.chip-row > a.chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

/* Hero Swiper */
.hero-swiper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: relative;
  min-height: 220px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(40, 28, 22, 0.55) 100%);
  z-index: 1;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
}

.hero-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.hero-slide h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 16ch;
}

.hero-slide p {
  margin-top: 8px;
  font-size: 0.88rem;
  opacity: 0.92;
  max-width: 28ch;
}

.hero-slide .cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: #3a2f28;
  font-weight: 600;
  font-size: 0.88rem;
  width: fit-content;
}

.hero-a { background: linear-gradient(145deg, #e8b0bc, #d4a0a8 40%, #b87a86); }
.hero-b { background: linear-gradient(145deg, #f0c0cc, #e891a8 45%, #c46a82); }
.hero-c { background: linear-gradient(145deg, #e8c8b8, #d4a898 40%, #b88878); }

html[data-palette="nude"] .hero-a { background: linear-gradient(145deg, #e3dad0, #c4b3a3 40%, #8f7a68); }
html[data-palette="nude"] .hero-b { background: linear-gradient(145deg, #ebe3da, #d4c4b4 45%, #9a8674); }
html[data-palette="nude"] .hero-c { background: linear-gradient(145deg, #e8dfd4, #c9b8a6 40%, #a8907c); }

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  width: 8px;
  height: 8px;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #fff;
  width: 20px;
  border-radius: 8px;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.trust-item {
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-soft);
}

.trust-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 2px;
}

.trust-item .emoji-dot {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Categories — swipe on mobile, denser on desktop */
.cat-swiper {
  overflow: visible;
  margin-inline: -2px;
  padding: 2px 2px 8px;
}

.cat-swiper .swiper-slide {
  height: auto;
  width: 42%;
}

.cat-swiper .swiper-slide > .cat-card {
  width: 100%;
  height: 100%;
}

@media (min-width: 600px) {
  .cat-swiper .swiper-slide {
    width: 30%;
  }
}

@media (min-width: 900px) {
  .cat-swiper .swiper-slide {
    width: 160px;
  }
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 720px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.cat-card {
  padding: 14px 10px;
  border-radius: var(--radius-md);
  text-align: center;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cat-card__media {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent-soft), rgba(var(--blush-rgb), 0.45));
  color: var(--primary-deep);
}

.cat-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-card strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.cat-card span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Product swiper / grid */
.product-swiper {
  overflow: visible;
  margin-inline: -4px;
  padding-inline: 4px;
}

.product-swiper .swiper-wrapper {
  align-items: stretch;
}

.product-swiper .swiper-slide {
  width: 168px;
  height: auto;
  display: flex;
}

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

@media (min-width: 720px) {
  .product-swiper .swiper-slide {
    width: 200px;
  }
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 0;
}

.product-card__media .bottle {
  width: 42%;
  height: 58%;
  border-radius: 18px 18px 12px 12px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px rgba(0, 0, 0, 0.08);
  position: relative;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.product-card__media .bottle::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 14%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
}

.product-card__fav {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}

.product-card__fav svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.8;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.product-card__body {
  position: relative;
  z-index: 0;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  pointer-events: none;
}

.product-card__brand {
  font-size: 0.7rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.product-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(1.45em * 2);
  min-height: calc(1.45em * 2);
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-top: auto;
  padding-top: 6px;
  min-height: 2.6em;
}

.product-card__price strong {
  font-size: 0.92rem;
  color: var(--primary-deep);
  line-height: 1.3;
}

.product-card__price s {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: stretch;
}

.product-grid > .product-card {
  height: 100%;
}

.product-card__add {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 4;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  width: 100%;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-cta-hot);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 1px rgba(120, 30, 55, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 -6px 16px rgba(224, 80, 120, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), filter 0.25s var(--ease), background 0.25s var(--ease);
}

.product-card__add:hover {
  filter: brightness(1.06);
  background: var(--grad-cta-hot-hover);
}

[data-theme="dark"] .product-card__add {
  color: #fff8fb;
  background: var(--grad-cta-hot);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 -6px 18px rgba(0, 0, 0, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__add,
  .product-card:focus-within .product-card__add {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Touch: keep add bar reachable without blocking card navigation */
@media (hover: none), (pointer: coarse) {
  .product-card .product-card__add {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

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

/* Promo banner */
.promo-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 50%),
    var(--promo-banner-grad);
  color: #fff;
  min-height: 140px;
}

.promo-banner h3 {
  font-size: 1.2rem;
  max-width: 14ch;
}

.promo-banner p {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.92;
  max-width: 28ch;
}

.promo-banner .cta {
  margin-top: 14px;
  display: inline-flex;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: #3a2f28;
  font-size: 0.84rem;
  font-weight: 600;
}

/* About / Instagram CTA */
.about-card {
  padding: 20px;
  border-radius: var(--radius-xl);
}

.about-card h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.ig-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--grad-cta);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.25);
}

/* Bottom nav — flush to screen bottom on mobile/tablet */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  z-index: 60;
  padding: 0;
  pointer-events: none;
}

.bottom-nav__inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: center;
  padding: 6px 8px calc(6px + var(--safe-b));
  margin: 0;
  width: 100%;
  max-width: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  min-height: var(--bottom-nav);
  box-shadow: 0 -8px 24px rgba(var(--accent-rgb), 0.1);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 0.58rem;
  line-height: 1.15;
  transition: color 0.2s, background 0.2s;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-nav__item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav__item.is-active {
  color: var(--primary-deep);
  background: var(--primary-soft);
}

.bottom-nav__item.is-center {
  transform: translateY(-6px);
}

.bottom-nav__item.is-center .nav-fab {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--grad-cta);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.32);
}

[data-theme="dark"] .bottom-nav__item.is-center .nav-fab {
  color: #2a1820;
}

/* Generic page content */
.entry {
  padding: 8px 16px 24px;
}

.entry .glass {
  padding: 20px;
  border-radius: var(--radius-xl);
}

.entry h1 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* Screen reader */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Desktop polish */
@media (min-width: 900px) {
  .app-shell {
    padding-top: 8px;
    padding-bottom: 16px;
  }

  .hero-slide {
    min-height: 320px;
    padding: 40px 48px;
  }

  .page-pad {
    padding-inline: 24px;
  }

  .bottom-nav {
    display: none;
  }

  .site-footer {
    padding-bottom: 8px;
  }

  .footer-bottom {
    margin-top: 10px;
    padding-bottom: 0;
  }
}

/* Neutralize WooCommerce leftovers on app pages */
body.sepidroo-app .woocommerce a.button,
body.sepidroo-app .woocommerce button.button,
body.sepidroo-app #add_payment_method .wc-proceed-to-checkout a.checkout-button {
  border-radius: var(--radius-pill);
}

body.sepidroo-app .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

body.sepidroo-app .woocommerce ul.products::before,
body.sepidroo-app .woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

body.sepidroo-app .woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

/* ---- Fixes & options-driven UI polish ---- */
.section--tight {
  margin-top: 10px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-header__brand .custom-logo-link,
.app-header__brand .brand-logo {
  display: block;
  flex-shrink: 0;
}

.app-header__brand .custom-logo-link {
  width: auto;
  height: 40px;
  border-radius: 0;
  overflow: visible;
}

.app-header__brand .custom-logo {
  width: auto;
  height: 40px;
  max-width: min(180px, 42vw);
  object-fit: contain;
}

body.drawer-open {
  overflow: hidden;
}

.drawer-overlay[hidden] {
  display: none !important;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.chip.is-selected {
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-color: transparent;
}

.product-card__fav.is-active svg {
  fill: var(--accent);
  stroke: var(--accent);
}

.wc-shell {
  padding: 18px;
  border-radius: var(--radius-xl);
  margin-top: 8px;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  overflow: visible;
}

/* ========== Footer (Sara Mohajeri style) ========== */
.glass-card {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.28);
}

[data-theme="dark"] .btn-primary {
  color: #2a1820;
  background: var(--grad-cta);
}

.btn-lg {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
}

.site-footer {
  padding: 12px 0 8px;
  margin-top: 8px;
}

.site-footer__panel {
  margin-bottom: 8px;
}

.cta-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 248, 250, 0.9), rgba(242, 196, 208, 0.38)),
    var(--glass);
}

[data-theme="dark"] .cta-panel {
  background:
    linear-gradient(145deg, rgba(58, 42, 52, 0.94), rgba(200, 100, 140, 0.16)),
    var(--glass);
}

.cta-panel__promo {
  display: grid;
  gap: 18px;
  padding: 28px 22px;
  text-align: center;
}

.cta-panel__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.cta-panel__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.75;
}

.cta-panel__divider {
  height: 1px;
  margin: 0 22px;
  background: linear-gradient(to left, transparent, rgba(var(--blush-rgb), 0.45), transparent);
}

.cta-panel__contact {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.cta-panel__brand-name {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-deep);
  font-size: 1.12rem;
}

.cta-panel__brand p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.cta-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-panel__link {
  font-weight: 700;
  color: var(--primary-deep);
  text-decoration: none;
  width: fit-content;
}

.cta-panel__address {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 14px;
  padding-bottom: 6px;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.footer-bottom__copy,
.footer-bottom__credit {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.footer-bottom__copy small {
  font-size: inherit;
}

.footer-bottom__credit-label {
  white-space: nowrap;
}

.footer-bottom__credit-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 6px;
  outline-offset: 3px;
}

.footer-bottom__credit-logo {
  display: block;
  width: 82px;
  max-width: 90px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
  background: transparent;
  filter: grayscale(1) brightness(0.75);
  transition: filter 0.25s var(--ease);
}

[data-theme="dark"] .footer-bottom__credit-logo {
  filter: grayscale(1) brightness(1.6);
}

.footer-bottom__credit-link:hover .footer-bottom__credit-logo,
.footer-bottom__credit-link:focus-visible .footer-bottom__credit-logo {
  filter: none;
}

@media (max-width: 640px) {
  .footer-bottom__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-bottom__copy,
  .footer-bottom__credit {
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .cta-panel__promo {
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: start;
    padding: 32px 36px 28px;
  }

  .cta-panel__contact {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 24px 36px 32px;
  }
}

/* ========== Founder intro (overflow portrait) ========== */
.founder-section {
  margin-top: 36px;
  padding-top: 28px;
  overflow: visible;
}

.founder-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  min-height: 320px;
  padding-top: 72px;
  overflow: visible;
}

.founder-card {
  position: relative;
  z-index: 1;
  padding: 28px 22px 26px;
  padding-left: min(42%, 190px);
  min-height: 240px;
  overflow: visible;
  background:
    var(--founder-card-grad),
    var(--glass-strong);
}

[data-theme="dark"] .founder-card {
  background:
    var(--founder-card-grad-dark),
    var(--glass-strong);
}

.founder-card__glow {
  position: absolute;
  inset: auto auto -20% -10%;
  width: 55%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--blush-rgb), 0.4), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.founder-card__body {
  position: relative;
  z-index: 2;
  max-width: 34ch;
}

.founder-card__eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.founder-card__name {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.founder-card__bio {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.founder-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-ghost {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-instagram {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
  box-shadow: 0 12px 24px rgba(221, 42, 123, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-instagram__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-instagram__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-instagram:hover {
  filter: brightness(1.05);
}

.btn-consult {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .btn-consult {
  background: rgba(48, 40, 36, 0.65);
}

.btn-consult__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary-deep);
}

.btn-consult__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.founder-portrait {
  position: absolute;
  z-index: 3;
  left: 8px;
  bottom: 0;
  width: min(46%, 210px);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.founder-portrait__ring,
.founder-portrait__ring--soft {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(var(--blush-rgb), 0.4);
  pointer-events: none;
}

.founder-portrait__ring {
  width: 118%;
  height: 58%;
  opacity: 0.7;
}

.founder-portrait__ring--soft {
  width: 140%;
  height: 70%;
  opacity: 0.35;
  border-style: dashed;
}

.founder-portrait__figure {
  position: relative;
  margin: 0;
  line-height: 0;
  display: flex;
  align-items: flex-end;
  filter: drop-shadow(0 18px 28px rgba(90, 70, 55, 0.22));
}

.founder-portrait__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: bottom center;
  transform: scale(1.06);
  transform-origin: bottom center;
  vertical-align: bottom;
}

.founder-portrait__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 28px 28px 18px 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.55), transparent 45%),
    var(--founder-placeholder);
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

@media (min-width: 720px) {
  .founder-stage {
    min-height: 360px;
    padding-top: 48px;
  }

  .founder-card {
    padding: 36px 40px 34px;
    padding-left: 280px;
  }

  .founder-card__body {
    max-width: 42ch;
  }

  .founder-portrait {
    left: 28px;
    width: 250px;
  }

  .founder-portrait__img {
    max-height: 440px;
    transform: scale(1.1);
  }
}

@media (min-width: 900px) {
  .founder-stage {
    min-height: 400px;
  }

  .founder-card {
    padding-left: 320px;
  }

  .founder-portrait {
    left: 48px;
    width: 280px;
  }

  .founder-portrait__img {
    max-height: 500px;
    transform: scale(1.12);
  }
}

@media (max-width: 520px) {
  .founder-stage {
    padding-top: 88px;
  }

  .founder-card {
    padding: 22px 18px 22px;
    padding-top: 120px;
    padding-left: 18px;
    text-align: center;
  }

  .founder-card__body {
    max-width: none;
  }

  .founder-card__actions {
    justify-content: center;
  }

  .founder-portrait {
    left: 50%;
    transform: translateX(-50%);
    width: 168px;
    bottom: auto;
    top: -8px;
  }

  .founder-portrait__img {
    max-height: 240px;
    transform: translateY(0) scale(1.05);
  }

  .founder-portrait__placeholder {
    transform: none;
  }
}

/* ========== WooCommerce archive + single ========== */
.shop-archive {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.shop-archive__main {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.shop-archive__title {
  font-size: 1.25rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.shop-archive__desc {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.shop-archive__chips-wrap {
  position: relative;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}

.shop-archive__chips.chips-swiper {
  max-width: 100%;
  overflow: hidden;
  padding: 4px 2px 8px;
  margin: 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

.chips-swiper .swiper-wrapper {
  align-items: center;
}

.chips-swiper .swiper-slide {
  width: auto;
  height: auto;
}

.shop-archive__chips .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--hairline);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  box-shadow: 0 4px 12px rgba(140, 80, 100, 0.06);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

[data-theme="dark"] .shop-archive__chips .chip {
  background: rgba(62, 50, 58, 0.78);
}

.shop-archive__chips .chip:hover {
  color: var(--primary-deep);
  border-color: rgba(var(--blush-rgb), 0.45);
}

.shop-archive__chips .chip.is-selected {
  background: var(--grad-mega);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.28);
}

.archive-seo {
  margin-top: 22px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
  min-width: 0;
  overflow-wrap: anywhere;
}

.archive-seo__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.archive-seo__body {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.85;
}

.archive-seo__body p:last-child {
  margin-bottom: 0;
}

.shop-archive__toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
}

.shop-archive__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.shop-archive__toolbar-actions > .chip {
  flex: 0 0 auto;
}

.shop-archive__toolbar-actions .layout-toggle {
  flex: 0 0 auto;
}

.shop-archive__toolbar-actions .woocommerce-ordering {
  margin: 0;
  margin-inline-start: auto;
  flex: 1 1 160px;
  min-width: 0;
  max-width: 240px;
}

.shop-archive__toolbar .woocommerce-ordering select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--glass-strong);
  color: var(--text);
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.82rem;
  box-sizing: border-box;
}

.shop-archive__toolbar-meta {
  display: flex;
  align-items: center;
  min-width: 0;
}

.shop-archive__toolbar .woocommerce-result-count {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (min-width: 640px) {
  .shop-archive__toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .shop-archive__toolbar-actions {
    flex: 1 1 auto;
    min-width: 0;
  }

  .shop-archive__toolbar-meta {
    flex: 0 0 auto;
    order: -1;
  }

  .shop-archive__toolbar-actions .woocommerce-ordering {
    flex: 0 1 220px;
  }
}

body.sepidroo-app ul.products,
body.sepidroo-app .woocommerce ul.products,
body.sepidroo-app .archive-products ul.products {
  list-style: none;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

body.sepidroo-app ul.products::before,
body.sepidroo-app ul.products::after,
body.sepidroo-app .woocommerce ul.products::before,
body.sepidroo-app .woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

body.sepidroo-app ul.products li.product,
body.sepidroo-app .sepidroo-product-item,
body.sepidroo-app .woocommerce ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  padding: 0;
  list-style: none;
  min-width: 0;
}

body.sepidroo-app .woocommerce-pagination {
  margin-top: 22px;
}

body.sepidroo-app .woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.sepidroo-app .woocommerce-pagination li {
  margin: 0;
}

body.sepidroo-app .woocommerce-pagination a,
body.sepidroo-app .woocommerce-pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-size: 0.85rem;
}

body.sepidroo-app .woocommerce-pagination .current {
  background: var(--grad-cta);
  color: #fff;
  border-color: transparent;
}

.spd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.spd-breadcrumb a {
  color: var(--text-soft);
}

.spd-product__grid {
  display: grid;
  gap: 16px;
}

.spd-product__gallery {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 10px;
}

.spd-product__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.spd-product__gallery .woocommerce-product-gallery {
  margin: 0;
  opacity: 1 !important;
}

.spd-product__gallery .woocommerce-product-gallery__image img,
.spd-product__gallery .wp-post-image {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-soft);
}

.spd-product__gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.spd-product__gallery .flex-control-thumbs li {
  margin: 0;
  width: auto !important;
  float: none !important;
}

.spd-product__gallery .flex-control-thumbs img {
  border-radius: 14px;
  opacity: 0.7;
}

.spd-product__gallery .flex-control-thumbs .flex-active,
.spd-product__gallery .flex-control-thumbs img:hover {
  opacity: 1;
}

.spd-product__brand {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spd-product__title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  line-height: 1.35;
}

.spd-product__price {
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.spd-product__price del {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-inline-start: 8px;
}

.spd-product__price ins {
  text-decoration: none;
}

.spd-product__excerpt {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}

.spd-product__usage {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.spd-product__usage-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.spd-product__usage-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.spd-product__usage-row {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.spd-product__usage-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.spd-product__usage-row dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.spd-product__usage-row dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.spd-product__usage-content > *:first-child {
  margin-top: 0;
}

.spd-product__usage-content > *:last-child {
  margin-bottom: 0;
}

.spd-product__usage-content p,
.spd-product__usage-content ul,
.spd-product__usage-content ol {
  margin: 0 0 0.55em;
}

.spd-product__usage-content ul,
.spd-product__usage-content ol {
  padding-inline-start: 1.2em;
}

.spd-product__usage-row--how dd {
  color: var(--text-soft);
}

.spd-product__cart .quantity {
  display: inline-flex;
  align-items: center;
  margin-inline-end: 10px;
}

.spd-product__cart .qty {
  width: 64px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--glass-strong);
  color: var(--text);
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
}

.spd-product__cart .single_add_to_cart_button,
body.sepidroo-app .spd-product__cart button.button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--grad-cta);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.28);
}

.spd-product__meta {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.spd-product__meta a {
  color: var(--primary-deep);
}

.spd-product__panel {
  padding: 20px;
  border-radius: var(--radius-xl);
}

.spd-product__panel-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.spd-product__description {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.85;
}

.spd-product__description p:last-child {
  margin-bottom: 0;
}

.deal-card__photo {
  width: min(180px, 42vw);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

.deal-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-banner {
  background-size: cover;
  background-position: center;
}

.spd-notices .woocommerce-message,
.spd-notices .woocommerce-info,
.spd-notices .woocommerce-error,
body.sepidroo-app .woocommerce-message,
body.sepidroo-app .woocommerce-info,
body.sepidroo-app .woocommerce-error {
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--glass-strong);
  color: var(--text);
  padding: 12px 14px;
  margin-bottom: 12px;
  list-style: none;
}

@media (min-width: 720px) {
  .spd-product__grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    gap: 22px;
  }
}

/* ========== Deal section (timer header + product cards) ========== */
.deal-section__head {
  align-items: flex-start;
  gap: 14px;
}

.deal-section__copy .deal-card__eyebrow {
  margin-bottom: 8px;
}

.deal-section__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.deal-section__timer {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  min-width: min(100%, 260px);
}

.deal-section__timer .deal-card__timer-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-align: center;
}

.deal-section__timer .deal-card__units {
  margin: 0;
  justify-content: center;
}

.deal-section__swiper {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .deal-section__head {
    flex-direction: column;
  }

  .deal-section__aside {
    width: 100%;
    align-items: stretch;
  }

  .deal-section__aside .link-more {
    align-self: flex-start;
  }
}

/* ========== Blog ========== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.blog-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-lg);
  align-items: stretch;
  color: inherit;
  overflow: hidden;
}

.blog-card__media {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 4px 4px 4px 0;
}

.blog-card__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.blog-card__title {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.blog-card__excerpt {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 720px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card__media {
    aspect-ratio: 16 / 10;
  }
}

/* ========== Videos ========== */
.videos-swiper {
  overflow: visible;
  margin-inline: -4px;
  padding-inline: 4px;
}

.videos-swiper .swiper-slide {
  width: 220px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-lg);
  color: inherit;
  height: 100%;
}

.video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    var(--grad-cta);
  background-size: cover;
  background-position: center;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(40, 20, 30, 0.28);
  color: #fff;
  backdrop-filter: blur(2px);
}

.video-card__play svg {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.video-card__title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  padding: 0 4px 4px;
}

@media (min-width: 720px) {
  .videos-swiper .swiper-slide {
    width: 260px;
  }
}

/* ========== Footer extras ========== */
.footer-extras {
  margin-bottom: 12px;
}

.footer-extras__grid {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.footer-extras__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-menu a:hover {
  color: var(--primary-deep);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-badge {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

[data-theme="dark"] .footer-badge {
  background: rgba(48, 40, 46, 0.7);
}

.footer-badge img {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.footer-badge--placeholder {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-extras__note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.65;
}

@media (min-width: 720px) {
  .footer-extras__grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
    padding: 22px 24px;
  }
}

/* ========== Header menus (3 slots) ========== */
.header-menus {
  display: none;
  align-items: center;
  gap: 6px 14px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  overflow: visible;
}

.header-menu__list {
  display: flex;
  align-items: center;
  gap: 2px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.header-menu__list > li {
  position: relative;
  margin: 0;
}

.header-menu__list > li > a {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.header-menu__list > li > a:hover,
.header-menu__list > li.current-menu-item > a {
  color: var(--primary-deep);
  background: rgba(var(--blush-rgb), 0.16);
}

.header-menu__list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  list-style: none;
  margin: 0;
  border-radius: 16px;
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  z-index: 60;
}

.header-menu__list > li:hover > .sub-menu,
.header-menu__list > li:focus-within > .sub-menu {
  display: grid;
  gap: 2px;
}

.header-menu__list .sub-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.header-menu__list .sub-menu a:hover {
  background: rgba(var(--blush-rgb), 0.14);
  color: var(--primary-deep);
}

@media (min-width: 1100px) {
  .app-header__bar {
    gap: 12px;
  }

  .app-header__brand {
    flex: 0 1 auto;
    max-width: 200px;
  }

  .app-header__menu-btn {
    display: none;
  }

  .header-menus {
    display: flex;
    align-items: center;
    gap: 8px 14px;
  }

  .header-menu + .header-menu {
    padding-inline-start: 12px;
    border-inline-start: 1px solid var(--hairline);
  }

  .app-header__actions {
    gap: 8px;
  }
}

/* ========== Mega menu (Digikala / Khanoumi style) ========== */
.mega-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 70;
}

.mega-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-mega);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.28);
  white-space: nowrap;
}

.mega-menu__trigger svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mega-menu__caret {
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease);
}

.mega-menu__caret svg {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
}

.mega-menu.is-open .mega-menu__caret {
  transform: rotate(180deg);
}

.mega-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(36, 22, 30, 0.45);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.mega-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mega-menu-open .app-header {
  z-index: 60;
}

.mega-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: min(920px, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(40, 18, 28, 0.28),
    0 8px 24px rgba(40, 18, 28, 0.12);
  animation: sepidroo-modal-in 0.22s var(--ease);
}

.mega-menu__panel[hidden] {
  display: none !important;
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  min-height: 360px;
  max-height: min(72vh, 560px);
}

.mega-menu__parents {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  overflow-y: auto;
  background: rgba(255, 246, 248, 0.72);
  border-inline-end: 1px solid var(--hairline);
  overscroll-behavior: contain;
}

[data-theme="dark"] .mega-menu__parents {
  background: rgba(42, 32, 40, 0.72);
}

.mega-menu__parent {
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mega-menu__parent-icon,
.mega-menu__parent-arrow {
  display: grid;
  place-items: center;
}

.mega-menu__parent-icon svg,
.mega-menu__parent-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mega-menu__parent-arrow {
  opacity: 0.45;
}

.mega-menu__parent:hover,
.mega-menu__parent.is-active {
  background: rgba(var(--blush-rgb), 0.2);
  color: var(--primary-deep);
}

.mega-menu__parent.is-active .mega-menu__parent-arrow {
  opacity: 1;
}

.mega-menu__content {
  padding: 16px 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 0;
}

.mega-menu__pane[hidden] {
  display: none !important;
}

.mega-menu__pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.mega-menu__pane-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.mega-menu__all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.mega-menu__all svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  transform: scaleX(-1);
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
}

.mega-menu__col {
  min-width: 0;
  padding: 4px 0;
}

.mega-menu__child {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.mega-menu__child:hover {
  color: var(--primary-deep);
}

.mega-menu__grand {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.mega-menu__grand a {
  display: block;
  padding: 4px 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.mega-menu__grand a:hover {
  color: var(--primary-deep);
}

.mega-menu__empty {
  margin: 24px 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.mega-menu__empty a {
  color: var(--primary-deep);
  font-weight: 600;
}

body.mega-menu-open {
  overflow: hidden;
}

/* Drawer category mega (mobile drill-down) */
.drawer-mega {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.drawer-mega__head {
  display: none;
}

.drawer-mega__viewport {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

.drawer-mega__track {
  position: relative;
  height: 100%;
  min-height: 280px;
}

.drawer-mega__panel {
  position: absolute;
  inset: 0;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0 12px;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.drawer-mega__panel.is-active,
.drawer-mega__panel.is-leave-forward,
.drawer-mega__panel.is-leave-back {
  display: block;
}

.drawer-mega__panel.is-active {
  z-index: 2;
  animation: none;
}

.drawer-mega__panel.is-enter-forward {
  animation: sepidroo-mega-in-forward 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-mega__panel.is-enter-back {
  animation: sepidroo-mega-in-back 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-mega__panel.is-leave-forward {
  z-index: 1;
  animation: sepidroo-mega-out-forward 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.drawer-mega__panel.is-leave-back {
  z-index: 1;
  animation: sepidroo-mega-out-back 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sepidroo-mega-in-forward {
  from {
    transform: translate3d(-24%, 0, 0);
    opacity: 0.35;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes sepidroo-mega-in-back {
  from {
    transform: translate3d(18%, 0, 0);
    opacity: 0.4;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes sepidroo-mega-out-forward {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  to {
    transform: translate3d(18%, 0, 0);
    opacity: 0;
  }
}

@keyframes sepidroo-mega-out-back {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  to {
    transform: translate3d(-24%, 0, 0);
    opacity: 0;
  }
}

.drawer-mega__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .drawer-mega__bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.drawer-mega__back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 2px;
}

.drawer-mega__back-chev {
  display: inline-grid;
  place-items: center;
  transform: scaleX(-1);
  opacity: 0.7;
}

.drawer-mega__back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.drawer-mega__current {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.drawer-mega__all {
  display: flex;
  align-items: center;
  margin: 4px 0 2px;
  padding: 12px 20px;
  color: var(--primary-deep);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.drawer-mega__all:hover,
.drawer-mega__all:focus-visible {
  background: rgba(var(--blush-rgb), 0.1);
}

.drawer-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.drawer-mega__sep {
  list-style: none;
  margin: 6px 0;
  padding: 0;
}

.drawer-mega__sep span {
  display: block;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .drawer-mega__sep span {
  background: rgba(255, 255, 255, 0.1);
}

.drawer-mega__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease;
}

.drawer-mega__row:hover,
.drawer-mega__row:focus-visible {
  background: rgba(0, 0, 0, 0.035);
}

[data-theme="dark"] .drawer-mega__row:hover,
[data-theme="dark"] .drawer-mega__row:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.drawer-mega__ico {
  display: none;
}

.drawer-mega__chev {
  order: -1;
  opacity: 0.38;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--text-muted);
}

.drawer-mega__chev svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-mega__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.drawer__links-block {
  margin-top: 4px;
}

.drawer__links-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.drawer-cats {
  display: none;
}

@media (max-width: 1099px) {
  .mega-menu {
    display: none;
  }
}

@media (max-width: 820px) {
  .mega-menu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== Search modal ========== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-b));
}

.search-modal[hidden] {
  display: none !important;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 24, 30, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  overscroll-behavior: contain;
  border-radius: 28px;
  padding: 18px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: sepidroo-modal-in 0.28s var(--ease);
}

.search-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 4px 10px;
}

@keyframes sepidroo-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.search-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 52px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.search-field svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.search-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.search-filters--price {
  grid-template-columns: 1fr 1fr;
}

.search-filter {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-filter select,
.search-filter input {
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 0.88rem;
}

.search-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.search-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-soft);
  cursor: pointer;
}

.search-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-modal__actions .btn,
.archive-filters__actions .btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
}

.search-modal__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.search-modal__results {
  min-height: 120px;
}

.search-hint,
.search-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-results-grid {
  margin-top: 4px;
}

body.search-modal-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .search-filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-modal__panel {
    padding: 22px 24px 24px;
  }
}

/* ========== Archive layout + filters ========== */
.shop-archive__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.archive-filters {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-xl);
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.archive-filters.is-open {
  display: flex;
  position: fixed;
  inset: auto 0 0 0;
  top: auto;
  z-index: 110;
  max-height: min(88vh, 720px);
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  padding-bottom: calc(12px + var(--safe-b));
  animation: sepidroo-modal-in 0.28s var(--ease);
}

.archive-filters.is-open .archive-filters__form {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-inline-end: 2px;
}

.archive-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.archive-filters__head h2 {
  margin: 0;
  font-size: 1.05rem;
  min-width: 0;
}

.archive-filters__form {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.archive-filters__form .search-filter,
.archive-filters__form .search-filters,
.archive-filters__form .search-checks {
  min-width: 0;
  max-width: 100%;
}

.archive-filters__form .search-filter select,
.archive-filters__form .search-filter input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.archive-filters__form .search-filters--price {
  grid-template-columns: 1fr;
  gap: 12px;
}

.archive-filters__form .search-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.archive-filters__form .search-check {
  min-width: 0;
  white-space: normal;
}

.archive-filters__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
  min-width: 0;
}

.archive-filters__actions .btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  white-space: nowrap;
}

.archive-filters-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(36, 24, 30, 0.42);
  backdrop-filter: blur(4px);
}

.archive-filters-overlay[hidden] {
  display: none !important;
}

.layout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.layout-toggle__btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.layout-toggle__btn svg {
  width: 18px;
  height: 18px;
}

.layout-toggle__btn.is-active {
  background: rgba(var(--blush-rgb), 0.22);
  color: var(--primary-deep);
}

.archive-products {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

body.sepidroo-app ul.products {
  align-items: stretch;
}

body.sepidroo-app ul.products li.product,
body.sepidroo-app .sepidroo-product-item {
  display: flex;
  height: 100%;
  min-height: 0;
}

body.sepidroo-app ul.products .product-card {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

/* List / wide layout */
[data-archive-layout="list"] ul.products,
[data-archive-layout="list"] .product-grid {
  grid-template-columns: 1fr !important;
  gap: 12px;
}

[data-archive-layout="list"] .product-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 120px;
}

[data-archive-layout="list"] .product-card__media {
  width: min(112px, 36%);
  aspect-ratio: 1;
  flex: 0 0 auto;
}

[data-archive-layout="list"] .product-card__body {
  flex: 1 1 auto;
  justify-content: center;
  padding: 12px 14px;
  min-width: 0;
}

[data-archive-layout="list"] .product-card__title {
  height: auto;
  min-height: 0;
  -webkit-line-clamp: 2;
}

[data-archive-layout="list"] .product-card__add {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  writing-mode: horizontal-tb;
  font-size: 0.72rem;
}

@media (min-width: 720px) {
  body.sepidroo-app ul.products,
  body.sepidroo-app .woocommerce ul.products,
  body.sepidroo-app .archive-products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  [data-archive-layout="list"] .product-card__media {
    width: min(132px, 34%);
  }
}

@media (min-width: 960px) {
  .shop-archive__layout {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .archive-filters {
    display: flex;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - var(--nav-height) - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .archive-filters__close,
  .archive-filters-overlay,
  [data-filters-open] {
    display: none !important;
  }

  .archive-filters.is-open {
    position: sticky;
    inset: auto;
    top: calc(var(--nav-height) + 28px);
    border-radius: var(--radius-xl);
    padding-bottom: 16px;
    animation: none;
  }

  .archive-filters__form .search-filters--price {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.sepidroo-app ul.products,
  body.sepidroo-app .woocommerce ul.products,
  body.sepidroo-app .archive-products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  body.sepidroo-app ul.products,
  body.sepidroo-app .woocommerce ul.products,
  body.sepidroo-app .archive-products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ========== Single product tabs / FAQ / consult ========== */
.spd-product__help {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.spd-product__help p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.spd-product__help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spd-product__help-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
}

.spd-tabs {
  margin-top: 22px;
}

.spd-tabs__nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.spd-tabs__btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.spd-tabs__btn.is-active {
  background: var(--grad-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.22);
}

.spd-tabs__panel {
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
}

.spd-tabs__panel[hidden] {
  display: none !important;
}

.spd-faq {
  display: grid;
  gap: 8px;
}

.spd-faq__item {
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  overflow: hidden;
}

.spd-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.spd-faq__item summary::-webkit-details-marker {
  display: none;
}

.spd-faq__item summary::after {
  content: "+";
  float: left;
  color: var(--primary-deep);
  font-weight: 700;
}

.spd-faq__item[open] summary::after {
  content: "–";
}

.spd-faq__a {
  padding: 0 16px 14px;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.75;
}

.spd-faq__a p:last-child {
  margin-bottom: 0;
}

.spd-consult__text {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.75;
}

.spd-consult__list {
  margin: 0 0 16px;
  padding: 0 18px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}

.spd-tabs__panel .btn-primary {
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
}

button.bottom-nav__item {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  margin: 0;
}

@media (min-width: 900px) {
  .app-shell {
    padding-bottom: 40px;
  }
}

/* ========== Home banners strip ========== */
.section--banners {
  margin-top: 28px;
  margin-bottom: 8px;
  padding-block: 4px;
}

@media (min-width: 768px) {
  .section--banners {
    margin-top: 36px;
    margin-bottom: 12px;
  }
}

.banners-swiper {
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding-bottom: 28px;
}

.banners-swiper .swiper-slide {
  height: auto;
}

.home-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
}

.home-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.home-banner:hover .home-banner__img {
  transform: scale(1.04);
}

.home-banner__label {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 16px rgba(140, 80, 100, 0.12);
}

[data-theme="dark"] .home-banner__label {
  background: rgba(42, 28, 36, 0.78);
  color: var(--primary-deep);
}

.banners-swiper__pag {
  bottom: 0 !important;
}

.banners-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(200, 120, 140, 0.35);
  opacity: 1;
}

.banners-swiper .swiper-pagination-bullet-active {
  background: var(--grad-mega);
  width: 18px;
  border-radius: 999px;
}

@media (min-width: 1024px) {
  .home-banner {
    aspect-ratio: 4 / 3;
  }
}

/* ========== Cart page cards ========== */
.entry--commerce {
  padding: 0;
}

.entry--commerce > .entry__commerce {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.entry--commerce .page-content > *:first-child {
  margin-top: 0;
}

.spd-cart {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.spd-cart__head {
  margin-bottom: 2px;
}

.spd-cart__title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.spd-cart__subtitle {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.spd-cart__list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.spd-cart-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  align-items: stretch;
  min-width: 0;
}

.spd-cart-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1;
}

.spd-cart-card__media a {
  display: block;
  height: 100%;
}

.spd-cart-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spd-cart-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.spd-cart-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.spd-cart-card__info {
  min-width: 0;
  flex: 1 1 auto;
}

.spd-cart-card__brand {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spd-cart-card__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.spd-cart-card__name a {
  color: inherit;
}

.spd-cart-card__name a:hover {
  color: var(--primary-deep);
}

.spd-cart-card__unit-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.spd-cart-card__unit-price .amount,
.spd-cart-card__unit-price bdi {
  color: var(--primary-deep);
  font-weight: 700;
}

.spd-cart-card__remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(217, 122, 138, 0.12);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(217, 122, 138, 0.22);
}

.spd-cart-card__remove svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.spd-cart-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px dashed var(--hairline);
}

.spd-cart-card__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spd-cart-card__qty-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spd-cart-card__qty .quantity {
  display: inline-flex;
  margin: 0;
}

.spd-cart-card__qty .qty {
  width: 64px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
}

.spd-cart-card__subtotal {
  display: grid;
  gap: 2px;
  text-align: left;
}

.spd-cart-card__subtotal span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.spd-cart-card__subtotal strong,
.spd-cart-card__subtotal .amount {
  font-size: 1rem;
  color: var(--primary-deep);
}

.spd-cart__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
}

.spd-cart__coupon {
  display: flex;
  flex: 1 1 220px;
  gap: 8px;
  min-width: 0;
}

.spd-cart__coupon .input-text {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.spd-cart__actions .btn,
.spd-cart__update {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
}

.spd-cart__collaterals {
  display: grid;
  gap: 14px;
}

.spd-cart-totals {
  padding: 18px;
  border-radius: var(--radius-xl);
}

.spd-cart-totals__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.spd-cart-totals__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
}

.spd-cart-totals__table th,
.spd-cart-totals__table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
  vertical-align: middle;
}

.spd-cart-totals__table th {
  font-weight: 500;
  color: var(--text-soft);
  text-align: right;
}

.spd-cart-totals__table td {
  text-align: left;
  color: var(--text);
  font-weight: 600;
}

.spd-cart-totals__table .order-total th,
.spd-cart-totals__table .order-total td {
  border-bottom: 0;
  padding-top: 14px;
  font-size: 1.05rem;
  color: var(--primary-deep);
}

.spd-cart-totals__checkout .checkout-button,
.spd-cart-totals__checkout .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: var(--grad-mega);
  color: #fff !important;
  border: 0;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.28);
}

.spd-cart-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 36px 22px;
  border-radius: var(--radius-xl);
  margin: 12px 0 20px;
}

.spd-cart-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  background: rgba(var(--blush-rgb), 0.18);
  color: var(--primary-deep);
}

.spd-cart-empty__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.spd-cart-empty h2 {
  margin: 0;
  font-size: 1.15rem;
}

.spd-cart-empty p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
  max-width: 28ch;
}

.spd-cart-empty .btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
}

/* Hide default WC cart table leftovers if any */
body.woocommerce-cart .entry--commerce .woocommerce-cart-form > .shop_table {
  display: none;
}

.spd-cart .variation {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (min-width: 720px) {
  .spd-cart-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .spd-cart {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
    align-items: start;
  }

  .spd-cart__head {
    grid-column: 1 / -1;
  }

  .spd-cart__form {
    min-width: 0;
  }

  .spd-cart__collaterals {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
  }
}

/* ===== Auth shell (login / register / forgot) ===== */
body.sepidroo-auth {
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    calc(12px + var(--safe-t, 0px))
    max(16px, var(--safe-r, 0px))
    calc(24px + var(--safe-b, 0px))
    max(16px, var(--safe-l, 0px));
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-pill, 999px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 150, 160, 0.28);
  color: var(--text, #2a2226);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(180, 120, 140, 0.1);
}

.auth-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1);
  flex-shrink: 0;
}

.auth-back:hover {
  color: var(--primary-deep);
  border-color: rgba(184, 122, 134, 0.45);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.auth-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.auth-brand strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.auth-page {
  width: 100%;
}

.auth-page__content > *:first-child {
  margin-top: 0;
}

/* Profilino / Welcome account dashboard — dark mode contrast */
[data-theme="dark"] .profilino-dash,
[data-theme="dark"] .profilino-style-theme.profilino-dash {
  --welcome-text: var(--text);
  --profilino-muted: var(--text-muted);
  --profilino-card-bg: var(--surface-solid);
  --welcome-accent: var(--primary-deep, var(--accent));
  color: var(--welcome-text);
}

[data-theme="dark"] .profilino-dash-nav,
[data-theme="dark"] .profilino-dash-card {
  background: var(--profilino-card-bg, var(--surface-solid));
  border-color: var(--hairline);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--welcome-text, var(--text));
}

[data-theme="dark"] .profilino-dash-nav a {
  color: var(--welcome-text, var(--text));
}

[data-theme="dark"] .profilino-dash-nav a.is-active,
[data-theme="dark"] .profilino-dash-nav a:hover {
  background: color-mix(in srgb, var(--welcome-accent, var(--accent)) 18%, transparent);
  color: var(--accent);
}

[data-theme="dark"] .profilino-dash-card h2,
[data-theme="dark"] .profilino-dash-user strong,
[data-theme="dark"] .profilino-dash-stats strong {
  color: var(--text);
}

[data-theme="dark"] .profilino-dash-stats > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
}

[data-theme="dark"] .profilino-dash-form input,
[data-theme="dark"] .profilino-dash-form select {
  background: var(--bg-soft);
  border-color: var(--hairline);
  color: var(--text);
}

[data-theme="dark"] .profilino-dash-activity li {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--hairline);
}

[data-theme="dark"] .profilino-dash-table th,
[data-theme="dark"] .profilino-dash-table td {
  border-color: var(--hairline);
  color: var(--text);
}

[data-theme="dark"] .profilino-dash .profilino-btn:not(.profilino-btn-ghost) {
  color: #2a1820;
}

/* Welcome plugin overrides on auth pages */
body.sepidroo-auth .welcome-page-wrap {
  min-height: 0;
  padding: 12px 0 8px;
  place-items: stretch;
}

body.sepidroo-auth .welcome-card {
  width: 100%;
  max-width: none;
  padding: 32px 28px;
}

body.sepidroo-auth .welcome-auth,
body.sepidroo-auth .welcome-overlay,
.welcome-auth.welcome-style-theme,
.welcome-overlay.welcome-style-theme {
  --welcome-accent: var(--primary-deep, #b87a86);
  font-family: inherit;
}

body.sepidroo-auth .welcome-btn:not(.welcome-btn-ghost),
body.sepidroo-auth .welcome-btn-primary,
.welcome-style-theme .welcome-btn:not(.welcome-btn-ghost),
.welcome-style-theme .welcome-btn-primary {
  background: linear-gradient(145deg, var(--primary, #d4a0a8), var(--primary-deep, #b87a86));
  border: none;
}

.welcome-style-theme .welcome-btn.welcome-btn-ghost,
body.sepidroo-auth .welcome-btn.welcome-btn-ghost {
  background: transparent !important;
  background-image: none !important;
  color: var(--primary-deep, #b87a86) !important;
  border: 1.5px solid var(--primary-deep, #b87a86) !important;
  box-shadow: none !important;
}

.welcome-style-theme .welcome-btn.welcome-btn-ghost:disabled,
body.sepidroo-auth .welcome-btn.welcome-btn-ghost:disabled {
  opacity: 1;
  color: #6b7280 !important;
  border-color: rgba(107, 114, 128, 0.45) !important;
}

@media (max-width: 480px) {
  .auth-back span {
    font-size: 0.82rem;
  }

  .auth-brand strong {
    display: none;
  }

  body.sepidroo-auth .welcome-card {
    padding: 26px 20px;
  }
}

/* ========== Browse categories & brands page ========== */
.browse-page {
  padding-bottom: calc(28px + var(--bottom-nav-h, 58px) + var(--safe-b));
}

.browse-hero {
  position: relative;
  margin: 8px 0 22px;
  padding: 22px 18px 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 210, 220, 0.55), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(232, 200, 170, 0.35), transparent 50%),
    linear-gradient(165deg, #fff8f6 0%, #f7ebe6 100%);
  border: 1px solid rgba(200, 150, 160, 0.18);
}

[data-theme="dark"] .browse-hero {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(180, 90, 110, 0.22), transparent 55%),
    linear-gradient(165deg, #2a2226 0%, #1f1a1d 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.browse-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: 0.02em;
}

.browse-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.browse-hero__text {
  margin: 0 0 16px;
  max-width: 34rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.browse-search {
  position: relative;
  display: block;
  margin-bottom: 14px;
}

.browse-search__ico {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.browse-search__ico svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.browse-search__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(200, 150, 160, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .browse-search__input {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
}

.browse-search__input:focus {
  border-color: rgba(200, 120, 140, 0.55);
  box-shadow: 0 0 0 4px rgba(var(--blush-rgb), 0.18);
}

.browse-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-jump__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--grad-mark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.browse-jump__btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--primary-deep);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}

[data-theme="dark"] .browse-jump__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--primary-deep);
}

.browse-section {
  margin: 0 0 28px;
  scroll-margin-top: 88px;
}

.browse-section__head {
  margin-bottom: 14px;
}

.browse-section__head h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 800;
}

.browse-section__head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.browse-empty,
.browse-none {
  margin: 12px 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(var(--blush-rgb), 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.browse-groups {
  display: grid;
  gap: 16px;
}

.browse-group {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(200, 150, 160, 0.16);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

[data-theme="dark"] .browse-group {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.browse-group__hero {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

.browse-group__visual {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 230, 236, 0.95), rgba(232, 176, 190, 0.55)),
    center / cover no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.browse-group__ico {
  color: var(--primary-deep);
  display: grid;
  place-items: center;
}

.browse-group__ico svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.browse-group__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.browse-group__meta strong {
  font-size: 1rem;
  font-weight: 800;
}

.browse-group__meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.browse-group__go {
  opacity: 0.4;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.browse-group__go svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.browse-subs {
  display: grid;
  gap: 2px;
  padding: 0 10px 12px;
  border-top: 1px solid rgba(200, 150, 160, 0.12);
}

.browse-sub__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
}

.browse-sub__link:hover,
.browse-sub__link:focus-visible {
  background: rgba(var(--blush-rgb), 0.1);
}

.browse-sub__link small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.browse-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px 8px 8px;
}

.browse-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 246, 248, 0.95);
  border: 1px solid rgba(200, 150, 160, 0.22);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

[data-theme="dark"] .browse-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f3d5dc;
}

.browse-brands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 720px) {
  .browse-brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .browse-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.browse-brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(200, 150, 160, 0.16);
  background: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .browse-brand {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.browse-brand:hover,
.browse-brand:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.browse-brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    var(--grad-mark),
    center / cover no-repeat;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.browse-brand__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.browse-brand__body strong {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-brand__body span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.browse-group[hidden],
.browse-sub[hidden],
.browse-chip[hidden],
.browse-brand[hidden],
.browse-chips[hidden] {
  display: none !important;
}

