/* IceGear — design tokens from Figma (1440 / 360) */

:root {
  --color-primary: #0b1f3a;
  --color-primary-mid: #102e50;
  --color-primary-light: #255f88;
  --color-accent: #e63946;
  --color-accent-dark: #c62d3a;
  --color-link: #1f5fbf;
  --color-text: #1b1f27;
  --color-muted: #6b7280;
  --color-brand-muted: #7b8491;
  --color-border: #e2e8f0;
  --color-surface: #f5f7fa;
  --color-white: #ffffff;
  --color-ice: #bfe0f5;
  --color-footer-muted: #b9c8dc;
  --color-category-bg: #e8f3fc;
  --color-badge-hit-bg: #fff0f1;
  --color-badge-new-bg: #fff0e5;
  --color-badge-new-text: #8a3b00;
  --color-overlay-white-05: rgba(255, 255, 255, 0.05);
  --color-overlay-white-25: rgba(255, 255, 255, 0.25);
  --color-footer-border: rgba(185, 200, 220, 0.15);
  --color-footer-btn-border: rgba(185, 200, 220, 0.38);

  --font-inter: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-montserrat: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs: 10px;
  --text-2xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 15px;
  --text-xl: 16px;
  --text-2xl: 17px;
  --text-3xl: 21px;
  --text-4xl: 24px;
  --text-5xl: 30px;
  --text-6xl: 31px;
  --text-hero: 44px;
  --text-hero-mobile: 34px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 28px;
  --space-9: 32px;
  --space-10: 36px;
  --space-11: 40px;
  --space-12: 48px;
  --space-13: 64px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 100px;

  --shadow-card: 0 3px 18px 0 rgba(11, 31, 58, 0.04);

  --container-max: 1440px;
  --container-pad: 16px;
  --header-main-h: 72px;
  --header-top-h: 32px;
  --transition: 0.2s ease;

  --gradient-hero: linear-gradient(
    90deg,
    #0b1f3a 0%,
    #102e50 58%,
    #255f88 100%
  );
  --gradient-promo: linear-gradient(
    90deg,
    rgb(172, 36, 57) 0%,
    rgb(142, 43, 75) 40%,
    rgb(36, 58, 100) 72%,
    #0b1f3a 100%
  );
}

@media (min-width: 576px) {
  :root {
    --container-pad: 24px;
  }
}

@media (min-width: 992px) {
  :root {
    --container-pad: 64px;
    --header-main-h: 92px;
    --header-top-h: 36px;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-inter);
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

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

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

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-9);
}

.section--surface {
  background: var(--color-surface);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.section__head-main {
  flex: 1 1 200px;
}

.section__title {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section__subtitle {
  font-size: var(--text-md);
  color: var(--color-muted);
}

.section__link {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-link);
  white-space: nowrap;
  transition: opacity var(--transition);
}

.section__link:hover,
.section__link:focus-visible {
  opacity: 0.85;
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .section {
    padding-block: 42px;
  }

  .section__title {
    font-size: var(--text-5xl);
  }

  .section__subtitle {
    font-size: var(--text-lg);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), opacity var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.btn--primary {
  height: 52px;
  padding-inline: 26px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-lg);
}

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

.btn--outline {
  height: 44px;
  width: 100%;
  border: 1px solid var(--color-link);
  color: var(--color-link);
  font-size: var(--text-base);
  background: var(--color-white);
}

.btn--outline:hover {
  background: rgba(31, 95, 191, 0.06);
}

.btn--white {
  height: 44px;
  padding-inline: var(--space-6);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: var(--text-base);
}

.btn--white:hover {
  background: #f0f4f8;
}

.btn--ghost-light {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-overlay-white-25);
  border-radius: var(--radius-md);
  color: var(--color-white);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.btn--icon:hover {
  border-color: var(--color-link);
}

.btn--icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn__icon {
  width: 20px;
  height: 20px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1;
}

.badge--hit {
  background: var(--color-badge-hit-bg);
  color: var(--color-accent-dark);
}

.badge--new {
  background: var(--color-badge-new-bg);
  color: var(--color-badge-new-text);
}

.badge--sale { background: var(--color-accent); color: var(--color-white); }

/* Product card */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  flex: 0 0 calc(50% - 6px);
  scroll-snap-align: start;
}

.product-card__media {
  position: relative;
  height: 198px;
  background: var(--color-white);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 8px;
}

.product-card__favorite {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 50%;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.96) !important;
  color: var(--color-primary);
  transition: background var(--transition);
}

.product-card__favorite:hover {
  background: rgba(11, 31, 58, 0.04);
}

.product-card__favorite img {
  display: none;
}

.product-card__favorite:disabled { cursor: wait; opacity: .65; }

.product-card__favorite::before {
  width: 21px;
  height: 21px;
  content: "";
  background-color: var(--color-primary);
  -webkit-mask: url("../images/icons/heart.svg") center / contain no-repeat;
  mask: url("../images/icons/heart.svg") center / contain no-repeat;
  transition: background-color var(--transition);
}

.product-card__favorite--active::before {
  background-color: var(--color-accent-dark);
}

.product-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-card__brand {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
}

.product-card__name {
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__rating {
  display: flex;
  gap: 5px;
  font-size: var(--text-sm);
}

.product-card__rating strong {
  font-weight: 600;
  color: var(--color-primary);
}

.product-card__rating span {
  color: var(--color-muted);
}

.product-card__price {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
}

.product-card__old-price { margin-top:-10px; color:var(--color-muted); font-size:var(--text-sm); }
.product-card__sale-note { color:var(--color-accent-dark); font-weight:700; }

/* Product cards: clearer information hierarchy and a consistent action area. */
.product-card { display:flex; flex-direction:column; height:100%; }
.product-card__media { flex:none; height:260px; background:var(--color-surface); }
.product-card__image-link { display:block; width:100%; height:100%; }
.product-card__media img { object-fit:contain; padding:18px; mix-blend-mode:multiply; transition:transform .25s ease; }
.product-card:hover .product-card__media img { transform:scale(1.035); }
.product-card__body { flex:1; gap:10px; padding:18px; }
.product-card__eyebrow { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:22px; }
.product-card__eyebrow .product-card__brand { margin:0; color:var(--color-muted); font-size:var(--text-2xs); font-weight:800; letter-spacing:.08em; }
.product-card__category { padding:4px 8px; border-radius:999px; background:var(--color-surface); color:var(--color-muted); font-size:11px; font-weight:600; white-space:nowrap; }
.product-card__name { min-height:44px; font-weight:700; }
.product-card__description { display:-webkit-box; min-height:40px; margin:0; overflow:hidden; color:var(--color-muted); font-size:var(--text-xs); line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.product-card__purchase { margin-top:auto; padding-top:12px; border-top:1px solid var(--color-border); }
.product-card__price-line { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; min-height:37px; margin-bottom:10px; }
.catalog-grid .product-card__price,.favorites-grid .product-card__price,.promotion-products .product-card__price { margin:0; font-size:clamp(21px,2vw,28px); line-height:1.15; }
.product-card__price-line .product-card__old-price { margin:0; font-size:var(--text-xs); }
.product-card__purchase .btn { width:100%; min-height:46px; }
.product-card__name:hover { color:var(--color-link); }

@media (min-width: 992px) {
  .product-card {
    flex: 0 0 calc(25% - 15px);
  }

  .product-card__media {
    height: 280px;
  }

  .product-card__badge {
    top: 16px;
    left: 16px;
  }

  .product-card__body {
    padding: 18px;
    gap: 10px;
  }

  .product-card__brand {
    font-size: var(--text-2xs);
  }

  .product-card__name {
    font-size: var(--text-lg);
    min-height: 44px;
  }
}

/* Carousel */
.carousel__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 992px) {
  .carousel__track {
    gap: var(--space-6);
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
}

.header__top {
  background: var(--color-primary);
  color: var(--color-white);
  min-height: var(--header-top-h);
  display: flex;
  align-items: center;
}

.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.header__delivery {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header__delivery-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header__delivery-icon--mobile {
  display: none;
}

.header__contacts {
  display: none;
  gap: var(--space-7);
  align-items: center;
}

.header__phone {
  font-weight: 600;
}

.header__hours {
  color: var(--color-footer-muted);
}

.header__main {
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-main-h);
  display: flex;
  align-items: center;
}

.header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-5);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 32px;
  height: 34px;
  object-fit: contain;
}
.header__logo-icon--dark { display:none; }

.header__logo-text {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-style: normal;
  font-size: var(--text-4xl);
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -.055em;
}
.header__logo-text span+span { color:#e63946; }

.header__tagline {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 3px;
}

.header__search {
  display: none;
  flex: 1;
  max-width: 702px;
  height: 48px;
  align-items: center;
  gap: var(--space-4);
  padding-inline: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.header__search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.header__search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--text-md);
  color: var(--color-text);
  min-width: 0;
}

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

.header__search-input:focus {
  outline: none;
}

.header__search-hint {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.header__actions--desktop {
  display: none;
  gap: var(--space-4);
}

.header__action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 82px;
  height: 55px;
  font-size: var(--text-sm);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.header__action:hover,
.header__action:focus-visible {
  background: var(--color-surface);
  outline: none;
}

.header__action-icon {
  width: 23px;
  height: 23px;
}

.header__cart-count {
  position: absolute;
  top: 0;
  right: 12px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__actions--mobile {
  display: flex;
  align-items: center;
}

.header__icon-btn {
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-md);
  color: var(--color-primary);
  transition: color var(--transition), background var(--transition);
}

.header__icon-btn:hover,
.header__icon-btn:focus-visible { background:var(--color-surface); outline:none; }
.header__icon-btn img { display:block; width:23px; height:23px; }
.header__menu-icon { width:25px!important; height:25px!important; }

.header__icon-btn:hover,
.header__icon-btn:focus-visible {
  background: var(--color-surface);
  outline: none;
}

.header__icon-btn img {
  width: 23px;
  height: 23px;
}

.header__nav {
  display: none;
  border-bottom: 1px solid var(--color-border);
}

.header__nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-primary);
}

.header__nav-link {
  padding-block: var(--space-4);
  transition: color var(--transition);
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
  color: var(--color-link);
  outline: none;
}

.header__nav-link--accent {
  color: var(--color-accent-dark);
}

.header__mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.header__mobile-menu--open {
  visibility: visible;
  pointer-events: auto;
}

.header__mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.5);
  opacity: 0;
  transition: opacity var(--transition);
}

.header__mobile-menu--open .header__mobile-overlay {
  opacity: 1;
}

.header__mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 100%);
  height: 100%;
  background: var(--color-white);
  padding: var(--space-9) var(--space-7);
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.header__mobile-menu--open .header__mobile-panel {
  transform: translateX(0);
}

.header__mobile-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: var(--color-primary);
}

.header__mobile-nav {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.header__mobile-nav a {
  display: block;
  padding: var(--space-4);
  font-weight: 600;
  color: var(--color-primary);
  border-radius: var(--radius-md);
}

.header__mobile-nav a:hover,
.header__mobile-nav a:focus-visible {
  background: var(--color-surface);
  outline: none;
}

@media (min-width: 992px) {
  .header__delivery-icon--mobile {
    display: block;
  }

  .header__logo-icon { width:38px; height:40px; }

  .header__logo-text {
    font-size: var(--text-6xl);
  }

  .header__tagline {
    display: block;
  }

  .header__logo-wrap {
    width: 212px;
  }

  .header__contacts {
    display: flex;
  }

  .header__top-inner {
    font-size: var(--text-sm);
  }

  .header__search {
    display: flex;
  }

  .header__actions--desktop {
    display: flex;
  }

  .header__actions--mobile {
    display: none;
  }

  .header__nav {
    display: block;
  }

  .header__main-inner {
    gap: var(--space-13);
  }
}

/* Hero */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: var(--color-white);
  overflow: hidden;
  min-height: 572px;
  padding: var(--space-9) var(--container-pad) 80px;
}

