:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --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);
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  letter-spacing: 0;
  overflow-x: hidden;
}

body[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 {
  display: none;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.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);
}

body[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;
}

body[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);
}

body[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;
}

.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;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: none;
}

.search-bar:not(:has(.search-bar__category)) {
  grid-template-columns: minmax(0, 1fr) 54px;
}

body[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;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0.95rem 1rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.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;
}

.search-bar__submit {
  background: var(--red);
  color: #fff;
  width: 54px;
  flex-shrink: 0;
}

.search-bar__submit:hover {
  background: #ff3333;
  transform: translateX(1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-action,
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  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;
}

.header-action:hover,
.theme-toggle:hover {
  border-color: rgba(230, 30, 37, 0.4);
  color: var(--red);
}

.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;
}

body[data-theme="light"] .theme-toggle__moon,
body[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: 48px;
  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: nowrap;
}

.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 {
  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: nowrap;
}

.category-mega__subpane-all {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.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: nowrap;
  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 {
  display: grid;
  gap: 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 {
  --hero-banner-image: url("assets/images/banner.png");
  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;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  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;
  pointer-events: none;
  z-index: 0;
}

.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);
}

.hero h1 {
  max-width: 620px;
  margin: 0.4rem 0 0;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-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: 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__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: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(230, 30, 37, 0.2);
}

.button--primary:hover {
  background: #ff2a2a;
}

.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;
}

body[data-theme="light"] .trust-panel.trust-panel--hero {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

body[data-theme="light"] .trust-panel.trust-panel--hero .customer-proof {
  border-bottom-color: var(--line);
}

body[data-theme="light"] .trust-panel.trust-panel--hero .customer-proof strong {
  color: var(--text);
}

body[data-theme="light"] .trust-panel.trust-panel--hero .customer-proof span,
body[data-theme="light"] .trust-panel.trust-panel--hero .trust-row span {
  color: var(--text-soft);
}

body[data-theme="light"] .trust-panel.trust-panel--hero .avatar-stack img {
  border-color: var(--surface-2);
}

body[data-theme="dark"] .trust-panel.trust-panel--hero {
  background: #030810;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body[data-theme="dark"] .trust-panel.trust-panel--hero .customer-proof {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .trust-panel.trust-panel--hero .customer-proof strong {
  color: #fff;
}

body[data-theme="dark"] .trust-panel.trust-panel--hero .customer-proof span,
body[data-theme="dark"] .trust-panel.trust-panel--hero .trust-row span {
  color: rgba(255, 255, 255, 0.78);
}

body[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 h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
}

.section-heading span,
.text-link {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.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 {
  color: var(--red);
}

.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: 0;
  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: block;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  hyphens: none;
}

.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;
}

.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;
  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: rgba(255, 255, 255, 0.82);
  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(4, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
}

.category-feature--side-image {
  grid-template-columns: minmax(320px, 1.08fr) minmax(380px, 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: 2;
}

.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(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(auto-fill, minmax(168px, 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(7, 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 {
  min-height: 2.4em;
  font-size: clamp(0.56rem, 1.3vw, 0.68rem);
}

.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;
  -webkit-line-clamp: 2;
}

.popular-showcase .product-card p {
  display: -webkit-box;
  min-height: 2.7em;
  font-size: clamp(0.6rem, 1.45vw, 0.72rem);
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.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__actions button,
.popular-showcase .product-card__quick-view {
  border-color: var(--cart-cta-border);
  color: var(--cart-cta);
}

.popular-showcase .product-card__actions button:hover,
.popular-showcase .product-card__quick-view:hover {
  border-color: var(--cart-cta);
  background: var(--cart-cta);
  color: #fff;
}

.popular-showcase .product-card__actions {
  display: flex;
}

.popular-showcase .product-card__specs {
  display: none;
}

.popular-showcase .product-card__price strong {
  font-size: clamp(0.72rem, 1.8vw, 0.95rem);
}

.popular-showcase .product-card__cta {
  min-height: 30px;
  padding-inline: 0.4rem;
  font-size: clamp(0.58rem, 1.5vw, 0.72rem);
}

body[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 {
  min-height: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.product-showcase .product-card__specs span {
  min-height: 22px;
  padding: 0 0.42rem;
  font-size: 0.6rem;
}

.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__actions {
  display: flex;
  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: -webkit-box;
  min-height: 2.5em;
  margin: 0;
  overflow: hidden;
  color: var(--product-text);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.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;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  min-width: 0;
  margin-top: 0;
}

.product-card__price strong {
  color: var(--product-text);
  font-size: 1.18rem;
  font-weight: 900;
}

.product-card__price del {
  color: var(--product-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-card__price span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 40px;
  margin-top: 0.12rem;
  border: 0;
  border-radius: 0.72rem;
  background: linear-gradient(135deg, var(--cart-cta), var(--cart-cta-dark));
  color: #fff;
  padding: 0 0.78rem;
  font-size: 0.78rem;
  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;
}

.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;
  color: #fff;
  font-size: clamp(1.42rem, 2.05vw, 2rem);
  font-weight: 900;
  line-height: 1;
  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: 158px;
}

.promo-card--local img {
  object-position: 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: 40%;
  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: 158px;
}

.promo-card--delivery img {
  object-position: 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: 48%;
  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);
  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;
}

.recruit-card {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 275px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: #f2f3f5;
  box-shadow: var(--shadow);
}

.recruit-card__content {
  display: flex;
  align-items: flex-end;
  min-height: 275px;
  padding: 1.35rem 1.5rem 0.9rem;
  background: var(--recruit-card-bg) center / cover no-repeat #f2f3f5;
  color: #fff;
}

.recruit-card .button-row {
  align-items: center;
  gap: 1.25rem;
  margin-top: 0;
  transform: translateY(0.55rem);
}

.recruit-card .button {
  min-height: 38px;
  border-radius: 0.45rem;
  padding-inline: 1rem;
  font-size: 0.72rem;
}

.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-bg: url("assets/images/banner5.1.png");
}

.recruit-card--ambassador {
  --recruit-card-bg: url("assets/images/banner4.1.png");
}

.recruit-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.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;
}

.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;
}

.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;
}

.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)) minmax(170px, 1fr);
  gap: 1.25rem;
  padding: 1.45rem 0 1.15rem;
}

