:root {
  color-scheme: light;
  --font-main: "Plus Jakarta Sans", Inter, Manrope, "Segoe UI", Arial, sans-serif;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #edf1f6;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.18);
  --red: #e61e25;
  --red-2: #ff2a2a;
  --cart-cta: #1e3a8a;
  --cart-cta-dark: #172554;
  --cart-cta-hover: #2563eb;
  --cart-cta-shadow: rgba(30, 58, 138, 0.22);
  --cart-cta-border: rgba(30, 58, 138, 0.28);
  --cart-cta-glow: 0 18px 45px rgba(30, 58, 138, 0.16);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: none;
  --glow: 0 18px 45px rgba(230, 30, 37, 0.13);
  --promo-text: #ffffff;
  --footer-bg: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  --footer-text: #0f172a;
  --bottom-card-bg: radial-gradient(circle at 0 0, rgba(230, 30, 37, 0.07), transparent 42%),
    linear-gradient(180deg, #ffffff, #f7f9fc);
  --bottom-card-text: #0f172a;
  --bottom-muted: #64748b;
  --bottom-line: rgba(15, 23, 42, 0.12);
  --bottom-strip-bg: linear-gradient(180deg, #ffffff, #f2f5fa);
  --bottom-chip-bg: rgba(255, 255, 255, 0.82);
  --bottom-app-bg: #0f172a;
  --bottom-app-text: #ffffff;
  --bottom-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --product-card-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --product-media-bg: linear-gradient(135deg, #f1f5f9, #ffffff);
  --product-text: #0f172a;
  --product-muted: #64748b;
  --product-line: rgba(15, 23, 42, 0.12);
  --product-chip-bg: rgba(255, 255, 255, 0.84);
  --product-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  --auth-bg:
    radial-gradient(circle at 18% 0, rgba(230, 30, 37, 0.09), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  --auth-card-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --auth-panel-bg:
    radial-gradient(circle at 16% 0, rgba(230, 30, 37, 0.14), transparent 32%),
    linear-gradient(145deg, #111827 0%, #07111c 100%);
  --auth-field-bg: #ffffff;
  --auth-soft: #64748b;
  --auth-line: rgba(15, 23, 42, 0.12);
  --img-vignette-strength: 0.18;
  --img-vignette-corner: 0.1;
  --img-vignette-clear: 62%;
  --img-vignette:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, var(--img-vignette-strength)) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0) 80%,
      rgba(0, 0, 0, var(--img-vignette-strength)) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, calc(var(--img-vignette-strength) * 0.7)) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0) 80%,
      rgba(0, 0, 0, calc(var(--img-vignette-strength) * 0.7)) 100%
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) var(--img-vignette-clear),
      rgba(0, 0, 0, var(--img-vignette-corner)) 100%
    );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  letter-spacing: 0;
  overflow-x: hidden;
}