.hero__slides {
  position: relative;
  min-height: 420px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.hero__slide--active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero__season {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--color-ice);
  text-transform: uppercase;
}

.hero__season-mark {
  width: 22px;
  height: 2px;
  background: var(--color-ice);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: var(--text-hero-mobile);
  line-height: 1.12;
  max-width: 312px;
}

.hero__text {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-ice);
  max-width: 312px;
}

.hero__decor {
  pointer-events: none;
  position: absolute;
  user-select: none;
}

.hero__decor--ice {
  width: 280px;
  right: -40px;
  top: 180px;
  opacity: 0.7;
}

.hero__decor--stick {
  width: 260px;
  right: -20px;
  top: 220px;
}

.hero__decor--watermark {
  display: none;
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-style: italic;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.03);
  right: 80px;
  top: 40px;
}

.hero__product-note {
  display: none;
  position: absolute;
  right: var(--container-pad);
  bottom: 120px;
  max-width: 166px;
}

.hero__product-brand {
  font-size: var(--text-2xs);
  color: var(--color-ice);
  margin-bottom: 7px;
}

.hero__product-name {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: var(--text-3xl);
  margin-bottom: 7px;
}

.hero__product-tagline {
  font-size: var(--text-sm);
  color: var(--color-ice);
  line-height: 1.5;
}

.hero__controls {
  position: absolute;
  left: var(--container-pad);
  right: var(--container-pad);
  bottom: var(--space-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(191, 224, 245, 0.45);
  padding: 0;
}

.hero__dot--active {
  width: 28px;
  border-radius: 2px;
  background: var(--color-white);
}

.hero__counter {
  font-size: var(--text-xs);
  color: var(--color-ice);
  margin-left: 4px;
}

.hero__arrows {
  display: flex;
  gap: var(--space-2);
}

@media (min-width: 992px) {
  .hero {
    min-height: 480px;
    padding: 58px var(--container-pad) 28px;
  }

  .hero__slides {
    min-height: 340px;
  }

  .hero__title {
    font-size: var(--text-hero);
    max-width: 560px;
  }

  .hero__text {
    font-size: var(--text-xl);
    max-width: 430px;
  }

  .hero__decor--ice {
    width: 700px;
    right: 60px;
    top: -20px;
  }

  .hero__decor--watermark {
    display: block;
    font-size: 122px;
    right: 200px;
    top: 50px;
  }

  .hero__product-note {
    display: block;
    right: 100px;
    bottom: 100px;
  }

  .hero__controls {
    bottom: 24px;
    left: 100px;
    right: 64px;
  }
}

/* Categories */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2) var(--space-2);
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-radius: var(--radius-md);
  transition: transform var(--transition);
}

.category-tile:hover,
.category-tile:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.category-tile__icon-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-height: 76px;
  background: var(--color-category-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-tile__icon {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.category-tile__icon.category-tile__icon--photo {
  width: 82%;
  height: 82%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.category-tile__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.category-tile__count {
  font-size: var(--text-2xs);
  color: var(--color-muted);
}

@media (min-width: 576px) {
  .categories__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }

  .category-tile__icon-wrap {
    max-height: 120px;
    border-radius: var(--radius-lg);
  }

  .category-tile__icon {
    width: 50px;
    height: 50px;
  }

  .category-tile__name {
    font-size: var(--text-md);
  }
}

@media (min-width: 992px) {
  .categories__grid {
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-5);
  }

  .category-tile__icon-wrap {
    height: 150px;
    max-height: none;
  }

  .category-tile__icon {
    width: 66px;
    height: 66px;
  }

  .category-tile__count {
    font-size: var(--text-2xs);
  }
}

/* Promo */
.promo {
  padding-block: var(--space-9);
}

.promo__banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gradient-promo);
  color: var(--color-white);
  padding: var(--space-7);
  min-height: 320px;
}

.promo__decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

.promo__decor--diag {
  width: 360px;
  right: -40px;
  top: -30px;
}

.promo__decor--tracks {
  width: 400px;
  right: -60px;
  bottom: 0;
}

.promo__label {
  font-size: var(--text-2xs);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.promo__title {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.promo__text {
  font-size: var(--text-md);
  line-height: 1.5;
  margin-bottom: var(--space-5);
  max-width: 620px;
}

.promo__discount {
  position: absolute;
  right: var(--space-7);
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.promo__discount-value {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
}

.promo__discount-note {
  font-size: var(--text-base);
  color: var(--color-ice);
  margin-top: var(--space-2);
}

@media (min-width: 992px) {
  .promo__banner {
    min-height: 280px;
    padding: var(--space-11);
  }

  .promo__title {
    font-size: 32px;
  }

  .promo__text {
    font-size: var(--text-lg);
  }

  .promo__decor--diag {
    width: 560px;
    right: 80px;
    top: -50px;
  }

  .promo__decor--tracks {
    width: 660px;
    right: 40px;
    top: 50px;
  }

  .promo__discount {
    right: 120px;
    transform: none;
    top: 45px;
  }

  .promo__discount-value {
    font-size: 100px;
  }
}

@media (max-width: 575px) {
  .promo__discount {
    position: static;
    transform: none;
    text-align: left;
    margin-top: var(--space-5);
  }

  .promo__discount-value {
    font-size: 48px;
  }
}

/* Brands */
.brands {
  padding: var(--space-9) var(--container-pad) var(--space-10);
}

.brands__heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.brands__eyebrow,.cabinet-eyebrow,.info-hero__eyebrow { color:var(--color-primary-light); font-size:var(--text-2xs); font-weight:800; letter-spacing:.13em; margin-bottom:8px; }
.brands__label { margin:0; color:var(--color-primary); font-size:clamp(21px,2.4vw,30px); font-weight:800; letter-spacing:-.03em; }
.brands__list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.brands__list li { min-width:0; }
.brand-mark { min-height:94px; padding:16px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#f3f6fa; display:flex; align-items:center; justify-content:center; transition:transform var(--transition),box-shadow var(--transition),border-color var(--transition); }
.brand-mark:hover { transform:translateY(-3px); border-color:#c8d6e4; box-shadow:var(--shadow-card); }
.brand-mark img { display:block; width:min(100%,220px); height:58px; object-fit:contain; }

@media (min-width: 992px) {
  .brands__list {
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:14px;
  }
}

@media (max-width: 575px) { .brands__heading { align-items:start; flex-direction:column; } .brands__list { grid-template-columns:repeat(2,minmax(0,1fr)); } .brand-mark { min-height:78px; padding:10px; } }

/* Advantages */
.advantages {
  background: var(--color-surface);
  padding: var(--space-9) var(--container-pad);
}

.advantages__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.advantage {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.advantage__icon {
  width: 30px;
  height: 30px;
}

.advantage__title {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-primary);
}

.advantage__text {
  font-size: var(--text-md);
  color: var(--color-muted);
  line-height: 1.5;
}

@media (min-width: 576px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .advantages__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-11);
  }
}

/* Guides */
.guides__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

.guide-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.guide-card__image {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.guide-card__body {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.guide-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-2xs);
}

.guide-card__tag {
  font-weight: 600;
  color: var(--color-link);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.guide-card__time {
  color: var(--color-muted);
}

.guide-card__title {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--color-primary);
}

.guide-card__excerpt {
  font-size: var(--text-md);
  color: var(--color-muted);
  line-height: 1.5;
}

.guide-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-link);
}

.guide-card__link:hover,
.guide-card__link:focus-visible {
  opacity: 0.85;
  outline: none;
}

.guide-card__footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--text-sm);
  color: var(--color-link);
}

.guide-card__footer img {
  width: 16px;
  height: 16px;
}

@media (min-width: 576px) {
  .guides__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .guides__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
  }

  .guide-card__image {
    height: 218px;
  }

  .guide-card__title {
    font-size: var(--text-3xl);
  }
}

/* Footer */
.footer {
  position: relative;
  background: #0c1420;
  color: #f4f7fb;
  padding: var(--space-9) var(--container-pad) var(--space-8);
  overflow: hidden;
}

.footer__texture {
  position: absolute;
  width: 520px;
  height: 550px;
  top: -30px;
  right: -120px;
  opacity: 0.35;
  pointer-events: none;
}

.footer__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-9);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer__logo-icon {
  width: 26px;
  height: 30px;
}

.footer__logo-text {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-style: normal;
  font-size: var(--text-4xl);
  letter-spacing:-.055em;
}
.footer__logo-text span+span { color:#ff5966; }

.footer__tagline {
  display: none;
  font-size: var(--text-base);
  color: var(--color-footer-muted);
  margin-top: var(--space-2);
}

.footer__top-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--color-footer-btn-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-white);
  transition: background var(--transition);
}

.footer__top-btn:hover,
.footer__top-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.footer__top-btn img {
  width: 17px;
  height: 17px;
}

/* High-contrast light back-to-top control, including when the site uses dark mode. */
.footer__top-btn { color:#101820; background:#f3f6fa; border-color:#d5dde7; }
.footer__top-btn:hover { color:#000; background:#fff; border-color:#fff; }
.footer__top-btn img { filter:brightness(0); }

.footer__nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8) var(--space-6);
  margin-bottom: var(--space-9);
}

.footer__col-title {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: var(--text-md);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
}

.footer__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
  line-height: 1.4;
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--color-white);
  outline: none;
}

.footer__contacts-block .footer__phone {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer__contacts-block p {
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.footer__social-row {
  position: relative;
  border-top: 1px solid var(--color-footer-border);
  padding-top: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
}

.footer__social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-overlay-white-05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-md);
  transition: background var(--transition);
}

.footer__social-btn:hover,
.footer__social-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.footer__social-btn img {
  width: 19px;
  height: 19px;
}

.footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer__payment-note { margin:0; color:var(--color-footer-muted); font-size:var(--text-2xs); }

.footer__pay {
  height: 29px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-overlay-white-05);
  display: flex;
  align-items: center;
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--color-footer-muted);
}

.footer__pay--mc {
  font-size: 9px;
}

.footer__legal {
  position: relative;
  font-size: var(--text-2xs);
  color: var(--color-footer-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__legal-links {
  display: flex;
  flex-direction: column;
}

.footer__legal-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--transition);
}

.footer__legal-links a:hover,
.footer__legal-links a:focus-visible {
  color: var(--color-white);
  outline: none;
}

@media (min-width: 992px) {
  .footer {
    padding-top: 44px;
  }

  .footer__texture {
    right: auto;
    left: 920px;
    opacity: 1;
  }

  .footer__logo-icon {
    width: 34px;
    height: 38px;
  }

  .footer__logo-text {
    font-size: var(--text-6xl);
  }

  .footer__tagline {
    display: block;
  }

  .footer__top-btn {
    padding-inline: 18px;
  }

  .footer__nav {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-13);
  }

  .footer__col-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
  }

  .footer__links a {
    min-height: 20px;
    margin-bottom: 14px;
    font-size: var(--text-md);
  }

  .footer__contacts-block .footer__phone {
    font-size: var(--text-5xl);
  }

  .footer__contacts-block p {
    font-size: var(--text-md);
  }

  .footer__social-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__legal-links {
    flex-direction: row;
    gap: var(--space-9);
  }

  .footer__legal-links a {
    min-height: auto;
  }
}