.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;
}

.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(420px, 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;
  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: #08111d;
}

.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 > span:first-child,
.auth-kyc legend {
  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: 46px;
  outline: 0;
  padding: 0.78rem 0.85rem;
  font-weight: 800;
}

.auth-field select {
  min-height: 46px;
  outline: 0;
  padding: 0.78rem 0.85rem;
  font-weight: 800;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.18rem),
    calc(100% - 0.85rem) calc(50% - 0.18rem);
  background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.auth-field select option {
  background: var(--surface);
  color: var(--text);
}

body[data-theme="dark"] .auth-field input,
body[data-theme="dark"] .auth-field textarea {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--auth-line);
  color-scheme: dark;
}

body[data-theme="dark"] .auth-field select {
  background-color: var(--surface-2);
  color: var(--text);
  border-color: var(--auth-line);
  color-scheme: dark;
}

body[data-theme="dark"] .auth-field select option {
  background: var(--surface-2);
  color: var(--text);
}

body[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;
}

body[data-theme="dark"] .auth-field input::placeholder,
body[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 {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--auth-line);
  background: transparent;
  color: var(--red);
  padding-inline: 0.75rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.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);
}

body[data-theme="dark"] .auth-feedback--error {
  color: #fecaca;
  background: rgba(230, 30, 37, 0.14);
}

body[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 {
  padding-inline: 0.32rem;
  margin-bottom: -0.15rem;
}

.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%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.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--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-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;
}

.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 {
  padding: 0;
  overflow: hidden;
  min-height: 168px;
}

.auth-value-card__media {
  position: relative;
  height: 78px;
  overflow: hidden;
  background: #08111d;
}

.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: 820px) {
  .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: 520px) {
  .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, 0.92fr) minmax(390px, 1fr);
  }

  .auth-hero {
    min-height: 660px;
  }

  .auth-value-grid {
    grid-template-columns: 1fr;
  }
}