:root[data-theme="dark"] {
  --bg: #07111c;
  --surface: #0b1522;
  --surface-2: #0e1b2a;
  --surface-3: #111f30;
  --text: #f8fafc;
  --text-soft: #d9e2ee;
  --muted: #a4b4c7;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.25);
  --glow: 0 24px 70px rgba(230, 30, 37, 0.18);
  --promo-text: #ffffff;
  --footer-bg: linear-gradient(180deg, #06101b 0%, #030812 100%);
  --footer-text: #eef4fb;
  --bottom-card-bg: radial-gradient(circle at 0 0, rgba(230, 30, 37, 0.14), transparent 42%),
    linear-gradient(180deg, #0b1725, #07111c);
  --bottom-card-text: #f8fafc;
  --bottom-muted: #94a3b8;
  --bottom-line: rgba(255, 255, 255, 0.08);
  --bottom-strip-bg: linear-gradient(180deg, #0a1623, #06101b);
  --bottom-chip-bg: rgba(255, 255, 255, 0.045);
  --bottom-app-bg: #020617;
  --bottom-app-text: #ffffff;
  --bottom-shadow: 0 14px 34px rgba(2, 8, 16, 0.18);
  --product-card-bg: linear-gradient(180deg, #0e1b2a 0%, #08121f 100%);
  --product-media-bg: radial-gradient(circle at 50% 0, rgba(230, 30, 37, 0.16), transparent 42%),
    linear-gradient(135deg, #111f30, #07111c);
  --product-text: #f8fafc;
  --product-muted: #a4b4c7;
  --product-line: rgba(255, 255, 255, 0.1);
  --product-chip-bg: rgba(7, 17, 28, 0.78);
  --product-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
  --auth-bg:
    radial-gradient(circle at 16% 0, rgba(230, 30, 37, 0.16), transparent 28%),
    linear-gradient(180deg, #07111c 0%, #030812 100%);
  --auth-card-bg: linear-gradient(180deg, #0e1b2a 0%, #08121f 100%);
  --auth-panel-bg:
    radial-gradient(circle at 12% 0, rgba(230, 30, 37, 0.22), transparent 36%),
    linear-gradient(145deg, #101b2b 0%, #030812 100%);
  --auth-field-bg: rgba(255, 255, 255, 0.045);
  --auth-soft: #a4b4c7;
  --auth-line: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a,
button,
.feature-card,
.category-card,
.promo-card,
.recruit-card,
.advantages article,
.metrics article,
.brand-marquee span {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

img {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  overflow: visible;
}

.icon--xs {
  width: 0.8rem;
  height: 0.8rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.marketplace-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0, rgba(230, 30, 37, 0.08), transparent 26%),
    var(--bg);
}

:root[data-theme="light"] .marketplace-shell {
  background: #ffffff;
}

.top-strip,
.market-header,
.secondary-nav,
.hero,
.features,
.categories,
.product-showcase,
.promo-grid,
.seller-ambassador,
.advantages,
.brands,
.metrics,
.micro-trust,
.market-footer {
  width: min(1500px, calc(100% - 32px));
  margin-inline: auto;
}

.top-strip {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

:root[data-theme="dark"] .top-strip {
  background: linear-gradient(90deg, #060d16, #0b1522 45%, #10090c);
}

.top-strip__inner {
  width: min(1500px, calc(100% - 32px));
  min-height: 34px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.local-pill,
.top-strip__links {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.flag-dot {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.05rem;
  border-radius: 0.2rem;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
}

.top-strip__links a:hover {
  color: var(--red);
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 140;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .market-header {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.market-header__main {
  width: min(1500px, calc(100% - 32px));
  min-height: 118px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 390px minmax(390px, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.market-header__main > .brand,
.market-header__main > .search-bar,
.market-header__main > .header-actions {
  align-self: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: Manrope, Inter, sans-serif;
  white-space: nowrap;
}

.market-header__main > .brand {
  justify-content: center;
  width: 100%;
  min-height: 96px;
  padding: 0;
}

.brand__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(260px, 58vw);
  max-height: 5rem;
  object-fit: contain;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.market-header__main > .brand .brand__logo {
  width: min(100%, 360px);
  max-width: none;
  max-height: none;
}

.brand:hover .brand__logo {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(230, 30, 37, 0.2);
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto) 54px;
  align-items: stretch;
  min-width: 0;
  min-height: 52px;
  height: 52px;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: none;
}

/* Keep rounded corners, but allow the category panel to paint outside */
.search-bar:has(.search-bar__picker-wrap--open) {
  overflow: visible;
}

.search-bar:not(:has(.search-bar__category)) {
  grid-template-columns: minmax(0, 1fr) 54px;
}

:root[data-theme="light"] .search-bar {
  box-shadow: none;
}

.search-bar:focus-within {
  border-color: rgba(230, 30, 37, 0.48);
  box-shadow: 0 0 0 4px rgba(230, 30, 37, 0.08);
}

.search-bar input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.search-bar input::placeholder {
  color: var(--muted);
}

/* Theme-aware search bar: keep bar + typed text readable while focusing/typing.
   Browsers / Storefront often paint a white input background on :focus. */
.search-bar {
  background: var(--surface) !important;
  background-color: var(--surface) !important;
}

.search-bar input,
.search-bar input[type="search"],
.search-bar input:hover,
.search-bar input:focus,
.search-bar input:active,
.search-bar input:focus-visible,
.market-header .search-bar input,
.market-header .search-bar input:focus,
.market-header .search-bar input[type="search"]:focus {
  background: var(--surface) !important;
  background-color: var(--surface) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  color-scheme: inherit;
}

.search-bar:focus-within {
  background: var(--surface) !important;
  background-color: var(--surface) !important;
}

.search-bar input::placeholder,
.search-bar input[type="search"]::placeholder {
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted) !important;
  opacity: 1;
}

.search-bar__category {
  background: var(--surface-2) !important;
  color: var(--text-soft) !important;
}

.search-bar__picker {
  background: var(--surface) !important;
  color: var(--text) !important;
}

.search-bar__picker-option {
  color: var(--text-soft) !important;
}

:root[data-theme="light"] .search-bar,
:root[data-theme="light"] .search-bar:focus-within {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18);
}

:root[data-theme="light"] .search-bar input,
:root[data-theme="light"] .search-bar input[type="search"],
:root[data-theme="light"] .search-bar input:focus,
:root[data-theme="light"] .search-bar input:active,
:root[data-theme="light"] .search-bar input[type="search"]:focus {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a !important;
  box-shadow: inset 0 0 0 1000px #ffffff !important;
  color-scheme: light;
}

:root[data-theme="light"] .search-bar input::placeholder {
  color: #667085 !important;
  -webkit-text-fill-color: #667085 !important;
}

:root[data-theme="light"] .search-bar__category {
  background: #f7f8fb !important;
  color: #334155 !important;
}

:root[data-theme="dark"] .search-bar,
:root[data-theme="dark"] .search-bar:focus-within {
  background: #0b1522 !important;
  background-color: #0b1522 !important;
  border-color: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .search-bar input,
:root[data-theme="dark"] .search-bar input[type="search"],
:root[data-theme="dark"] .search-bar input:hover,
:root[data-theme="dark"] .search-bar input:focus,
:root[data-theme="dark"] .search-bar input:active,
:root[data-theme="dark"] .search-bar input:focus-visible,
:root[data-theme="dark"] .search-bar input[type="search"]:focus {
  background: #0b1522 !important;
  background-color: #0b1522 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  /* Cover Chrome/Edge white paint-on-focus layer */
  box-shadow: inset 0 0 0 1000px #0b1522 !important;
  color-scheme: dark;
}

:root[data-theme="dark"] .search-bar input::placeholder {
  color: #a4b4c7 !important;
  -webkit-text-fill-color: #a4b4c7 !important;
}

:root[data-theme="dark"] .search-bar__category {
  background: #0e1b2a !important;
  color: #d9e2ee !important;
}

:root[data-theme="dark"] .search-bar__picker {
  background: #0b1522 !important;
  border-color: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .search-bar__picker-option {
  color: #d9e2ee !important;
}

:root[data-theme="dark"] .search-bar__picker-option:hover,
:root[data-theme="dark"] .search-bar__picker-option:focus-visible,
:root[data-theme="dark"] .search-bar__picker-option.is-active {
  color: #f8fafc !important;
}

.search-bar input:-webkit-autofill,
.search-bar input:-webkit-autofill:hover,
.search-bar input:-webkit-autofill:focus,
.search-bar input:-webkit-autofill:active,
.search-bar input[type="search"]:-webkit-autofill {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
}

:root[data-theme="dark"] .search-bar input:-webkit-autofill,
:root[data-theme="dark"] .search-bar input:-webkit-autofill:focus,
:root[data-theme="dark"] .search-bar input[type="search"]:-webkit-autofill {
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px #0b1522 inset !important;
}

:root[data-theme="light"] .search-bar input:-webkit-autofill,
:root[data-theme="light"] .search-bar input:-webkit-autofill:focus,
:root[data-theme="light"] .search-bar input[type="search"]:-webkit-autofill {
  -webkit-text-fill-color: #0f172a !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.search-bar__category,
.search-bar__submit {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-bar__category {
  gap: 0.45rem;
  border-left: 1px solid var(--line);
  padding-inline: 0.85rem;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  max-width: 220px;
}

.search-bar__category [data-search-picker-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

.search-bar__category .icon {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  transform: rotate(90deg);
  transition: transform 160ms ease;
  opacity: 0.75;
}

.search-bar__picker-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--line);
}

.search-bar__picker-wrap .search-bar__category {
  border-left: 0;
}

.search-bar__picker-wrap--open {
  z-index: 220;
}

.search-bar__picker-wrap--open .search-bar__category .icon {
  transform: rotate(-90deg);
  opacity: 1;
}

.search-bar__picker {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 230;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 240px;
  max-width: min(340px, 82vw);
  max-height: min(320px, 55vh);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  padding: 0.4rem;
}

.search-bar__picker-wrap--open .search-bar__picker,
.search-bar__picker:not([hidden]) {
  display: flex;
}

.search-bar__picker[hidden] {
  display: none !important;
}

.search-bar__picker-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  padding: 0.62rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.search-bar__picker-option:hover,
.search-bar__picker-option:focus-visible {
  background: color-mix(in srgb, var(--cart-cta, #1e3a8a) 12%, transparent);
  color: var(--text);
  outline: none;
}

.search-bar__picker-option.is-active {
  background: color-mix(in srgb, var(--red, #e61e25) 12%, transparent);
  color: var(--text);
}

.search-bar__picker-wrap--open .search-bar__category {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 88%, var(--cart-cta, #1e3a8a));
}

.search-bar__submit {
  background: var(--red);
  color: #fff;
  width: 54px;
  flex-shrink: 0;
}

.search-bar__submit .icon {
  display: block;
  width: 1.35rem !important;
  height: 1.35rem !important;
  min-width: 1.35rem !important;
  min-height: 1.35rem !important;
  color: #fff;
  stroke: currentColor;
  fill: none;
}

.search-bar__submit:hover {
  background: #ff3333;
  transform: translateX(1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: fit-content;
  margin: 0;
  padding: 0;
}

.header-action,
.theme-toggle,
.market-header button.header-action,
.market-header button.theme-toggle,
.market-header a.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 40px;
  min-height: 40px;
  margin: 0 !important;
  float: none !important;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface-2);
  color: var(--text-soft);
  padding: 0 0.68rem;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
  vertical-align: middle;
}

.header-action:hover,
.theme-toggle:hover {
  border-color: rgba(230, 30, 37, 0.4);
  color: var(--red);
}

.header-account {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.header-account__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 11.5rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(7, 17, 28, 0.16);
  z-index: 120;
  display: grid;
  gap: 0.15rem;
}

.header-account__menu[hidden] {
  display: none;
}

.header-account__menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.header-account__menu a:hover {
  background: var(--surface-2);
  color: var(--red);
}

.header-action--account {
  cursor: pointer;
}

/* Full-bleed dashboard pages (admin / ambassador / KYC resubmit / Dokan) */
body.td-dashboard-shell,
body.dokan-dashboard,
body.dokan-seller-dashboard {
  background: #f4f5f8;
}

body.td-dashboard-shell .marketplace-shell,
body.dokan-dashboard .marketplace-shell,
body.dokan-seller-dashboard .marketplace-shell {
  min-height: 100vh;
}

body.td-dashboard-shell .top-strip,
body.td-dashboard-shell .market-header,
body.td-dashboard-shell .market-footer,
body.dokan-dashboard .top-strip,
body.dokan-dashboard .market-header,
body.dokan-dashboard .market-footer,
body.dokan-seller-dashboard .top-strip,
body.dokan-seller-dashboard .market-header,
body.dokan-seller-dashboard .market-footer {
  display: none !important;
}

body.td-dashboard-shell .dashboard-shell,
body.td-dashboard-shell .dashboard-shell__main,
body.dokan-dashboard #page,
body.dokan-dashboard .site-main,
body.dokan-dashboard .content-area,
body.dokan-dashboard #content,
body.dokan-dashboard #primary,
body.dokan-dashboard .col-full,
body.dokan-dashboard .site-content,
body.dokan-dashboard .page-content,
body.dokan-dashboard .page-body,
body.dokan-seller-dashboard #page,
body.dokan-seller-dashboard .site-main,
body.dokan-seller-dashboard .content-area,
body.dokan-seller-dashboard #content,
body.dokan-seller-dashboard #primary,
body.dokan-seller-dashboard .col-full,
body.dokan-seller-dashboard .site-content,
body.dokan-seller-dashboard .page-content,
body.dokan-seller-dashboard .page-body {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.dokan-dashboard .page > .page-title,
body.dokan-seller-dashboard .page > .page-title {
  display: none !important;
}

body.td-dashboard-shell .dashboard-shell__main {
  min-height: 100vh;
}

.cart-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.35rem;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
}

.theme-toggle {
  width: 40px;
  padding: 0 !important;
}

:root[data-theme="light"] .theme-toggle__moon,
:root[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

.mobile-drawer-toggle {
  display: none;
}

.mobile-drawer {
  display: none;
}

.secondary-nav {
  position: relative;
  z-index: 80;
  width: min(1500px, calc(100% - 32px));
  min-height: 44px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
}

.category-hover {
  position: relative;
  flex: 0 0 auto;
}

.all-categories {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.all-categories:hover,
.category-hover--open .all-categories,
.category-hover:focus-within .all-categories {
  border-color: rgba(230, 30, 37, 0.44);
  background: linear-gradient(135deg, var(--red), #b4141a);
  color: #fff;
  box-shadow: var(--glow);
}

.category-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 260;
  width: max-content;
  max-width: calc(100vw - 32px);
  display: none;
  opacity: 1;
  pointer-events: none;
  transform: none;
  overflow: visible;
}

.category-hover:hover .category-mega,
.category-hover:focus-within .category-mega,
.category-hover.category-hover--open .category-mega,
.category-mega.category-mega--open {
  display: block;
  pointer-events: auto;
}

.category-hover:hover .category-mega__panel,
.category-hover:focus-within .category-mega__panel,
.category-hover.category-hover--open .category-mega__panel,
.category-mega.category-mega--open .category-mega__panel {
  animation: megaMenuIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.category-mega__panel {
  position: relative;
  display: block;
  width: max-content;
  max-width: calc(100vw - 32px);
  overflow: visible;
}

.category-mega__card {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: max-content;
  max-width: calc(100vw - 32px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.category-mega__categories {
  display: grid;
  gap: 0.35rem;
  flex: 0 0 auto;
  width: max-content;
  min-width: 12rem;
  max-width: min(22rem, calc(100vw - 32px));
  max-height: min(70vh, 28rem);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 0 0, rgba(230, 30, 37, 0.08), transparent 34%),
    var(--surface);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  padding: 0.7rem;
  scrollbar-width: thin;
}

.category-mega__subpanel {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
  width: max-content;
  min-width: 11rem;
  max-width: min(24rem, calc(100vw - 48px));
  max-height: min(70vh, 28rem);
  overflow: auto;
  margin-top: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 100% 0, rgba(230, 30, 37, 0.06), transparent 28%),
    color-mix(in srgb, var(--surface) 92%, var(--surface-2));
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  padding: 0.7rem;
  scrollbar-width: thin;
  transition: margin-top 160ms ease;
}

.category-mega__card--open .category-mega__root.is-active {
  position: relative;
  z-index: 1;
}

.category-mega__card--open .category-mega__root.is-active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.72rem;
  width: 0.55rem;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
  transform: translateY(-50%);
}

.category-mega__sidebar-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.1rem 0.35rem 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-mega__sidebar-head .icon {
  width: 15px;
  height: 15px;
  color: var(--red);
}

.category-mega__roots {
  display: grid;
  gap: 0.18rem;
}

.category-mega__root {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--text-soft);
  padding: 0.58rem 0.72rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  cursor: default;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.category-mega__root-label {
  flex: 1 1 auto;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.category-mega__root:hover,
.category-mega__root.is-active,
.category-mega__root:focus-visible {
  border-color: rgba(230, 30, 37, 0.28);
  background: linear-gradient(135deg, var(--red), #b4141a);
  color: #fff;
  box-shadow: var(--glow);
}

.category-mega__root-chevron {
  flex: 0 0 auto;
  opacity: 0.72;
}

.category-mega__root.is-active .category-mega__root-chevron,
.category-mega__root:hover .category-mega__root-chevron {
  opacity: 1;
}

.category-mega__subpanel[hidden] {
  display: none !important;
}

.category-mega__subpane[hidden] {
  display: none !important;
}

.category-mega__subpane {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  width: max-content;
  min-width: 100%;
}

.category-mega__subpane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.category-mega__subpane-head strong {
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.category-mega__subpane-all {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: normal;
}

.category-mega__subpane-all:hover {
  text-decoration: underline;
}

.category-mega__subpane-list {
  display: grid;
  gap: 0.12rem;
  align-content: start;
}

.category-mega__group {
  display: grid;
  gap: 0.08rem;
  padding-top: 0.2rem;
}

.category-mega__group + .category-mega__group,
.category-mega__group + .category-mega__subcategory,
.category-mega__subcategory + .category-mega__group {
  margin-top: 0.2rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.category-mega__nested {
  display: grid;
  gap: 0.06rem;
  padding-left: 0.55rem;
}

.category-mega__subcategory {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  border-radius: 0.5rem;
  color: var(--text-soft);
  padding: 0.42rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.category-mega__subcategory-label {
  flex: 1 1 auto;
}

.category-mega__subcategory-arrow {
  flex: 0 0 auto;
  opacity: 0.45;
}

.category-mega__subcategory--parent {
  color: var(--text);
  font-weight: 900;
}

.category-mega__subcategory--nested {
  justify-content: flex-start;
  padding-left: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.category-mega__subcategory:hover {
  background: rgba(230, 30, 37, 0.08);
  color: var(--red);
  transform: translateX(2px);
}

.category-mega__subcategory:hover .category-mega__subcategory-arrow {
  opacity: 1;
}

.category-mega__pane-empty {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.category-mega__view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(230, 30, 37, 0.1);
  color: var(--red);
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.category-mega__view-all:hover {
  background: var(--red);
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  border-radius: 0.55rem;
  color: var(--text-soft);
  padding: 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 900;
}

.nav-links a:hover {
  background: rgba(230, 30, 37, 0.1);
  color: var(--red);
  transform: translateY(-1px);
}

.nav-links span {
  border-radius: 0.22rem;
  background: var(--red);
  color: #fff;
  padding: 0.12rem 0.25rem;
  font-size: 0.62rem;
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 286px;
  gap: 0.9rem;
  align-items: stretch;
  min-height: 420px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #030810;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 1.35rem);
  overflow: hidden;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__copy {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  min-height: 100%;
  padding: clamp(0.85rem, 1.65vw, 1.35rem);
  border-radius: 0.85rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 8, 16, 0.92) 0%, rgba(3, 8, 16, 0.72) 42%, rgba(3, 8, 16, 0.2) 100%),
    var(--hero-banner-image, linear-gradient(135deg, #111827, #07111c));
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.06) 42%, transparent 64%);
  transform: translateX(-120%);
  animation: shineSweep 8s ease-in-out infinite;
}

.hero__copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--td-hero-eyebrow-size, 0.74rem);
}

.hero h1 {
  max-width: 620px;
  margin: 0.4rem 0 0;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: var(--td-hero-title-size, clamp(2.35rem, 4.45vw, 4.45rem));
  font-weight: 900;
  line-height: 0.92;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  display: block;
  color: var(--red);
}

.hero__lead {
  margin: 0.82rem 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: var(--td-hero-lead-size, clamp(1rem, 1.5vw, 1.35rem));
  font-weight: 900;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.hero__text {
  max-width: 520px;
  margin: 0.68rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

/* Hero CTAs match brand red (image 2) — keep global --cart-cta blue for cart/UI */
.hero .button--primary {
  background: linear-gradient(135deg, var(--red), #c4161c);
  color: #fff;
  box-shadow: 0 14px 30px rgba(230, 30, 37, 0.28);
}

.hero .button--primary:hover {
  background: linear-gradient(135deg, var(--red-2), var(--red));
}

.hero__button--secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero__button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0 1rem;
  font-size: 0.84rem;
  font-weight: 900;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--cart-cta), var(--cart-cta-dark));
  color: #fff;
  box-shadow: 0 14px 30px var(--cart-cta-shadow);
}

.button--primary:hover {
  background: linear-gradient(135deg, var(--cart-cta-hover), var(--cart-cta));
}

.button--secondary,
.button--ghost {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
}

.button--secondary:hover,
.button--ghost:hover {
  border-color: rgba(230, 30, 37, 0.4);
  color: var(--red);
}

.trust-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface-2);
  padding: 0.75rem;
}

.customer-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.72rem;
}

.avatar-stack {
  display: flex;
  flex: 0 0 auto;
}

.avatar-stack img {
  width: 32px;
  height: 32px;
  margin-left: -0.7rem;
  border: 2px solid var(--surface-2);
  border-radius: 999px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.customer-proof__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.customer-proof strong {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.customer-proof span,
.trust-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.trust-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
}

.trust-row .icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cart-cta-border);
  border-radius: 999px;
  color: var(--cart-cta);
  padding: 0.45rem;
}

.trust-panel.trust-panel--hero {
  align-self: stretch;
  box-shadow: none;
}

:root[data-theme="light"] .trust-panel.trust-panel--hero {
  background: var(--surface-2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: var(--line);
  color: var(--text);
}

:root[data-theme="light"] .trust-panel.trust-panel--hero .customer-proof {
  border-bottom-color: var(--line);
}

:root[data-theme="light"] .trust-panel.trust-panel--hero .customer-proof strong {
  color: var(--text);
}

:root[data-theme="light"] .trust-panel.trust-panel--hero .customer-proof span,
:root[data-theme="light"] .trust-panel.trust-panel--hero .trust-row span {
  color: var(--text-soft);
}

:root[data-theme="light"] .trust-panel.trust-panel--hero .avatar-stack img {
  border-color: var(--surface-2);
}

:root[data-theme="dark"] .trust-panel.trust-panel--hero {
  background: #030810;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

:root[data-theme="dark"] .trust-panel.trust-panel--hero .customer-proof {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .trust-panel.trust-panel--hero .customer-proof strong {
  color: #fff;
}

:root[data-theme="dark"] .trust-panel.trust-panel--hero .customer-proof span,
:root[data-theme="dark"] .trust-panel.trust-panel--hero .trust-row span {
  color: rgba(255, 255, 255, 0.78);
}

:root[data-theme="dark"] .trust-panel.trust-panel--hero .avatar-stack img {
  border-color: #030810;
}

.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.feature-card,
.metrics article,
.advantages article {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: center;
  column-gap: 0.72rem;
  overflow: hidden;
  min-height: 122px;
  padding: 0.85rem;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transform: translateX(-50%);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 30, 37, 0.35);
  box-shadow: var(--glow);
}

.feature-card:hover::after {
  opacity: 1;
  animation: shineSweep 1.8s ease-in-out;
}

.feature-card span,
.advantages .icon,
.metrics .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cart-cta-border);
  border-radius: 999px;
  color: var(--cart-cta);
}

.feature-card span {
  grid-row: 1 / span 2;
  align-self: center;
}

.feature-card:hover span,
.advantages article:hover .icon,
.metrics article:hover .icon {
  background: var(--cart-cta);
  color: #fff;
  transform: rotate(-4deg) scale(1.04);
}

.feature-card strong {
  display: block;
  align-self: end;
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-card p {
  align-self: start;
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.categories,
.product-showcase,
.brands {
  margin-top: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-heading .eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}

.section-heading h2 {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: normal;
}

.section-heading span,
.section-heading .text-link,
.text-link {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.section-heading__copy {
  max-width: 520px;
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.text-link:hover,
.section-heading .text-link:hover {
  color: var(--red);
}

.categories .section-heading .eyebrow {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.categories .section-heading h2 {
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.category-rail {
  min-width: 0;
}

.category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 1 272px;
  width: min(100%, 272px);
  min-width: min(100%, 260px);
  min-height: 116px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0.65rem 0.72rem;
  isolation: isolate;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  opacity: 0;
  transition: opacity 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 30, 37, 0.42);
  box-shadow: var(--glow);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card__image {
  position: relative;
  flex: 0 0 94px;
  width: 94px;
  height: 94px;
  display: block;
  overflow: hidden;
  border-radius: 0.6rem;
  background-color: rgba(255, 255, 255, 0.02);
  background-image: var(--cat-img);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 220ms ease, filter 220ms ease;
}

.category-card:hover .category-card__image {
  transform: scale(1.025);
  filter: saturate(1.12) contrast(1.04);
}

.category-card__image .icon {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.65rem;
  background: rgba(230, 30, 37, 0.78);
  color: #fff;
  padding: 0.45rem;
  transition: transform 220ms ease, background 220ms ease;
}

.category-card:hover .category-card__image .icon {
  background: rgba(255, 255, 255, 0.94);
  color: var(--red);
  transform: translateY(-2px) rotate(-4deg);
}

.category-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.24rem;
}

.category-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card small {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.32;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-showcase {
  position: relative;
  scroll-margin-top: 140px;
  content-visibility: auto;
  contain-intrinsic-size: 1200px 900px;
}

.popular-showcase__grid {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: stretch;
  width: 100%;
}

.popular-block {
  position: relative;
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 0 0, rgba(230, 30, 37, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.popular-block__head {
  display: grid;
  min-height: clamp(220px, 20vw, 300px);
  overflow: hidden;
  border-radius: 1.1rem;
}

.category-feature__banner,
.category-feature__visual {
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.38) 48%, rgba(2, 6, 23, 0.12)),
    var(--category-feature-image);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.category-feature__banner::after,
.category-feature__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38));
}

.category-feature__intro {
  display: flex;
  width: min(610px, 100%);
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: clamp(1rem, 2vw, 1.6rem);
}

.category-feature__intro .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.category-feature__intro h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.category-feature__intro p:not(.eyebrow) {
  max-width: 38rem;
  margin: 0;
  color: #fff;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 750;
  line-height: 1.58;
}

.category-feature__cta {
  width: fit-content;
  margin-top: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
}

.category-feature__cta:hover {
  background: #fff;
  color: var(--red);
}

.popular-block__body {
  display: grid;
  min-width: 0;
}

.product-grid--popular {
  display: grid;
  grid-template-columns: repeat(var(--rail-cols, 4), minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
}

.category-feature--side-image {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: stretch;
}

.category-feature--side-image .category-feature__visual {
  display: flex;
  width: 100%;
  min-height: clamp(260px, 22vw, 320px);
  overflow: hidden;
  border-radius: 1.1rem;
  background-size: cover;
  background-position: center;
}

.category-feature--side-image .category-feature__intro {
  min-height: 100%;
}

.category-feature--side-image .category-feature__intro h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
}

.category-feature--side-image .product-grid--popular {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  height: 100%;
  align-content: start;
}

.popular-showcase .category-feature--side-image .product-card p,
.popular-showcase .category-feature--side-image .product-card__specs {
  display: none;
}

.popular-showcase .category-feature--side-image .product-card__body {
  gap: 0.42rem;
  padding: 0.55rem 0.5rem 0.62rem;
}

.popular-showcase .category-feature--side-image .product-card h3 {
  min-height: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  -webkit-line-clamp: 1;
}

.popular-showcase .category-feature--side-image .product-card__meta {
  font-size: 0.62rem;
}

.popular-showcase .category-feature--side-image .product-card__pricing {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.popular-showcase .category-feature--side-image .product-card__price {
  min-width: 0;
  flex: 1 1 auto;
}

.popular-showcase .category-feature--side-image .product-card__price strong {
  font-size: 0.88rem;
}

.popular-showcase .category-feature--side-image .product-card__actions button,
.popular-showcase .category-feature--side-image .product-card__quick-view {
  width: 30px;
  height: 30px;
  border-color: var(--cart-cta-border);
  color: var(--cart-cta);
}

.popular-showcase .category-feature--side-image .product-card__actions button:hover,
.popular-showcase .category-feature--side-image .product-card__quick-view:hover {
  border-color: var(--cart-cta);
  background: var(--cart-cta);
  color: #fff;
}

.popular-showcase .category-feature--side-image .product-card__cta {
  min-height: 34px;
  margin-top: 0.1rem;
  padding-inline: 0.55rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

.popular-showcase .category-feature--side-image .product-card__cta .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.category-feature--split-promo {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "hero promo"
    "products promo";
  align-items: stretch;
  gap: 0.85rem;
  padding: 0.85rem;
}

.category-feature--split-promo .category-feature__head {
  grid-area: hero;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: clamp(150px, 16vw, 210px);
  overflow: hidden;
  border-radius: 0.85rem;
  isolation: isolate;
}

.category-feature--split-promo .category-feature__hero-banner {
  background-color: #0b1220;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.5) 46%, rgba(2, 6, 23, 0.18)),
    var(--category-feature-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.category-feature--split-promo .category-feature__hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.category-feature--split-promo .category-feature__intro {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  color: #fff;
}

.category-feature--split-promo .category-feature__intro .eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-feature--split-promo .category-feature__intro h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #fff;
}

.category-feature--split-promo .category-feature__intro p:not(.eyebrow) {
  display: none;
}

.category-feature--split-promo .category-feature__cta {
  min-height: 34px;
  margin-top: 0.15rem;
  padding-inline: 0.9rem;
  font-size: 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
}

.category-feature--split-promo .category-feature__cta:hover {
  background: #fff;
  color: var(--red);
}

.category-feature--split-promo .popular-block__body {
  grid-area: products;
  display: grid;
  min-width: 0;
}

.category-feature--split-promo .category-feature__promo {
  grid-area: promo;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: clamp(280px, 28vw, 380px);
  background-color: #0b1220;
  background-image: var(--category-promo-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.category-feature--split-promo .category-feature__promo--video {
  background-image: none;
}

.category-feature--split-promo .category-feature__promo-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.category-feature--split-promo .category-feature__promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.28));
  pointer-events: none;
}

.category-feature--split-promo .category-feature__promo-link {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.popular-showcase .category-feature--split-promo .product-grid--popular,
.popular-showcase .category-feature--electronics .product-grid--popular,
.popular-showcase .category-feature--electronique .product-grid--popular {
  grid-template-columns: repeat(var(--rail-cols, 4), minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: none;
}

.popular-showcase .category-feature--split-promo .product-card p,
.popular-showcase .category-feature--split-promo .product-card__specs,
.popular-showcase .category-feature--electronics .product-card p,
.popular-showcase .category-feature--electronics .product-card__specs,
.popular-showcase .category-feature--electronique .product-card p,
.popular-showcase .category-feature--electronique .product-card__specs {
  display: none;
}

.popular-showcase .category-feature--split-promo .product-card__image,
.popular-showcase .category-feature--electronics .product-card__image,
.popular-showcase .category-feature--electronique .product-card__image {
  padding: 0.42rem;
}

.popular-showcase .category-feature--split-promo .product-card__body,
.popular-showcase .category-feature--electronics .product-card__body,
.popular-showcase .category-feature--electronique .product-card__body {
  gap: 0.3rem;
  padding: 0.4rem 0.38rem 0.46rem;
}

.popular-showcase .category-feature--split-promo .product-card h3,
.popular-showcase .category-feature--electronics .product-card h3,
.popular-showcase .category-feature--electronique .product-card h3 {
  min-height: 0;
  font-size: clamp(0.66rem, 0.95vw, 0.76rem);
  line-height: 1.25;
}

.popular-showcase .category-feature--split-promo .product-card__meta,
.popular-showcase .category-feature--electronics .product-card__meta,
.popular-showcase .category-feature--electronique .product-card__meta {
  font-size: 0.56rem;
}

.popular-showcase .category-feature--split-promo .product-card__price strong,
.popular-showcase .category-feature--electronics .product-card__price strong,
.popular-showcase .category-feature--electronique .product-card__price strong {
  font-size: clamp(0.7rem, 0.95vw, 0.8rem);
}

.popular-showcase .category-feature--split-promo .product-card__actions button,
.popular-showcase .category-feature--split-promo .product-card__quick-view,
.popular-showcase .category-feature--electronics .product-card__actions button,
.popular-showcase .category-feature--electronics .product-card__quick-view,
.popular-showcase .category-feature--electronique .product-card__actions button,
.popular-showcase .category-feature--electronique .product-card__quick-view {
  width: 26px;
  height: 26px;
}

.popular-showcase .category-feature--split-promo .product-card__cta,
.popular-showcase .category-feature--electronics .product-card__cta,
.popular-showcase .category-feature--electronique .product-card__cta {
  min-height: 28px;
  padding-inline: 0.45rem;
  font-size: clamp(0.56rem, 0.9vw, 0.64rem);
}

.popular-showcase .category-feature--split-promo .product-card__cta .icon,
.popular-showcase .category-feature--electronics .product-card__cta .icon,
.popular-showcase .category-feature--electronique .product-card__cta .icon {
  width: 13px;
  height: 13px;
}

.category-feature--banner .popular-block__head {
  min-height: clamp(180px, 14vw, 240px);
}

.category-feature--banner .category-feature__intro h3 {
  font-size: clamp(1.65rem, 3.8vw, 3.2rem);
}

.category-feature--banner .product-grid--popular {
  grid-template-columns: repeat(var(--rail-cols, 8), minmax(0, 1fr));
  gap: 0.75rem;
}

.popular-showcase .category-feature--tv-image-son .product-grid--popular,
.popular-showcase .category-feature--informatique-stockage .product-grid--popular {
  grid-template-columns: repeat(var(--rail-cols, 8), minmax(0, 1fr));
}

.popular-showcase .category-feature--banner .product-card__image {
  padding: 0.5rem;
}

.popular-showcase .category-feature--banner .product-card__body {
  gap: 0.32rem;
  padding: 0.45rem 0.4rem 0.5rem;
}

.popular-showcase .category-feature--banner .product-card h3 {
  font-size: clamp(0.62rem, 1.6vw, 0.8rem);
}

.popular-showcase .category-feature--banner .product-card p,
.popular-showcase .category-feature--banner .product-card__specs {
  display: none !important;
}

.popular-showcase .category-feature--banner .product-card__price strong {
  font-size: clamp(0.66rem, 1.6vw, 0.85rem);
}

.popular-showcase .category-feature--banner .product-card__cta {
  min-height: 28px;
  font-size: clamp(0.54rem, 1.35vw, 0.68rem);
}

.category-card--electromenager,
.category-card--tv-image-son,
.category-card--informatique-stockage,
.category-card--electronics,
.category-card--electronique,
.category-card--tv,
.category-card--audio,
.category-card--appliances {
  min-height: 116px;
}

.category-card--electromenager .category-card__image,
.category-card--tv-image-son .category-card__image,
.category-card--informatique-stockage .category-card__image,
.category-card--electronics .category-card__image,
.category-card--electronique .category-card__image,
.category-card--tv .category-card__image,
.category-card--audio .category-card__image,
.category-card--appliances .category-card__image {
  flex-basis: 94px;
  width: 94px;
  height: 94px;
}

.popular-block__empty,
.popular-block__loading {
  margin: 0;
  padding: 1.2rem 0.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.popular-showcase .product-card {
  min-height: 0;
  min-width: 0;
}

.popular-showcase .product-card__media {
  aspect-ratio: 1 / 1;
  height: auto;
}

.popular-showcase .product-card__media::after {
  height: 28%;
  opacity: 0.28;
}

.popular-showcase .product-card__image {
  border-radius: 0.85rem;
  object-fit: contain;
  padding: 0.9rem;
  transform: none;
}

.popular-showcase .product-card:hover .product-card__image {
  transform: scale(1.03);
  filter: none;
}

.popular-showcase .product-card__body {
  gap: 0.4rem;
  padding: 0.6rem 0.55rem 0.7rem;
}

.popular-showcase .product-card h3 {
  font-size: clamp(0.68rem, 1.8vw, 0.88rem);
  line-height: 1.25;
  min-height: 0;
  -webkit-line-clamp: 1;
}

/* Match clean FRONT card: brand + title + price/actions + CTA */
.popular-showcase .product-card p,
.popular-showcase .product-card__specs,
.product-showcase .product-card p,
.product-showcase .product-card__specs {
  display: none !important;
}

.popular-showcase .product-card__price .product-card__savings,
.product-showcase .product-card__price .product-card__savings {
  display: none !important;
}

.popular-showcase .product-card__price del,
.product-showcase .product-card__price del {
  display: inline !important;
  color: var(--red, #e61e25) !important;
  font-size: clamp(0.58rem, 1.35vw, 0.72rem) !important;
  font-weight: 800 !important;
  text-decoration: line-through !important;
  opacity: 1;
}

.popular-showcase .product-card__meta {
  font-size: clamp(0.58rem, 1.4vw, 0.72rem);
}

.popular-showcase .product-card__rating {
  display: none;
}

.popular-showcase .product-card__pricing,
.product-showcase .product-card__pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

.popular-showcase .product-card__price,
.product-showcase .product-card__price {
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.14rem;
}

.popular-showcase .product-card__price strong,
.popular-showcase .product-card__price-current,
.product-showcase .product-card__price strong,
.product-showcase .product-card__price-current {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.72rem, 1.8vw, 0.95rem);
}

.popular-showcase .product-card__actions,
.product-showcase .product-card__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.popular-showcase .product-card__actions button,
.popular-showcase .product-card__quick-view,
.popular-showcase .product-card__favorite a {
  border-color: var(--cart-cta-border);
  color: var(--cart-cta);
}

.popular-showcase .product-card__actions button:hover,
.popular-showcase .product-card__quick-view:hover,
.popular-showcase .product-card__favorite a:hover {
  border-color: var(--cart-cta);
  background: var(--cart-cta);
  color: #fff;
}

.popular-showcase .product-card__cta {
  min-height: 30px;
  padding-inline: 0.4rem;
  font-size: clamp(0.58rem, 1.5vw, 0.72rem);
}

:root[data-theme="dark"] .popular-block {
  background:
    radial-gradient(circle at 0 0, rgba(230, 30, 37, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(14, 27, 42, 0.96) 0%, rgba(8, 18, 31, 0.98) 100%);
}

.product-showcase.popular-showcase .product-card__media {
  aspect-ratio: 1 / 1;
  height: auto;
}

.product-showcase .product-card__media {
  aspect-ratio: 5 / 4;
}

.product-showcase .product-card__body {
  gap: 0.52rem;
  padding: 0.8rem;
}

.product-showcase .product-card h3 {
  min-height: 0;
  font-size: 0.92rem;
  -webkit-line-clamp: 1;
}

.product-showcase .product-card p,
.product-showcase .product-card__specs {
  display: none !important;
}

.product-showcase .product-card__price .product-card__savings {
  display: none !important;
}

.product-showcase .product-card__price del {
  display: inline !important;
  color: var(--red, #e61e25) !important;
  text-decoration: line-through !important;
}

.product-showcase .product-card__price strong {
  font-size: 1.05rem;
}

.product-showcase .product-card__cta {
  min-height: 36px;
  margin-top: 0;
  font-size: 0.74rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 1rem;
  background: var(--product-card-bg);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 0, rgba(230, 30, 37, 0.13), transparent 28%),
    linear-gradient(180deg, transparent, rgba(230, 30, 37, 0.04));
  opacity: 0;
  transition: opacity 200ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 30, 37, 0.38);
  box-shadow: var(--product-shadow);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card__media {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--product-media-bg);
}

.product-card__media .product-card__actions {
  position: absolute;
  z-index: 3;
  top: 0.65rem;
  right: 0.65rem;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
  opacity: 0.52;
  pointer-events: none;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.055);
  filter: saturate(1.1) contrast(1.03);
}

.product-card__badges {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 0.42rem;
  top: 0.65rem;
  left: 0.65rem;
  flex-wrap: wrap;
}

.product-card__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.product-card__title-link:hover {
  color: var(--red);
}

.product-card__pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
}

.product-card__body .product-card__actions {
  position: static;
  flex-shrink: 0;
  justify-content: flex-end;
  margin-top: 0;
}

.product-card__quick-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.product-card__quick-view:hover {
  border-color: rgba(230, 30, 37, 0.42);
  background: rgba(230, 30, 37, 0.08);
  color: var(--red);
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: var(--product-chip-bg);
  color: var(--product-text);
  padding: 0 0.55rem;
  font-size: 0.66rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.product-card__badge--deal {
  border-color: rgba(230, 30, 37, 0.46);
  background: var(--red);
  color: #fff;
}

.product-card__badge--oos {
  border-color: rgba(100, 116, 139, 0.45);
  background: rgba(100, 116, 139, 0.92);
  color: #fff;
}

.product-card--oos .product-card__image {
  opacity: 0.72;
  filter: grayscale(0.25);
}

.product-card__cta--muted {
  opacity: 0.78;
  background: transparent;
  border-color: var(--product-line, rgba(15, 23, 42, 0.14));
  color: var(--muted, #64748b);
  box-shadow: none;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-direction: row;
}

.product-card__actions button {
  display: grid;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: var(--product-chip-bg);
  color: var(--product-text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
}

.product-card__actions button:hover {
  border-color: rgba(230, 30, 37, 0.42);
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

.product-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
}

.product-card__meta,
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-card__meta {
  justify-content: space-between;
  color: var(--product-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-card__rating {
  color: #f59e0b;
  white-space: nowrap;
}

.product-card h3 {
  display: block;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--product-text);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-transform: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card p {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0;
  overflow: hidden;
  color: var(--product-muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  min-width: 0;
  margin-top: 0;
}

.product-card__price-main {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.product-card__price strong,
.product-card__price-current {
  color: var(--product-text);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.1;
}

.product-card__price del,
.product-card__price-compare {
  color: var(--red, #e61e25);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: line-through;
  opacity: 1;
  line-height: 1.15;
}

.product-card__price .product-card__savings {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  margin-top: auto;
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--cart-cta), var(--cart-cta-dark));
  color: #fff;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 14px 30px var(--cart-cta-shadow);
}

.product-card__cta:hover {
  background: linear-gradient(135deg, var(--cart-cta-hover), var(--cart-cta));
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(30, 58, 138, 0.3);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
  content-visibility: auto;
  contain-intrinsic-size: 1000px 360px;
}

.promo-card {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--surface);
  color: var(--promo-text);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 42, 0.38);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 42, 42, 0.08);
}

.promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease, filter 300ms ease;
}

.promo-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.12);
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.25)),
    radial-gradient(circle at 72% 28%, rgba(255, 42, 42, 0.42), transparent 30%);
}

.promo-card > div:not(.deal-symbol) {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 1.15rem;
}

.promo-card h3 {
  margin: 0.2rem 0 0;
  border-top: 0;
  padding-top: 0;
  color: #fff;
  font-family: var(--font-main);
  font-size: clamp(1.42rem, 2.05vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: normal;
  text-transform: uppercase;
}

.promo-card p {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.42;
}

.promo-card--local {
  min-height: 180px;
}

.promo-card--local img {
  object-fit: cover;
  object-position: 70% center;
}

.promo-card--local:hover img {
  transform: none;
}

.promo-card--local::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16) 58%, rgba(0, 0, 0, 0.04));
}

.promo-card--local > div:not(.deal-symbol) {
  align-self: start;
  max-width: min(46%, 280px);
  padding: 1.05rem 1rem;
}

.promo-card--local h3 {
  margin: 0;
  font-size: clamp(1.24rem, 1.55vw, 1.55rem);
  line-height: 1;
  text-transform: none;
}

.promo-card--local p {
  max-width: 210px;
  margin: 0.42rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.82rem, 0.95vw, 0.98rem);
  line-height: 1.36;
  font-weight: 800;
}

.promo-card--local p span {
  color: var(--red);
  font-weight: 900;
}

.promo-card--delivery {
  min-height: 180px;
}

.promo-card--delivery img {
  object-fit: cover;
  object-position: 78% center;
}

.promo-card--delivery:hover img {
  transform: none;
}

.promo-card--delivery::after {
  background: linear-gradient(90deg, rgba(2, 8, 18, 0.78), rgba(2, 8, 18, 0.16) 58%, rgba(2, 8, 18, 0.04));
}

.promo-card--delivery > div:not(.deal-symbol) {
  align-self: start;
  max-width: min(50%, 300px);
  padding: 0.9rem 0.85rem;
}

.promo-card--delivery h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.85vw, 1.85rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.promo-card--delivery p {
  max-width: 220px;
  margin: 0.42rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.42;
  font-weight: 700;
}

.promo-card--delivery .promo-card__kicker {
  margin-top: 0.16rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.promo-card--delivery .button {
  min-height: 32px;
  margin-top: 0.8rem;
  padding: 0 0.85rem;
  font-size: 0.72rem;
  border-radius: 0.32rem;
}

.promo-card--deals {
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 174, 67, 0.34), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(255, 42, 42, 0.32), transparent 34%),
    linear-gradient(135deg, #310609, #08111c 54%, #150309);
}

.promo-card--deals::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent),
    conic-gradient(from 0deg, transparent, rgba(255, 42, 42, 0.48), transparent 38%, rgba(255, 180, 84, 0.4), transparent 72%);
  opacity: 0.18;
  pointer-events: none;
}

.promo-card--deals::after {
  z-index: 0;
  background:
    radial-gradient(circle at 74% 40%, rgba(255, 42, 42, 0.26), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%);
}

.promo-card__discount {
  margin: 0.35rem 0 0;
  color: #fff !important;
  font-size: 1.2rem !important;
}

.deal-symbol {
  position: absolute;
  right: 1.2rem;
  top: 1.15rem;
  z-index: 2;
  display: grid;
  width: 105px;
  height: 105px;
  place-items: center;
  border: 2px solid rgba(255, 42, 42, 0.55);
  border-radius: 1rem;
  color: #ffb4b4;
  font-size: 3.5rem;
  font-weight: 900;
  transform: rotate(12deg);
  box-shadow: 0 0 55px rgba(255, 42, 42, 0.28);
}

.deal-clock {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 360px);
  max-width: 100%;
  margin: 0.78rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 84% 0, rgba(255, 122, 52, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(31, 7, 10, 0.94), rgba(10, 13, 20, 0.94));
  box-shadow:
    0 0 0 1px rgba(255, 42, 42, 0.08) inset,
    0 18px 48px rgba(255, 42, 42, 0.14),
    0 14px 38px rgba(0, 0, 0, 0.28);
  contain: layout paint style;
  padding: 0.68rem;
}

.deal-clock > * {
  position: relative;
  z-index: 2;
}

.deal-clock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 18px;
  opacity: 0.72;
  pointer-events: none;
}

.deal-clock::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 80% 18%, rgba(255, 42, 42, 0.2), transparent 36%);
  pointer-events: none;
}

.deal-clock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.48rem;
  margin-bottom: 0.55rem;
}

.deal-clock__live,
.deal-clock__status,
.deal-clock__heat {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deal-clock__live {
  background: linear-gradient(135deg, #ff2a2a, #a60f17);
  box-shadow: 0 10px 28px rgba(255, 42, 42, 0.28);
  padding: 0 0.54rem;
}

.deal-clock__status {
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  padding: 0 0.48rem;
}

.deal-clock__status span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #ff3434;
  box-shadow: 0 0 0 5px rgba(255, 42, 42, 0.16);
  animation: countdownCardPulse 1.25s ease-in-out infinite;
}

.deal-clock__heat {
  justify-content: center;
  min-width: 2.9rem;
  background:
    linear-gradient(135deg, #ffd36b, #ff672f 45%, #ff2a2a);
  color: #210407;
  box-shadow:
    0 10px 28px rgba(255, 116, 42, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  transform: rotate(2deg);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.countdown--pro {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
}

.countdown-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 70px;
  grid-template-rows: 1fr auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 42, 42, 0.1) 48%, rgba(0, 0, 0, 0.34) 49%),
    rgba(10, 10, 13, 0.72);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -18px 28px rgba(255, 42, 42, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.18);
  contain: layout paint style;
  perspective: 420px;
  transform-style: preserve-3d;
}

.countdown-card::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: 50%;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.countdown-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, 0.16) 38%, transparent 56%);
  opacity: 0;
  transform: translateX(-40%);
  pointer-events: none;
}

.countdown-card__value {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  min-height: 2.35rem;
  place-items: center;
  margin-top: 0.18rem;
  color: #fff;
  font-size: clamp(1.16rem, 2vw, 1.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 42, 42, 0.35);
}

.countdown-card small {
  position: relative;
  z-index: 3;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.48rem;
  font-size: 0.53rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.countdown-card__next {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.countdown-card.is-ticking,
.countdown-card.is-ticking-alt {
  border-color: rgba(255, 82, 82, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 28px rgba(255, 42, 42, 0.16),
    0 0 22px rgba(255, 42, 42, 0.24);
}

.countdown-card.is-ticking::after,
.countdown-card.is-ticking-alt::after {
  animation: countdownFlipWash 460ms ease-out;
  opacity: 1;
}

.countdown-card.is-ticking .countdown-card__value {
  animation: countdownFlipValue 460ms cubic-bezier(0.16, 0.82, 0.25, 1);
  transform-origin: center bottom;
}

.countdown-card.is-ticking-alt .countdown-card__value {
  animation: countdownFlipValue 460ms cubic-bezier(0.16, 0.82, 0.25, 1);
  transform-origin: center bottom;
}

.countdown__progress {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.38);
}

.countdown__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #ff2a2a, #ff7b34 48%, #ffd36b),
    #ff2a2a;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.5);
  transform: scaleX(var(--deal-progress, 1));
  transform-origin: left center;
  transition: transform 420ms linear;
}

.countdown__progress::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  transform: translateX(-100%);
  animation: progressScan 1.8s ease-in-out infinite;
}

@keyframes countdownFlipValue {
  0% {
    opacity: 0;
    transform: translateY(-0.46rem) rotateX(52deg) scale(0.96);
    text-shadow: 0 0 0 rgba(255, 42, 42, 0);
  }

  58% {
    opacity: 1;
    transform: translateY(0.04rem) rotateX(-7deg) scale(1.08);
    text-shadow: 0 0 24px rgba(255, 116, 42, 0.62);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    text-shadow: 0 0 22px rgba(255, 42, 42, 0.35);
  }
}

@keyframes countdownFlipWash {
  0% {
    opacity: 0;
    transform: translateX(-42%);
  }

  100% {
    opacity: 0;
    transform: translateX(42%);
  }
}

@keyframes progressScan {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes countdownCardPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes megaMenuIn {
  from {
    opacity: 0.96;
    transform: translateY(6px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 42px rgba(255, 42, 42, 0.2);
    transform: rotate(12deg) scale(1);
  }
  50% {
    box-shadow: 0 0 72px rgba(255, 42, 42, 0.38);
    transform: rotate(12deg) scale(1.035);
  }
}

@keyframes shineSweep {
  0% {
    transform: translateX(-120%);
  }
  42%,
  100% {
    transform: translateX(120%);
  }
}

.seller-ambassador {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  content-visibility: auto;
  contain-intrinsic-size: 1200px 420px;
}

.recruit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: #f2f3f5;
  box-shadow: var(--shadow);
}

.recruit-card__media {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.recruit-card__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 0;
  padding: 1.35rem 1.5rem 0.9rem;
  background: transparent;
  color: #fff;
  pointer-events: none;
}

.recruit-card__content .button-row,
.recruit-card__content .recruit-card__text,
.recruit-card__content a {
  pointer-events: auto;
}

.recruit-card .button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0;
  margin-left: 0.9rem;
  transform: translateY(-1.35rem);
}

.recruit-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 38px;
  border-radius: 0.45rem;
  padding: 0 1rem;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.recruit-card .button--primary {
  background: linear-gradient(135deg, var(--cart-cta), var(--cart-cta-dark));
  box-shadow: 0 14px 30px var(--cart-cta-shadow);
}

.recruit-card .button--primary:hover {
  background: linear-gradient(135deg, var(--cart-cta-hover), var(--cart-cta));
  box-shadow: 0 18px 36px rgba(30, 58, 138, 0.3);
}

.recruit-card .button--ghost {
  min-height: auto;
  border: 0;
  background: transparent;
  color: #101827;
  box-shadow: none;
  padding-inline: 0;
}

.recruit-card .button--ghost::after {
  content: "->";
  margin-left: 0.5rem;
}

.recruit-card--seller,
.recruit-card--ambassador {
  --recruit-card-bg: none;
}

.recruit-card h3 {
  margin: 0.2rem 0 0;
  border-top: 0;
  padding-top: 0;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: normal;
}

.recruit-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.recruit-card li {
  position: relative;
  margin: 0.5rem 0;
  color: rgb(255 255 255 / 0.88);
  font-size: 0.88rem;
  font-weight: 800;
  padding-left: 1.35rem;
}

.recruit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #fff;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
  content-visibility: auto;
  contain-intrinsic-size: 1200px 140px;
}

.advantages article {
  display: grid;
  justify-items: center;
  min-height: 110px;
  background: var(--surface-2);
  padding: 0.8rem;
  text-align: center;
}

.advantages article:hover,
.metrics article:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 58, 138, 0.32);
  box-shadow: var(--cart-cta-glow);
}

.advantages .icon {
  margin-bottom: 0.45rem;
}

.advantages strong {
  font-size: 0.9rem;
  font-weight: 900;
}

.advantages span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.brands {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--surface);
  box-shadow: none;
  padding: 1.1rem;
  content-visibility: auto;
  contain-intrinsic-size: 1200px 180px;
}

.brand-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-marquee__track {
  display: flex;
  width: max-content;
  gap: 0.8rem;
  animation: brandScroll 28s linear infinite;
}

.brand-marquee span {
  display: grid;
  min-width: 140px;
  min-height: 62px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 251, 0.94));
  color: var(--brand-color);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.brand-marquee span:hover {
  border-color: color-mix(in srgb, var(--brand-color) 42%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 248, 251, 0.98));
  box-shadow: none;
}

.brand-logo {
  --brand-color: #0f172a;
  letter-spacing: 0;
}

.brand-logo--samsung {
  --brand-color: #1428a0;
}

.brand-logo--xiaomi {
  --brand-color: #ff6900;
}

.brand-logo--hp {
  --brand-color: #0096d6;
}

.brand-logo--beko {
  --brand-color: #0057b8;
}

.brand-logo--toshiba {
  --brand-color: #e60012;
}

.brand-logo--lg {
  --brand-color: #a50034;
}

.brand-logo--sony {
  --brand-color: #111827;
}

.brand-logo--jbl {
  --brand-color: #ff3300;
}

.brand-logo--acer {
  --brand-color: #83b81a;
}

.brand-logo--philips {
  --brand-color: #0053a6;
}

.brand-logo--tefal {
  --brand-color: #e31b23;
}

@keyframes brandScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  content-visibility: auto;
  contain-intrinsic-size: 1200px 160px;
}

.metrics article {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon number"
    "icon label";
  align-items: center;
  column-gap: 0.62rem;
  overflow: hidden;
  min-height: 82px;
  border-color: var(--bottom-line);
  background: var(--bottom-card-bg);
  color: var(--bottom-card-text);
  box-shadow: var(--bottom-shadow);
  padding: 0.78rem;
}

.metrics article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cart-cta), transparent);
  opacity: 0;
}

.metrics article:hover::after {
  opacity: 1;
  animation: shineSweep 1.8s ease-in-out;
}

.metrics strong {
  grid-area: number;
  display: block;
  color: var(--bottom-card-text);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.metrics span {
  grid-area: label;
  color: var(--bottom-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
}

.metrics .icon {
  grid-area: icon;
  margin-bottom: 0;
}

.micro-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.55rem;
  border: 1px solid var(--bottom-line);
  border-radius: 0.7rem;
  background: var(--bottom-strip-bg);
  color: var(--bottom-muted);
  padding: 0.55rem 0.78rem;
  font-size: 0.7rem;
  font-weight: 900;
}

.micro-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.micro-trust span::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border: 1px solid rgba(30, 58, 138, 0.7);
  border-radius: 999px;
}

.market-footer {
  width: 100%;
  margin-top: 0.75rem;
  border-top: 1px solid var(--bottom-line);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-care,
.footer-grid,
.footer-bottom {
  width: min(1500px, calc(100% - 32px));
  margin-inline: auto;
}

.footer-care {
  display: none;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 0.8rem;
  padding-top: 1.2rem;
}

.footer-care > div,
.footer-care article {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-2);
  padding: 1rem;
}

.footer-care h2 {
  margin: 0.2rem 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.footer-care p,
.footer-care span,
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
}

.market-footer .footer-brand p {
  color: var(--bottom-muted);
}

.footer-care strong {
  display: block;
  margin-top: 0.6rem;
  font-weight: 900;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(112px, 0.8fr));
  gap: 1.25rem;
  padding: 1.45rem 0 1.15rem;
}

/* Les colonnes de liens restent des enfants directs de la grille : le
   wrapper ne sert que de conteneur de defilement sur petits ecrans. */
.footer-cols {
  display: contents;
}

.footer-grid h3 {
  margin: 0 0 0.6rem;
  color: var(--footer-text);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-grid nav a,
.app-download a {
  display: block;
  color: var(--bottom-muted);
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0.42rem 0;
}

.footer-grid nav a:hover,
.app-download a:hover {
  color: var(--red);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.socials span,
.app-download a {
  border: 1px solid var(--bottom-line);
  border-radius: 0.65rem;
  background: var(--bottom-chip-bg);
}

.socials span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--footer-text);
  font-size: 0.64rem;
  font-weight: 900;
}

.app-download {
  align-self: start;
  border: 1px solid var(--bottom-line);
  border-radius: 0.85rem;
  background: var(--bottom-chip-bg);
  padding: 0.78rem;
}

.app-download a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.55rem 0.7rem;
  background: var(--bottom-app-bg);
  color: var(--bottom-app-text);
  text-align: center;
}

.app-download,
.footer-apps {
  display: none !important;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--bottom-line);
  color: var(--bottom-muted);
  padding: 0.9rem 0 1.15rem;
  font-size: 0.7rem;
  font-weight: 800;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.country {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.4rem 0.65rem;
}

.auth-body {
  min-height: 100vh;
  background: var(--auth-bg);
}

.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(230, 30, 37, 0.08), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(15, 23, 42, 0.1), transparent 30%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin-inline: auto;
  padding: 1.1rem 0 1.6rem;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.auth-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-topbar__actions > a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--auth-line);
  border-radius: 0.72rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-soft);
  padding: 0 0.76rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.auth-topbar__actions > a:hover {
  border-color: rgba(230, 30, 37, 0.4);
  color: var(--red);
}

.auth-drawer-toggle,
.auth-mobile-drawer {
  display: none;
}

.auth-drawer-toggle {
  width: 44px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.78rem;
  background: var(--surface-2);
  color: var(--text);
}

.auth-drawer-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.auth-drawer-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.auth-drawer-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.auth-drawer-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.auth-mobile-drawer {
  grid-column: 1 / -1;
}

.auth-mobile-drawer.auth-mobile-drawer--open {
  display: block;
}

.auth-mobile-drawer__panel {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.95rem;
  background: var(--auth-card-bg);
  box-shadow: var(--shadow);
  padding: 0.65rem;
}

.auth-mobile-drawer__panel a,
.auth-mobile-theme-toggle {
  min-height: 42px;
  justify-content: flex-start;
  border: 1px solid var(--auth-line);
  border-radius: 0.72rem;
  background: var(--surface-2);
  color: var(--text-soft);
  padding: 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.auth-mobile-drawer__panel a {
  display: inline-flex;
  align-items: center;
}

.auth-mobile-theme-toggle {
  width: 100%;
}

.auth-mobile-theme-toggle span {
  display: inline;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 1rem;
  align-items: start;
}

.auth-hero,
.auth-card {
  border: 1px solid var(--auth-line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: var(--auth-panel-bg);
  color: #fff;
  padding: clamp(1.2rem, 2.6vw, 2rem);
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -28% 28%;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 42, 0.24), transparent 66%);
  opacity: 0.72;
}

.auth-hero__copy,
.auth-value-grid,
.auth-visual {
  position: relative;
  z-index: 1;
}

.auth-hero__copy h1 {
  max-width: 12ch;
  margin: 0.3rem 0 0;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 900;
}

.auth-hero__copy p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 700;
}