/* Functional PHP store elements */
.shop-notice {
  position: fixed;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.2);
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 150;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}
.header__search { position: relative; }
.search-suggestion {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  color: var(--color-text);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
button.search-suggestion:hover { background: var(--color-surface); }
.search-suggestion span { color: var(--color-muted); white-space: nowrap; }
.favorite-row { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
#cart-panel[hidden] { display: none; }
.header__dropdown-wrap { position: relative; }
.header__dropdown-toggle { color: var(--color-primary); font: inherit; }
.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}
.header__dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); }
.header__dropdown a:hover, .header__dropdown a:focus-visible { background: var(--color-surface); color: var(--color-link); }
.header__dropdown[hidden] { display: none; }
@media (max-width: 991px) {
  .header__search.header__search--mobile-open {
    display: flex;
    position: absolute;
    z-index: 150;
    top: calc(100% + 4px);
    left: var(--container-pad);
    right: var(--container-pad);
    width: auto;
    max-width: none;
  }
}
.product-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(88vh, 680px);
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  color: var(--color-text);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}
.product-dialog::backdrop { background: rgba(11, 31, 58, 0.5); }
.product-dialog form { display: grid; gap: 16px; }
.product-dialog #product-dialog-title { margin: 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; }
.product-dialog #product-dialog-name { margin: -5px 0 2px; color: var(--color-muted); font-size: var(--text-md); }
.product-dialog label { display: grid; gap: 7px; color: var(--color-primary); font-size: var(--text-sm); font-weight: 700; }
.product-dialog select, .quantity-picker input {
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
}
.product-dialog select { width: 100%; }
.quantity-picker { display: grid; grid-template-columns: minmax(0,1fr) 48px 64px 48px; align-items: center; gap: 8px; }
.quantity-picker span { color: var(--color-primary); font-size: var(--text-sm); font-weight: 700; }
.quantity-picker .btn { min-width: 0; width: 48px; height: 48px; padding: 0; }
.quantity-picker input { width: 64px; min-height: 48px; padding-inline: 4px; text-align: center; font-weight: 700; }
.quantity-picker input::-webkit-inner-spin-button, .quantity-picker input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-picker input { appearance: textfield; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.dialog-actions .btn { min-width: 0; min-height: 48px; padding: 10px 14px; white-space: normal; line-height: 1.25; }
@media (max-width: 640px) {
  .product-dialog { width: calc(100vw - 24px); max-height: 90vh; max-height: 90dvh; padding: 18px; }
  .product-dialog form { gap: 12px; }
  .product-dialog #product-dialog-title { font-size: clamp(23px, 6vw, 30px); }
  .product-dialog #product-dialog-name { font-size: var(--text-sm); }
  .product-dialog label { gap: 5px; }
  .product-dialog select { min-height: 44px; }
  .quantity-picker { grid-template-columns: minmax(0,1fr) 42px 56px 42px; gap: 6px; }
  .quantity-picker .btn { width:42px; height:44px; }
  .quantity-picker input { width:56px; min-height:44px; }
  .dialog-actions { grid-template-columns: minmax(0,1fr); gap: 8px; margin-top: 0; }
  .dialog-actions .btn { width:100%; min-height:48px; height:auto; overflow:visible; padding:12px 14px; white-space:normal; overflow-wrap:anywhere; }
}
.product-card[hidden] { display: none; }

/* Shopping cart */
.cart-page { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(52px, 8vw, 100px); }
.cart-page__heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:28px; }
.cart-page__eyebrow { margin:0 0 8px; color:var(--color-muted); font-size:var(--text-2xs); font-weight:700; letter-spacing:.12em; }
.cart-page__heading .section__title { margin:0; }
.cart-page__count { padding:8px 13px; border-radius:999px; background:var(--color-surface); color:var(--color-muted); font-size:var(--text-sm); white-space:nowrap; }
.cart-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,360px); align-items:start; gap:28px; }
.cart-main { min-width:0; }
.cart-items { overflow:hidden; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:var(--color-white); box-shadow:var(--shadow-card); }
.cart-item { display:grid; grid-template-columns:116px minmax(0,1fr) auto auto; align-items:center; gap:20px; padding:20px; border-bottom:1px solid var(--color-border); }
.cart-item:last-child { border-bottom:0; }
.cart-item__image { display:flex; align-items:center; justify-content:center; width:116px; height:116px; overflow:hidden; border-radius:var(--radius-md); background:var(--color-surface); }
.cart-item__image img { width:100%; height:100%; object-fit:cover; }
.cart-item__details { min-width:0; }
.cart-item__brand { margin:0 0 5px; color:var(--color-muted); font-size:var(--text-2xs); font-weight:700; letter-spacing:.08em; }
.cart-item__name { display:block; color:var(--color-text); font-size:var(--text-md); font-weight:600; line-height:1.4; }
.cart-item__options { min-height:18px; margin:7px 0 11px; color:var(--color-muted); font-size:var(--text-sm); }
.cart-item__unit-price { margin:0; color:var(--color-text); font-weight:600; }
.cart-item__unit-price span { color:var(--color-muted); font-size:var(--text-sm); font-weight:400; }
.cart-item__actions { display:flex; flex-direction:column; align-items:center; gap:9px; }
.cart-stepper { display:flex; align-items:center; height:40px; border:1px solid var(--color-border); border-radius:var(--radius-md); background:var(--color-white); }
.cart-stepper button { width:38px; height:38px; color:var(--color-primary); font-size:20px; }
.cart-stepper span { min-width:25px; text-align:center; font-weight:600; }
.cart-item__remove { padding:3px 6px; color:var(--color-muted); font-size:var(--text-sm); text-decoration:underline; text-underline-offset:3px; }
.cart-item__remove:hover { color:var(--color-accent-dark); }
.cart-item__total { align-self:start; padding-top:5px; color:var(--color-primary); font-size:var(--text-md); white-space:nowrap; }
.cart-continue { display:inline-block; margin-top:18px; color:var(--color-link); font-weight:600; }
.cart-summary { position:sticky; top:20px; padding:24px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:var(--color-white); box-shadow:var(--shadow-card); }
.cart-summary h2 { margin:0 0 20px; color:var(--color-primary); font-size:var(--text-xl); }
.cart-summary__line { display:flex; justify-content:space-between; gap:14px; margin:13px 0; color:var(--color-muted); font-size:var(--text-sm); }
.cart-summary__delivery { max-width:170px; color:var(--color-text); text-align:right; }
.cart-summary__delivery-note { margin:-4px 0 15px; color:var(--color-muted); font-size:var(--text-2xs); line-height:1.5; }
.cart-promo { display:grid; gap:7px; margin:0 0 18px; color:var(--color-text); font-size:var(--text-sm); font-weight:600; }
.cart-promo>div { display:flex; gap:8px; }
.cart-promo input { min-width:0; width:100%; min-height:43px; padding:9px 11px; border:1px solid var(--color-border); border-radius:var(--radius-md); font:inherit; }
.cart-promo .btn { min-height:43px; padding:8px 12px; white-space:nowrap; }
.cart-promo-applied { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:-7px 0 16px; color:var(--color-muted); font-size:var(--text-sm); }
.cart-promo-applied button { color:var(--color-link); text-decoration:underline; }
.cart-promo-discount[hidden],.cart-promo-applied[hidden] { display:none; }
.cart-summary__total { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:20px 0; padding-top:17px; border-top:1px solid var(--color-border); color:var(--color-primary); font-weight:700; }
.cart-summary__total strong { font-size:var(--text-2xl); white-space:nowrap; }
.cart-summary__signin { color:var(--color-muted); font-size:var(--text-sm); line-height:1.55; }
.cart-summary__button { width:100%; min-height:50px; }
.cart-summary__note { display:flex; align-items:center; justify-content:center; gap:8px; margin:17px 0 0; color:var(--color-muted); font-size:var(--text-2xs); }
.cart-summary__note img { width:17px; height:17px; }
.cart-checkout { display:grid; gap:12px; }
.cart-checkout h3 { margin:2px 0 0; color:var(--color-primary); font-size:var(--text-md); }
.cart-checkout label { display:grid; gap:6px; color:var(--color-text); font-size:var(--text-sm); font-weight:600; }
.cart-checkout input { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--color-border); border-radius:var(--radius-md); background:var(--color-white); color:var(--color-text); font:inherit; }
.cart-form__error { padding:10px 12px; border-radius:var(--radius-sm); background:var(--color-badge-hit-bg); color:var(--color-accent-dark); font-size:var(--text-sm); }
.cart-empty { max-width:620px; margin:32px auto; padding:48px 28px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:var(--color-white); box-shadow:var(--shadow-card); text-align:center; }
.cart-empty[hidden] { display:none; }
.cart-empty__icon { display:grid; place-items:center; width:72px; height:72px; margin:0 auto 20px; border-radius:50%; background:var(--color-surface); }
.cart-empty__icon img { width:32px; height:32px; }
.cart-empty h2 { margin:0 0 9px; color:var(--color-primary); font-size:var(--text-xl); }
.cart-empty p { max-width:420px; margin:0 auto 23px; color:var(--color-muted); line-height:1.6; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns:minmax(0,1fr) 300px; gap:16px; }
  .cart-item { grid-template-columns:86px minmax(0,1fr) auto; gap:14px; padding:15px; }
  .cart-item__image { width:86px; height:86px; }
  .cart-item__total { grid-column:2; grid-row:2; padding-top:0; }
  .cart-item__actions { grid-column:3; grid-row:1 / span 2; }
}
@media (max-width: 680px) {
  .cart-page__heading { align-items:center; margin-bottom:20px; }
  .cart-layout { grid-template-columns:1fr; }
  .cart-summary { position:static; }
  .cart-item { grid-template-columns:76px minmax(0,1fr) auto; gap:11px; padding:12px; }
  .cart-item__image { width:76px; height:76px; }
  .cart-item__name { font-size:var(--text-sm); }
  .cart-item__options { font-size:var(--text-2xs); }
  .cart-item__unit-price { font-size:var(--text-sm); }
  .cart-item__total { font-size:var(--text-sm); }
  .cart-stepper button { width:30px; height:34px; }
  .cart-stepper { height:36px; }
  .cart-stepper span { min-width:21px; }
  .cart-empty { margin:12px auto; padding:35px 20px; }
}
.product-dialog label[hidden] { display:none; }