@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 calc((100% - 1.95rem) / 4);
    width: calc((100% - 1.95rem) / 4);
    min-width: 180px;
  }

  .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(2, 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(4, minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seller-ambassador,
  .promo-grid,
  .footer-care {
    grid-template-columns: 1fr;
  }

  .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);
  }

  .search-bar {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .search-bar__category {
    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;
  }

  .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(2, minmax(0, 1fr));
  }

  .category-feature--banner .product-grid--popular {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .popular-showcase .category-feature--tv-image-son .product-grid--popular,
  .popular-showcase .category-feature--informatique-stockage .product-grid--popular {
    grid-template-columns: repeat(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;
  }

  .market-header__main > .brand .brand__logo {
    width: min(100%, 300px);
  }

  .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;
  }

  .search-bar {
    grid-area: search;
    grid-template-columns: minmax(0, 1fr) 48px;
    height: 46px;
    border-radius: 0.72rem;
  }

  .search-bar__category {
    display: none;
  }

  .search-bar input {
    min-width: 0;
    padding-inline: 0.86rem;
    font-size: 0.8rem;
  }

  .header-actions,
  .secondary-nav {
    display: none;
  }

  .mobile-drawer {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    z-index: 340;
    width: min(calc(100% - 20px), 440px);
    transform: translateX(-50%);
  }

  .mobile-drawer.mobile-drawer--open {
    display: block;
  }

  .mobile-drawer__panel {
    max-height: calc(100dvh - 122px);
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 0.9rem;
    background:
      radial-gradient(circle at 12% 0, rgba(230, 30, 37, 0.08), transparent 32%),
      var(--surface);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
    padding: 0.74rem;
    scrollbar-width: thin;
  }

  body[data-theme="light"] .mobile-drawer__panel {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  }

  .mobile-drawer__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .mobile-drawer__action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.52rem;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 0.72rem;
    background: var(--surface-2);
    color: var(--text);
    padding: 0 0.72rem;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: left;
  }

  .mobile-drawer__action:hover {
    border-color: rgba(230, 30, 37, 0.4);
    color: var(--red);
  }

  .mobile-drawer__action span:not(.cart-badge) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-drawer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.66rem;
  }

  .mobile-drawer__nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface-2);
    color: var(--text);
    padding: 0 0.62rem;
    font-size: 0.74rem;
    font-weight: 900;
  }

  .mobile-drawer__nav span {
    display: inline-flex;
    align-items: center;
    min-height: 1.05rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    padding: 0 0.34rem;
    font-size: 0.62rem;
  }

  .mobile-drawer__categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.7rem;
  }

  .mobile-drawer__categories h2 {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
  }

  .mobile-drawer__categories a {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    color: var(--text-soft);
    padding: 0 0.62rem;
    font-size: 0.74rem;
    font-weight: 900;
  }

  .mobile-drawer__categories .icon {
    width: 17px;
    height: 17px;
    color: var(--red);
    flex: 0 0 auto;
  }

  .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 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.52rem;
    padding: 0.65rem;
  }

  .customer-proof {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 0.65rem;
  }

  .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,
  .text-link {
    font-size: 0.74rem;
  }

  .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);
    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;
  }

  .category-card__image .icon {
    width: 32px;
    height: 32px;
    padding: 0.38rem;
  }

  .category-card strong {
    font-size: 0.78rem;
  }

  .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 {
    width: 30px;
    height: 30px;
  }

  .product-card__body {
    gap: 0.55rem;
    padding: 0.76rem;
  }

  .product-card__meta {
    font-size: 0.64rem;
  }

  .product-card h3 {
    min-height: 2.45em;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.32;
  }

  .product-card p {
    min-height: 2.55em;
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  .product-card__price {
    gap: 0.32rem;
    margin-top: 0;
  }

  .product-card__price strong {
    font-size: 0.96rem;
  }

  .product-card__price span {
    font-size: 0.6rem;
  }

  .product-card__cta {
    min-height: 36px;
    margin-top: 0.1rem;
    font-size: 0.7rem;
  }

  .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,
  .product-showcase .product-card p {
    min-height: 0;
    -webkit-line-clamp: 1;
  }

  .product-showcase.popular-showcase .product-card p {
    display: -webkit-box;
    min-height: 2.7em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .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: 190px;
  }

  .promo-card > div:not(.deal-symbol) {
    padding: 0.95rem;
  }

  .promo-card h3 {
    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 {
    min-height: 156px;
  }

  .promo-card--local > div:not(.deal-symbol) {
    max-width: 42%;
    padding: 1rem;
  }

  .promo-card--local h3 {
    font-size: 1.32rem;
  }

  .promo-card--local p {
    max-width: 190px;
    font-size: 0.82rem;
    line-height: 1.36;
    -webkit-line-clamp: 3;
  }

  .promo-card--delivery {
    min-height: 156px;
  }

  .promo-card--delivery > div:not(.deal-symbol) {
    max-width: 48%;
    padding: 0.82rem;
  }

  .promo-card--delivery h3 {
    font-size: 1.35rem;
  }

  .promo-card--delivery p {
    max-width: 180px;
    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: 30px;
    margin-top: 0.72rem;
    font-size: 0.7rem;
  }

  .promo-card .button {
    min-height: 36px;
    padding: 0 0.75rem;
    font-size: 0.74rem;
  }

  .deal-symbol {
    top: 0.72rem;
    right: 0.72rem;
    width: 62px;
    height: 62px;
    font-size: 2.15rem;
  }

  .deal-clock {
    max-width: min(100%, 260px);
    padding: 0.48rem;
  }

  .countdown-card {
    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;
  }

  .recruit-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .recruit-card__content {
    min-height: 230px;
    padding: 1rem;
  }

  .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: 1fr;
    gap: 1rem;
    padding: 1rem 0 0.85rem;
  }

  .footer-grid nav {
    display: none;
  }

  .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) {
  .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-card__price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
  }

  .product-card__pricing {
    align-items: center;
  }

  .product-card__actions button:nth-child(n+2) {
    display: none;
  }

  .product-card__price span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .promo-card {
    min-height: 168px;
  }

  .promo-card p {
    max-width: 82%;
    -webkit-line-clamp: 1;
  }

  .promo-card--local {
    min-height: 148px;
  }

  .promo-card--local > div:not(.deal-symbol) {
    max-width: 42%;
    padding: 0.84rem;
  }

  .promo-card--local h3 {
    font-size: 1.18rem;
  }

  .promo-card--local p {
    max-width: 160px;
    font-size: 0.74rem;
    line-height: 1.34;
    -webkit-line-clamp: 3;
  }

  .promo-card--delivery {
    min-height: 148px;
  }

  .promo-card--delivery > div:not(.deal-symbol) {
    max-width: 50%;
    padding: 0.72rem;
  }

  .promo-card--delivery h3 {
    font-size: 1.2rem;
  }

  .promo-card--delivery p {
    max-width: 160px;
    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: 28px;
    margin-top: 0.64rem;
    padding-inline: 0.72rem;
    font-size: 0.66rem;
  }

  .deal-symbol {
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
  }

  .deal-clock {
    max-width: 232px;
  }

  .countdown-card {
    min-height: 48px;
  }

  .seller-ambassador {
    gap: 0.72rem;
  }

  .recruit-card__content {
    min-height: 210px;
  }

  .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);
}