.auth-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.auth-value-grid article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.85rem;
}

.auth-value__icon {
  display: inline-grid;
  min-width: 2.4rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 0.66rem;
  background: rgba(230, 30, 37, 0.22);
  color: #fff;
  padding-inline: 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.auth-value-grid strong,
.auth-value-grid p {
  display: block;
  margin: 0;
}

.auth-value-grid strong {
  margin-top: 0.62rem;
  font-size: 0.88rem;
  font-weight: 900;
}

.auth-value-grid p {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 700;
}

.auth-status-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 0 0, rgba(230, 30, 37, 0.28), transparent 44%),
    rgba(255, 255, 255, 0.075);
  padding: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-status-card__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.86rem;
  background: linear-gradient(135deg, var(--red), #a70f15);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(230, 30, 37, 0.26);
}

.auth-status-card strong,
.auth-status-card p {
  display: block;
  margin: 0;
}

.auth-status-card strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.auth-status-card p {
  margin-top: 0.24rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 750;
}

.auth-visual {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  min-height: 260px;
  margin: 0;
  background: var(--surface-2, var(--bg-elevated));
}

.auth-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  opacity: 0.84;
}

.auth-card {
  background: var(--auth-card-bg);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
}

.auth-card__header {
  margin-bottom: 1rem;
}

.auth-card__header h2 {
  margin: 0.28rem 0 0;
  color: var(--text);
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1;
  font-weight: 900;
}

.auth-card__header p:not(.eyebrow) {
  margin: 0.55rem 0 0;
  color: var(--auth-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 700;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.9rem;
  background: var(--surface-2);
  padding: 0.35rem;
  margin-bottom: 1rem;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 0.68rem;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 900;
}

.auth-tab--active {
  background: linear-gradient(135deg, var(--red), #b4141a);
  color: #fff;
  box-shadow: 0 12px 28px rgba(230, 30, 37, 0.22);
}

.auth-form[hidden] {
  display: none;
}

.auth-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
}

.auth-form[data-auth-panel="login"] {
  grid-template-columns: 1fr;
}

.auth-field,
.auth-file,
.auth-check {
  min-width: 0;
}

.auth-field {
  display: grid;
  gap: 0.42rem;
}

.auth-field--wide {
  grid-column: 1 / -1;
}

.auth-field--phone .auth-phone {
  display: grid;
  grid-template-columns: minmax(10.5rem, 12.75rem) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--auth-line);
  border-radius: 0.78rem;
  background: var(--auth-field-bg);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.auth-field--phone .auth-phone:hover {
  border-color: color-mix(in srgb, var(--auth-line) 55%, rgba(230, 30, 37, 0.35));
}

.auth-field--phone .auth-phone:focus-within {
  border-color: rgba(230, 30, 37, 0.54);
  box-shadow: 0 0 0 4px rgba(230, 30, 37, 0.08);
}

.auth-phone__country-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  min-height: 52px;
  padding: 0 0.55rem 0 0.7rem;
  border-right: 1px solid var(--auth-line);
  background: color-mix(in srgb, var(--auth-field-bg) 88%, rgba(230, 30, 37, 0.06));
}

.auth-phone__dial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, rgba(230, 30, 37, 0.12) 70%, transparent);
  color: #c41218;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.auth-phone__country,
.auth-phone__national {
  min-height: 52px;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-phone__country {
  width: 100%;
  padding: 0.65rem 1.65rem 0.65rem 0.15rem;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.35rem center !important;
  background-size: 0.7rem !important;
  cursor: pointer;
}

.auth-phone__national {
  padding: 0.85rem 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.auth-phone__national:focus,
.auth-phone__country:focus {
  outline: 0;
  box-shadow: none !important;
}

.auth-field__hint {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .auth-field--phone .auth-phone {
    grid-template-columns: 1fr;
  }

  .auth-phone__country-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--auth-line);
  }
}

:root[data-theme="dark"] .auth-field--phone .auth-phone {
  background: var(--surface-2);
}

:root[data-theme="dark"] .auth-phone__country-wrap {
  background: color-mix(in srgb, var(--surface-2) 82%, rgba(230, 30, 37, 0.14));
}

:root[data-theme="dark"] .auth-phone__dial {
  color: #ff6b6f;
  background: color-mix(in srgb, rgba(230, 30, 37, 0.22) 65%, transparent);
}

:root[data-theme="dark"] .auth-phone__country {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a4b4c7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.auth-field > span:first-child {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.auth-field input,
.auth-field textarea,
.auth-field select,
.auth-password {
  width: 100%;
  border: 1px solid var(--auth-line);
  border-radius: 0.78rem;
  background: var(--auth-field-bg);
  color: var(--text);
}

.auth-field input,
.auth-field textarea {
  min-height: 52px;
  outline: 0;
  padding: 0.85rem 0.95rem;
  font-weight: 800;
}

/* WooCommerce password toggle — embed eye inside the field */
.auth-form .password-input,
.auth-field .password-input,
.woocommerce-ResetPassword .password-input,
.lost_reset_password .password-input,
.woocommerce-form-login .password-input,
.woocommerce-form-register .password-input {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--auth-line, var(--line)) !important;
  border-radius: 0.78rem !important;
  background: var(--auth-field-bg, var(--surface-2)) !important;
  box-sizing: border-box;
}

.auth-form .password-input .input-text,
.auth-form .password-input input,
.auth-field .password-input .input-text,
.auth-field .password-input input,
.woocommerce-ResetPassword .password-input .input-text,
.woocommerce-ResetPassword .password-input input,
.lost_reset_password .password-input .input-text,
.lost_reset_password .password-input input,
.woocommerce-form-login .password-input .input-text,
.woocommerce-form-register .password-input .input-text {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 52px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.85rem 0.35rem 0.85rem 0.95rem !important;
  color: var(--text) !important;
  font-weight: 800;
  outline: 0;
}

.auth-form .show-password-input,
.auth-field .show-password-input,
.woocommerce-ResetPassword .show-password-input,
.lost_reset_password .show-password-input,
.woocommerce-form-login .show-password-input,
.woocommerce-form-register .show-password-input,
.auth-password-toggle,
.ps-password-toggle {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 3rem !important;
  width: 3rem !important;
  min-width: 3rem !important;
  height: auto !important;
  min-height: 52px !important;
  align-self: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid var(--auth-line, var(--line)) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--text-soft) !important;
  font-size: inherit !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
}

.auth-form .show-password-input:hover,
.auth-field .show-password-input:hover,
.woocommerce-ResetPassword .show-password-input:hover,
.lost_reset_password .show-password-input:hover,
.woocommerce-form-login .show-password-input:hover,
.woocommerce-form-register .show-password-input:hover,
.auth-password-toggle:hover,
.ps-password-toggle:hover {
  background-color: color-mix(in srgb, var(--red, #e61e25) 8%, transparent) !important;
  color: var(--red, #e61e25) !important;
}

.auth-form .show-password-input.display-password,
.auth-field .show-password-input.display-password,
.woocommerce-ResetPassword .show-password-input.display-password,
.lost_reset_password .show-password-input.display-password,
.woocommerce-form-login .show-password-input.display-password,
.woocommerce-form-register .show-password-input.display-password,
.auth-password-toggle.display-password,
.ps-password-toggle.display-password {
  color: var(--red, #e61e25) !important;
  background-image: none !important;
}

.auth-form .show-password-input svg,
.auth-field .show-password-input svg,
.woocommerce-ResetPassword .show-password-input svg,
.lost_reset_password .show-password-input svg,
.woocommerce-form-login .show-password-input svg,
.woocommerce-form-register .show-password-input svg,
.auth-password-toggle svg,
.ps-password-toggle svg,
.auth-password-eye,
.ps-password-eye {
  display: block !important;
  width: 1.2rem !important;
  height: 1.2rem !important;
  stroke: currentColor;
  fill: none;
  pointer-events: none;
}

:root[data-theme="dark"] .auth-form .show-password-input,
:root[data-theme="dark"] .auth-field .show-password-input,
:root[data-theme="dark"] .woocommerce-ResetPassword .show-password-input,
:root[data-theme="dark"] .lost_reset_password .show-password-input,
:root[data-theme="dark"] .woocommerce-form-login .show-password-input,
:root[data-theme="dark"] .woocommerce-form-register .show-password-input,
:root[data-theme="dark"] .auth-password-toggle,
:root[data-theme="dark"] .ps-password-toggle {
  color: #a4b4c7 !important;
  background-image: none !important;
}

:root[data-theme="dark"] .auth-form .show-password-input.display-password,
:root[data-theme="dark"] .auth-field .show-password-input.display-password,
:root[data-theme="dark"] .woocommerce-ResetPassword .show-password-input.display-password,
:root[data-theme="dark"] .lost_reset_password .show-password-input.display-password,
:root[data-theme="dark"] .woocommerce-form-login .show-password-input.display-password,
:root[data-theme="dark"] .woocommerce-form-register .show-password-input.display-password,
:root[data-theme="dark"] .auth-password-toggle.display-password,
:root[data-theme="dark"] .ps-password-toggle.display-password {
  color: #e61e25 !important;
  background-image: none !important;
}

.auth-form .password-input:focus-within,
.auth-field .password-input:focus-within,
.woocommerce-ResetPassword .password-input:focus-within,
.lost_reset_password .password-input:focus-within {
  border-color: rgba(230, 30, 37, 0.54) !important;
  box-shadow: 0 0 0 4px rgba(230, 30, 37, 0.08);
}

.auth-card--wide {
  max-width: 560px;
}

.auth-form--signup {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.auth-form--login {
  grid-template-columns: 1fr;
}

.auth-hint {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

/* Hide privacy copy if a plugin re-adds it */
.auth-form--signup .woocommerce-privacy-policy-text,
.woocommerce-form-register .woocommerce-privacy-policy-text {
  display: none !important;
}

/* Dokan / WC injected registration fields — single ordered stack */
.auth-form--signup .form-row,
.auth-form--signup .form-group,
.auth-form--signup > p {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  width: 100%;
  float: none !important;
  clear: both;
}

.auth-form--signup .form-row-wide,
.auth-form--signup .form-row-first,
.auth-form--signup .form-row-last {
  width: 100% !important;
  float: none !important;
}

.auth-form--signup .user-role,
.auth-form--signup .vendor-customer-registration {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--auth-line, var(--line));
  border-radius: 0.78rem;
  background: var(--auth-field-bg, var(--surface-2));
}

.auth-form--signup .user-role label,
.auth-form--signup .vendor-customer-registration label,
.auth-form--signup .user-role .radio,
.auth-form--signup .vendor-customer-registration .radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
}

.auth-form--signup .form-row > label,
.auth-form--signup .form-group > label {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.auth-form--signup .form-row input[type="text"],
.auth-form--signup .form-row input[type="email"],
.auth-form--signup .form-row input[type="tel"],
.auth-form--signup .form-row input[type="password"],
.auth-form--signup .form-group input[type="text"],
.auth-form--signup .form-group input[type="email"],
.auth-form--signup .form-group input[type="tel"],
.auth-form--signup .form-group input[type="password"] {
  width: 100%;
  min-height: 52px;
  outline: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--auth-line, var(--line));
  border-radius: 0.78rem;
  background: var(--auth-field-bg, var(--surface-2));
  color: var(--text);
  font-weight: 800;
  box-sizing: border-box;
}

.auth-form--signup .form-row .text-info,
.auth-form--signup .form-group .text-info,
.auth-form--signup .form-row .help-block,
.auth-form--signup .shop-url-preview,
.auth-form--signup #url-alart-mgs,
.auth-form--signup .dokan-text-info {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-form--signup .auth-submit {
  margin-top: 0.35rem;
}

.auth-field select {
  min-height: 52px;
  outline: 0;
  padding: 0.85rem 2.35rem 0.85rem 0.95rem;
  font-weight: 800;
}

.auth-field select option {
  background: var(--surface);
  color: var(--text);
}

:root[data-theme="dark"] .auth-field input,
:root[data-theme="dark"] .auth-field textarea {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--auth-line);
  color-scheme: dark;
}

:root[data-theme="dark"] .auth-field select {
  background-color: var(--surface-2);
  color: var(--text);
  border-color: var(--auth-line);
  color-scheme: dark;
}

:root[data-theme="dark"] .auth-field select option {
  background: var(--surface-2);
  color: var(--text);
}

:root[data-theme="dark"] .auth-field select:disabled {
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface-3));
  color: var(--text-soft);
  opacity: 1;
}

:root[data-theme="dark"] .auth-field input::placeholder,
:root[data-theme="dark"] .auth-field textarea::placeholder {
  color: var(--muted);
}

.auth-field select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

.auth-field input:focus,
.auth-field textarea:focus,
.auth-field select:focus,
.auth-password:focus-within {
  border-color: rgba(230, 30, 37, 0.54);
  box-shadow: 0 0 0 4px rgba(230, 30, 37, 0.08);
}

.auth-password {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}

.auth-password input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-password button,
.auth-password-toggle {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--auth-line);
  background: transparent;
  color: var(--text-soft);
  padding-inline: 0.75rem;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.auth-password .password-input {
  display: contents !important;
  border: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.auth-password .show-password-input:not([data-password-toggle]) {
  display: none !important;
}

.auth-password .password-toggle + .password-toggle,
.auth-password [data-password-toggle] + [data-password-toggle],
.auth-password .show-password-input + .show-password-input {
  display: none !important;
}

.auth-password [data-password-toggle] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.auth-signup-hint {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--auth-line);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.auth-signup-hint a {
  color: var(--red, #e61e25);
  font-weight: 900;
  text-decoration: none;
}

.auth-signup-hint a:hover {
  text-decoration: underline;
}

.auth-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-row--between {
  justify-content: space-between;
}

.auth-row a {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
}

.auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.48rem;
  color: var(--auth-soft);
  font-size: 0.76rem;
  line-height: 1.45;
  font-weight: 800;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.08rem;
  accent-color: var(--red);
}

.auth-submit {
  width: 100%;
  min-height: 48px;
}

.auth-feedback {
  margin: 0;
  grid-column: 1 / -1;
  padding: 0.72rem 0.85rem;
  border-radius: 0.78rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.auth-feedback--error {
  color: #8f1d1d;
  background: rgba(230, 30, 37, 0.08);
  border: 1px solid rgba(230, 30, 37, 0.22);
}

.auth-feedback--success {
  color: #14532d;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.24);
}

.auth-api-status {
  margin: 0 0 0.75rem;
  padding: 0.72rem 0.85rem;
  border-radius: 0.78rem;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.45;
  color: #14532d;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.24);
}

.auth-api-status--error {
  color: #8f1d1d;
  background: rgba(230, 30, 37, 0.08);
  border-color: rgba(230, 30, 37, 0.22);
}

.auth-demo-hint {
  margin: 0 0 0.85rem;
  color: var(--auth-soft);
  font-size: 0.74rem;
  line-height: 1.45;
  font-weight: 750;
}

.auth-demo-hint strong {
  color: var(--text);
}

:root[data-theme="dark"] .auth-feedback--error {
  color: #fecaca;
  background: rgba(230, 30, 37, 0.14);
}

:root[data-theme="dark"] .auth-feedback--success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
}

.auth-submit[aria-busy="true"] {
  opacity: 0.82;
  cursor: wait;
}

.auth-layout--verify {
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.84fr);
}

.auth-hero--verify {
  min-height: 620px;
}

.auth-card--verify {
  align-self: center;
}

.auth-form--verify,
.auth-form--resend {
  grid-template-columns: 1fr;
}

.auth-form--resend {
  margin-top: 0.82rem;
  border-top: 1px solid var(--auth-line);
  padding-top: 0.82rem;
}

.verify-code {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.38rem, 1.2vw, 0.62rem);
  width: 100%;
}

.verify-code__input {
  min-width: 0;
  aspect-ratio: 1;
  min-height: 56px;
  border: 1px solid var(--auth-line);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 50% 0, rgba(230, 30, 37, 0.08), transparent 48%),
    var(--auth-field-bg);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  outline: 0;
  padding: 0;
  text-align: center;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 900;
}