/* Editorial pages and sizing tables */
.info-breadcrumbs { display:flex; align-items:center; gap:9px; margin-bottom:26px; color:var(--color-muted); font-size:var(--text-sm); }
.info-breadcrumbs a { color:var(--color-link); }
.info-hero { margin-bottom:30px; padding:32px clamp(20px,4vw,52px); border-radius:var(--radius-lg); background:linear-gradient(115deg,#f0f6fb,#f8fafc 58%,#e7f1f8); }
.info-hero .section__title { margin-bottom:8px; color:var(--color-primary); }
.info-hero .section__subtitle { max-width:700px; }
.size-guides { display:grid; gap:18px; }
.size-guide,.guide-article,.info-copy { padding:clamp(20px,3vw,34px); border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-card); }
.size-guide__head { display:flex; align-items:flex-start; gap:16px; margin-bottom:22px; }
.size-guide__number { display:grid; flex:0 0 42px; place-items:center; width:42px; height:42px; border-radius:50%; background:#e8f3fc; color:var(--color-primary-light); font-weight:800; }
.size-guide__head h2,.guide-article h2 { margin:0 0 7px; color:var(--color-primary); font-size:21px; }
.size-guide__head p,.size-guide__note,.guide-article p,.guide-article li,.info-copy p { color:var(--color-muted); line-height:1.75; }
.table-scroll { overflow-x:auto; }
.size-table { width:100%; border-collapse:collapse; min-width:570px; font-size:var(--text-md); }
.size-table th { padding:13px 15px; background:var(--color-primary); color:#fff; text-align:left; font-size:var(--text-sm); }
.size-table th:first-child { border-radius:7px 0 0 0; }
.size-table th:last-child { border-radius:0 7px 0 0; }
.size-table td { padding:13px 15px; border-bottom:1px solid var(--color-border); }
.size-table tbody tr:nth-child(even) { background:#f7f9fb; }
.size-table td:first-child { color:var(--color-primary); font-weight:700; }
.size-guide__note { margin-top:14px; font-size:var(--text-sm); }
.info-source { margin-top:22px; color:var(--color-muted); font-size:var(--text-sm); line-height:1.8; }
.info-source a { color:var(--color-link); text-decoration:underline; }
.guide-article { max-width:900px; }
.guide-article__lead { margin-bottom:22px; color:var(--color-primary)!important; font-size:18px; font-weight:600; }
.guide-article h2 { margin-top:24px; }
.guide-article p,.guide-article li { margin-bottom:12px; }
.guide-article ol { padding-left:22px; list-style:decimal; }
.guide-article .btn { margin-top:16px; }
.brand-directory { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.brand-directory a { display:flex; flex-direction:column; gap:7px; padding:22px; border:1px solid var(--color-border); border-radius:var(--radius-lg); color:var(--color-primary); font-family:var(--font-montserrat); font-size:21px; font-weight:800; }
.brand-directory a:hover { border-color:var(--color-primary-light); box-shadow:var(--shadow-card); }
.brand-directory span { color:var(--color-muted); font-family:var(--font-inter); font-size:var(--text-sm); font-weight:400; }
.info-copy { max-width:800px; }
.info-copy .btn { margin-top:20px; }

/* Account pages */
.cabinet-page { min-height:65vh; background:linear-gradient(180deg,#f7f9fb 0,#fff 70%); }
.cabinet-hero { position:relative; overflow:hidden; margin:0 auto 22px; padding:clamp(28px,5vw,56px); border-radius:14px; background:var(--gradient-hero); color:#fff; }
.cabinet-hero::after { content:""; position:absolute; top:-100px; right:-35px; width:360px; height:360px; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 35px rgba(255,255,255,.035),0 0 0 75px rgba(255,255,255,.025); }
.cabinet-hero h1 { position:relative; z-index:1; margin:0 0 13px; font-family:var(--font-montserrat); font-size:clamp(34px,5vw,54px); line-height:1.1; letter-spacing:-.04em; }
.cabinet-hero h1 span { color:#bfe0f5; }
.cabinet-hero>p:not(.cabinet-eyebrow) { position:relative; z-index:1; max-width:560px; color:#d8e5f2; line-height:1.7; }
.cabinet-hero .cabinet-eyebrow { color:#bfe0f5; }
.cabinet-hero__benefits { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:12px 25px; margin-top:23px; color:#fff; font-size:var(--text-sm); }
.cabinet-auth-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:stretch; }
.cabinet-form,.cabinet-panel { padding:clamp(20px,3vw,32px); border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-card); }
.cabinet-form { display:flex; flex-direction:column; gap:14px; }
.cabinet-form__icon { display:grid; place-items:center; width:42px; height:42px; margin-bottom:2px; border-radius:50%; background:#e8f3fc; color:var(--color-primary); font-size:21px; font-weight:700; }
.cabinet-form h2,.cabinet-panel h2 { color:var(--color-primary); font-size:23px; }
.cabinet-form__intro { margin-top:-10px; color:var(--color-muted); font-size:var(--text-sm); }
.cabinet-form label { display:grid; gap:7px; color:var(--color-primary); font-size:var(--text-sm); font-weight:600; }
.cabinet-form input { width:100%; min-height:45px; padding:11px 13px; border:1px solid var(--color-border); border-radius:var(--radius-md); background:#fff; color:var(--color-text); font:inherit; }
.cabinet-form input:focus { outline:2px solid #bfe0f5; border-color:var(--color-primary-light); }
.cabinet-form .btn { display:flex; justify-content:space-between; align-items:center; min-height:47px; margin-top:auto; padding-inline:16px; }
.cabinet-form--register { background:#fbfcfd; }
.cabinet-error,.cabinet-success { margin-bottom:18px; padding:14px 18px; border-radius:var(--radius-md); }
.cabinet-error { border:1px solid #ffd3d8; background:#fff4f5; color:#a92332; }
.cabinet-success { border:1px solid #b9e3cf; background:#f0faf4; color:#197044; }
[data-theme="dark"] .cabinet-success { border-color:#286b4d; background:#153b2c; color:#d8f7e7; }
.cabinet-welcome { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; padding:clamp(24px,4vw,42px); border-radius:var(--radius-lg); background:var(--gradient-hero); color:#fff; }
.cabinet-welcome h1 { margin-bottom:8px; font-family:var(--font-montserrat); font-size:clamp(28px,4vw,40px); }
.cabinet-welcome p:not(.cabinet-eyebrow) { color:#d8e5f2; }
.cabinet-welcome .cabinet-eyebrow { color:#bfe0f5; }
.cabinet-welcome form,.admin-header form { margin:0; }
.cabinet-dashboard { display:grid; grid-template-columns:minmax(230px,.7fr) minmax(0,1.7fr); gap:18px; align-items:start; }
.cabinet-profile { display:flex; align-items:center; gap:15px; }
.cabinet-avatar { display:grid; flex:0 0 56px; place-items:center; width:56px; height:56px; border-radius:50%; background:#e8f3fc; color:var(--color-primary); font-family:var(--font-montserrat); font-size:25px; font-weight:800; }
.cabinet-profile h2 { margin:2px 0 4px; font-size:18px; }
.cabinet-profile p:last-child { color:var(--color-muted); font-size:var(--text-sm); overflow-wrap:anywhere; }
.cabinet-panel__eyebrow { margin-bottom:6px; color:var(--color-muted); font-size:var(--text-2xs); font-weight:800; letter-spacing:.1em; }
.cabinet-panel__head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-bottom:18px; border-bottom:1px solid var(--color-border); }
.cabinet-order-count { padding:6px 10px; border-radius:99px; background:var(--color-surface); color:var(--color-muted); font-size:var(--text-sm); }
.cabinet-empty { display:flex; flex-direction:column; align-items:center; padding:36px 15px 20px; text-align:center; }
.cabinet-empty__icon { display:grid; place-items:center; width:58px; height:58px; margin-bottom:14px; border-radius:50%; background:#e8f3fc; color:var(--color-primary-light); font-size:28px; }
.cabinet-empty h3 { margin-bottom:7px; color:var(--color-primary); font-size:18px; }
.cabinet-empty p { max-width:400px; margin-bottom:18px; color:var(--color-muted); font-size:var(--text-sm); line-height:1.7; }
.cabinet-order { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:18px; padding:18px 0; border-bottom:1px solid var(--color-border); }
.cabinet-order:last-child { border-bottom:0; }
.cabinet-order__label { color:var(--color-primary); font-weight:700; }
.cabinet-order p { margin-top:4px; color:var(--color-muted); font-size:var(--text-sm); }
.cabinet-order__status { padding:6px 10px; border-radius:99px; background:#eef8f2; color:#26764d; font-size:var(--text-sm); }
.cabinet-order__actions { display:grid; justify-items:center; gap:6px; }
.cabinet-order__pay { color:var(--color-accent); font-size:var(--text-sm); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.cabinet-order__pay:hover { color:var(--color-primary); }
.cabinet-order strong { white-space:nowrap; color:var(--color-primary); }
.cabinet-order__details { grid-column:1 / -1; border-top:1px solid var(--color-border); padding-top:12px; }
.cabinet-order__details summary { width:fit-content; color:var(--color-accent); font-weight:700; cursor:pointer; }
.cabinet-order__details summary:hover { text-decoration:underline; }
.cabinet-order__items { display:grid; gap:0; margin-top:12px; }
.cabinet-order-item { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:start; gap:18px; padding:13px 0; border-top:1px solid var(--color-border); }
.cabinet-order-item__name { color:var(--color-primary); font-weight:700; }
.cabinet-order-item__name span { display:block; margin-top:5px; color:var(--color-muted); font-size:var(--text-sm); font-weight:400; }
.cabinet-order-item__quantity { color:var(--color-muted); font-size:var(--text-sm); }
.cabinet-order-item strong { white-space:nowrap; }
@media(max-width:767px) { .cabinet-auth-grid,.cabinet-dashboard { grid-template-columns:1fr; } .cabinet-welcome { align-items:flex-start; flex-direction:column; } }
@media(max-width:600px) { .cabinet-order { grid-template-columns:1fr auto; gap:9px; } .cabinet-order__actions { grid-column:1; justify-items:start; } .cabinet-order > .cabinet-order__total { grid-column:2; grid-row:1 / span 2; } .cabinet-order-item { grid-template-columns:1fr auto; gap:7px 12px; } .cabinet-order-item__quantity { grid-column:1; } .cabinet-order-item strong { grid-column:2; grid-row:1 / span 2; } }
@media(max-width:480px) { .cabinet-hero__benefits { flex-direction:column; gap:8px; } }

/* Favorites and the full guide directory */
.favorites-page { min-height:60vh; }
.favorites-hero { display:flex; align-items:center; gap:22px; margin:0 0 26px; padding:clamp(24px,4vw,40px); border-radius:var(--radius-lg); background:linear-gradient(115deg,#f0f6fb,#f8fafc 62%,#e7f1f8); }
.favorites-hero__icon { display:grid; place-items:center; width:68px; height:68px; flex:none; border:1px solid rgba(16,45,76,.09); border-radius:20px; background:#fff; box-shadow:var(--shadow-card); }
.favorites-hero__icon img { width:30px; height:30px; }
.favorites-hero__eyebrow,.guide-directory-card__tag { margin:0 0 8px; color:var(--color-primary-light); font-size:var(--text-2xs); font-weight:800; letter-spacing:.12em; }
.favorites-hero .section__title { margin:0 0 6px; color:var(--color-primary); }
.favorites-hero .section__subtitle { max-width:650px; margin:0; }
.favorites-hero__count { margin-left:auto; padding:9px 15px; border:1px solid rgba(16,45,76,.1); border-radius:999px; background:#fff; color:var(--color-primary); font-weight:700; white-space:nowrap; }
.favorites-toolbar { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:0 0 18px; color:var(--color-muted); font-size:var(--text-sm); }
.favorites-toolbar p { margin:0; }
.favorites-toolbar a { color:var(--color-link); font-weight:700; white-space:nowrap; }
.catalog-grid,.favorites-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.catalog-grid .product-card { min-width:0; width:auto; }
.favorites-grid .product-card { min-width:0; width:auto; }
.catalog-grid .product-card__media { height:270px; }
.catalog-grid .product-card__media img,.favorites-grid .product-card__media img { object-fit:contain; padding:12px; background:#fff; }
.favorites-grid .product-card__media { height:240px; }
.favorites-empty { display:flex; flex-direction:column; align-items:center; max-width:680px; margin:36px auto 5px; padding:clamp(28px,5vw,54px); border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-card); text-align:center; }
.favorites-empty__heart { display:grid; place-items:center; width:76px; height:76px; margin-bottom:18px; border-radius:24px; background:var(--color-surface); color:var(--color-primary); font-size:54px; line-height:1; }
.favorites-empty h2 { margin:0 0 10px; color:var(--color-primary); font-family:var(--font-montserrat); font-size:clamp(22px,3vw,30px); }
.favorites-empty p { max-width:490px; margin:0 0 22px; color:var(--color-muted); line-height:1.7; }
.favorites-empty__secondary { margin-top:17px; color:var(--color-link); font-size:var(--text-sm); font-weight:700; }
.guide-directory { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.guide-directory-card { overflow:hidden; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-card); }
.guide-directory-card>img { display:block; width:100%; height:220px; object-fit:cover; background:var(--color-surface); }
.guide-directory-card__body { display:flex; flex-direction:column; align-items:flex-start; padding:23px; }
.guide-directory-card__body h2,.guide-directory-help h2 { margin:0 0 10px; color:var(--color-primary); font-family:var(--font-montserrat); font-size:21px; line-height:1.35; }
.guide-directory-card__body>p:not(.guide-directory-card__tag),.guide-directory-help>div>p:not(.guide-directory-card__tag) { margin:0; color:var(--color-muted); line-height:1.65; }
.guide-directory-card__links { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:21px; }
.guide-directory-card__links a { color:var(--color-link); font-size:var(--text-sm); font-weight:700; }
.guide-directory-help { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:25px 30px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:var(--color-surface); }
.guide-directory-help .btn { flex:none; }
.promotion-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.promotion-card { position:relative; display:flex; flex-direction:column; align-items:flex-start; min-height:260px; overflow:hidden; padding:28px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-card); }
.promotion-card--featured { grid-column:1/-1; min-height:300px; justify-content:center; background:var(--gradient-promo); color:var(--color-white); }
.promotion-card__content { position:relative; z-index:1; max-width:600px; }
.promotion-card--featured .guide-directory-card__tag { color:rgba(255,255,255,.78); }
.promotion-card h2 { margin:0 0 10px; color:var(--color-primary); font-family:var(--font-montserrat); font-size:clamp(22px,3vw,30px); line-height:1.3; }
.promotion-card--featured h2 { color:var(--color-white); }
.promotion-card p:not(.guide-directory-card__tag) { max-width:600px; margin:0 0 20px; color:var(--color-muted); line-height:1.65; }
.promotion-card--featured p:not(.guide-directory-card__tag) { color:rgba(255,255,255,.86); }
.promotion-card__value { position:absolute; right:8%; top:50%; transform:translateY(-50%); color:rgba(255,255,255,.14); font-family:var(--font-montserrat); font-size:clamp(90px,16vw,190px); font-weight:800; line-height:1; }
.promotion-card__icon { display:grid; place-items:center; width:48px; height:48px; margin-bottom:19px; border-radius:15px; background:var(--color-surface); color:var(--color-link); font-size:26px; font-weight:800; }
.promotion-card>a:not(.btn) { margin-top:auto; color:var(--color-link); font-size:var(--text-sm); font-weight:700; }
.promotion-products-title { margin:34px 0 18px; }
@media(max-width:950px) { .guide-directory { grid-template-columns:repeat(2,minmax(0,1fr)); } .guide-directory-help { grid-column:1/-1; } .catalog-grid,.favorites-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:640px) { .guide-directory { grid-template-columns:1fr; } .guide-directory-help { grid-column:auto; flex-direction:column; align-items:flex-start; } .guide-directory-card>img { height:205px; } .catalog-grid,.favorites-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .catalog-grid .product-card__media { height:220px; } .favorites-hero { align-items:flex-start; gap:15px; } .favorites-hero__icon { width:52px; height:52px; border-radius:15px; } .favorites-hero__icon img { width:24px; height:24px; } .favorites-hero__count { display:none; } .favorites-toolbar { align-items:flex-start; flex-direction:column; } .promotion-list { grid-template-columns:1fr; } .promotion-card--featured { grid-column:auto; min-height:280px; } .promotion-card { padding:23px; } .promotion-card__value { right:-4%; top:auto; bottom:4px; transform:none; font-size:100px; } }

/* Product detail */
.product-detail-page { padding-top:22px; }
.product-detail { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr); gap:clamp(28px,5vw,68px); align-items:start; margin-top:20px; }
.product-detail__visual { position:relative; display:grid; place-items:center; min-height:480px; overflow:hidden; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:var(--color-white); }
.product-detail__visual>img { width:100%; height:100%; max-height:520px; padding:28px; object-fit:contain; }
.product-detail__image-note { position:absolute; left:18px; bottom:16px; padding:7px 11px; border:1px solid var(--color-border); border-radius:999px; background:rgba(255,255,255,.94); color:var(--color-muted); font-size:var(--text-2xs); }
.product-detail__badge { position:absolute; top:18px; left:18px; }
.product-detail__info { padding:10px 0 0; }
.product-detail__eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.product-detail__eyebrow .product-card__brand { margin:0; font-weight:800; letter-spacing:.08em; }
.product-detail__info .section__title { margin:0 0 7px; font-size:clamp(28px,3.4vw,42px); line-height:1.12; }
.product-detail__sku { margin:0 0 18px; color:var(--color-muted); font-size:var(--text-xs); }
.product-detail__description { margin:0 0 22px; color:var(--color-text); font-size:var(--text-md); line-height:1.65; }
.product-detail__stock { display:flex; align-items:center; gap:9px; margin-bottom:16px; padding:13px 15px; border:1px solid var(--color-border); border-radius:var(--radius-md); color:var(--color-muted); font-size:var(--text-sm); }
.product-detail__stock strong { color:var(--color-text); }
.product-detail__stock-dot { width:9px; height:9px; border-radius:50%; background:#2e9d67; box-shadow:0 0 0 4px rgba(46,157,103,.12); }
.product-detail__stock--empty .product-detail__stock-dot { background:#a0a9b2; box-shadow:0 0 0 4px rgba(160,169,178,.14); }
.product-detail__parameter { display:grid; gap:5px; margin-bottom:20px; padding:14px 15px; border-radius:var(--radius-md); background:var(--color-surface); color:var(--color-muted); font-size:var(--text-sm); line-height:1.5; }
.product-detail__parameter strong { color:var(--color-text); }
.product-detail__purchase { position:relative; display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 16px; padding:18px 0; border-top:1px solid var(--color-border); border-bottom:1px solid var(--color-border); }
.product-detail__price { color:var(--color-primary); font-size:clamp(30px,3vw,40px); font-weight:800; line-height:1.05; }
.product-detail__purchase .product-card__old-price { display:flex; align-items:center; gap:10px; margin:7px 0 0; }
.product-detail__purchase .product-card__old-price span { color:var(--color-accent-dark); font-weight:700; }
.product-detail__favorite { position:static; flex:none; }
.product-detail__add { width:100%; min-height:54px; font-size:var(--text-md); }
.product-detail__benefits { display:grid; gap:9px; margin:17px 0 0; padding:0; color:var(--color-muted); font-size:var(--text-xs); line-height:1.5; list-style:none; }
.product-detail__benefits strong { color:var(--color-text); }
.product-detail__description-panel { margin-top:42px; padding:clamp(22px,3vw,34px); border:1px solid var(--color-border); border-radius:var(--radius-lg); background:var(--color-white); }
.product-detail__description-panel h2 { margin:0 0 10px; color:var(--color-primary); font-family:var(--font-montserrat); font-size:var(--text-xl); }
.product-detail__description-panel>p { max-width:850px; margin:0; color:var(--color-muted); line-height:1.65; }
.product-detail__description-panel dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:24px 0 0; }
.product-detail__description-panel dl>div { padding:14px; border-radius:var(--radius-md); background:var(--color-surface); }
.product-detail__description-panel dt { margin-bottom:5px; color:var(--color-muted); font-size:var(--text-2xs); }
.product-detail__description-panel dd { margin:0; color:var(--color-text); font-size:var(--text-sm); font-weight:700; }
.product-detail__related { padding:40px 0 0; }
.product-detail__related .section__head { margin-bottom:22px; }
@media(max-width:760px) { .product-detail { grid-template-columns:1fr; gap:23px; } .product-detail__visual { min-height:300px; } .product-detail__visual>img { max-height:360px; padding:20px; } .product-detail__info { padding:0; } .product-detail__description-panel dl { grid-template-columns:1fr; gap:9px; } .product-detail__related .favorites-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } }
.admin-header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin:24px 0; padding:28px; border-radius:var(--radius-lg); color:#fff; background:var(--gradient-hero); }
.admin-header .section__title { margin:4px 0 8px; color:#fff; }
.admin-header .section__subtitle,.admin-header .cabinet-eyebrow { color:#d5e6f6; }
.admin-header .btn { flex:none; color:#fff; border-color:rgba(255,255,255,.45); }
.admin-header form { flex:none; }
.admin-nav { position:sticky; top:8px; z-index:5; display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 26px; padding:10px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:rgba(255,255,255,.96); box-shadow:var(--shadow-card); }
.admin-nav a { padding:9px 14px; border-radius:var(--radius-pill); color:var(--color-primary); font-size:var(--text-sm); font-weight:700; }
.admin-nav a:hover { background:var(--color-category-bg); }
.admin-panel { margin:24px 0; padding:24px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-card); scroll-margin-top:90px; }
.admin-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.admin-section-heading h2 { color:var(--color-primary); font-size:24px; }
.admin-section-heading p:not(.cabinet-panel__eyebrow) { margin-top:5px; color:var(--color-muted); font-size:var(--text-sm); }
.admin-product-form { display:grid; gap:16px; }
.admin-product-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:16px; }
.admin-product-fields label { display:grid; align-content:start; gap:7px; color:var(--color-primary); font-size:var(--text-sm); font-weight:700; }
.admin-product-fields .admin-field-wide { grid-column:1/-1; }
.admin-product-fields input,.admin-product-fields select,.admin-product-fields textarea,.admin-filters input,.admin-filters select,.admin-status-form select { width:100%; min-height:43px; padding:10px 12px; border:1px solid var(--color-border); border-radius:var(--radius-md); background:#fff; color:var(--color-text); font:inherit; }
.admin-product-fields textarea { resize:vertical; }
.admin-product-fields input:focus,.admin-product-fields select:focus,.admin-product-fields textarea:focus,.admin-filters input:focus,.admin-filters select:focus,.admin-status-form select:focus { outline:2px solid var(--color-ice); border-color:var(--color-primary-light); }
.admin-product-fields small { color:var(--color-muted); font-weight:400; overflow-wrap:anywhere; }
.admin-form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.admin-filters { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:20px 0 14px; }
.admin-filters input { flex:1 1 260px; }
.admin-filters select { flex:0 1 220px; }
.admin-filters a { color:var(--color-link); font-size:var(--text-sm); }
.admin-table-wrap { overflow-x:auto; border:1px solid var(--color-border); border-radius:var(--radius-md); }
.admin-table { width:100%; min-width:760px; border-collapse:collapse; text-align:left; }
.admin-table th { padding:12px; color:#fff; background:var(--color-primary); font-size:var(--text-xs); letter-spacing:.04em; text-transform:uppercase; }
.admin-table td { padding:13px 12px; border-top:1px solid var(--color-border); vertical-align:top; font-size:var(--text-sm); }
.admin-table tbody tr:hover { background:#f8fbfe; }
.admin-table td small { display:block; margin-top:3px; color:var(--color-muted); font-size:var(--text-xs); }
.admin-row-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.admin-row-actions a,.admin-row-actions button { color:var(--color-link); font-size:var(--text-sm); font-weight:700; }
.admin-row-actions form { display:inline-flex; }
.admin-row-actions form:last-child button { color:var(--color-accent-dark); }
.admin-status-form { display:flex; flex-wrap:wrap; gap:6px; min-width:220px; }
.payment-panel { max-width:760px; margin:24px auto; padding:clamp(24px,5vw,48px); border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-card); }
.payment-panel h1 { margin:0 0 20px; color:var(--color-primary); font-family:var(--font-montserrat); font-size:clamp(26px,4vw,36px); }
.payment-details { display:grid; gap:0; margin:20px 0; border-top:1px solid var(--color-border); }
.payment-details>div { display:flex; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--color-border); }
.payment-details dt { color:var(--color-muted); }
.payment-details dd { margin:0; color:var(--color-text); font-weight:700; text-align:right; }
.payment-mock-note { margin:18px 0; padding:14px 16px; border-radius:var(--radius-md); background:#fff8e9; color:#805b12; line-height:1.55; }
.payment-actions { display:flex; flex-wrap:wrap; gap:12px; }
.admin-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin-bottom:28px; }
.admin-stats article { display:grid; gap:8px; min-width:0; padding:18px; border:1px solid var(--color-border); border-radius:var(--radius-md); background:#f9fbfd; }
.admin-stats article span,.admin-stats article small { color:var(--color-muted); font-size:var(--text-sm); line-height:1.45; }
.admin-stats article strong { color:var(--color-primary); font-family:var(--font-montserrat); font-size:clamp(22px,3vw,30px); }
.admin-top-products h3 { margin:0 0 12px; color:var(--color-primary); }
.admin-top-products ol { display:grid; gap:8px; margin:0; padding-left:22px; }
.admin-top-products li { display:flex; justify-content:space-between; gap:14px; color:var(--color-text); }
.admin-top-products li a { overflow-wrap:anywhere; }
.admin-top-products li span { color:var(--color-muted); white-space:nowrap; }
.admin-status-form select { flex:1 1 130px; min-height:36px; padding:6px 8px; font-size:var(--text-xs); }
.admin-status-form .btn { min-height:36px; padding:6px 10px; font-size:var(--text-xs); }
.admin-order-items { margin-top:8px; color:var(--color-link); font-size:var(--text-xs); }
.admin-order-items summary { cursor:pointer; font-weight:700; }
.admin-order-items span { display:block; margin-top:5px; color:var(--color-text); }
.admin-empty { padding:24px!important; color:var(--color-muted); text-align:center; }
.admin-review-list { display:grid; gap:12px; }
.admin-review { padding:17px; border:1px solid var(--color-border); border-radius:var(--radius-md); background:#fbfcfd; }
.admin-review__meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-bottom:10px; color:var(--color-primary); }
.admin-review__meta a { color:var(--color-link); font-size:var(--text-xs); }
.admin-review__meta span { color:var(--color-muted); font-size:var(--text-xs); }
.admin-review__status { margin-left:auto; padding:4px 9px; border-radius:var(--radius-pill); background:#fff1d6; color:#775000; font-size:var(--text-xs); font-style:normal; font-weight:700; }
.admin-review__status--approved { background:#e3f5e9; color:#176b38; }
.admin-review__status--rejected { background:#ffe8e8; color:#9c2727; }
.admin-review > p { margin:10px 0 14px; white-space:normal; overflow-wrap:anywhere; }
.admin-login { grid-template-columns:minmax(0,560px); justify-content:center; margin:34px auto 72px; }
.admin-login .cabinet-form { gap:18px; padding:clamp(26px,5vw,42px); border-top:4px solid var(--color-ice); }
.admin-login .cabinet-form h1 { margin:0; color:var(--color-primary); font-family:var(--font-montserrat); font-size:clamp(26px,4vw,34px); }
.admin-login .cabinet-form>p:last-child { margin:0; font-size:var(--text-sm); }
.admin-header { position:relative; overflow:hidden; background:radial-gradient(ellipse at 88% 0%,rgba(117,195,235,.35),transparent 38%),var(--gradient-hero); }
.admin-panel { transition:box-shadow .2s ease,border-color .2s ease; }
.admin-panel:target { border-color:var(--color-primary-light); box-shadow:0 0 0 3px rgba(83,163,212,.12),var(--shadow-card); }
.admin-nav { background:rgba(255,255,255,.94); backdrop-filter:blur(14px); }
.admin-nav a { transition:background-color .18s ease,color .18s ease; }
.admin-nav a:focus-visible,.admin-row-actions a:focus-visible,.admin-row-actions button:focus-visible { outline:3px solid var(--color-ice); outline-offset:3px; border-radius:6px; }
.admin-stats article { background:linear-gradient(145deg,#fff 0%,#f5f9fc 100%); transition:transform .18s ease,box-shadow .18s ease; }
.admin-stats article:hover { transform:translateY(-2px); box-shadow:var(--shadow-card); }
.admin-table th { position:sticky; top:0; z-index:1; box-shadow:0 1px 0 rgba(0,0,0,.08); }
.admin-table tbody tr { transition:background-color .16s ease; }
.admin-review { transition:border-color .18s ease,box-shadow .18s ease; }
.admin-review:hover { border-color:var(--color-primary-light); box-shadow:var(--shadow-card); }
@media (max-width:640px) { .admin-header { padding:20px; } .admin-panel { padding:16px; } .admin-review__status { margin-left:0; } .admin-filters>* { flex:1 1 100%!important; } }

/* Display preferences: persistent dark theme and a readable vision layout. */
.header__display-toggle { width:auto; min-width:70px; max-width:130px; padding:4px 8px; border:0; background:transparent; cursor:pointer; font:inherit; }
.header__display-toggle span { line-height:1.15; }
.header__display-toggle svg,.header__icon-btn svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.display-toggle__moon svg,.display-toggle__moon { fill:none; }
.display-toggle__moon path { fill:currentColor; stroke:none; }
.display-toggle__mobile { display:none; }
.mobile-vision-toggle { display:none; }
[data-theme="dark"] {
  color-scheme:dark;
  --color-primary:#e5f0ff; --color-primary-mid:#bcd7f2; --color-primary-light:#8fc4ed;
  --color-link:#8dbbff; --color-text:#edf2f8; --color-muted:#bac5d3; --color-brand-muted:#c0cad6;
  --color-border:#394657; --color-surface:#202b39; --color-white:#151d28; --color-ice:#24415a;
  --color-category-bg:#24384c; --color-badge-hit-bg:#48282c; --color-badge-new-bg:#493621;
  --color-badge-new-text:#ffd59a; --shadow-card:0 3px 18px rgba(0,0,0,.2);
  --gradient-hero:linear-gradient(90deg,#101a28 0%,#172b42 58%,#1c3d58 100%);
}
[data-theme="dark"] body { background:var(--color-white); color:var(--color-text); }
[data-theme="dark"] .header__top { background:#0c1420; }
[data-theme="dark"] .header__top { color:#edf2f8; }
[data-theme="dark"] .header__top a,[data-theme="dark"] .header__hours { color:#edf2f8; }
[data-theme="dark"] .header__logo-icon--light { display:none; }
[data-theme="dark"] .header__logo-icon--dark { display:block; }
[data-theme="dark"] .header__logo-text { color:#f4f7fb; }
[data-theme="dark"] .header__icon-btn { color:#edf2f8; }
[data-theme="dark"] .header__actions--mobile #burger-open .header__menu-icon { filter:brightness(0) invert(1)!important; opacity:1; }
[data-theme="dark"] .header__main,[data-theme="dark"] .header__nav { background:#151d28; border-color:var(--color-border); }
[data-theme="dark"] .header__search,[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea { color:var(--color-text); background:#202b39; border-color:var(--color-border); }
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder { color:#aab6c5; }
[data-theme="dark"] .product-card,[data-theme="dark"] .payment-panel,[data-theme="dark"] .cabinet-form,[data-theme="dark"] .admin-panel,[data-theme="dark"] .admin-stats article,[data-theme="dark"] .admin-review,[data-theme="dark"] .cart-item,[data-theme="dark"] .cart-summary,[data-theme="dark"] .favorite-card,[data-theme="dark"] .info-copy,[data-theme="dark"] .size-guide,[data-theme="dark"] .brand-directory>a { color:var(--color-text); background:#1b2634; border-color:var(--color-border); }
[data-theme="dark"] .product-card__media,[data-theme="dark"] .product-card__category,[data-theme="dark"] .header__dropdown,[data-theme="dark"] .header__mobile-panel { color:var(--color-text); background:#202b39; }
[data-theme="dark"] .product-card__name,[data-theme="dark"] .product-card__price,[data-theme="dark"] .section__title,[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] label,[data-theme="dark"] .cart-summary strong { color:var(--color-text); }
[data-theme="dark"] .info-hero,[data-theme="dark"] .admin-header,[data-theme="dark"] .cart-summary__total,[data-theme="dark"] .promo-code-form { background:#202b39; border-color:var(--color-border); }
[data-theme="dark"] .admin-table th,[data-theme="dark"] .admin-table td,[data-theme="dark"] .cart-item,[data-theme="dark"] .payment-details>div { border-color:var(--color-border); }
[data-theme="dark"] .btn--outline { color:var(--color-text); border-color:#718096; }
[data-theme="dark"] .header__action-icon,[data-theme="dark"] .header__search-icon,[data-theme="dark"] .header__delivery-icon,[data-theme="dark"] .header__menu-icon { filter:brightness(0) invert(1); }
[data-vision="on"] { --text-xs:16px; --text-2xs:16px; --text-sm:17px; --text-base:18px; --text-md:19px; --text-lg:20px; --text-xl:21px; --text-2xl:22px; --text-3xl:25px; --text-4xl:28px; --text-5xl:34px; --text-6xl:34px; }
[data-vision="on"] body { line-height:1.75; letter-spacing:.015em; }
[data-vision="on"] .container { max-width:1560px; }
[data-vision="on"] .product-card__category,[data-vision="on"] .product-card__eyebrow .product-card__brand,[data-vision="on"] .header__search-hint,[data-vision="on"] .badge,[data-vision="on"] .form-hint { font-size:16px; }
[data-vision="on"] .header__nav-link,[data-vision="on"] .footer__nav a,[data-vision="on"] .header__action { font-size:18px; }
[data-vision="on"] a,[data-vision="on"] button { text-decoration-thickness:2px; text-underline-offset:3px; }
[data-vision="on"] :focus-visible { outline:3px solid #ffbf47; outline-offset:3px; }
[data-vision="on"] .header__nav-link,[data-vision="on"] .btn { min-height:48px; }
@media (max-width:991px) {
  .display-toggle__mobile { display:inline-flex; }
  .header__actions--desktop .header__display-toggle { display:none; }
  .mobile-vision-toggle { display:flex; align-items:center; gap:12px; width:100%; min-height:50px; padding:10px 14px; border:1px solid var(--color-border); border-radius:var(--radius-md); color:var(--color-text); background:var(--color-surface); font:inherit; font-weight:700; text-align:left; cursor:pointer; }
  .mobile-vision-toggle svg { width:22px; height:22px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; }
}

/* Readable product photography in dark mode: keep the photo stage light and never multiply the image into the page background. */
[data-theme="dark"] .product-card__media,[data-theme="dark"] .catalog-grid .product-card__media,[data-theme="dark"] .favorites-grid .product-card__media,[data-theme="dark"] .product-detail__visual,[data-theme="dark"] .cart-item__image { background:#f2f5f8; }
[data-theme="dark"] .product-card__media img,[data-theme="dark"] .product-detail__visual>img,[data-theme="dark"] .cart-item__image img,[data-theme="dark"] .guide-directory-card>img { mix-blend-mode:normal; filter:none; }
[data-theme="dark"] .category-tile__icon--photo { mix-blend-mode:normal; }
[data-theme="dark"] .category-tile__icon-wrap { background:#f2f5f8; }
[data-theme="dark"] .catalog-grid .product-card__media img,[data-theme="dark"] .favorites-grid .product-card__media img { background:#f2f5f8; }
[data-theme="dark"] .product-detail__image-note { background:rgba(255,255,255,.96); color:#3c4652; }
/* Keep every content surface and its text readable in dark mode; product image stages stay light above. */
[data-theme="dark"] { color-scheme:dark; }
[data-theme="dark"] main,
[data-theme="dark"] .cabinet-page { background:#111923; color:var(--color-text); }
[data-theme="dark"] main article,
[data-theme="dark"] main .info-copy,
[data-theme="dark"] main .info-card,
[data-theme="dark"] main .guide-directory-card,
[data-theme="dark"] main .promotion-card,
[data-theme="dark"] main .favorites-empty,
[data-theme="dark"] main .payment-panel,
[data-theme="dark"] main .cabinet-panel,
[data-theme="dark"] main .cabinet-form,
[data-theme="dark"] main .cart-summary,
[data-theme="dark"] main .size-guide,
[data-theme="dark"] main .admin-panel { background:#1b2634; color:var(--color-text); border-color:var(--color-border); }
[data-theme="dark"] main article :is(p,span,small,li,dt,dd,label),
[data-theme="dark"] main :is(.info-copy,.guide-directory-card,.promotion-card,.favorites-empty,.payment-panel,.cabinet-panel,.cabinet-form,.cart-summary,.size-guide,.admin-panel) :is(p,span,small,li,dt,dd,label) { color:var(--color-text); }
[data-theme="dark"] main :is(.cabinet-page,.info-page,.favorites-page,.cart-page,.payment-page) { background:#111923; }
[data-theme="dark"] .accessibility-panel { color:var(--color-text); background:#1b2634; }
[data-theme="dark"] .accessibility-panel h2,[data-theme="dark"] .accessibility-panel legend { color:var(--color-text); }
[data-theme="dark"] .accessibility-colors button { color:var(--color-text); background:#202b39; }
[data-theme="dark"] .palette-swatch { flex:0 0 25px; }
[data-theme="dark"] .header__actions,[data-theme="dark"] .header__action { color:var(--color-text); }
[data-vision="on"] body { font-size:calc(16px * var(--vision-scale,1)); line-height:1.75; }
[data-vision="on"] :is(input,select,textarea,button) { font-size:inherit; }
[data-vision="on"] .accessibility-panel { font-size:calc(16px * var(--vision-scale,1)); }

/* Brand directory: tall cards with the same logo marks used on the home page. */
.brand-directory { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); align-items:stretch; gap:16px; }
.brand-directory a.brand-directory__card { min-height:290px; padding:12px; overflow:hidden; border-radius:14px; background:var(--color-white); color:var(--color-text); font:inherit; text-decoration:none; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.brand-directory a.brand-directory__card:hover { transform:translateY(-4px); border-color:var(--color-primary-light); box-shadow:0 12px 28px rgba(11,31,58,.12); }
.brand-directory__logo { display:flex; flex:1 1 auto; align-items:center; justify-content:center; width:100%; min-height:172px; overflow:hidden; padding:18px; border-radius:10px; background:#f3f6fa; }
.brand-directory__logo img { display:block; width:100%; max-width:220px; max-height:140px; object-fit:contain; }
.brand-directory__details { display:grid; gap:6px; padding:14px 8px 8px; }
.brand-directory__details>strong { color:var(--color-primary); font-family:var(--font-montserrat); font-size:19px; }
.brand-directory__details>span { color:var(--color-muted); font-family:var(--font-inter); font-size:var(--text-sm); line-height:1.5; }
.brand-directory__details .brand-directory__link { display:flex; justify-content:space-between; margin-top:5px; color:var(--color-link); font-weight:700; }
[data-theme="dark"] .brand-directory__logo { background:#f0f3f7; }
@media(max-width:575px) { .brand-directory { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .brand-directory a.brand-directory__card { min-height:250px; padding:9px; } .brand-directory__logo { min-height:135px; padding:10px; } .brand-directory__details { padding:11px 5px 5px; } .brand-directory__details>strong { font-size:16px; } }

/* Expanded controls for low vision: independent color palette, type size and spacing. */
.accessibility-panel[hidden] { display:none; }
.accessibility-panel { position:fixed; z-index:1200; top:calc(var(--header-top-h) + var(--header-main-h) + 14px); right:max(16px,calc((100vw - var(--container-max))/2 + var(--container-pad))); width:min(430px,calc(100vw - 24px)); max-height:calc(100vh - 40px); overflow:auto; padding:22px; border:1px solid var(--color-border); border-radius:16px; background:var(--color-white); color:var(--color-text); box-shadow:0 18px 55px rgba(0,0,0,.24); }
.accessibility-panel__heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:18px; }
.accessibility-panel__heading p { margin:0 0 4px; color:var(--color-muted); font-size:var(--text-2xs); font-weight:800; letter-spacing:.12em; }
.accessibility-panel__heading h2 { margin:0; color:var(--color-primary); font-size:24px; }
.accessibility-panel__close { width:38px; height:38px; border:1px solid var(--color-border); border-radius:9px; background:var(--color-surface); color:var(--color-text); font-size:25px; cursor:pointer; }
.accessibility-colors { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0; padding:0; border:0; }
.accessibility-colors legend { grid-column:1/-1; margin-bottom:8px; color:var(--color-text); font-weight:800; }
.accessibility-colors button { display:flex; align-items:center; gap:9px; min-height:46px; padding:8px; border:1px solid var(--color-border); border-radius:9px; background:var(--color-white); color:var(--color-text); text-align:left; cursor:pointer; }
.accessibility-colors button[aria-pressed="true"] { outline:2px solid var(--color-link); outline-offset:1px; }
.palette-swatch { flex:0 0 25px; width:25px; height:25px; border:1px solid #64748b; border-radius:50%; }
.palette-swatch--standard { background:linear-gradient(135deg,#fff 50%,#0b1f3a 50%); }
.palette-swatch--warm { background:linear-gradient(135deg,#fbf3df 50%,#453a26 50%); }
.palette-swatch--contrast { background:linear-gradient(135deg,#fff 50%,#000 50%); }
.palette-swatch--yellow { background:linear-gradient(135deg,#000 50%,#ffe600 50%); }
.palette-swatch--blue { background:linear-gradient(135deg,#e7f2ff 50%,#183b63 50%); }
.accessibility-size { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 12px; font-weight:800; }
.accessibility-size>div { display:flex; align-items:center; gap:10px; }
.accessibility-size button { min-width:44px; min-height:42px; border:1px solid var(--color-border); border-radius:8px; background:var(--color-surface); color:var(--color-text); font-size:18px; font-weight:800; cursor:pointer; }
.accessibility-size output { min-width:48px; text-align:center; font-variant-numeric:tabular-nums; }
.accessibility-check { display:flex; align-items:center; gap:10px; min-height:42px; color:var(--color-text); cursor:pointer; }
.accessibility-check input { width:20px; height:20px; accent-color:var(--color-link); }
.accessibility-reset { width:100%; min-height:44px; margin-top:12px; border:1px solid var(--color-border); border-radius:8px; background:var(--color-surface); color:var(--color-text); font:inherit; font-weight:700; cursor:pointer; }
[data-palette="warm"] { --color-white:#fbf3df; --color-surface:#f3e8d0; --color-text:#332b20; --color-primary:#4a3a25; --color-muted:#625642; --color-border:#d8c9a8; --color-link:#70470b; --color-primary-light:#785b2c; --color-category-bg:#eee1c2; }
[data-palette="contrast"] { --color-white:#fff; --color-surface:#fff; --color-text:#000; --color-primary:#000; --color-muted:#202020; --color-border:#000; --color-link:#0000a8; --color-primary-light:#0000a8; --color-category-bg:#fff; }
[data-palette="yellow"] { --color-white:#000; --color-surface:#0a0a0a; --color-text:#ffe600; --color-primary:#ffe600; --color-muted:#ffe600; --color-border:#ffe600; --color-link:#ffe600; --color-primary-light:#ffe600; --color-category-bg:#111; }
[data-palette="blue"] { --color-white:#e7f2ff; --color-surface:#d9eaff; --color-text:#102b49; --color-primary:#102b49; --color-muted:#345575; --color-border:#9ab9d8; --color-link:#064d9c; --color-primary-light:#165b9f; --color-category-bg:#d6e8fa; }
[data-vision="on"] { --text-xs:calc(16px * var(--vision-scale,1)); --text-2xs:calc(16px * var(--vision-scale,1)); --text-sm:calc(17px * var(--vision-scale,1)); --text-base:calc(18px * var(--vision-scale,1)); --text-md:calc(19px * var(--vision-scale,1)); --text-lg:calc(20px * var(--vision-scale,1)); --text-xl:calc(21px * var(--vision-scale,1)); --text-2xl:calc(22px * var(--vision-scale,1)); --text-3xl:calc(25px * var(--vision-scale,1)); --text-4xl:calc(28px * var(--vision-scale,1)); --text-5xl:calc(34px * var(--vision-scale,1)); --text-6xl:calc(34px * var(--vision-scale,1)); --text-hero:calc(48px * var(--vision-scale,1)); --text-hero-mobile:calc(38px * var(--vision-scale,1)); }
[data-spacing="wide"] body { line-height:2; letter-spacing:.025em; }
[data-underline="on"] a { text-decoration:underline!important; text-decoration-thickness:2px!important; text-underline-offset:3px; }
[data-vision="on"] :focus-visible { outline:3px solid #ffbf47; outline-offset:3px; }
@media(max-width:575px) { .accessibility-panel { top:12px; right:12px; } .accessibility-colors { grid-template-columns:1fr; } }


/* Sizing tables: balanced dark surfaces and compact mobile cards. */
[data-theme="dark"] .size-table { color:#edf2f8; }
[data-theme="dark"] .size-table th { background:#101a28; color:#fff; border-bottom:1px solid #53657a; }
[data-theme="dark"] .size-table td { color:#edf2f8; border-color:#3b4b5e; }
[data-theme="dark"] .size-table tbody tr { background:#1b2634; }
[data-theme="dark"] .size-table tbody tr:nth-child(even) { background:#243244; }
[data-theme="dark"] .size-table td:first-child { color:#a9ccff; }
[data-theme="dark"] .size-table tbody tr:hover { background:#2b3b50; }
.carousel__controls .btn--icon { color:var(--color-primary); background:var(--color-white); border-color:var(--color-border); }
.carousel__controls .btn--icon .btn__icon { display:block; width:20px; height:20px; overflow:visible; }
.carousel__controls .btn--icon .btn__icon path { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.carousel__controls .btn--icon:hover { background:var(--color-surface); border-color:var(--color-link); }
.carousel__controls .btn--icon:disabled { opacity:.78; }
[data-theme="dark"] .carousel__controls .btn--icon { color:#f3f7fc; background:#202b39; border-color:#63748a; }
[data-theme="dark"] .carousel__controls .btn--icon:hover { background:#2d4057; border-color:#a9ccff; }
@media (max-width:575px) {
  .size-guide { padding:18px 14px; }
  .size-guide__head { gap:11px; margin-bottom:16px; }
  .size-guide__number { flex-basis:36px; width:36px; height:36px; }
  .size-guide__head h2 { font-size:19px; line-height:1.25; }
  .size-guide__head p { font-size:14px; line-height:1.55; }
  .table-scroll { overflow:visible; }
  .size-table { min-width:0; width:100%; border-collapse:separate; border-spacing:0 8px; font-size:14px; }
  .size-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .size-table tbody { display:grid; gap:8px; }
  .size-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:hidden; border:1px solid var(--color-border); border-radius:12px; background:var(--color-white); }
  .size-table td { display:flex; flex-direction:column; justify-content:center; gap:4px; min-width:0; padding:10px 11px; border:0; font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
  .size-table td::before { content:attr(data-label); color:var(--color-muted); font-size:11px; font-weight:700; line-height:1.3; }
  .size-table td:first-child { color:var(--color-primary); }
  .size-table td:last-child:nth-child(odd) { grid-column:1/-1; }
  .size-table tbody tr:nth-child(even) { background:var(--color-white); }
  [data-theme="dark"] .size-table tbody tr { background:#202b39; border-color:#47586d; }
  [data-theme="dark"] .size-table tbody tr:nth-child(even) { background:#263548; }
  [data-theme="dark"] .size-table td { color:#edf2f8; }
  [data-theme="dark"] .size-table td::before { color:#bac8d8; }
  [data-theme="dark"] .size-table td:first-child { color:#b9d5ff; }
  .carousel__controls { gap:8px; }
  .carousel__controls .btn--icon { display:grid; place-items:center; width:46px; height:46px; min-width:46px; border-width:1px; opacity:1; }
  .carousel__controls .btn--icon:disabled { opacity:.82; }
  [data-theme="dark"] .carousel__controls .btn--icon { color:#fff; background:#263548; border-color:#8193a9; }
  [data-theme="dark"] .carousel__controls .btn--icon .btn__icon path { stroke:#fff; }
}

/* Keep every action button legible on dark surfaces, including compact controls. */
[data-theme="dark"] .btn--primary { color:#fff; background:#e93646; border:1px solid #ff6b78; }
[data-theme="dark"] .btn--primary:hover { background:#fa4656; }
[data-theme="dark"] .btn--primary:disabled { color:#fff; background:#81323b; border-color:#b75b64; opacity:1; }

/* Mobile layout: keep the main shopping flows comfortable down to 320px. */
@media (max-width: 767px) {
  html, body { width:100%; min-width:320px; overflow-x:clip; }
  .container, main, main .container, .section, .section--surface { min-width:0; }
  .container { padding-inline:16px; }
  .section { padding-block:28px; }
  .section__head { align-items:flex-start; gap:12px; margin-bottom:18px; }
  .section__head-main { flex:1 1 100%; min-width:0; }
  .section__title { font-size:clamp(22px,6vw,28px); line-height:1.2; overflow-wrap:anywhere; }
  .section__subtitle { line-height:1.5; }
  .section__link { min-height:42px; height:auto; padding:8px 0; white-space:normal; }

  .header__top-inner { gap:8px; font-size:11px; }
  .header__delivery { min-width:0; line-height:1.3; }
  .header__main-inner { gap:8px; }
  .header__logo { gap:6px; }
  .header__logo-icon { width:28px; height:30px; }
  .header__logo-text { font-size:22px; }
  .header__actions--mobile { gap:2px; flex:0 0 auto; }
  .header__icon-btn { flex:0 0 38px; width:38px; height:42px; }
  .header__icon-btn img { width:21px; height:21px; }
  .header__actions--mobile .display-toggle__mobile { display:none; }
  .header__actions--mobile #burger-open { display:flex; flex:0 0 38px; width:38px; min-width:38px; }
  .header__mobile-nav .header__theme-toggle { display:flex; align-items:center; gap:12px; width:100%; min-height:48px; padding:12px; border-radius:var(--radius-md); color:var(--color-primary); font:inherit; font-weight:600; text-align:left; }
  .header__mobile-nav .header__theme-toggle svg { width:22px; height:22px; flex:0 0 auto; fill:currentColor; }
  .header__mobile-nav .header__theme-toggle:hover,
  .header__mobile-nav .header__theme-toggle:focus-visible { background:var(--color-surface); outline:none; }

  .hero { min-height:0; padding:28px 16px 70px; }
  .hero__slides { min-height:390px; }
  .hero__slide { gap:18px; }
  .hero__title { max-width:min(100%,380px); font-size:clamp(30px,8vw,38px); line-height:1.12; overflow-wrap:anywhere; }
  .hero__text { max-width:min(100%,370px); }
  .hero__slide > .btn { align-self:flex-start; width:auto; max-width:100%; white-space:normal; }
  .hero__decor--ice { width:clamp(170px,52vw,230px); right:-48px; top:205px; opacity:.32; }
  .hero__decor--stick { width:clamp(160px,48vw,220px); right:-36px; top:230px; opacity:.42; }
  .hero__controls { left:16px; right:16px; bottom:16px; width:auto; min-width:0; max-width:calc(100% - 32px); }
  .hero__dots { min-width:0; }
  .hero__arrows { flex:0 0 auto; gap:8px; }
  .hero__arrows .btn { display:grid; place-items:center; flex:0 0 44px; width:44px; min-width:44px; height:44px; padding:0; }

  .categories__grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px 8px; }
  .category-tile { min-width:0; }
  .category-tile__name { font-size:12px; line-height:1.3; overflow-wrap:anywhere; }
  .category-tile__count { font-size:10px; }

  .catalog-grid, .favorites-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .catalog-grid>*, .favorites-grid>*, .guide-directory>*, .promotion-list>*, .brand-directory>* { min-width:0; }
  .catalog-grid .product-card, .favorites-grid .product-card { min-width:0; }
  .catalog-grid .product-card__media, .favorites-grid .product-card__media { height:clamp(145px,45vw,205px); }
  .product-card__body { min-width:0; padding:12px 10px; gap:8px; }
  .product-card__eyebrow { min-width:0; flex-wrap:wrap; align-items:flex-start; gap:5px; }
  .product-card__eyebrow .product-card__brand { overflow-wrap:anywhere; }
  .product-card__category { max-width:100%; white-space:normal; line-height:1.25; }
  .product-card__name { min-height:0; font-size:13px; line-height:1.35; }
  .product-card__description { min-height:0; font-size:11px; }
  .product-card__purchase { padding-top:9px; }
  .catalog-grid .product-card__price, .favorites-grid .product-card__price, .promotion-products .product-card__price { font-size:clamp(18px,5vw,23px); }
  .product-card__price-line { gap:5px; min-height:30px; margin-bottom:8px; }
  .product-card__purchase .btn { min-height:42px; padding-inline:8px; font-size:12px; }

  .brands { padding:28px 16px; }
  .brands__heading { align-items:flex-start; gap:8px; margin-bottom:16px; }
  .brands__label { font-size:clamp(21px,6vw,28px); line-height:1.2; }
  .brands__eyebrow { line-height:1.4; }
  .brands__list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .brand-mark { min-width:0; min-height:76px; padding:9px; }
  .brand-mark img { height:46px; }

  .promo { padding-block:26px; }
  .promo__banner { min-height:0; padding:22px 18px; }
  .promo__title { max-width:100%; font-size:clamp(23px,6vw,28px); overflow-wrap:anywhere; }
  .promo__text { max-width:100%; }
  .promo__decor--diag, .promo__decor--tracks { max-width:75%; }

  .info-breadcrumbs { flex-wrap:wrap; gap:7px; margin-bottom:18px; }
  .info-hero { margin-bottom:20px; padding:22px 18px; }
  .brand-directory { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .brand-directory a.brand-directory__card { min-width:0; min-height:250px; padding:9px; }
  .brand-directory__logo { min-height:130px; padding:10px; }
  .brand-directory__details { min-width:0; padding:10px 4px 4px; }
  .brand-directory__details>strong { font-size:15px; }
  .brand-directory__details>span { font-size:12px; overflow-wrap:anywhere; }

  .cart-page__heading { align-items:flex-start; flex-direction:column; gap:10px; }
  .cart-layout { grid-template-columns:minmax(0,1fr); }
  .cart-item { grid-template-columns:64px minmax(0,1fr); align-items:start; gap:9px 12px; padding:12px; }
  .cart-item__image { grid-column:1; grid-row:1; width:64px; height:64px; }
  .cart-item__details { grid-column:2; grid-row:1; }
  .cart-item__total { grid-column:2; grid-row:2; padding:0; white-space:normal; }
  .cart-item__actions { grid-column:2; grid-row:3; flex-direction:row; justify-content:space-between; align-items:center; }
  .cart-item__options { margin:5px 0 8px; overflow-wrap:anywhere; }
  .cart-summary { padding:18px; }

  .product-detail { grid-template-columns:minmax(0,1fr); gap:20px; }
  .product-detail__visual { min-height:260px; }
  .product-detail__description-panel dl { grid-template-columns:minmax(0,1fr); }
  .dialog-actions { grid-template-columns:minmax(0,1fr); }
  .payment-panel, .info-copy, .size-guide, .promotion-card { min-width:0; padding:20px 16px; }
  .guide-directory, .promotion-list { grid-template-columns:minmax(0,1fr); }
  .guide-directory-help { grid-column:auto; }
  .footer__top { align-items:flex-start; }
  .footer__nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 16px; }
  .footer__col, .footer__contacts-block { min-width:0; }
  .footer__links a { overflow-wrap:anywhere; }
  .admin-nav { position:static; }
  .admin-filters>* { min-width:0; }
}

@media (max-width: 380px) {
  .container { padding-inline:14px; }
  .header__main-inner { gap:4px; }
  .header__logo { gap:4px; }
  .header__logo-icon { width:25px; height:27px; }
  .header__logo-text { font-size:20px; }
  .header__icon-btn { flex-basis:34px; width:34px; }
  .header__icon-btn img { width:19px; height:19px; }
  .header__actions--mobile { gap:0; }
  .hero { padding-inline:14px; }
  .hero__slides { min-height:410px; }
  .hero__controls { left:14px; right:14px; }
  .categories__grid { column-gap:6px; }
  .brand-directory { grid-template-columns:minmax(0,1fr); }
  .brand-directory a.brand-directory__card { min-height:0; }
  .brand-directory__logo { min-height:150px; }
  .brand-directory__details { padding:12px 8px 8px; }
  .brand-directory__details>span { font-size:13px; }
  .cart-item { grid-template-columns:56px minmax(0,1fr); gap:8px 10px; }
  .cart-item__image { width:56px; height:56px; }
  .product-card__body { padding:10px 8px; }
  .product-card__eyebrow { flex-direction:column; }
  .catalog-grid .product-card__media, .favorites-grid .product-card__media { height:145px; }
  .product-card__favorite { top:6px; right:6px; width:34px; height:34px; }
  .footer__top { flex-wrap:wrap; }
}
[data-theme="dark"] .btn--outline { color:#eaf2ff; background:#202b39; border-color:#91a5bc; }
[data-theme="dark"] .btn--outline:hover { color:#fff; background:#2a3b50; border-color:#c3dcff; }
[data-theme="dark"] .btn--white { color:#fff; background:#263548; border:1px solid #8193a9; }
[data-theme="dark"] .btn--white:hover { background:#344961; border-color:#bdd8ff; }
[data-theme="dark"] .btn--ghost-light { color:#fff; border-color:#a5b4c5; background:rgba(14,24,37,.3); }
[data-theme="dark"] .btn--ghost-light:hover { background:rgba(255,255,255,.14); border-color:#fff; }
[data-theme="dark"] .cart-stepper { background:#202b39; border-color:#71839a; }
[data-theme="dark"] .cart-stepper button,
[data-theme="dark"] .quantity-picker .btn,
[data-theme="dark"] .accessibility-size button { color:#fff; background:#263548; border:1px solid #8193a9; }
[data-theme="dark"] .cart-stepper button:hover,
[data-theme="dark"] .quantity-picker .btn:hover,
[data-theme="dark"] .accessibility-size button:hover { background:#344961; border-color:#bdd8ff; }
[data-theme="dark"] .admin-row-actions button,
[data-theme="dark"] .cart-promo-applied button { color:#bdd8ff; text-decoration:underline; text-underline-offset:3px; }
[data-theme="dark"] :is(.btn,.cart-stepper button,.quantity-picker .btn,.accessibility-size button):focus-visible { outline:3px solid #ffcc66; outline-offset:3px; }

/* In dark mode, navigation arrows use a light button surface everywhere. */
[data-theme="dark"] :is(.carousel__controls .btn--icon,#hero-prev,#hero-next) {
  color:#0b1f3a;
  background:#edf4fc;
  border:1px solid #d7e4f3;
  opacity:1;
}
[data-theme="dark"] :is(.carousel__controls .btn--icon,#hero-prev,#hero-next):hover {
  color:#07172b;
  background:#fff;
  border-color:#fff;
}
[data-theme="dark"] :is(.carousel__controls .btn--icon,#hero-prev,#hero-next):disabled { opacity:.78; }
[data-theme="dark"] #hero-prev .btn__icon,
[data-theme="dark"] #hero-next .btn__icon { filter:brightness(0) saturate(100%) invert(8%) sepia(28%) saturate(1914%) hue-rotate(177deg) brightness(91%) contrast(99%); }
[data-theme="dark"] .carousel__controls .btn--icon .btn__icon path { stroke:#0b1f3a; }

/* Explicitly force light controls on both product carousels in dark mode. */
[data-theme="dark"] .section__head .carousel__controls button[data-carousel="hits"],
[data-theme="dark"] .section__head .carousel__controls button[data-carousel="new"] {
  background-color:#f1f5f9 !important;
  color:#0b1f3a !important;
  border-color:#cbd5e1 !important;
  opacity:1 !important;
}
[data-theme="dark"] .section__head .carousel__controls button[data-carousel="hits"]:hover,
[data-theme="dark"] .section__head .carousel__controls button[data-carousel="new"]:hover {
  background-color:#fff !important;
  border-color:#94a3b8 !important;
}
[data-theme="dark"] .section__head .carousel__controls button[data-carousel="hits"] .btn__icon path,
[data-theme="dark"] .section__head .carousel__controls button[data-carousel="new"] .btn__icon path {
  stroke:#0b1f3a !important;
}

/* Keep the promo success notice readable on the dark cart panel. */
[data-theme="dark"] main .cart-summary p.cabinet-success {
  border-color:#286b4d;
  background:#153b2c;
  color:#d8f7e7;
}