.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);
}

body[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);
}

body[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);
}

body[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);
}

body[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 {
  display: none;
}

.category-results.popular-showcase .product-card h3 {
  min-height: 2.5em;
}

.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: 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: 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));
  }
}

@media (max-width: 980px) {
  .category-layout,
  .category-layout--filters-hidden {
    grid-template-columns: 1fr;
  }

  .category-layout--filters-hidden > .category-filters {
    display: block;
  }

  .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__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(320px, 460px) minmax(0, 1fr);
  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: 460px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.product-gallery__stage {
  position: relative;
  overflow: hidden;
  height: 400px;
  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: center;
  gap: 0.45rem;
  max-width: 210px;
  margin: 0 auto;
}

.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 {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.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 {
  display: flex;
  gap: 0.55rem;
  padding-top: 0.15rem;
}

.product-detail__cta {
  flex: 1;
  min-height: 44px;
  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: 44px;
  min-width: 44px;
  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;
}

.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);
}

.product-detail__panel h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.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__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;
}

.product-grid--related {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .product-detail__layout {
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  }

  .product-detail__gallery-col {
    max-width: 420px;
  }

  .product-gallery__stage {
    height: 360px;
  }

  .product-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .product-listing {
    padding-inline: 0.75rem;
  }

  .product-detail__layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .product-detail__gallery-col {
    max-width: none;
    justify-self: center;
    width: min(100%, 460px);
  }

  .product-detail__panels {
    grid-template-columns: 1fr;
  }

  .product-detail__actions {
    flex-direction: row;
  }

  .product-detail__wishlist {
    width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .product-gallery__stage {
    height: 280px;
  }

  .product-gallery__thumb {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
  }

  .product-gallery__thumbs {
    max-width: 180px;
  }

  .product-detail__spec-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .product-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@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: 30px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.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-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);
}

body[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);
}

body[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);
}

body[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;
}

body[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);
}

body[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: rgba(230, 30, 37, 0.35);
  background: rgba(230, 30, 37, 0.1);
  color: var(--red);
}

.product-card__actions button.is-active svg,
.product-detail__wishlist.is-active svg {
  fill: currentColor;
}

.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;
}

.shop-toast {
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--product-card-bg);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  animation: shopToastIn 220ms ease;
}

.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));
}

.cart-drawer__foot .button {
  width: 100%;
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 0.75rem;
  }
}

/* Account, orders, checkout API integration */
body.account-page {
  background: #ffffff;
}

body.account-page[data-theme="dark"] {
  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: #ffffff;
}

body.account-page[data-theme="dark"] .marketplace-shell {
  background: #000000;
}

.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: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

body.account-page[data-theme="dark"] .account-card {
  background: #0d0d0d;
  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: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.account-page[data-theme="dark"] .account-shortcut {
  background: #111111;
}

.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: #fafafa;
}

body.account-page[data-theme="dark"] .account-details div,
body.account-page[data-theme="dark"] .account-info-item {
  background: #141414;
}

.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: #fafafa;
}

body.account-page[data-theme="dark"] .account-status-item {
  background: #141414;
}

.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: 760px;
  margin: 0 auto;
}

.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;
}