.verify-code__input:focus {
  border-color: rgba(230, 30, 37, 0.62);
  box-shadow:
    0 0 0 4px rgba(230, 30, 37, 0.09),
    0 12px 24px rgba(230, 30, 37, 0.12);
}

.auth-help-text {
  margin: 0;
  color: var(--auth-soft);
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 750;
}

.auth-kyc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.95rem;
  margin: 0;
  padding: 0.9rem;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.auth-kyc > legend,
.auth-kyc__hint {
  grid-column: 1 / -1;
}

.auth-kyc legend {
  display: block;
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.auth-kyc__hint {
  margin: 0;
  color: var(--auth-soft);
  font-size: 0.74rem;
  line-height: 1.45;
  font-weight: 750;
}

.auth-file {
  display: grid;
  gap: 0.42rem;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.auth-file__label {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.auth-file__hint {
  margin: -0.2rem 0 0;
  color: var(--auth-soft);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
}

.auth-file__control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.35rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.78rem;
  background: var(--auth-field-bg);
}

.auth-file:focus-within .auth-file__control {
  border-color: rgba(230, 30, 37, 0.54);
  box-shadow: 0 0 0 4px rgba(230, 30, 37, 0.08);
}

.auth-file__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.82rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--surface-2) 88%, var(--auth-line));
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.auth-file__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--auth-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.auth-file input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.auth-kyc-block {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.95rem;
  background: rgba(15, 23, 42, 0.04);
}

.auth-kyc-block__title {
  margin: 0;
  padding: 0 0.4rem;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-kyc-block__lead,
.auth-kyc-block__rule {
  margin: 0;
  color: var(--auth-soft);
}

.td-kyc-pending-docs {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.04);
}

.td-kyc-pending-docs__title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.td-kyc-pending-docs__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-kyc-pending-docs__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.td-kyc-pending-docs__label {
  font-size: 0.8rem;
  font-weight: 700;
}

.td-kyc-pending-docs__link {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.td-kyc-pending-docs__hint {
  margin-top: 0.75rem;
}

.auth-body--client .auth-topbar__actions,
.auth-body--client .auth-drawer-toggle,
.auth-body--client .auth-mobile-drawer,
.auth-body--vendor .auth-topbar__actions,
.auth-body--vendor .auth-drawer-toggle,
.auth-body--vendor .auth-mobile-drawer,
.auth-body--ambassador .auth-topbar__actions,
.auth-body--ambassador .auth-drawer-toggle,
.auth-body--ambassador .auth-mobile-drawer {
  display: none;
}

.auth-body--client .auth-topbar,
.auth-body--vendor .auth-topbar,
.auth-body--ambassador .auth-topbar {
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.auth-body--client .auth-layout,
.auth-body--vendor .auth-layout,
.auth-body--ambassador .auth-layout {
  align-items: stretch;
  gap: 1.15rem;
}

.auth-body--client .auth-hero,
.auth-body--vendor .auth-hero,
.auth-body--ambassador .auth-hero {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1.15rem;
  min-height: 0;
  height: 100%;
}

.auth-body--client .auth-hero__copy h1,
.auth-body--vendor .auth-hero__copy h1,
.auth-body--ambassador .auth-hero__copy h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 0.98;
}

.auth-body--client .auth-value-grid,
.auth-body--vendor .auth-value-grid,
.auth-body--ambassador .auth-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 0.75rem;
}

.auth-body--client .auth-value-grid article,
.auth-body--vendor .auth-value-grid article,
.auth-body--ambassador .auth-value-grid article {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 132px;
  height: 100%;
}

.auth-body--vendor .auth-value-grid article,
.auth-body--ambassador .auth-value-grid article {
  display: grid;
  gap: 0.55rem;
  min-height: 0;
  height: auto;
}

.auth-body--client .auth-value-grid strong,
.auth-body--vendor .auth-value-grid strong,
.auth-body--ambassador .auth-value-grid strong {
  margin-top: 0.45rem;
}

.auth-body--client .auth-value-card strong,
.auth-body--vendor .auth-value-card strong,
.auth-body--ambassador .auth-value-card strong {
  margin-top: 0;
}

.auth-body--client .auth-value-grid p,
.auth-body--vendor .auth-value-grid p,
.auth-body--ambassador .auth-value-grid p {
  margin-top: auto;
}

.auth-body--client .auth-visual,
.auth-body--vendor .auth-visual,
.auth-body--ambassador .auth-visual {
  align-self: end;
  min-height: 220px;
  max-height: 240px;
}

.auth-body--client .auth-visual img,
.auth-body--vendor .auth-visual img,
.auth-body--ambassador .auth-visual img {
  min-height: 220px;
  max-height: 240px;
}

.auth-visual__placeholder {
  width: 100%;
  min-height: 220px;
  max-height: 240px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(60, 31, 102, 0.92) 0%, rgba(112, 71, 200, 0.78) 100%);
}

.auth-form.is-submitting {
  pointer-events: none;
  opacity: 0.92;
}

.auth-form.is-submitting .auth-submit {
  cursor: wait;
}

.auth-body--client .auth-card,
.auth-body--vendor .auth-card,
.auth-body--ambassador .auth-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-self: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  padding: clamp(0.95rem, 1.6vw, 1.15rem) clamp(1.05rem, 2vw, 1.45rem);
}

.auth-body--client .auth-card__header,
.auth-body--vendor .auth-card__header,
.auth-body--ambassador .auth-card__header {
  flex-shrink: 0;
  margin: 0;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--auth-line);
}

.auth-body--client .auth-card__header .eyebrow,
.auth-body--vendor .auth-card__header .eyebrow,
.auth-body--ambassador .auth-card__header .eyebrow {
  margin: 0;
}

.auth-body--client .auth-card__header h2,
.auth-body--vendor .auth-card__header h2,
.auth-body--ambassador .auth-card__header h2 {
  margin: 1.25rem 0 0;
  line-height: 1.08;
}

.auth-body--client .auth-card__header p:not(.eyebrow),
.auth-body--vendor .auth-card__header p:not(.eyebrow),
.auth-body--ambassador .auth-card__header p:not(.eyebrow) {
  margin: 0.85rem 0 0;
  line-height: 1.62;
}

.auth-body--client .auth-card__content,
.auth-body--vendor .auth-card__content,
.auth-body--ambassador .auth-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 1.2rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-body--ambassador .auth-kyc-block,
.auth-body--vendor .auth-kyc-block {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.06);
}

.auth-body--ambassador .auth-kyc-block__title,
.auth-body--vendor .auth-kyc-block__title {
  background: var(--surface);
  color: var(--text-soft);
}

.auth-body--ambassador .auth-file__control,
.auth-body--vendor .auth-file__control {
  border: 1px solid var(--auth-line, var(--line));
  border-radius: 0.78rem;
  background: var(--auth-field-bg, var(--surface-2));
}

:root[data-theme="dark"] .auth-kyc-block {
  border-color: var(--auth-line);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

:root[data-theme="dark"] .auth-kyc-block__title {
  background: var(--surface-2);
  color: var(--text-soft);
}

:root[data-theme="dark"] .auth-body--ambassador .auth-kyc-block,
:root[data-theme="dark"] .auth-body--vendor .auth-kyc-block {
  border-color: var(--auth-line);
  background: color-mix(in srgb, var(--surface-3) 70%, transparent);
}

:root[data-theme="dark"] .auth-body--ambassador .auth-kyc-block__title,
:root[data-theme="dark"] .auth-body--vendor .auth-kyc-block__title {
  background: var(--surface-2);
  color: var(--text-soft);
}

:root[data-theme="dark"] .auth-file__control {
  background: var(--surface-2);
  border-color: var(--auth-line);
  color-scheme: dark;
}

:root[data-theme="dark"] .auth-file__button {
  background: color-mix(in srgb, var(--surface-3) 90%, var(--auth-line));
  color: var(--text);
}

:root[data-theme="dark"] .auth-file__name {
  color: var(--auth-soft);
}

:root[data-theme="dark"] .auth-file:focus-within .auth-file__control {
  border-color: rgba(230, 30, 37, 0.54);
  box-shadow: 0 0 0 4px rgba(230, 30, 37, 0.12);
}

:root[data-theme="dark"] .auth-body--ambassador .auth-file__control,
:root[data-theme="dark"] .auth-body--vendor .auth-file__control {
  background: var(--surface-2);
  border-color: var(--auth-line);
}

.auth-body--client .auth-card__visual,
.auth-body--vendor .auth-card__visual,
.auth-body--ambassador .auth-card__visual {
  flex-shrink: 0;
  margin: 1rem 0 0;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 0.9rem;
  min-height: 150px;
  max-height: 180px;
  background: var(--surface-2);
}

.auth-body--client .auth-card__visual img,
.auth-body--vendor .auth-card__visual img,
.auth-body--ambassador .auth-card__visual img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 180px;
  object-fit: cover;
}

.auth-body--client .auth-tabs,
.auth-body--vendor .auth-tabs,
.auth-body--ambassador .auth-tabs {
  margin-bottom: 0.9rem;
}

.auth-body--client .auth-form,
.auth-body--vendor .auth-form,
.auth-body--ambassador .auth-form {
  margin: 0;
}

.auth-body--client .auth-value-grid p,
.auth-body--vendor .auth-value-grid p,
.auth-body--ambassador .auth-value-grid p {
  margin-top: 0.28rem;
}

.auth-body--client .auth-value-card,
.auth-body--vendor .auth-value-card,
.auth-body--ambassador .auth-value-card {
  overflow: hidden;
}

.auth-body--client .auth-value-card {
  padding: 0;
  min-height: 168px;
}

.auth-body--vendor .auth-value-grid .auth-value-card,
.auth-body--ambassador .auth-value-grid .auth-value-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.9rem;
  min-height: 0;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.auth-body--vendor .auth-value-grid .auth-value-card:hover,
.auth-body--ambassador .auth-value-grid .auth-value-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.auth-body--vendor .auth-value__icon,
.auth-body--ambassador .auth-value__icon {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  min-width: 2.55rem;
  place-items: center;
  align-self: start;
  border-radius: 0.72rem;
  background: linear-gradient(145deg, rgba(230, 30, 37, 0.42), rgba(230, 30, 37, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 0;
  box-shadow: 0 10px 24px rgba(230, 30, 37, 0.18);
}

.auth-body--vendor .auth-value__icon .icon,
.auth-body--ambassador .auth-value__icon .icon {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
}

.auth-body--vendor .auth-value-card strong,
.auth-body--ambassador .auth-value-card strong {
  margin: 0;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
}

.auth-body--vendor .auth-value-card p,
.auth-body--ambassador .auth-value-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  line-height: 1.5;
  font-weight: 700;
}

.auth-body--vendor .auth-hero--vendor::after,
.auth-body--ambassador .auth-hero--ambassador::after {
  inset: auto -24% -32% 18%;
  height: 340px;
  opacity: 0.82;
}

.auth-body--vendor .auth-hero__copy h1,
.auth-body--ambassador .auth-hero__copy h1 {
  max-width: 16ch;
  color: #fff;
}

.auth-body--vendor .auth-hero__copy p:not(.eyebrow),
.auth-body--ambassador .auth-hero__copy p:not(.eyebrow) {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.6;
}

.auth-value-card__media {
  position: relative;
  height: 78px;
  overflow: hidden;
  background: var(--surface-2, var(--bg-elevated));
}

.auth-value-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 220ms ease, opacity 220ms ease;
}

.auth-value-card:hover .auth-value-card__media img {
  transform: scale(1.04);
  opacity: 0.96;
}

.auth-value-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 17, 29, 0.08), rgba(8, 17, 29, 0.72));
}

.auth-value-card__badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 1;
  display: inline-grid;
  min-width: 2rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 0.5rem;
  background: rgba(230, 30, 37, 0.92);
  color: #fff;
  padding-inline: 0.42rem;
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(230, 30, 37, 0.28);
}

.auth-value-card__icon {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  z-index: 1;
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #fff;
}

.auth-value-card__icon .icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.auth-value-card__body {
  display: grid;
  gap: 0.22rem;
  padding: 0.72rem 0.78rem 0.82rem;
}

.auth-value-card__body strong {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.auth-value-card__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  line-height: 1.45;
  font-weight: 700;
}

@media (max-width: 520px) {
  .auth-body--client .auth-card,
  .auth-body--vendor .auth-card,
  .auth-body--ambassador .auth-card {
    height: auto;
  }

  .auth-body--client .auth-card__visual,
  .auth-body--client .auth-card__visual img,
  .auth-body--vendor .auth-card__visual,
  .auth-body--vendor .auth-card__visual img,
  .auth-body--ambassador .auth-card__visual,
  .auth-body--ambassador .auth-card__visual img {
    min-height: 120px;
    max-height: 140px;
  }

  .auth-body--client .auth-topbar,
  .auth-body--vendor .auth-topbar,
  .auth-body--ambassador .auth-topbar {
    position: static;
    display: flex;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
  }

  .auth-body--client .auth-hero,
  .auth-body--vendor .auth-hero,
  .auth-body--ambassador .auth-hero {
    gap: 0.85rem;
  }

  .auth-body--client .auth-value-grid article,
  .auth-body--vendor .auth-value-grid article,
  .auth-body--ambassador .auth-value-grid article {
    min-height: 88px;
  }

  .auth-body--client .auth-value-card {
    min-height: 148px;
  }

  .auth-value-card__media {
    height: 68px;
  }

  .auth-body--client .auth-value-grid p,
  .auth-body--vendor .auth-value-grid p,
  .auth-body--ambassador .auth-value-grid p {
    display: block;
  }

  .auth-body--client .auth-visual,
  .auth-body--client .auth-visual img,
  .auth-body--vendor .auth-visual,
  .auth-body--vendor .auth-visual img,
  .auth-body--ambassador .auth-visual,
  .auth-body--ambassador .auth-visual img {
    min-height: 120px;
    max-height: 140px;
  }
}

@media (max-width: 820px) {
  .auth-body--client .auth-value-grid,
  .auth-body--vendor .auth-value-grid,
  .auth-body--ambassador .auth-value-grid {
    grid-template-columns: 1fr;
  }

  .auth-body--client .auth-value-grid article,
  .auth-body--vendor .auth-value-grid article,
  .auth-body--ambassador .auth-value-grid article {
    min-height: auto;
  }

  .auth-body--client .auth-value-grid p,
  .auth-body--vendor .auth-value-grid p,
  .auth-body--ambassador .auth-value-grid p {
    margin-top: 0.3rem;
  }
}

@media (max-width: 1024px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .auth-hero {
    min-height: 660px;
  }

  .auth-value-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: unset;
  }
}

@media (max-width: 820px) {
  .auth-shell {
    width: min(100% - 24px, 680px);
    min-height: auto;
    padding: 0.9rem 0 1.2rem;
  }

  .auth-topbar {
    align-items: flex-start;
  }

  .auth-topbar__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: unset;
    gap: 0.8rem;
    padding: 1rem;
  }

  .auth-hero__copy h1 {
    max-width: 14ch;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .auth-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-visual,
  .auth-visual img {
    min-height: 180px;
  }

  .auth-card {
    padding: 1rem;
  }

  .auth-hero--verify {
    min-height: unset;
  }

  .auth-status-card {
    padding: 0.74rem;
  }

  .auth-status-card__icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.72rem;
    font-size: 1rem;
  }

  .verify-code__input {
    min-height: 50px;
    border-radius: 0.78rem;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    width: min(100% - 20px, 420px);
    padding: 0.72rem 0 1rem;
  }

  .auth-topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-topbar .brand {
    order: 0;
    justify-self: center;
  }

  .auth-topbar__actions {
    order: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
  }

  .auth-topbar__actions > a {
    min-width: 0;
    padding-inline: 0.5rem;
    font-size: 0.68rem;
  }

  .auth-topbar__actions .theme-toggle {
    width: 100%;
  }

  .auth-value-grid,
  .auth-form,
  .auth-kyc {
    grid-template-columns: 1fr;
  }

  .auth-hero__copy p:not(.eyebrow),
  .auth-card__header p:not(.eyebrow) {
    font-size: 0.84rem;
  }

  .auth-visual,
  .auth-visual img {
    min-height: 140px;
  }

  .auth-row--between {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-status-card p {
    display: none;
  }

  .verify-code {
    gap: 0.34rem;
  }

  .verify-code__input {
    min-height: 44px;
    border-radius: 0.68rem;
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .category-grid {
    animation: none !important;
    transform: none !important;
  }

  .brand-marquee__track {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 1249px) {
  .market-header__main {
    grid-template-columns: 190px minmax(260px, 1fr);
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-bottom: 0.8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 380px;
  }

  .trust-panel--hero {
    align-self: stretch;
  }

  .trust-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-proof {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding-right: 0.7rem;
  }

  .features,
  .advantages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-card {
    flex: 0 1 272px;
    width: min(100%, 272px);
    min-width: min(100%, 260px);
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-feature--side-image {
    grid-template-columns: 1fr;
  }

  .category-feature--side-image .category-feature__visual {
    min-height: 220px;
  }

  .category-feature--split-promo {
    grid-template-columns: 1fr;
    grid-template-areas:
      "promo"
      "hero"
      "products";
  }

  .category-feature--split-promo .category-feature__head {
    min-height: 140px;
  }

  .category-feature--split-promo .category-feature__promo {
    min-height: 180px;
  }

  .popular-showcase .category-feature--split-promo .product-grid--popular,
  .popular-showcase .category-feature--electronics .product-grid--popular,
  .popular-showcase .category-feature--electronique .product-grid--popular {
    grid-template-columns: repeat(var(--rail-cols, 4), minmax(0, 1fr));
    max-width: none;
  }

  .category-feature--side-image .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular {
    grid-template-columns: repeat(var(--rail-cols, 4), minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seller-ambassador,
  .promo-grid,
  .footer-care {
    grid-template-columns: 1fr;
  }

  .promo-grid {
    gap: 0.85rem;
  }

  .promo-card--local,
  .promo-card--delivery {
    min-height: 210px;
  }

  .promo-card--deals {
    min-height: 260px;
  }

  .promo-card--local > div:not(.deal-symbol),
  .promo-card--delivery > div:not(.deal-symbol) {
    max-width: min(44%, 320px);
  }

  .promo-card--local img {
    object-position: 68% center;
  }

  .promo-card--delivery img {
    object-position: 82% center;
  }

  .deal-clock {
    width: min(100%, 380px);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .market-header__main {
    grid-template-columns: 360px minmax(0, 1fr) auto;
    min-height: 112px;
    gap: 0.62rem;
  }

  .market-header__main > .brand {
    min-height: 92px;
    padding-inline: 0.8rem;
  }

  .market-header__main > .brand .brand__logo {
    width: min(100%, 335px);
    max-width: none;
    max-height: none;
  }

  .search-bar {
    grid-template-columns: minmax(0, 1fr) 48px;
    margin: 0;
    transform: none;
    height: auto;
  }

  .search-bar__category,
  .search-bar__picker-wrap {
    display: none;
  }

  .header-action span:not(.cart-badge) {
    display: none;
  }

  .header-actions {
    grid-column: auto;
    justify-content: flex-end;
    padding-bottom: 0;
  }

  .header-action,
  .theme-toggle {
    width: 40px;
    padding: 0;
  }

  .mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(2, 6, 14, 0.62);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    cursor: pointer;
    touch-action: none;
  }

  body.mobile-drawer-open .mobile-drawer-backdrop {
    display: block;
  }

  body.mobile-drawer-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1210;
    width: min(88vw, 340px);
    height: 100dvh;
    max-height: 100dvh;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-105%, 0, 0);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 240ms;
    isolation: isolate;
  }

  .mobile-drawer.mobile-drawer--open {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }

  .mobile-drawer__panel {
    height: 100%;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.34);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    scrollbar-width: thin;
    pointer-events: auto;
  }

  :root[data-theme="light"] .mobile-drawer__panel {
    box-shadow: 12px 0 28px rgba(15, 23, 42, 0.12);
  }

  .mobile-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface);
  }

  .mobile-drawer__brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
  }

  .mobile-drawer__brand .brand__logo {
    max-width: 128px;
    max-height: 32px;
  }

  .mobile-drawer__title {
    display: none;
  }

  .mobile-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: var(--text);
  }

  .mobile-drawer__close:hover {
    background: var(--surface-2);
    color: var(--red);
  }

  .mobile-drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-drawer__action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-width: 0;
    min-height: 48px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: left;
  }

  .mobile-drawer__action:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: transparent;
  }

  .mobile-drawer__action .icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    color: var(--muted);
  }

  /* Le badge absolu debordait hors du panneau : on le remet dans le flux,
     colle a droite de la ligne. */
  .mobile-drawer__action .cart-badge,
  .mobile-drawer__action .favorites-badge {
    position: static;
    top: auto;
    right: auto;
    order: 3;
    flex: 0 0 auto;
    margin-left: auto;
    width: auto;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    font-size: 0.68rem;
    line-height: 1;
  }

  .mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 0;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0 1rem;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .mobile-drawer__nav a:hover {
    background: var(--surface-2);
  }

  .mobile-drawer__categories {
    display: block;
    margin-top: 0;
    padding: 0.75rem 0 1.25rem;
  }

  .mobile-drawer__categories h2 {
    margin: 0;
    padding: 0.35rem 1rem 0.55rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mobile-drawer__cat-list {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 12rem;
  }

  .mobile-cat-panels {
    position: relative;
    width: 100%;
    min-height: 12rem;
  }

  .mobile-cat-panel {
    width: 100%;
  }

  .mobile-cat-panel[hidden] {
    display: none !important;
  }

  .mobile-cat-panel--subs {
    animation: megaMenuIn 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .mobile-cat-roots,
  .mobile-cat-subs {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-cat-root,
  .mobile-cat-subs a,
  .mobile-cat-all,
  .mobile-cat-back {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0 1rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-cat-root:hover,
  .mobile-cat-subs a:hover,
  .mobile-cat-all:hover {
    background: var(--surface-2);
  }

  .mobile-cat-root__label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-cat-root__chevron {
    flex: 0 0 auto;
    color: var(--muted);
  }

  .mobile-cat-subs__head {
    display: grid;
    gap: 0.35rem;
    padding: 0.2rem 1rem 0.65rem;
    border-bottom: 1px solid var(--line);
  }

  .mobile-cat-subs__head strong {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--text);
  }

  .mobile-cat-back {
    justify-content: flex-start;
    min-height: 36px;
    padding: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
  }

  .mobile-cat-back__icon {
    transform: rotate(180deg);
  }

  .mobile-cat-all {
    color: var(--red);
    font-size: 0.84rem;
  }

  .mobile-cat-subs a {
    color: var(--text-soft);
    font-weight: 700;
  }

  .mobile-drawer__categories a,
  .mobile-drawer__cat-list a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0 1rem;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .mobile-drawer__categories a:hover,
  .mobile-drawer__cat-list a:hover {
    background: var(--surface-2);
  }

  .mobile-drawer__categories .icon {
    width: 18px;
    height: 18px;
    color: var(--red);
    flex: 0 0 auto;
  }

  .category-mega {
    width: min(860px, calc(100vw - 32px));
  }

  .hero {
    min-height: 360px;
  }

  .hero__copy {
    background-position: 72% center;
  }

  .promo-card {
    min-height: 210px;
  }

  .product-card__body {
    gap: 0.62rem;
    padding: 0.9rem;
  }

  .popular-block {
    padding: 0.8rem;
    border-radius: 1.2rem;
  }

  .popular-block__head {
    min-height: 220px;
  }

  .category-feature--banner .popular-block__head {
    min-height: 200px;
  }

  .category-feature--electronics.category-feature--banner .popular-block__head,
  .category-feature--electronique.category-feature--banner .popular-block__head {
    min-height: 108px;
  }

  .popular-showcase .category-feature--split-promo .product-grid--popular,
  .popular-showcase .category-feature--electronics.category-feature--side-image .product-grid--popular,
  .popular-showcase .category-feature--electronique.category-feature--side-image .product-grid--popular {
    grid-template-columns: repeat(var(--rail-cols, 4), minmax(0, 1fr));
  }

  .popular-showcase .category-feature--electronics.category-feature--side-image .product-grid--popular,
  .popular-showcase .category-feature--electronique.category-feature--side-image .product-grid--popular,
  .category-feature--side-image .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-feature--banner .product-grid--popular {
    grid-template-columns: repeat(var(--rail-cols, 8), minmax(0, 1fr));
  }

  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular {
    grid-template-columns: repeat(var(--rail-cols, 4), minmax(0, 1fr));
  }

  .footer-care {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .top-strip__inner,
  .market-header__main,
  .secondary-nav,
  .top-strip,
.hero,
.features,
.categories,
.product-showcase,
.promo-grid,
.seller-ambassador,
  .advantages,
  .brands,
  .metrics,
  .micro-trust,
  .footer-care,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 20px, 1500px);
  }

  .top-strip {
    width: 100%;
    display: none;
  }

  section {
    margin-top: 1.35rem;
  }

  .top-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.42rem 0;
  }

  .top-strip__links {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .top-strip__slogan {
    font-size: 0.74rem;
  }

  .market-header {
    position: sticky;
    top: 0;
    z-index: 320;
  }

  .market-header__main {
    min-height: auto;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "drawer search";
    gap: 0.62rem;
    padding: 0.72rem 0 0.68rem;
  }

  .brand {
    grid-area: brand;
  }

  .market-header__main > .brand {
    min-height: 84px;
    justify-content: center;
    padding-inline: 0;
  }

  .market-header__main > .brand .brand__logo {
    width: min(100%, 300px);
    max-width: none;
    max-height: none;
  }

  .mobile-drawer-toggle {
    grid-area: drawer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 0.72rem;
    background: var(--surface-2);
    color: var(--text);
    box-shadow: none;
  }

  .mobile-drawer-toggle:hover,
  .mobile-drawer-toggle[aria-expanded="true"] {
    border-color: rgba(230, 30, 37, 0.45);
    background: linear-gradient(135deg, var(--red), #b4141a);
    color: #fff;
  }

  .mobile-drawer-toggle .icon {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
  }

  .search-bar {
    grid-area: search;
    grid-template-columns: minmax(0, 1fr) 48px;
    height: 46px;
    border-radius: 0.72rem;
    margin: 0;
    transform: none;
  }

  .search-bar__category,
  .search-bar__picker-wrap {
    display: none;
  }

  .search-bar input {
    min-width: 0;
    padding-inline: 0.86rem;
    font-size: 0.8rem;
  }

  .search-bar__submit {
    width: 48px;
  }

  .search-bar__submit .icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
  }

  .header-actions,
  .secondary-nav {
    display: none;
  }

  .mobile-drawer {
    width: min(88vw, 300px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0.72rem;
    margin-top: 0.6rem;
    padding: 0.72rem;
    min-height: unset;
  }

  .hero__copy {
    min-height: 340px;
    background:
      linear-gradient(180deg, rgba(3, 8, 16, 0.94) 0%, rgba(3, 8, 16, 0.82) 52%, rgba(3, 8, 16, 0.55) 100%),
      var(--hero-banner-image, linear-gradient(135deg, #111827, #07111c));
    background-size: cover;
    background-position: center;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.1rem, 11vw, 3.15rem);
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .hero p:not(.hero__lead) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero__actions {
    gap: 0.5rem;
  }

  .hero__actions .button {
    flex: 1 1 150px;
  }

  .trust-panel--hero,
  .hero > .trust-panel {
    display: none !important;
  }

  .trust-row {
    min-height: 42px;
    grid-template-columns: 32px 1fr;
  }

  .trust-row .icon {
    width: 32px;
    height: 32px;
  }

  .features {
    display: flex;
    gap: 0.58rem;
    overflow-x: auto;
    margin-top: 0.75rem;
    padding-bottom: 0.18rem;
    scroll-snap-type: x proximity;
    scroll-padding-inline: calc((100% - 188px) / 2);
    scrollbar-width: none;
  }

  .features::after {
    content: "";
    flex: 0 0 calc((100% - 188px) / 2);
  }

  .features::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    grid-template-columns: 36px minmax(0, 1fr);
    flex: 0 0 188px;
    min-height: 104px;
    padding: 0.72rem;
    scroll-snap-align: start;
  }

  .feature-card:last-child {
    scroll-snap-align: center;
  }

  .feature-card span {
    width: 36px;
    height: 36px;
  }

  .feature-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .section-heading {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .section-heading span,
  .section-heading .text-link,
  .text-link {
    font-size: 0.74rem;
  }

  .categories .section-heading {
    margin-bottom: 0.55rem;
  }

  .category-rail {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.05rem;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    scrollbar-width: none;
  }

  .category-rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }

  .category-rail::-webkit-scrollbar {
    display: none;
  }

  .category-grid {
    display: flex;
    width: max-content;
    max-width: none;
    gap: 0.58rem;
    padding-inline: 0.05rem;
  }

  .category-card {
    flex: 0 0 clamp(250px, 82vw, 290px);
    width: clamp(250px, 82vw, 290px);
    min-width: clamp(250px, 82vw, 290px);
    gap: 0.58rem;
    min-height: 108px;
    padding: 0.58rem 0.64rem;
    scroll-snap-align: start;
  }

  .category-card__image {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
  }

  .category-card__body {
    gap: 0.2rem;
    min-width: 0;
  }

  .category-card__image .icon {
    width: 32px;
    height: 32px;
    padding: 0.38rem;
  }

  .category-card strong {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

  .category-card small {
    font-size: 0.67rem;
    -webkit-line-clamp: 2;
  }

  .category-card--electromenager,
  .category-card--tv-image-son,
  .category-card--informatique-stockage,
  .category-card--electronics,
  .category-card--electronique,
  .category-card--tv,
  .category-card--audio,
  .category-card--appliances {
    min-height: 108px;
  }

  .category-card--electromenager .category-card__image,
  .category-card--tv-image-son .category-card__image,
  .category-card--informatique-stockage .category-card__image,
  .category-card--electronics .category-card__image,
  .category-card--electronique .category-card__image,
  .category-card--tv .category-card__image,
  .category-card--audio .category-card__image,
  .category-card--appliances .category-card__image {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  .category-feature--side-image {
    grid-template-columns: 1fr;
  }

  .category-feature--side-image .category-feature__visual {
    min-height: 240px;
  }

  .category-feature--split-promo {
    grid-template-columns: 1fr;
    grid-template-areas:
      "promo"
      "hero"
      "products";
  }

  .category-feature--split-promo .category-feature__head {
    min-height: 128px;
    border-radius: 0.72rem;
  }

  .category-feature--split-promo .category-feature__promo {
    min-height: 160px;
  }

  .popular-showcase .category-feature--split-promo .product-grid--popular,
  .popular-showcase .category-feature--electronics .product-grid--popular,
  .popular-showcase .category-feature--electronique .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-feature__intro {
    padding: 1.2rem;
  }

  .category-feature__intro h3 {
    letter-spacing: -0.055em;
  }

  .product-card {
    border-radius: 0.82rem;
  }

  .product-card__badges {
    top: 0.48rem;
    left: 0.48rem;
    gap: 0.3rem;
  }

  .product-card__badge {
    min-height: 22px;
    padding: 0 0.42rem;
    font-size: 0.58rem;
  }

  .product-card__actions {
    top: 0.48rem;
    right: 0.48rem;
  }

  .product-card__actions button,
  .product-card__actions .product-card__quick-view {
    width: 30px;
    height: 30px;
  }

  .product-card__body {
    gap: 0.55rem;
    padding: 0.9rem;
  }

  .product-card__meta {
    font-size: 0.68rem;
  }

  .product-card h3 {
    min-height: 0;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .product-card p {
    min-height: 0;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  .product-card__price {
    gap: 0.4rem;
    margin-top: 0;
  }

  .product-card__price strong,
  .product-card__price-current {
    font-size: 1.2rem;
  }

  .product-card__price-old {
    font-size: 0.88rem;
  }

  .product-card__cta {
    min-height: 42px;
    margin-top: 0;
    font-size: 0.82rem;
  }

  .product-showcase .text-link {
    display: none;
  }

  .product-showcase:not(.popular-showcase) .product-card__media {
    aspect-ratio: 4 / 3;
  }

  .product-showcase.popular-showcase .product-card__media {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .product-showcase .product-card__body {
    gap: 0.45rem;
    padding: 0.68rem;
  }

  .product-showcase .product-card h3 {
    min-height: 0;
    -webkit-line-clamp: 1;
  }

  .product-showcase .product-card p,
  .product-showcase.popular-showcase .product-card p,
  .product-showcase .product-card__specs {
    display: none !important;
  }

  .product-showcase .product-card__cta {
    min-height: 34px;
    font-size: 0.68rem;
  }

  .promo-grid,
  .seller-ambassador,
  .advantages,
  .metrics,
  .footer-care,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .promo-grid {
    gap: 0.72rem;
    margin-top: 1rem;
  }

  .promo-card {
    min-height: 200px;
    width: 100%;
  }

  .promo-card > div:not(.deal-symbol) {
    min-width: 0;
    padding: 0.95rem;
  }

  .promo-card h3 {
    border-top: 0;
    padding-top: 0;
    font-size: clamp(1.25rem, 7vw, 1.8rem);
  }

  .promo-card p {
    display: -webkit-box;
    max-width: 76%;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .promo-card--local,
  .promo-card--delivery {
    min-height: 188px;
  }

  .promo-card--local > div:not(.deal-symbol) {
    max-width: min(48%, 220px);
    padding: 1rem;
  }

  .promo-card--local h3 {
    font-size: 1.32rem;
  }

  .promo-card--local p {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.36;
    -webkit-line-clamp: 3;
  }

  .promo-card--local img {
    object-position: 72% center;
  }

  .promo-card--delivery > div:not(.deal-symbol) {
    max-width: min(52%, 240px);
    padding: 0.82rem;
  }

  .promo-card--delivery h3 {
    font-size: 1.35rem;
  }

  .promo-card--delivery p {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  .promo-card--delivery .promo-card__kicker {
    font-size: 0.9rem;
    -webkit-line-clamp: 1;
  }

  .promo-card--delivery .button {
    min-height: 34px;
    margin-top: 0.72rem;
    font-size: 0.72rem;
  }

  .promo-card--delivery img {
    object-position: 85% center;
  }

  .promo-card .button {
    min-height: 40px;
    padding: 0 0.85rem;
    font-size: 0.76rem;
  }

  .promo-card--deals > div:not(.deal-symbol) {
    max-width: 100%;
    width: 100%;
  }

  .deal-symbol {
    top: 0.72rem;
    right: 0.72rem;
    width: 62px;
    height: 62px;
    font-size: 2.15rem;
  }

  .deal-clock {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem;
  }

  .deal-clock__header {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .countdown--pro {
    gap: 0.35rem;
  }

  .countdown {
    min-width: 0;
  }

  .countdown-card {
    min-width: 0;
    min-height: 54px;
  }

  .countdown-card__value {
    min-height: 1.8rem;
    font-size: 1.08rem;
  }

  .countdown-card small {
    margin-bottom: 0.34rem;
    font-size: 0.48rem;
  }

  .seller-ambassador {
    gap: 0.85rem;
  }

  .recruit-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }

  .recruit-card__media {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top;
  }

  .recruit-card__content {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem 0.65rem;
    min-height: 0;
    padding: 0.55rem 0.65rem 0.65rem;
    background: #f2f3f5;
    color: #101827;
  }

  .recruit-card__text {
    display: none;
  }

  .recruit-card .button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    width: auto;
    max-width: 100%;
    margin: 0;
    transform: none;
  }

  .recruit-card .button,
  .recruit-card a.button,
  .recruit-card .button--primary {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 26px !important;
    height: auto !important;
    border-radius: 0.35rem !important;
    padding: 0.28rem 0.58rem !important;
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    box-shadow: 0 6px 14px rgba(30, 58, 138, 0.22) !important;
  }

  .recruit-card .button--ghost,
  .recruit-card a.button--ghost {
    min-height: auto !important;
    padding: 0 !important;
    font-size: 0.58rem !important;
    box-shadow: none !important;
    color: #101827 !important;
    background: transparent !important;
  }

  .recruit-card .button--ghost::after {
    margin-left: 0.28rem;
  }

  .recruit-card h3 {
    font-size: 1.25rem;
  }

  .recruit-card ul {
    margin-top: 0.68rem;
  }

  .recruit-card li {
    margin: 0.34rem 0;
    font-size: 0.78rem;
  }

  .advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.58rem;
  }

  .advantages article {
    min-height: 96px;
    padding: 0.62rem;
  }

  .advantages span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .brand-marquee span {
    min-width: 118px;
    min-height: 56px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .metrics article {
    min-height: 96px;
    padding: 0.66rem;
  }

  .micro-trust {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .micro-trust::-webkit-scrollbar {
    display: none;
  }

  .footer-care {
    gap: 0.5rem;
    padding-top: 0.9rem;
  }

  .footer-care > div,
  .footer-care article {
    padding: 0.82rem;
  }

  .footer-care h2 {
    font-size: 1.25rem;
  }

  .footer-care p,
  .footer-care span,
  .footer-brand p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    padding: 1rem 0 0.85rem;
  }

  .footer-grid > .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > .app-download,
  .footer-grid > .footer-apps {
    grid-column: 1 / -1;
  }

  .footer-grid nav {
    display: block;
  }

  .footer-brand p {
    display: -webkit-box;
    max-width: 34rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .app-download {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.68rem;
  }

  .app-download h3 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .app-download a {
    margin: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0 0.95rem;
  }

  .footer-bottom nav {
    gap: 0.7rem;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid > .footer-brand,
  .footer-grid > .app-download,
  .footer-grid > .footer-apps {
    grid-column: auto;
  }

  .top-strip__links a:nth-child(n+3) {
    display: none;
  }

  .logo__icon {
    width: 42px;
    height: 42px;
  }

  .logo strong {
    font-size: 1.32rem;
  }

  .header-actions {
    justify-content: space-between;
  }

  .hero {
    border-radius: 0.78rem;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .customer-proof strong {
    font-size: 1.2rem;
  }

  .category-card {
    flex-basis: clamp(242px, 84vw, 280px);
    min-height: 104px;
    padding: 0.52rem 0.58rem;
  }

  .category-card__image {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }

  .product-grid {
    gap: 0.5rem;
  }

  .product-grid--popular,
  .category-feature--banner .product-grid--popular,
  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular,
  .popular-showcase .category-feature--split-promo .product-grid--popular,
  .popular-showcase .category-feature--electronics .product-grid--popular,
  .popular-showcase .category-feature--electronique .product-grid--popular,
  .category-feature--side-image .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card__pricing {
    align-items: center;
    gap: 0.4rem;
  }

  .product-card__price {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0.12rem;
  }

  .product-card__actions {
    flex-shrink: 0;
  }

  .product-card__quick-view {
    display: none;
  }

  .product-card__cta {
    min-height: 34px;
    font-size: 0.68rem;
    padding-inline: 0.45rem;
  }

  .promo-card {
    min-height: 176px;
  }

  .promo-card h3 {
    border-top: 0;
    padding-top: 0;
  }

  .promo-card p {
    max-width: 82%;
    -webkit-line-clamp: 2;
  }

  .promo-card--local,
  .promo-card--delivery {
    min-height: 168px;
  }

  .promo-card--local > div:not(.deal-symbol) {
    max-width: min(52%, 200px);
    padding: 0.84rem;
  }

  .promo-card--local h3 {
    font-size: 1.18rem;
  }

  .promo-card--local p {
    max-width: 100%;
    font-size: 0.74rem;
    line-height: 1.34;
    -webkit-line-clamp: 3;
  }

  .promo-card--delivery > div:not(.deal-symbol) {
    max-width: min(56%, 210px);
    padding: 0.72rem;
  }

  .promo-card--delivery h3 {
    font-size: 1.2rem;
  }

  .promo-card--delivery p {
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.38;
    -webkit-line-clamp: 2;
  }

  .promo-card--delivery .promo-card__kicker {
    font-size: 0.85rem;
  }

  .promo-card--delivery .button {
    min-height: 32px;
    margin-top: 0.64rem;
    padding-inline: 0.72rem;
    font-size: 0.66rem;
  }

  .deal-symbol {
    width: 48px;
    height: 48px;
    font-size: 1.65rem;
  }

  .deal-clock {
    width: 100%;
    max-width: 100%;
    padding: 0.48rem;
  }

  .deal-clock__header {
    flex-wrap: wrap;
  }

  .deal-clock__live,
  .deal-clock__status,
  .deal-clock__heat {
    font-size: 0.54rem;
  }

  .countdown--pro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.28rem;
  }

  .countdown-card {
    min-height: 52px;
    border-radius: 0.6rem;
  }

  .countdown-card__value {
    min-height: 1.6rem;
    margin-top: 0.14rem;
    font-size: clamp(0.82rem, 4.1vw, 1.12rem);
  }

  .countdown-card small {
    margin-bottom: 0.3rem;
    font-size: clamp(0.36rem, 1.7vw, 0.46rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .seller-ambassador {
    gap: 0.72rem;
  }

  .recruit-card__content {
    padding: 0.45rem 0.55rem 0.55rem;
    gap: 0.35rem 0.5rem;
  }

  .recruit-card .button-row {
    width: auto;
    max-width: 100%;
    gap: 0.35rem 0.5rem;
  }

  .recruit-card .button,
  .recruit-card a.button,
  .recruit-card .button--primary {
    min-height: 24px !important;
    padding: 0.22rem 0.5rem !important;
    font-size: 0.54rem !important;
    border-radius: 0.3rem !important;
  }

  .recruit-card .button--ghost,
  .recruit-card a.button--ghost {
    font-size: 0.54rem !important;
  }

  .footer-grid {
    font-size: 0.92rem;
  }

  .footer-grid,
  .footer-bottom {
    width: min(100% - 20px, 1500px);
  }

  .socials span {
    width: 28px;
    height: 28px;
  }

  .footer-bottom nav a:nth-child(n+3) {
    display: none;
  }
}

@media (max-width: 820px) {
  .auth-topbar .brand {
    grid-area: auto;
  }

  .auth-topbar {
    position: sticky;
    top: 0.55rem;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    border: 1px solid var(--auth-line);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--auth-card-bg) 94%, transparent);
    backdrop-filter: blur(16px);
    padding: 0.55rem;
  }

  .auth-topbar .brand {
    justify-self: start;
  }

  .auth-topbar__actions {
    display: none;
  }

  .auth-drawer-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .auth-mobile-drawer {
    margin-top: 0.55rem;
  }

  .auth-hero {
    min-height: unset;
    gap: 0.55rem;
    border-radius: 1rem;
    padding: 0.82rem;
  }

  .auth-hero__copy h1 {
    max-width: 100%;
    font-size: clamp(1.35rem, 6.4vw, 1.85rem);
    line-height: 0.98;
  }

  .auth-hero__copy p:not(.eyebrow) {
    display: -webkit-box;
    margin-top: 0.45rem;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .auth-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .auth-value-grid article {
    min-height: 64px;
    padding: 0.52rem;
  }

  .auth-value__icon {
    min-width: 1.9rem;
    height: 1.65rem;
    border-radius: 0.52rem;
    font-size: 0.58rem;
  }

  .auth-value-grid strong {
    margin-top: 0.4rem;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .auth-value-grid p {
    display: none;
  }

  .auth-visual,
  .auth-visual img {
    min-height: 88px;
    max-height: 110px;
  }
}

@media (max-width: 520px) {
  .auth-topbar {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .auth-topbar .brand {
    justify-self: start;
  }

  .auth-topbar__actions {
    display: none;
  }

  .auth-mobile-drawer__panel {
    grid-template-columns: 1fr;
  }

  .auth-hero__copy h1 {
    max-width: 100%;
    font-size: clamp(1.28rem, 6.6vw, 1.72rem);
  }

  .auth-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-visual,
  .auth-visual img {
    min-height: 78px;
    max-height: 98px;
  }
}

.category-page main {
  padding-top: 1rem;
}

.category-listing {
  display: grid;
  gap: 1.2rem;
  padding: 0 1rem 2rem;
}

.category-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.category-breadcrumb a {
  color: var(--text-soft);
}

.category-breadcrumb a:hover {
  color: var(--red);
}

.category-breadcrumb span:last-child {
  color: var(--text);
}

.category-hero {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background:
    linear-gradient(90deg, rgba(7, 17, 28, 0.82) 0%, rgba(7, 17, 28, 0.42) 52%, rgba(7, 17, 28, 0.18) 100%),
    var(--category-hero-image, linear-gradient(135deg, #111827, #07111c));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.category-hero__content {
  display: grid;
  gap: 0.55rem;
  max-width: 640px;
  padding: 1.6rem;
  color: #fff;
}

.category-hero__content .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.category-hero__content h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
}

.category-hero__content p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.category-subcategories {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.category-subcategories__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.category-subcategories__head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-subcategory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.subcategory-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 38px;
  padding: 0.58rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.subcategory-link .icon {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.subcategory-link:hover,
.subcategory-link:focus-visible {
  border-color: rgba(230, 30, 37, 0.36);
  background: rgba(230, 30, 37, 0.08);
  color: var(--red);
  transform: translateY(-1px);
}

.subcategory-link:hover .icon,
.subcategory-link:focus-visible .icon {
  color: var(--red);
  transform: translateX(2px);
}

/* Full categories directory (/categories/) */
.categories-directory {
  gap: 1.5rem;
  padding: 1rem clamp(0.75rem, 3vw, 1.15rem) 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.categories-directory__hero {
  display: grid;
  gap: 1.1rem;
  padding: 1.45rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, color-mix(in srgb, var(--red) 16%, transparent), transparent 55%),
    linear-gradient(155deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-soft);
}

.categories-directory__hero-copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.categories-directory__hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 5.5vw, 2.45rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.categories-directory__intro {
  margin: 0;
  max-width: 42rem;
  color: var(--text-soft);
  font-size: clamp(0.9rem, 2.8vw, 0.98rem);
  font-weight: 600;
  line-height: 1.55;
}

.categories-directory__count {
  margin: 0.15rem 0 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.categories-directory__search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 420px;
  width: 100%;
}

.categories-directory__search .icon {
  position: absolute;
  left: 0.9rem;
  color: var(--muted);
  pointer-events: none;
}

.categories-directory__search input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 1rem 0.7rem 2.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px; /* avoid iOS zoom on focus */
  font-weight: 700;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.categories-directory__search input:focus {
  border-color: color-mix(in srgb, var(--red) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent);
}

.categories-directory__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.15rem;
}

/* Override homepage .category-card flex sizing so directory cards fill the grid. */
.categories-directory .category-card,
.categories-directory .categories-directory__parent {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  scroll-snap-align: unset;
}

.categories-directory--parents-only .categories-directory__parent {
  min-height: 210px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.categories-directory--parents-only .categories-directory__parent:hover,
.categories-directory--parents-only .categories-directory__parent:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
}

.categories-directory__group {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.categories-directory__group:hover {
  border-color: color-mix(in srgb, var(--red) 28%, var(--line));
  transform: translateY(-2px);
}

.categories-directory__parent {
  min-height: 168px;
}

.categories-directory__subs-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.categories-directory__subs .category-subcategory-links {
  margin-top: 0;
}

.categories-directory__sub-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.subcategory-link:hover .categories-directory__sub-count,
.subcategory-link:focus-visible .categories-directory__sub-count {
  background: color-mix(in srgb, var(--red) 14%, transparent);
  color: var(--red);
}

.categories-directory__leaf-hint {
  margin: 0;
}

.categories-directory__leaf-hint a {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.categories-directory__leaf-hint a:hover {
  text-decoration: underline;
}

.categories-directory__empty,
.categories-directory__no-results {
  margin: 0;
  padding: 1.4rem;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

@media (min-width: 900px) {
  .categories-directory__hero {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }

  .categories-directory__search {
    justify-self: end;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .categories-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .categories-directory--parents-only .categories-directory__parent {
    min-height: 170px;
  }
}

@media (max-width: 640px) {
  .categories-directory {
    padding: 0.7rem 0.8rem 2rem;
    gap: 1rem;
  }

  .categories-directory__hero {
    padding: 1.05rem 0.95rem;
    border-radius: 1rem;
    gap: 0.9rem;
  }

  .categories-directory__search {
    max-width: none;
  }

  .categories-directory__search input {
    min-height: 44px;
  }

  .categories-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .categories-directory--parents-only .categories-directory__parent {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.65rem;
  }

  .categories-directory--parents-only .category-card__image {
    flex-basis: auto;
    width: 100%;
    height: 92px;
  }

  .categories-directory--parents-only .category-card__body {
    width: 100%;
  }

  .categories-directory--parents-only .category-card strong {
    font-size: 0.82rem;
    white-space: normal;
    -webkit-line-clamp: 2;
  }

  .categories-directory .category-card,
  .categories-directory .categories-directory__parent {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .categories-directory__grid {
    grid-template-columns: 1fr;
  }

  .categories-directory--parents-only .categories-directory__parent {
    flex-direction: row;
    align-items: center;
    min-height: 96px;
  }

  .categories-directory--parents-only .category-card__image {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
}

.category-results {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.category-search-panel {
  display: grid;
  gap: 0.65rem;
}

.category-search-panel__form {
  display: block;
}

.visual-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 0.35rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.08),
    0 1px 6px rgba(60, 64, 67, 0.06);
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.visual-search-bar:focus-within {
  border-color: rgba(60, 64, 67, 0.22);
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.1),
    0 2px 8px rgba(60, 64, 67, 0.1);
}

:root[data-theme="dark"] .visual-search-bar {
  background: var(--surface-2);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 1px 6px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .visual-search-bar:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
}

.visual-search-bar__input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.75rem 0.65rem 0.75rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
}

.visual-search-bar__input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.visual-search-bar__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.1rem;
}

.visual-search-bar__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.visual-search-bar__clear:hover {
  background: rgba(60, 64, 67, 0.06);
  color: var(--text);
}

:root[data-theme="dark"] .visual-search-bar__clear:hover {
  background: rgba(255, 255, 255, 0.06);
}

.visual-search-bar__lens {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease;
}

.visual-search-bar__lens:hover {
  background: rgba(60, 64, 67, 0.06);
}

:root[data-theme="dark"] .visual-search-bar__lens:hover {
  background: rgba(255, 255, 255, 0.06);
}

.visual-search-bar__lens-icon {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.category-search-panel__field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-2);
  padding: 0 0.85rem;
}

.category-search-panel__field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.category-search-panel__preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface-2);
}

.category-search-panel__preview img {
  width: 72px;
  height: 72px;
  border-radius: 0.65rem;
  object-fit: cover;
}

.category-search-panel__preview strong,
.category-search-panel__preview span {
  display: block;
}

.category-search-panel__preview span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.category-search-panel__notice {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.category-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.category-layout--filters-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.category-layout--filters-hidden > .category-filters {
  display: none;
}

.category-listing .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-results.popular-showcase .product-grid {
  gap: 0.9rem;
}

.category-results.popular-showcase .product-card {
  height: 100%;
}

.category-results.popular-showcase .product-card p,
.category-results.popular-showcase .product-card__specs,
.category-results.popular-showcase .product-card__price .product-card__savings {
  display: none !important;
}

.category-results.popular-showcase .product-card__price del {
  display: inline !important;
  color: var(--red, #e61e25) !important;
  text-decoration: line-through !important;
}

.category-results.popular-showcase .product-card h3 {
  min-height: 0;
  -webkit-line-clamp: 1;
}

.category-results.popular-showcase .product-card__body {
  flex: 1;
}

.category-results.popular-showcase .product-card__cta {
  margin-top: auto;
}

.category-filters {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.85rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.category-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.category-filters__head h2 {
  margin: 0;
  font-size: 1rem;
}

.category-filters__reset {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.category-filter__group {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.category-filter__group h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 900;
}

.category-filter__options {
  display: grid;
  gap: 0.45rem;
}

.category-filter__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.category-filter__option input {
  accent-color: var(--red);
}

.category-filter__group--price {
  gap: 0.7rem;
  padding-top: 0;
  border-top: 0;
}

.category-filter__apply {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 0.35rem;
  background: var(--red);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.category-filter__apply:hover {
  filter: brightness(0.95);
}

.category-filter__group--price h3 {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.category-filter__price-label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}

.price-slider {
  position: relative;
  height: 30px;
  margin-top: 0.15rem;
}

.price-slider__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #e8ebf0;
}

.price-slider__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 999px;
  background: var(--red);
}

.price-slider__input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-slider__input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.price-slider__input::-moz-range-track {
  height: 4px;
  background: transparent;
}

.price-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  cursor: grab;
}

.price-slider__input::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  cursor: grab;
}

.price-slider__input--max {
  z-index: 2;
}

.category-filter__group[data-filter-group="availability"] .category-filter__option span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.category-toolbar__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-toolbar__filters {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.5rem;
}

.category-pagination__nav,
.category-pagination__page {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--text);
  padding: 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.category-pagination__page.is-active {
  border-color: rgba(230, 30, 37, 0.42);
  background: var(--red);
  color: #fff;
}

.category-pagination__nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-card__specs span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: var(--product-chip-bg);
  color: var(--product-muted);
  padding: 0 0.5rem;
  font-size: 0.64rem;
  font-weight: 900;
}

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--surface);
}

.category-toolbar__count {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 900;
}

.category-toolbar__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.category-toolbar__sort select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background-color: var(--surface-2);
  color: var(--text);
  padding: 0 2.2rem 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.category-empty,
.category-not-found {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 1.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: 1rem;
  background: var(--surface-2);
}

.category-empty[hidden],
.category-not-found[hidden] {
  display: none !important;
}

.category-empty h2,
.category-not-found h2 {
  margin: 0;
  font-size: 1.2rem;
}

.category-empty p,
.category-not-found p {
  margin: 0;
  color: var(--muted);
}

.market-footer--compact {
  margin-top: 1rem;
}

.market-footer--compact .footer-bottom {
  padding-top: 1rem;
}

@media (max-width: 1100px) {
  .category-listing .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.category-filters-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 270;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(2, 6, 14, 0.55);
  cursor: pointer;
}

@media (max-width: 980px) {
  .category-layout,
  .category-layout--filters-hidden {
    grid-template-columns: 1fr;
  }

  .category-layout--filters-hidden > .category-filters {
    display: block;
  }

  .category-filters-backdrop.is-open {
    display: block;
  }

  body.category-filters-open {
    overflow: hidden;
  }

  .category-filters {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 280;
    width: min(88vw, 320px);
    max-height: none;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: var(--shadow);
  }

  .category-filters--open {
    transform: translateX(0);
  }
}

@media (max-width: 820px) {
  .category-listing   .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .popular-showcase .product-card__media {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .popular-showcase .product-card__body {
    gap: 0.28rem;
    padding: 0.4rem 0.3rem 0.45rem;
  }

  .popular-showcase .product-card__pricing {
    gap: 0.28rem;
  }

  .popular-showcase .product-card__actions button,
  .popular-showcase .product-card__quick-view,
  .popular-showcase .product-card__favorite a {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }

  .popular-showcase .product-card__cta {
    min-height: 26px;
  }
}

@media (max-width: 820px) {
  .category-listing {
    padding-inline: 0.75rem;
  }

  .category-hero {
    min-height: 180px;
  }

  .category-hero__content {
    padding: 1.1rem;
  }

  .visual-search-bar {
    min-height: 46px;
    padding-inline: 1rem 0.25rem;
  }

  .visual-search-bar__input {
    font-size: 0.95rem;
    padding-block: 0.65rem;
  }

  .category-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-toolbar__sort {
    width: 100%;
    justify-content: space-between;
  }
}

/* Product detail page */
.product-page main {
  padding-top: 1rem;
}

.product-listing {
  display: grid;
  gap: 1rem;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}


.product-detail {
  display: grid;
  gap: 1rem;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.35rem;
  align-items: start;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.product-detail__gallery-col {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.product-gallery__stage {
  position: relative;
  overflow: hidden;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 460px;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--product-media-bg, var(--surface-2));
  cursor: zoom-in;
}

.product-gallery__stage:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.product-gallery__main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.65rem;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: transform 0.12s ease-out;
}

.product-gallery__stage.is-zooming .product-gallery__main {
  transform: scale(1.75);
  padding: 0;
  object-fit: cover;
}

.product-gallery__zoom-hint {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border-radius: 999px;
  background: rgba(7, 17, 28, 0.72);
  color: #fff;
  padding: 0.28rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
}

.product-gallery__stage.is-zooming .product-gallery__zoom-hint {
  opacity: 0;
}

.product-gallery__thumbs {
  display: flex;
  justify-content: flex-start;
  gap: 0.45rem;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.product-gallery__thumb {
  position: relative;
  overflow: hidden;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  background: var(--surface-2);
  padding: 0;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumb:hover {
  border-color: rgba(230, 30, 37, 0.35);
}

.product-gallery__thumb.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(230, 30, 37, 0.18);
}

.product-detail__info {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-width: 0;
  padding: 0.15rem 0 0;
}

.product-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-detail__badges .product-card__badge {
  position: static;
}

.product-detail__brand,
.product-detail__category {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.product-detail__category a {
  color: var(--red, #e61e25);
  text-decoration: none;
}

.product-detail__category a:hover {
  text-decoration: underline;
}

.product-detail__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.2;
}

.product-detail__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-detail__rating strong {
  color: var(--text);
}

.product-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-detail__chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: var(--product-chip-bg);
  color: var(--product-muted);
  padding: 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 900;
}

.product-detail__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
}

.product-detail__price strong {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 900;
  color: var(--red);
}

.product-detail__price del {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.product-detail__price span:last-child {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-detail__availability {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 900;
}

.product-detail__availability--in-stock {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.product-detail__availability--limited {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.product-detail__availability--out {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.product-detail__lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
}

.product-detail__actions {
  --product-action-h: 48px;
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  padding-top: 0.15rem;
  min-height: var(--product-action-h);
}

.product-detail__cta {
  flex: 1;
  height: var(--product-action-h);
  min-height: var(--product-action-h);
  background: linear-gradient(135deg, var(--cart-cta), var(--cart-cta-dark));
  box-shadow: 0 14px 30px var(--cart-cta-shadow);
}

.product-detail__cta:hover {
  background: linear-gradient(135deg, var(--cart-cta-hover), var(--cart-cta));
  box-shadow: 0 18px 36px rgba(30, 58, 138, 0.3);
}

.product-detail__wishlist {
  width: var(--product-action-h);
  min-width: var(--product-action-h);
  height: var(--product-action-h);
  min-height: var(--product-action-h);
  max-height: var(--product-action-h);
  padding: 0;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

.product-detail__trust {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.product-detail__trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-detail__panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.product-detail__panel {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.product-detail__panel h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.product-detail__description-shell {
  position: relative;
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.product-detail__description {
  display: grid;
  gap: 0.6rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
}

.product-detail__description p {
  margin: 0;
}

.product-detail__description-shell.is-collapsed .product-detail__description {
  overflow: hidden;
}

.product-detail__description-shell.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.1rem;
  height: 2.75rem;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--surface));
}

.product-detail__desc-toggle {
  appearance: none;
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.product-detail__desc-toggle[hidden] {
  display: none !important;
}

.product-detail__specs {
  display: grid;
  gap: 0;
  margin: 0;
}

.product-detail__spec-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.85fr) minmax(0, 1.15fr);
  gap: 0.6rem;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--line);
}

.product-detail__spec-row:last-child {
  border-bottom: 0;
}

.product-detail__spec-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-detail__spec-row dd {
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-detail__related {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
}

.product-detail__related .related.products,
.product-detail__related .upsells.products {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.product-detail__related .product-grid,
.product-grid--related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.mobile-drawer-toggle .icon,
.mobile-drawer__close .icon {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
}

@media (max-width: 1100px) {
  .product-detail__layout {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.05fr);
    gap: 1.15rem;
  }

  .product-detail__gallery-col {
    max-width: none;
  }

  .product-gallery__stage {
    max-height: 420px;
  }

  .product-detail__related .product-grid,
  .product-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .product-detail__layout {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.05fr);
    gap: 1rem;
    padding: 1rem;
  }

  .product-gallery__stage {
    max-height: 400px;
  }

  .product-detail__related .product-grid,
  .product-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .product-listing {
    padding-inline: 0.75rem;
    width: 100%;
  }

  .product-detail__layout {
    grid-template-columns: 1fr;
    padding: 0.9rem;
    gap: 1rem;
  }

  .product-detail__gallery-col {
    max-width: none;
    justify-self: stretch;
    width: 100%;
  }

  .product-gallery__stage {
    max-height: none;
  }

  .product-gallery__thumbs {
    justify-content: center;
  }

  .product-detail__panels {
    grid-template-columns: 1fr;
  }

  .product-detail__actions {
    flex-direction: row;
    align-items: stretch;
  }

  .product-detail__wishlist {
    width: var(--product-action-h, 48px);
    min-height: var(--product-action-h, 48px);
    height: var(--product-action-h, 48px);
  }

  .product-detail__related .product-grid,
  .product-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 520px) {
  .product-listing {
    padding-inline: 0.65rem;
    padding-bottom: 1.5rem;
  }

  .product-detail__layout {
    padding: 0.75rem;
    gap: 0.85rem;
  }

  .product-gallery__thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }

  .product-detail__title {
    font-size: clamp(1rem, 5.2vw, 1.22rem);
  }

  .product-detail__spec-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .product-detail__panel {
    padding: 0.8rem;
  }

  .product-detail__related .product-grid,
  .product-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 380px) {
  .product-listing {
    padding-inline: 0.5rem;
  }

  .product-detail__actions {
    --product-action-h: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery__main {
    transition: none;
  }

  .product-gallery__stage.is-zooming .product-gallery__main {
    transform: scale(1.08);
  }
}

/* Shop pages: cart & favorites */
.shop-page main {
  padding-top: 1rem;
}

.shop-listing {
  display: grid;
  gap: 1.2rem;
  padding: 0 1rem 2rem;
}

.cart-page .shop-listing {
  width: 50%;
  margin-inline: auto;
  padding-inline: 0;
}

.shop-hero {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background:
    linear-gradient(90deg, rgba(7, 17, 28, 0.88) 0%, rgba(7, 17, 28, 0.52) 55%, rgba(7, 17, 28, 0.24) 100%),
    var(--shop-hero-image, linear-gradient(135deg, #111827, #07111c));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.shop-hero--cart {
  --shop-hero-image: radial-gradient(circle at 85% 20%, rgba(230, 30, 37, 0.35), transparent 42%),
    linear-gradient(135deg, #0f172a, #07111c);
  min-height: 130px;
}

.shop-hero--favorites {
  --shop-hero-image: radial-gradient(circle at 82% 18%, rgba(244, 63, 94, 0.32), transparent 44%),
    linear-gradient(135deg, #111827, #07111c);
}

.shop-hero__content {
  display: grid;
  gap: 0.55rem;
  max-width: 640px;
  padding: 1.6rem;
  color: #fff;
}

.shop-hero__content .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.shop-hero__content h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
}

.shop-hero__content p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.shop-layout--cart {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 0.85rem;
}

.cart-page .cart-items {
  gap: 0.55rem;
  max-height: min(28rem, calc(100dvh - 16rem));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.cart-page .cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-page .cart-items::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.cart-page .cart-items::-webkit-scrollbar-track {
  background: transparent;
}

.cart-page .cart-item {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
}

.cart-page .cart-item__media {
  border-radius: 0.6rem;
}

.cart-page .cart-item__body {
  gap: 0.45rem;
}

.cart-page .cart-item__brand {
  font-size: 0.62rem;
}

.cart-page .cart-item__head h2 {
  margin-top: 0.1rem;
  font-size: 0.82rem;
  line-height: 1.25;
}

.cart-page .cart-item__remove {
  width: 28px;
  height: 28px;
  border-radius: 0.5rem;
}

.cart-page .cart-item__footer {
  gap: 0.5rem;
}

.cart-page .cart-qty {
  min-height: 30px;
}

.cart-page .cart-qty button {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

.cart-page .cart-qty span {
  min-width: 1.5rem;
  font-size: 0.82rem;
}

.cart-page .cart-item__price strong {
  font-size: 0.88rem;
}

.cart-page .cart-item__price span {
  font-size: 0.68rem;
}

.cart-page .shop-layout--cart {
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.cart-page .cart-summary {
  padding: 0.85rem;
  border-radius: 0.85rem;
}

.cart-page .cart-summary h2 {
  font-size: 0.95rem;
}

.cart-page .cart-summary__row {
  font-size: 0.78rem;
}

.cart-page .cart-summary__row--total strong {
  font-size: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--product-card-bg);
  box-shadow: var(--shadow-soft);
}

.cart-item--unavailable {
  opacity: 0.72;
}

.cart-item__media {
  display: block;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--surface-2);
  aspect-ratio: 1 / 1;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__body {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.cart-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-item__brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-item__head h2 {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.35;
}

.cart-item__head h2 a {
  color: var(--text);
}

.cart-item__head h2 a:hover {
  color: var(--red);
}

.cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface-2);
  color: var(--text-soft);
}

.cart-item__remove:hover {
  border-color: rgba(230, 30, 37, 0.35);
  color: var(--red);
}

.cart-item__status {
  margin: 0;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
}

.cart-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.cart-qty button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cart-qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-qty button:hover {
  background: rgba(230, 30, 37, 0.08);
  color: var(--red);
}

.cart-qty span {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 900;
}

.cart-item__price {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
}

.cart-item__price strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.cart-item__price span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.cart-summary {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--product-card-bg);
  box-shadow: var(--shadow-soft);
}

.cart-summary h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.cart-summary__rows {
  display: grid;
  gap: 0.55rem;
}

.cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.cart-summary__row strong {
  color: var(--text);
  font-size: 0.88rem;
}

.cart-summary__row--promo strong {
  color: #059669;
}

.cart-summary__row--total {
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
}

.cart-summary__row--total strong {
  font-size: 1.08rem;
  color: var(--red);
}

.cart-summary__hint {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(230, 30, 37, 0.06);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.cart-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.cart-promo input {
  min-height: 42px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-summary__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.cart-summary__checkout,
.cart-summary__clear {
  width: 100%;
}

.shop-empty {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 1.2rem;
  background: var(--surface-2);
  text-align: center;
}

.shop-empty[hidden],
[data-favorites-root][hidden],
[data-cart-root][hidden] {
  display: none !important;
}

.shop-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(230, 30, 37, 0.08);
  color: var(--red);
}

.shop-empty__icon .icon {
  width: 28px;
  height: 28px;
}

.shop-empty h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.shop-empty p {
  margin: 0;
  max-width: 420px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.shop-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.favorites-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-2);
}

.favorites-toolbar p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.favorites-page .favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.2rem;
}

.favorites-page .favorites-grid__item {
  min-width: 0;
}

.favorites-guest-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(15, 23, 42, 0.04));
}

.favorites-guest-banner__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.14);
  color: var(--red);
}

.favorites-guest-banner__icon .icon {
  width: 20px;
  height: 20px;
}

.favorites-guest-banner__copy {
  flex: 1 1 220px;
  min-width: 0;
}

.favorites-guest-banner__copy strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}

.favorites-guest-banner__copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.favorites-toolbar__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.favorites-toolbar__hint .icon {
  width: 16px;
  height: 16px;
  color: var(--red);
}

.favorites-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.button--danger {
  border-color: rgba(244, 63, 94, 0.35) !important;
  color: #be123c !important;
}

.favorites-empty {
  grid-column: 1 / -1;
  text-align: center;
}

.favorites-empty__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.12);
  color: var(--red);
}

.favorites-empty__icon .icon {
  width: 28px;
  height: 28px;
}

.favorites-loading {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 2.5rem 1rem;
  color: var(--text-soft);
}

.favorites-loading__spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--red);
  border-radius: 999px;
  animation: favorites-spin 0.8s linear infinite;
}

@keyframes favorites-spin {
  to {
    transform: rotate(360deg);
  }
}

.favorites-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.favorites-grid {
  margin-top: 0.2rem;
}

/* Favorites page layout */
.favorites-page .favorites-shell {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
  padding-bottom: 3rem;
  gap: 1.5rem;
}

.favorites-page .category-breadcrumb {
  width: 100%;
}

.favorites-page .favorites-hero {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(8, 18, 31, 0.92) 100%),
    radial-gradient(circle at 92% 18%, rgba(244, 63, 94, 0.24), transparent 42%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .favorites-page .favorites-hero {
  border-color: rgba(148, 163, 184, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.favorites-page .favorites-hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.35rem;
}

.favorites-page .favorites-hero__main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.favorites-page .favorites-hero__eyebrow {
  margin: 0;
  color: rgba(244, 114, 132, 0.92);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.favorites-page .favorites-hero__content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.favorites-page .favorites-hero__count {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.favorites-page .shop-layout--favorites {
  display: grid;
  gap: 1.35rem;
  width: 100%;
}

.favorites-page .shop-empty {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .favorites-page .shop-empty {
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.favorites-page .favorites-toolbar {
  padding: 0.95rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] .favorites-page .favorites-toolbar {
  border-color: rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.favorites-page .favorites-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.favorites-page .favorites-card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

:root[data-theme="dark"] .favorites-page .favorites-card {
  border-color: rgba(148, 163, 184, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.favorites-page .favorites-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 63, 94, 0.32);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .favorites-page .favorites-card:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.favorites-page .favorites-card .product-card__media {
  border-radius: 1rem 1rem 0 0;
}

.favorites-page .favorites-card .product-card__media .product-card__actions {
  top: 0.55rem;
  right: 0.55rem;
}

.favorites-page .favorites-card .product-card__actions button {
  width: 32px;
  height: 32px;
  border-radius: 0.65rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.favorites-page .favorites-card .product-card__body {
  gap: 0.45rem;
  padding: 0.75rem 0.85rem 0.9rem;
}

.favorites-page .favorites-card .product-card__meta {
  font-size: 0.66rem;
}

.favorites-page .favorites-card h3 {
  font-size: 0.82rem;
  line-height: 1.35;
}

.favorites-page .favorites-card .product-card__price {
  font-size: 0.76rem;
}

.favorites-page .favorites-card .product-card__price strong {
  font-size: 0.9rem;
}

.favorites-page .favorites-card .product-card__cta {
  min-height: 36px;
  margin-top: 0.15rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 0.72rem;
}

.favorites-page .favorites-card .product-card__cta .icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 820px) {
  .favorites-page .favorites-shell {
    padding-inline: clamp(1rem, 4vw, 1.5rem);
    gap: 1.15rem;
  }

  .favorites-page .favorites-hero__content {
    align-items: flex-start;
    padding: 0.95rem 1.1rem;
  }

  .favorites-page .favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 520px) {
  .favorites-page .favorites-hero__count {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .favorites-page .favorites-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .favorites-page .favorites-toolbar .button {
    width: 100%;
    justify-content: center;
  }
}

.favorites-card__actions {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.product-card__actions button.is-active,
.product-detail__wishlist.is-active {
  border-color: var(--red) !important;
  background: var(--red) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(230, 30, 37, 0.28) !important;
}

.product-card__actions button.is-active svg,
.product-detail__wishlist.is-active svg {
  fill: currentColor !important;
  stroke: currentColor !important;
}

.cart-badge[hidden],
.favorites-badge[hidden] {
  display: none !important;
}

.shop-toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 500;
  display: grid;
  gap: 0.45rem;
  pointer-events: none;
  width: min(360px, calc(100vw - 2rem));
}

.shop-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  pointer-events: auto;
  animation: shopToastIn 220ms ease;
}

.shop-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.shop-toast__icon .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.shop-toast__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-toast--error {
  border-color: rgba(230, 30, 37, 0.28);
  background: color-mix(in srgb, #e61e25 8%, var(--surface));
}

.shop-toast--error .shop-toast__icon {
  background: rgba(230, 30, 37, 0.14);
  color: #e61e25;
}

.shop-toast--success {
  border-color: rgba(22, 163, 74, 0.28);
  background: color-mix(in srgb, #16a34a 8%, var(--surface));
}

.shop-toast--success .shop-toast__icon {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.shop-toast--info {
  border-color: rgba(30, 58, 138, 0.28);
  background: color-mix(in srgb, #1e3a8a 8%, var(--surface));
}

.shop-toast--info .shop-toast__icon {
  background: rgba(30, 58, 138, 0.12);
  color: #1e3a8a;
}

.shop-toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes shopToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .cart-page .shop-listing {
    width: 100%;
    padding-inline: 0;
  }

  .shop-layout--cart {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-page .cart-items {
    max-height: min(22rem, calc(100dvh - 18rem));
  }
}

/* Cart drawer (side panel) */
body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 520;
  pointer-events: none;
}

.cart-drawer[hidden] {
  display: none !important;
}

.cart-drawer--open {
  pointer-events: auto;
}

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  padding: 0;
  background: rgba(7, 17, 28, 0.58);
  opacity: 0;
  transition: opacity 0.28s ease;
  cursor: pointer;
}

.cart-drawer--open .cart-drawer__overlay {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(440px, 100vw);
  height: 100dvh;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.22);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  outline: 0;
}

.cart-drawer--open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-2));
}

.cart-drawer__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-drawer__head h2 {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.cart-drawer__count {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 1.45rem;
  line-height: 1;
}

.cart-drawer__close:hover {
  border-color: rgba(230, 30, 37, 0.35);
  color: var(--red);
}

.cart-drawer__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem;
}

.cart-drawer__content {
  display: grid;
  gap: 0.85rem;
}

.cart-drawer__content[hidden],
.cart-drawer__empty[hidden] {
  display: none !important;
}

.cart-drawer__empty {
  margin: 0;
  padding: 1.5rem 0.75rem;
}

.cart-drawer__empty h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.cart-drawer .cart-items {
  display: grid;
  gap: 0.55rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.cart-drawer .cart-item {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.6rem 0.65rem;
  border-radius: 0.75rem;
}

.cart-drawer .cart-item__head h2 {
  font-size: 0.82rem;
}

.cart-drawer .cart-summary {
  position: static;
  padding: 0.85rem;
  border-radius: 0.85rem;
}

.cart-drawer .cart-summary h2 {
  font-size: 0.95rem;
}

.cart-drawer .cart-summary__row {
  font-size: 0.78rem;
}

.cart-drawer__foot {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-2));
}

.button--disabled,
.button--disabled:hover,
a.button--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.cart-drawer__foot .button {
  width: 100%;
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 0.75rem;
  }

  .cart-drawer .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .cart-item__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .cart-qty {
    align-self: flex-start;
    min-height: 44px;
    padding: 0.25rem;
  }

  .cart-qty button {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .cart-item__price {
    justify-items: start;
    width: 100%;
  }

  .cart-drawer__panel {
    width: 100vw;
    max-width: 100vw;
  }

  .cart-drawer__foot {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* Account, orders, checkout API integration */
body.account-page {
  background: var(--bg);
}

:root[data-theme="dark"] body.account-page {
  color-scheme: dark;
  background: #000000;
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #161616;
  --text: #ffffff;
  --text-soft: #e5e5e5;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --product-card-bg: #0d0d0d;
  --bottom-card-bg: #111111;
  --bottom-card-text: #ffffff;
  --bottom-muted: #a3a3a3;
  --bottom-line: rgba(255, 255, 255, 0.1);
  --product-text: #ffffff;
  --product-muted: #a3a3a3;
  --product-line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

body.account-page .marketplace-shell {
  background: var(--bg);
}

:root[data-theme="dark"] body.account-page .marketplace-shell {
  background: var(--bg);
}

.account-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1.5rem;
}

.account-topbar {
  position: relative;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.account-topbar .theme-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.account-main {
  width: 100%;
  margin: 0 auto 2rem;
}

.account-layout {
  display: grid;
  gap: 1rem;
}

.account-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow, 0 12px 32px rgba(15, 23, 42, 0.06));
}

:root[data-theme="dark"] body.account-page .account-card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.account-card--guest {
  text-align: center;
}

.account-card--panel {
  display: grid;
  gap: 1.1rem;
}

.account-card__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.account-card__header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.account-card h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.account-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.account-hero__profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.account-hero__copy {
  min-width: 0;
}

.account-hero__meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.account-avatar {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.14), rgba(220, 38, 38, 0.04));
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.account-badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-shortcut {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] body.account-page .account-shortcut {
  background: var(--surface-2);
}

.account-shortcut:hover {
  border-color: rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.account-shortcut__icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.account-shortcut__icon .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.account-shortcut__label {
  font-weight: 800;
  font-size: 0.92rem;
}

.account-shortcut__hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-details,
.account-info-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.account-details div,
.account-info-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

:root[data-theme="dark"] body.account-page .account-details div,
:root[data-theme="dark"] body.account-page .account-info-item {
  background: var(--surface-2);
}

.account-details dt,
.account-info-item dt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-info-item dt .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.account-details dd,
.account-info-item dd {
  margin: 0;
  font-weight: 700;
  word-break: break-word;
}

.account-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.account-status-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

:root[data-theme="dark"] body.account-page .account-status-item {
  background: var(--surface-2);
}

.account-status-item--ok {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.06);
}

.account-status-item--warn {
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.08);
}

.account-status-item__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.06);
  color: var(--red);
  flex: 0 0 auto;
}

.account-status-item__icon .icon {
  width: 1rem;
  height: 1rem;
}

.account-status-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.account-status-item span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.account-logout .icon {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 860px) {
  .account-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .account-shell {
    width: min(100%, calc(100% - 1.25rem));
    padding: 0 0 1.25rem;
  }

  .account-main {
    margin-bottom: 1.5rem;
  }

  .account-hero {
    flex-direction: column;
  }

  .account-shortcuts {
    grid-template-columns: 1fr;
  }

  .account-card {
    padding: 1.15rem;
  }
}

.orders-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.orders-card {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: var(--bottom-card-bg);
}

.orders-card--highlight {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}

.orders-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.orders-card__head strong {
  display: block;
  font-size: 0.95rem;
}

.orders-card__head span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.orders-card__status {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.orders-card__items {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.orders-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.cart-checkout {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cart-checkout h3 {
  margin: 0;
  font-size: 0.92rem;
}

.cart-checkout__field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-checkout__field--wide {
  grid-column: 1 / -1;
}

.cart-checkout__field input,
.cart-checkout__field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--product-card-bg);
  color: var(--text);
  font: inherit;
}

.cart-checkout__feedback {
  margin: 0;
  font-size: 0.8rem;
}

.cart-checkout__feedback:not([hidden]) {
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

@media (min-width: 640px) {
  .cart-checkout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.auth-layout--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  justify-items: stretch;
}

.auth-shell--centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 12rem);
  padding-block: 1.5rem 2rem;
}

.auth-shell--centered .auth-topbar {
  margin-bottom: 1.5rem;
}

.auth-card--lost {
  width: 100%;
  margin: 0 auto;
}

.auth-card--lost .auth-card__header {
  text-align: left;
}

.auth-card--lost .auth-card__header h2 {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.2;
}

.auth-form--lost {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1fr;
}

.auth-hint--center {
  text-align: center;
  margin-top: 0.15rem;
}

.auth-hint--center a {
  color: var(--red, #e61e25);
  font-weight: 900;
  text-decoration: none;
}

.auth-hint--center a:hover {
  text-decoration: underline;
}

/* Auth pages: keep footer pinned to bottom of viewport */
body.auth-body .marketplace-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.auth-body .site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.auth-body .site-content,
body.auth-body .page-content,
body.auth-body .page,
body.auth-body .page-body,
body.auth-body .woocommerce {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
}

body.auth-body .market-footer,
body.auth-body .market-footer--compact {
  margin-top: auto;
  width: min(1500px, calc(100% - 32px));
}

.auth-card--wide {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.auth-card--wide h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.invite-code-panel {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--auth-line);
  background: rgba(230, 30, 37, 0.06);
  text-align: center;
}

.invite-code-panel__label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.invite-code-panel__code {
  margin: 0.45rem 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: Consolas, Monaco, monospace;
}

.invite-code-panel__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.invite-steps {
  margin: 1rem 0 1.25rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  line-height: 1.55;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Legal pages (privacy, refund, ambassador terms) */
:root {
  --legal-hero-bg: linear-gradient(135deg, #f8fafc 0%, #eef2ff 52%, #f5f3ff 100%);
  --legal-hero-text: #0f172a;
  --legal-hero-muted: #475569;
  --legal-hero-border: rgba(15, 23, 42, 0.1);
  --legal-accent: #2563eb;
  --legal-accent-soft: rgba(37, 99, 235, 0.1);
  --legal-link: #1d4ed8;
}

:root[data-theme="dark"] {
  --legal-hero-bg: linear-gradient(135deg, #0b1522 0%, #12102a 50%, #0a1628 100%);
  --legal-hero-text: #f8fafc;
  --legal-hero-muted: #cbd5e1;
  --legal-hero-border: rgba(255, 255, 255, 0.1);
  --legal-accent: #93c5fd;
  --legal-accent-soft: rgba(147, 197, 253, 0.12);
  --legal-link: #93c5fd;
}

.legal-page--conditions-ambassadeur {
  --legal-hero-bg: linear-gradient(135deg, #faf5ff 0%, #ede9fe 45%, #f5f3ff 100%);
  --legal-accent: #7047c8;
  --legal-accent-soft: rgba(112, 71, 200, 0.12);
  --legal-link: #6d28d9;
}

.legal-page--programme-ambassadeur {
  --legal-hero-bg: linear-gradient(135deg, #faf5ff 0%, #ede9fe 45%, #f5f3ff 100%);
  --legal-accent: #7047c8;
  --legal-accent-soft: rgba(112, 71, 200, 0.12);
  --legal-link: #6d28d9;
}

.legal-page--programme-vendeur {
  --legal-hero-bg: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 45%, #f0fdf4 100%);
  --legal-accent: #059669;
  --legal-accent-soft: rgba(5, 150, 105, 0.12);
  --legal-link: #047857;
}

:root[data-theme="dark"] .legal-page--conditions-ambassadeur {
  --legal-hero-bg: linear-gradient(135deg, #1a1030 0%, #0f172a 55%, #12082a 100%);
  --legal-accent: #a78bfa;
  --legal-accent-soft: rgba(167, 139, 250, 0.14);
  --legal-link: #c4b5fd;
}

:root[data-theme="dark"] .legal-page--programme-ambassadeur {
  --legal-hero-bg: linear-gradient(135deg, #1a1030 0%, #0f172a 55%, #12082a 100%);
  --legal-accent: #a78bfa;
  --legal-accent-soft: rgba(167, 139, 250, 0.14);
  --legal-link: #c4b5fd;
}

:root[data-theme="dark"] .legal-page--programme-vendeur {
  --legal-hero-bg: linear-gradient(135deg, #052e16 0%, #0f172a 55%, #064e3b 100%);
  --legal-accent: #34d399;
  --legal-accent-soft: rgba(52, 211, 153, 0.14);
  --legal-link: #6ee7b7;
}

.legal-page-body .page-content--no-title {
  padding-top: 0;
}

.legal-page-body .site-content.page-content {
  max-width: none;
  padding-inline: 0;
}

.legal-page {
  display: grid;
  gap: 1.35rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(0.85rem, 2.5vw, 1.5rem) 2.5rem;
}

.legal-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.legal-page__breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-page__breadcrumb a:hover {
  color: var(--text);
}

.legal-page__breadcrumb-sep {
  opacity: 0.55;
}

.legal-page__hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--legal-hero-border);
  border-radius: 1.25rem;
  background: var(--legal-hero-bg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.35rem, 3vw, 2rem);
  color: var(--legal-hero-text);
}

.legal-page__hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: min(280px, 55vw);
  height: min(280px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--legal-accent-soft) 0%, transparent 68%);
  pointer-events: none;
}

.legal-page__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.legal-page__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.65rem;
  border-radius: 0.85rem;
  background: var(--legal-accent-soft);
  color: var(--legal-accent);
  border: 1px solid var(--legal-hero-border);
}

.legal-page__badge .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.legal-page__eyebrow {
  margin: 0;
  color: var(--legal-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page__title {
  margin: 0.4rem 0 0;
  color: var(--legal-hero-text);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.legal-page__intro {
  margin: 0.75rem 0 0;
  max-width: 720px;
  color: var(--legal-hero-muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.6;
}

.legal-page__updated {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.legal-page__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.legal-page__toc {
  position: sticky;
  top: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-page__toc h2 {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-page__toc ol {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.legal-page__toc a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-page__toc a:hover,
.legal-page__toc a:focus-visible {
  color: var(--legal-accent);
}

.legal-page__toc-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.legal-page__toc-links .button {
  width: 100%;
  justify-content: center;
}

.legal-page__content {
  display: grid;
  gap: 0.9rem;
}

.legal-section {
  padding: 1.25rem 1.35rem 1.25rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--legal-accent);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 7rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.legal-section:hover {
  border-color: var(--legal-hero-border);
  box-shadow: var(--shadow);
}

.legal-section__title {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.legal-section__body {
  margin-top: 0.75rem;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.68;
}

.legal-section__body p {
  margin: 0 0 0.75rem;
}

.legal-section__body p:last-child {
  margin-bottom: 0;
}

.legal-section__body ul,
.legal-section__body ol {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.legal-section__body li:last-child {
  margin-bottom: 0;
}

.legal-section__body a {
  color: var(--legal-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.legal-section__body strong {
  color: var(--text);
  font-weight: 800;
}

.info-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 1rem;
}

.info-action-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-2);
}

.info-action-card strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.info-action-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.legal-section__body .button {
  margin: 0.15rem 0.35rem 0.15rem 0;
  text-decoration: none;
}

.legal-section__body .button:hover {
  text-decoration: none;
}

@media (max-width: 640px) {
  .info-action-grid {
    grid-template-columns: 1fr;
  }

  .legal-section {
    scroll-margin-top: 5.5rem;
  }
}

.legal-page__cta {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--legal-hero-border);
  border-radius: 1rem;
  background: var(--legal-accent-soft);
}

.legal-page__cta h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
}

.legal-page__cta p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-page__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .legal-page__layout {
    grid-template-columns: 1fr;
  }

  .legal-page__toc {
    position: static;
  }

  .legal-page__toc ol {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .legal-page {
    padding-bottom: 2rem;
  }

  .legal-page__hero {
    padding: 1.15rem;
  }

  .legal-section {
    padding: 1rem;
  }

  .legal-page__cta-actions .button {
    width: 100%;
    justify-content: center;
  }
}


.portal-dashboard .account-page-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.portal-dashboard-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.portal-dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.portal-dashboard-nav li.is-active a {
  border-color: rgba(230, 30, 37, 0.35);
  background: rgba(230, 30, 37, 0.08);
}

.portal-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.portal-dashboard-stats .account-card {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.portal-dashboard-stats strong {
  font-size: 1.45rem;
}

.portal-dashboard-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .portal-dashboard .account-page-layout {
    grid-template-columns: 1fr;
  }

  .portal-dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* Vendor Dokan store settings */
.td-vendor-store-notice,
.td-vendor-store-locked-notice {
  margin-bottom: 1rem;
}

.td-vendor-field-locked {
  opacity: 0.72;
  cursor: not-allowed !important;
}

.td-vendor-payout-panel {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

.td-vendor-payout-value {
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.td-vendor-payout-value--empty {
  color: var(--muted, #6b7280);
  font-weight: 600;
}

.td-vendor-rib-pending {
  color: #b45309;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.td-vendor-rib-update {
  margin-top: 1rem;
}

.td-vendor-hide-wc-state {
  display: none !important;
}

.td-vendor-tn-location .required {
  color: #c53030;
}

/* Dokan vendor dashboard: sidebar + content side-by-side (all pages) */
body.dokan-dashboard .dokan-dashboard-wrap,
body.dokan-seller-dashboard .dokan-dashboard-wrap {
  --td-dokan-sidebar-width: 240px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  clear: both !important;
  gap: 0 !important;
  position: relative;
  overflow: visible !important;
}

body.dokan-dashboard .dokan-dash-sidebar,
body.dokan-seller-dashboard .dokan-dash-sidebar {
  flex: 0 0 var(--td-dokan-sidebar-width) !important;
  width: var(--td-dokan-sidebar-width) !important;
  max-width: var(--td-dokan-sidebar-width) !important;
  min-width: var(--td-dokan-sidebar-width) !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  z-index: 2;
  box-sizing: border-box;
}

body.dokan-dashboard .dokan-dashboard-content,
body.dokan-seller-dashboard .dokan-dashboard-content {
  flex: 1 1 auto !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  position: relative !important;
  left: auto !important;
  margin: 0 !important;
  padding: 1.25rem 1.5rem 2rem !important;
  box-sizing: border-box;
  overflow: visible !important;
  z-index: 1;
  background: #f4f5f8;
}

body.dokan-dashboard .dokan-dashboard-content article,
body.dokan-seller-dashboard .dokan-dashboard-content article {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Denser full-width Dokan content (orders, products, import, settings) */
body.dokan-dashboard .dokan-dashboard-content .dokan-table,
body.dokan-seller-dashboard .dokan-dashboard-content .dokan-table,
body.dokan-dashboard .td-catalog-io-table,
body.dokan-seller-dashboard .td-catalog-io-table {
  width: 100% !important;
  max-width: none !important;
}

body.dokan-dashboard .dokan-dashboard-content .dokan-table th,
body.dokan-dashboard .dokan-dashboard-content .dokan-table td,
body.dokan-seller-dashboard .dokan-dashboard-content .dokan-table th,
body.dokan-seller-dashboard .dokan-dashboard-content .dokan-table td {
  padding: 0.55rem 0.7rem !important;
}

body.dokan-dashboard .td-catalog-io,
body.dokan-seller-dashboard .td-catalog-io,
body.dokan-dashboard .td-catalog-io-page,
body.dokan-seller-dashboard .td-catalog-io-page {
  width: 100%;
  max-width: none;
}

body.dokan-dashboard .td-catalog-io-section,
body.dokan-seller-dashboard .td-catalog-io-section {
  width: 100%;
  max-width: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

body.dokan-dashboard .td-catalog-io-inline-form,
body.dokan-dashboard .td-catalog-io-upload-form,
body.dokan-seller-dashboard .td-catalog-io-inline-form,
body.dokan-seller-dashboard .td-catalog-io-upload-form {
  flex-wrap: wrap;
  width: 100%;
}

body.dokan-dashboard .dokan-settings-content,
body.dokan-dashboard .dokan-orders-content,
body.dokan-dashboard .dokan-product-listing,
body.dokan-seller-dashboard .dokan-settings-content,
body.dokan-seller-dashboard .dokan-orders-content,
body.dokan-seller-dashboard .dokan-product-listing {
  width: 100% !important;
  max-width: none !important;
}

body.dokan-dashboard .td-catalog-io-page,
body.dokan-dashboard .td-vendor-payment-page,
body.dokan-dashboard .td-vendor-dash-page,
body.dokan-seller-dashboard .td-catalog-io-page,
body.dokan-seller-dashboard .td-vendor-payment-page,
body.dokan-seller-dashboard .td-vendor-dash-page {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 767px) {
  body.dokan-dashboard .dokan-dashboard-wrap,
  body.dokan-seller-dashboard .dokan-dashboard-wrap {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar,
  body.dokan-seller-dashboard .dokan-dash-sidebar {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.dokan-dashboard .dokan-dashboard-content,
  body.dokan-seller-dashboard .dokan-dashboard-content {
    width: 100% !important;
    padding: 1rem !important;
  }
}

.td-vendor-payment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: none;
  width: 100%;
}

@media (max-width: 900px) {
  .td-vendor-payment {
    grid-template-columns: 1fr;
  }
}

.td-vendor-payment__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.td-vendor-payment__card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.td-vendor-payment__hint,
.td-vendor-payment .help-block {
  margin: 0 0 1rem;
  color: #6b7280;
  line-height: 1.5;
}

.td-vendor-payment__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.td-vendor-payment__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.td-vendor-payment__value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.td-vendor-payment__value--empty {
  letter-spacing: 0;
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 600;
}

.td-vendor-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef2f7;
  color: #374151;
}

.td-vendor-chip--success {
  background: #dcfce7;
  color: #0f8a5f;
}

.td-vendor-chip--warning {
  background: #fef3c7;
  color: #b7791f;
}

.td-vendor-payment__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.td-vendor-payment__file {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #6b7280;
  width: 100%;
}

.td-vendor-payment__file input[type="file"] {
  font-weight: 500;
}

/* Vendor catalog import/export */
.td-catalog-io-page .td-catalog-io-section {
  margin: 0 0 1.75rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.td-catalog-io-page .td-catalog-io-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.td-catalog-io-inline-form,
.td-catalog-io-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.td-catalog-io-upload-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.td-catalog-io-table {
  width: 100%;
  margin-top: 0.75rem;
}

.td-catalog-io-muted {
  color: #6b7280;
}

.td-catalog-io-confirm-form {
  margin-top: 1rem;
}

.td-catalog-io-processing {
  margin-bottom: 1rem;
}

.td-catalog-io-mode-radios {
  border: 0;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.td-catalog-io-mode-radios legend {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.td-catalog-io-suggest-badge,
.td-catalog-io-create-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 3px;
}

.td-catalog-io-warnings {
  color: #a16207;
  font-size: 0.9rem;
}

.td-catalog-io-save-template {
  display: block;
  margin: 0.75rem 0 0.35rem;
}

.td-catalog-io-mapping-form input[type="text"] {
  max-width: 240px;
  margin-bottom: 0.75rem;
}

/* Vendor shipment (bordereau) on Dokan orders */
.td-vendor-shipment-col {
  white-space: nowrap;
  vertical-align: middle;
}

.td-vendor-shipment__empty {
  color: #9ca3af;
}

.td-vendor-shipment__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
}

.td-vendor-shipment-card {
  margin: 1.25rem 0;
  clear: both;
}

.td-vendor-shipment-card__hint {
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.td-vendor-shipment-card__hint--muted {
  color: #6b7280;
  margin-bottom: 0;
}


/* ============================================================
   Category showcase — fluid responsive (banner / side-image / split-promo)
   Covers laptop, tablet, phone for every Product Categories display type.
   ============================================================ */
.popular-showcase,
.popular-showcase__grid,
.popular-block,
.popular-showcase .product-card,
.popular-showcase .product-grid--popular {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.popular-showcase .product-card__cta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1400px) {
  .category-feature--split-promo {
    grid-template-columns: minmax(0, 2.2fr) minmax(200px, 0.9fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .category-feature--split-promo .category-feature__promo {
    min-height: clamp(240px, 26vw, 340px);
  }

  .category-feature--side-image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 0.85rem;
  }

  .popular-showcase .category-feature--banner .product-grid--popular,
  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular {
    grid-template-columns: repeat(var(--rail-cols, 8), minmax(0, 1fr));
  }
}

@media (max-width: 1249px) {
  .popular-block {
    padding: 0.85rem;
    border-radius: 1.15rem;
    gap: 0.85rem;
  }

  .category-feature--side-image {
    grid-template-columns: 1fr !important;
  }

  .category-feature--side-image .category-feature__visual {
    min-height: clamp(180px, 28vw, 240px);
  }

  .category-feature--split-promo {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "hero"
      "products"
      "promo" !important;
  }

  .category-feature--split-promo .category-feature__head {
    min-height: clamp(130px, 22vw, 180px);
  }

  .category-feature--split-promo .category-feature__promo {
    min-height: clamp(180px, 42vw, 260px);
    max-height: 320px;
  }

  .category-feature--split-promo .category-feature__promo-video {
    object-fit: cover;
  }

  .category-feature--side-image .product-grid--popular,
  .popular-showcase .category-feature--split-promo .product-grid--popular,
  .popular-showcase .category-feature--electronics .product-grid--popular,
  .popular-showcase .category-feature--electronique .product-grid--popular,
  .popular-showcase .category-feature--banner .product-grid--popular,
  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular,
  .product-grid--popular {
    grid-template-columns: repeat(var(--rail-cols, 4), minmax(0, 1fr)) !important;
    gap: 0.7rem;
  }

  .category-feature--side-image .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .category-feature--banner .popular-block__head {
    min-height: clamp(150px, 24vw, 210px);
  }
}

@media (max-width: 1024px) {
  .popular-showcase .category-feature--split-promo .product-grid--popular,
  .popular-showcase .category-feature--electronics .product-grid--popular,
  .popular-showcase .category-feature--electronique .product-grid--popular,
  .category-feature--side-image .product-grid--popular,
  .popular-showcase .category-feature--banner .product-grid--popular,
  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular,
  .product-grid--popular {
    grid-template-columns: repeat(var(--rail-cols, 4), minmax(0, 1fr)) !important;
  }

  .category-feature--side-image .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .popular-showcase .product-card__actions button,
  .popular-showcase .product-card__quick-view,
  .popular-showcase .product-card__favorite a {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }
}

@media (max-width: 820px) {
  .popular-showcase__grid {
    gap: 1.1rem;
  }

  .popular-block {
    padding: 0.72rem;
    border-radius: 1rem;
    gap: 0.7rem;
  }

  .category-feature--banner .popular-block__head,
  .category-feature--split-promo .category-feature__head {
    min-height: clamp(120px, 32vw, 160px);
    border-radius: 0.75rem;
  }

  .category-feature--split-promo .category-feature__intro h3,
  .category-feature--banner .category-feature__intro h3 {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .category-feature--split-promo .category-feature__promo {
    min-height: clamp(160px, 48vw, 220px);
    max-height: 240px;
    border-radius: 0.85rem;
  }

  .category-feature--side-image .category-feature__visual {
    min-height: clamp(160px, 40vw, 210px);
    border-radius: 0.85rem;
  }

  .category-feature--side-image .product-grid--popular,
  .popular-showcase .category-feature--split-promo .product-grid--popular,
  .popular-showcase .category-feature--electronics .product-grid--popular,
  .popular-showcase .category-feature--electronique .product-grid--popular,
  .popular-showcase .category-feature--banner .product-grid--popular,
  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular,
  .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem;
  }

  .popular-showcase .product-card__body {
    gap: 0.28rem;
    padding: 0.4rem 0.32rem 0.45rem;
  }

  .popular-showcase .product-card h3 {
    font-size: clamp(0.68rem, 3.2vw, 0.82rem);
    -webkit-line-clamp: 1;
  }

  .popular-showcase .product-card__price strong {
    font-size: clamp(0.72rem, 3.4vw, 0.9rem);
  }

  .popular-showcase .product-card__price del {
    font-size: clamp(0.55rem, 2.6vw, 0.68rem) !important;
  }

  .popular-showcase .product-card__actions {
    gap: 0.28rem;
  }

  .popular-showcase .product-card__actions button,
  .popular-showcase .product-card__quick-view,
  .popular-showcase .product-card__favorite a,
  .popular-showcase .product-card__favorite .yith-wcwl-add-button a {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  .popular-showcase .product-card__cta {
    min-height: 28px;
    padding-inline: 0.35rem;
    font-size: clamp(0.58rem, 2.8vw, 0.7rem);
  }
}

@media (max-width: 520px) {
  .popular-block {
    padding: 0.58rem;
    border-radius: 0.85rem;
  }

  .category-feature--split-promo {
    padding: 0.55rem;
    gap: 0.55rem;
  }

  .category-feature--split-promo .category-feature__promo {
    min-height: 150px;
    max-height: 190px;
  }

  .category-feature--side-image .product-grid--popular,
  .popular-showcase .category-feature--split-promo .product-grid--popular,
  .popular-showcase .category-feature--electronics .product-grid--popular,
  .popular-showcase .category-feature--electronique .product-grid--popular,
  .popular-showcase .category-feature--banner .product-grid--popular,
  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular,
  .product-grid--popular {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.4rem;
  }

  .popular-showcase .product-card__image {
    padding: 0.45rem;
  }

  .popular-showcase .product-card__meta {
    font-size: 0.55rem;
  }

  .popular-showcase .product-card__cta .icon {
    width: 0.85rem;
    height: 0.85rem;
  }
}

@media (max-width: 380px) {
  .popular-showcase .product-card__actions {
    gap: 0.2rem;
  }

  .popular-showcase .product-card__actions button,
  .popular-showcase .product-card__quick-view,
  .popular-showcase .product-card__favorite a,
  .popular-showcase .product-card__favorite .yith-wcwl-add-button a {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
  }

  .popular-showcase .product-card__cta {
    font-size: 0.55rem;
    min-height: 26px;
  }
}

/* Mobile / small screens: 2 visible product cards + horizontal swipe + Voir plus */
.category-feature__products-wrap {
  position: relative;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.category-feature__more {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.category-feature__more:hover {
  border-color: rgba(230, 30, 37, 0.45);
  color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, var(--surface-2));
}

@media (max-width: 820px) {
  .popular-showcase .category-feature__products-wrap {
    gap: 0.65rem;
  }

  .popular-showcase .product-grid--popular,
  .popular-showcase .category-feature--banner .product-grid--popular,
  .popular-showcase .category-feature--side-image .product-grid--popular,
  .popular-showcase .category-feature--split-promo .product-grid--popular,
  .popular-showcase .category-feature--electronics .product-grid--popular,
  .popular-showcase .category-feature--electronique .product-grid--popular,
  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular,
  .category-feature--side-image .product-grid--popular,
  .product-grid--popular {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 0.55rem !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.2rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.05rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
  }

  .popular-showcase .product-grid--popular::-webkit-scrollbar,
  .product-grid--popular::-webkit-scrollbar {
    display: none;
  }

  .popular-showcase .product-grid--popular > .product-card,
  .popular-showcase .product-grid--popular > .product,
  .product-grid--popular > .product-card,
  .product-grid--popular > .product {
    flex: 0 0 calc((100% - 0.55rem) / 2) !important;
    width: calc((100% - 0.55rem) / 2) !important;
    max-width: calc((100% - 0.55rem) / 2) !important;
    min-width: calc((100% - 0.55rem) / 2) !important;
    scroll-snap-align: start;
  }

  .popular-showcase .category-feature__more {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .popular-showcase .product-grid--popular,
  .product-grid--popular {
    gap: 0.42rem !important;
  }

  .popular-showcase .product-grid--popular > .product-card,
  .popular-showcase .product-grid--popular > .product,
  .product-grid--popular > .product-card,
  .product-grid--popular > .product {
    flex: 0 0 calc((100% - 0.42rem) / 2) !important;
    width: calc((100% - 0.42rem) / 2) !important;
    max-width: calc((100% - 0.42rem) / 2) !important;
    min-width: calc((100% - 0.42rem) / 2) !important;
  }

  .popular-showcase .category-feature__more {
    min-height: 40px;
    font-size: 0.78rem;
    border-radius: 0.65rem;
  }
}

/* Indice de glissement : le rail se decale brievement pour signaler
   que les produits defilent horizontalement au doigt. */
@keyframes productRailSwipeHint {
  0%,
  10% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(-22px);
  }

  64% {
    transform: translateX(-7px);
  }

  88%,
  100% {
    transform: translateX(0);
  }
}

@keyframes productRailSwipeBadge {
  0% {
    opacity: 0;
    transform: translate(-8px, -50%) scale(0.85);
  }

  20%,
  66% {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(16px, -50%) scale(0.9);
  }
}

@keyframes productRailSwipeChevron {
  0% {
    opacity: 0;
    transform: translate(-8px, -50%) rotate(45deg);
  }

  20%,
  66% {
    opacity: 1;
    transform: translate(0, -50%) rotate(45deg);
  }

  100% {
    opacity: 0;
    transform: translate(16px, -50%) rotate(45deg);
  }
}

@media (max-width: 820px) {
  .category-feature__products-wrap.is-swipe-hint .product-grid--popular > .product-card,
  .category-feature__products-wrap.is-swipe-hint .product-grid--popular > .product {
    animation: productRailSwipeHint 1.4s cubic-bezier(0.33, 0, 0.24, 1) 2 both;
  }

  .category-feature__products-wrap.is-swipe-hint::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 40%;
    right: 0.6rem;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(12, 12, 16, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: productRailSwipeBadge 1.4s ease-in-out 2 both;
    pointer-events: none;
  }

  .category-feature__products-wrap.is-swipe-hint::after {
    content: "";
    position: absolute;
    z-index: 6;
    top: 40%;
    right: calc(0.6rem + 14px);
    width: 9px;
    height: 9px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    animation: productRailSwipeChevron 1.4s ease-in-out 2 both;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-feature__products-wrap.is-swipe-hint .product-grid--popular > .product-card,
  .category-feature__products-wrap.is-swipe-hint .product-grid--popular > .product {
    animation: none;
  }

  .category-feature__products-wrap.is-swipe-hint::before,
  .category-feature__products-wrap.is-swipe-hint::after {
    display: none;
  }
}

/* ============================================================
   Sitewide mobile chrome lock (all marketplace pages)
   Matches FRONT GitHub header: logo row, then menu + search.
   ============================================================ */
@media (max-width: 820px) {
  body:not(.auth-body):not(.td-dashboard-shell):not(.dokan-dashboard):not(.dokan-seller-dashboard) .market-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 320 !important;
  }

  body:not(.auth-body):not(.td-dashboard-shell):not(.dokan-dashboard):not(.dokan-seller-dashboard) .market-header__main {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    grid-template-areas:
      "brand brand brand"
      "drawer search cart" !important;
    align-items: center !important;
    gap: 0.62rem !important;
    min-height: auto !important;
    padding: 0.72rem 0 0.68rem !important;
  }

  body .market-header__main > .brand {
    grid-area: brand !important;
    justify-content: center !important;
    min-height: 84px !important;
  }

  body .market-header__main > .brand .brand__logo {
    width: min(100%, 300px) !important;
    max-width: none !important;
    max-height: none !important;
  }

  body .mobile-drawer-toggle {
    grid-area: drawer !important;
    display: inline-flex !important;
    width: 48px !important;
    height: 46px !important;
  }

  body .search-bar {
    grid-area: search !important;
    margin: 0 !important;
    transform: none !important;
    height: 46px !important;
    border-radius: 0.72rem !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
  }

  body .search-bar__category,
  body .search-bar__picker-wrap {
    display: none !important;
  }

  body .secondary-nav,
  body .top-strip {
    display: none !important;
  }

  body .header-actions {
    grid-area: cart !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .header-actions > :not(.header-action--cart) {
    display: none !important;
  }

  body .header-actions .header-action--cart {
    display: inline-flex !important;
    width: 48px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .header-actions .header-action--cart > span:not(.cart-badge) {
    display: none !important;
  }

  body .mobile-drawer.mobile-drawer--open {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }
}

/* ============================================================
   Vignettage des images : ombre douce sur les bords, centre net
   Intensite reglable via --img-vignette-* dans :root
   ============================================================ */

.product-card__media::before,
.category-card__image::after,
.promo-card::before,
.recruit-card::before,
.category-feature__banner::before,
.category-feature__visual::before,
.category-feature--split-promo .category-feature__hero-banner::before,
.category-feature--split-promo .category-feature__promo::before,
.category-hero::after,
.hero__copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-vignette);
  border-radius: inherit;
  pointer-events: none;
}

.product-card__media::before,
.category-card__image::after,
.promo-card::before {
  z-index: 1;
}

.recruit-card::before,
.category-feature__banner::before,
.category-feature__visual::before,
.category-feature--split-promo .category-feature__hero-banner::before,
.category-feature--split-promo .category-feature__promo::before,
.category-hero::after,
.hero__copy::after {
  z-index: 0;
}

/* Le contenu reste au-dessus du voile */
.recruit-card__content,
.category-feature__intro,
.category-hero__content {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Mobile : video promo integree en tete du groupe de categorie
   ============================================================ */

@media (max-width: 820px) {
  .category-feature--split-promo .category-feature__promo--video {
    display: block;
  }

  /* Video, banniere de categorie, puis produits comme un seul groupe. */
  .category-feature--split-promo:has(.category-feature__promo--video) {
    grid-template-areas:
      "promo"
      "hero"
      "products" !important;
  }
}

/* ============================================================
   Mobile : bandeau de confiance (avantages / marques / chiffres
   / micro-trust) + footer sur petits ecrans
   ============================================================ */

@media (max-width: 820px) {
  /* La bande micro-trust restait en flex-wrap malgre overflow-x:auto :
     le scroll horizontal ne se declenchait jamais. Grille lisible. */
  .micro-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem 0.7rem;
    overflow: visible;
    white-space: normal;
  }

  /* Nombre impair de chiffres sur 2 colonnes : la derniere carte prend
     toute la largeur au lieu de laisser un trou. */
  .metrics article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .advantages {
    gap: 0.45rem;
    padding: 0.5rem;
  }

  .advantages article {
    min-height: 88px;
    padding: 0.55rem 0.45rem;
  }

  .advantages strong {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .advantages span {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  /* "+ plus encore..." se cassait en deux lignes contre le titre */
  .brands .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.7rem;
  }

  .brands .section-heading h2 {
    font-size: 1.25rem;
  }

  .brands .section-heading span {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .brands {
    padding: 0.8rem;
  }

  .brand-marquee span {
    min-width: 104px;
    min-height: 52px;
    font-size: 0.95rem;
  }

  .metrics {
    gap: 0.45rem;
  }

  .metrics article {
    min-height: 84px;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 0.5rem;
    padding: 0.58rem;
  }

  .metrics .icon {
    width: 36px;
    height: 36px;
  }

  .metrics strong {
    font-size: 0.98rem;
  }

  .metrics span {
    font-size: 0.65rem;
  }

  .micro-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.6rem 0.7rem;
    font-size: 0.68rem;
  }

  /* Footer : les 4 colonnes de liens deviennent un rail glissable a
     l'horizontale au lieu de s'empiler sur toute la hauteur. */
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .footer-grid > .footer-brand,
  .footer-grid > .app-download,
  .footer-grid > .footer-apps {
    grid-column: 1 / -1;
  }

  .footer-cols {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }

  .footer-cols::-webkit-scrollbar {
    display: none;
  }

  /* Largeurs calees pour qu'une amorce de la colonne suivante reste
     toujours visible : c'est ce qui signale qu'on peut faire glisser. */
  .footer-cols > nav {
    flex: 0 0 auto;
    width: 42%;
    min-width: 150px;
    scroll-snap-align: start;
  }

  /* Tagline tronquee a 2 lignes des 820px : illisible sur telephone. */
  .footer-brand p {
    -webkit-line-clamp: 4;
    max-width: none;
  }

  .footer-grid h3 {
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
  }

  /* Cibles tactiles : liens trop petits et trop serres. */
  .footer-grid nav a {
    margin: 0;
    padding: 0.42rem 0;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .socials {
    gap: 0.5rem;
    margin-top: 0.8rem;
  }

  .socials span {
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
  }

  .app-download a {
    min-height: 42px;
    font-size: 0.76rem;
  }

  .footer-bottom {
    gap: 0.6rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 360px) {
  .advantages article {
    min-height: 82px;
  }

  .advantages .icon {
    width: 36px;
    height: 36px;
  }

  .brand-marquee span {
    min-width: 96px;
    min-height: 48px;
    font-size: 0.88rem;
  }

  .metrics article {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 0.45rem;
  }

  .metrics .icon {
    width: 32px;
    height: 32px;
  }

  .metrics strong {
    font-size: 0.92rem;
  }

  .metrics span {
    font-size: 0.62rem;
  }

  .micro-trust {
    gap: 0.35rem 0.5rem;
    font-size: 0.66rem;
  }
}

/* ============================================================
   Mobile : avantages / marques / chiffres en rails glissables
   a l'horizontale plutot qu'en grille empilee
   ============================================================ */

@media (max-width: 820px) {
  .advantages,
  .metrics {
    display: flex;
    flex-wrap: nowrap;
    /* "safe" : centre le rail quand il ne deborde pas, sinon on repart du
       bord gauche pour ne jamais rogner la premiere carte. */
    justify-content: safe center;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .advantages::-webkit-scrollbar,
  .metrics::-webkit-scrollbar,
  .brand-marquee::-webkit-scrollbar {
    display: none;
  }

  .advantages > article,
  .metrics > article,
  .brand-marquee span {
    scroll-snap-align: start;
  }

  /* Largeurs calees pour qu'une amorce de la carte suivante reste
     visible : c'est ce qui signale qu'on peut faire glisser. */
  .advantages > article {
    flex: 0 0 auto;
    width: 42%;
    min-width: 140px;
    align-content: center;
  }

  /* Les colonnes suivaient la largeur de la carte : le duo icone + chiffre
     restait colle a gauche avec un vide a droite. On les dimensionne au
     contenu pour pouvoir centrer le bloc. */
  .metrics > article {
    flex: 0 0 auto;
    width: 46%;
    min-width: 150px;
    grid-template-columns: auto minmax(0, auto);
    justify-content: center;
  }

  /* Marques : le defilement automatique laisse place au glissement
     manuel, les deux se battraient pour la position de scroll. */
  .brand-marquee {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .brand-marquee__track {
    animation: none;
    justify-content: safe center;
    min-width: 100%;
  }

  /* Le second jeu de logos ne servait qu'a boucler l'animation. */
  .brand-marquee span[aria-hidden="true"] {
    display: none;
  }
}

/* ============================================================
   Dark mode — category showcase banners aligned on the
   "banner" treatment: side scrim, white type, white pill CTA.
   Applies the same look to side-image and split-promo blocks.
   ============================================================ */
:root[data-theme="dark"] .category-feature--side-image .category-feature__intro h3,
:root[data-theme="dark"] .category-feature--split-promo .category-feature__intro h3 {
  color: #fff;
  font-size: clamp(1.65rem, 3.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

:root[data-theme="dark"] .category-feature--split-promo .category-feature__hero-banner {
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.38) 48%, rgba(2, 6, 23, 0.12)),
    var(--category-feature-image);
}

:root[data-theme="dark"] .category-feature--split-promo .category-feature__hero-banner::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38));
}

:root[data-theme="dark"] .category-feature--split-promo .category-feature__head {
  min-height: clamp(180px, 14vw, 240px);
}

:root[data-theme="dark"] .category-feature--split-promo .category-feature__intro {
  width: min(610px, 100%);
  gap: 0.55rem;
}

:root[data-theme="dark"] .category-feature--split-promo .category-feature__intro .eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

/* Split-promo hides its description by default; keep it clamped so the hero stays short. */
:root[data-theme="dark"] .category-feature--split-promo .category-feature__intro p:not(.eyebrow) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 750;
  line-height: 1.58;
}

:root[data-theme="dark"] .category-feature--split-promo .category-feature__cta {
  min-height: 42px;
  margin-top: 0.45rem;
  padding-inline: 1rem;
  font-size: 0.84rem;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
}

@media (max-width: 1249px) {
  :root[data-theme="dark"] .category-feature--split-promo .category-feature__head {
    min-height: clamp(160px, 22vw, 210px);
  }
}

@media (max-width: 820px) {
  :root[data-theme="dark"] .category-feature--side-image .category-feature__intro h3,
  :root[data-theme="dark"] .category-feature--split-promo .category-feature__intro h3 {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  :root[data-theme="dark"] .category-feature--split-promo .category-feature__head {
    min-height: clamp(140px, 34vw, 185px);
  }

  :root[data-theme="dark"] .category-feature--split-promo .category-feature__intro p:not(.eyebrow) {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  :root[data-theme="dark"] .category-feature--split-promo .category-feature__cta {
    min-height: 36px;
    padding-inline: 0.85rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 520px) {
  :root[data-theme="dark"] .category-feature--split-promo .category-feature__intro p:not(.eyebrow) {
    font-size: 0.78rem;
  }
}

/* Homepage typography — Carbon Theme Settings (optional per-section sizes) */
.hero .hero__text {
  font-size: var(--td-hero-body-size, 0.95rem);
}

.hero .button {
  font-size: var(--td-hero-cta-size, 0.84rem);
}

.trust-panel.trust-panel--hero .customer-proof strong {
  font-size: var(--td-trust-proof-label-size, 1.45rem);
}

.trust-panel.trust-panel--hero .customer-proof span {
  font-size: var(--td-trust-proof-text-size, 0.82rem);
}

.trust-panel.trust-panel--hero .trust-row span {
  font-size: var(--td-trust-row-text-size, 0.82rem);
}

.features .feature-card strong {
  font-size: var(--td-features-card-title-size, 0.86rem);
}

.features .feature-card p {
  font-size: var(--td-features-card-desc-size, 0.75rem);
}

.categories .section-heading .eyebrow {
  font-size: var(--td-categories-eyebrow-size, 0.74rem);
}

.categories .section-heading h2 {
  font-size: var(--td-categories-title-size, clamp(1.35rem, 2vw, 2rem));
}

.categories .text-link {
  font-size: var(--td-categories-link-size, 0.85rem);
}

.popular-showcase .section-heading .eyebrow {
  font-size: var(--td-popular-eyebrow-size, 0.74rem);
}

.popular-showcase .section-heading h2 {
  font-size: var(--td-popular-title-size, clamp(1.35rem, 2vw, 2rem));
}

.popular-showcase .section-heading__copy {
  font-size: var(--td-popular-copy-size, 0.88rem);
}

.popular-showcase .category-feature__intro .eyebrow {
  font-size: var(--td-popular-eyebrow-size, 0.74rem);
}

.popular-showcase .category-feature__intro p:not(.eyebrow) {
  font-size: var(--td-popular-block-intro-size, clamp(0.92rem, 1.4vw, 1.08rem));
}

.promo-grid .promo-card .eyebrow,
.promo-grid .promo-card__kicker {
  font-size: var(--td-promo-eyebrow-size, 1rem);
}

.promo-grid .promo-card h3 {
  font-size: var(--td-promo-title-size, clamp(1.42rem, 2.05vw, 2rem));
}

.promo-grid .promo-card p {
  font-size: var(--td-promo-body-size, 0.9rem);
}

.promo-grid .promo-card__discount {
  font-size: var(--td-promo-discount-size, 1.2rem);
}

.seller-ambassador .recruit-card .eyebrow {
  font-size: var(--td-recruit-eyebrow-size, 0.74rem);
}

.seller-ambassador .recruit-card h3 {
  font-size: var(--td-recruit-title-size, 1.55rem);
}

.seller-ambassador .recruit-card li {
  font-size: var(--td-recruit-bullets-size, 0.88rem);
}

.seller-ambassador .recruit-card .button {
  font-size: var(--td-recruit-button-size, 0.72rem);
}

.advantages strong {
  font-size: var(--td-advantages-title-ar-size, 0.9rem);
}

.advantages span {
  font-size: var(--td-advantages-title-en-size, 0.72rem);
}

.brands .section-heading .eyebrow {
  font-size: var(--td-brands-eyebrow-size, 0.74rem);
}

.brands .section-heading h2 {
  font-size: var(--td-brands-title-size, clamp(1.35rem, 2vw, 2rem));
}

.brands .section-heading > span {
  font-size: var(--td-brands-more-size, 0.85rem);
}

.metrics strong {
  font-size: var(--td-metrics-value-size, 1.05rem);
}

.metrics span {
  font-size: var(--td-metrics-label-size, 0.68rem);
}

.micro-trust,
.micro-trust span {
  font-size: var(--td-micro-trust-text-size, 0.7rem);
}

/* ============================================================
   Hero — compactage mobile
   Place en fin de feuille pour primer sur les blocs responsives
   precedents et sur les variables de typographie Carbon.
   ============================================================ */

@media (max-width: 820px) {
  .hero {
    gap: 0.55rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.85rem;
  }

  .hero__copy {
    min-height: 0;
    padding: 1rem 0.9rem 1.05rem;
    border-radius: 0.7rem;
  }

  .hero .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .hero h1 {
    max-width: 14ch;
    margin-top: 0.3rem;
    font-size: clamp(1.5rem, 7.6vw, 2.2rem);
    line-height: 1;
  }

  .hero__lead {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.32;
  }

  .hero .hero__text {
    margin-top: 0.42rem;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .hero__actions {
    gap: 0.42rem;
    margin-top: 0.72rem;
  }

  .hero__actions .button {
    flex: 1 1 128px;
    min-height: 34px;
    padding-inline: 0.7rem;
    border-radius: 0.6rem;
  }

  .hero .button {
    font-size: 0.7rem;
  }
}

@media (max-width: 520px) {
  .hero__copy {
    padding: 0.85rem 0.75rem 0.9rem;
  }

  .hero .eyebrow {
    font-size: 0.54rem;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 7.2vw, 1.85rem);
  }

  .hero__lead {
    font-size: 0.74rem;
  }

  .hero .hero__text {
    font-size: 0.66rem;
  }

  .hero__actions .button {
    flex: 1 1 118px;
    min-height: 32px;
    padding-inline: 0.6rem;
  }

  .hero .button {
    font-size: 0.66rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.32rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    flex: 1 1 auto;
    width: 100%;
  }
}

