:root {
  /* Colors */
  --color-white: #ffffff;
  --color-bg-muted: #f6f6f6;
  --color-black: #322d1a;
  --color-text-muted: #a2997b;
  --color-text-soft: #c1b896;
  --color-border: #ece7d2;
  --color-text-label: #b1a889;
  --color-text-strong: #524c37;
  --color-accent: #f98419;
  --color-accent-hover: #f69438;
  --color-accent-pressed: var(--color-accent-hover);
  --color-accent-strong: var(--color-accent);
  --color-icon-outline: #d1c8a4;
  --radius-header-icon: var(--radius-xs);
  --header-top-bar-h: 32px;
  --header-content-max: 1280px;
  --color-primary-light: #fff5eb;
  --color-semantic-red: #be1313;
  --color-semantic-yellow: #f3b40a;
  --color-semantic-green: #057234;
  --color-footer-bg: var(--color-black);

  /* Spacing */
  --space-unit: 4px;
  --space-xs: var(--space-unit);
  --space-sm: calc(var(--space-unit) * 2);
  --space-md: calc(var(--space-unit) * 4);
  --space-lg: calc(var(--space-unit) * 6);
  --space-xl: calc(var(--space-unit) * 10);
  --space-2xl: calc(var(--space-unit) * 12);
  --space-3xl: calc(var(--space-unit) * 20);

  /* Radius */
  --radius-sm: 4px;
  --radius-xs: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 40px;

  /* Typography */
  --font-main: "Inter", -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-h3-mobile: 20px;
  --lh-h3-mobile: 24px;
  --text-h2-mobile: 24px;
  --lh-h2-mobile: 32px;
  --lh-text-xs: 16px;
  --lh-text-sm: 20px;
  --lh-title-md: 24px;
  --lh-heading-md: 32px;
  --lh-heading-lg: 40px;
  --lh-tight: 1.25;
  --lh-body: 1.43;
  --lh-relaxed: 1.5;

  /* Layout */
  --bp-tablet: 960px;
  --bp-desktop: 1440px;
  --container-max: 1440px;
  --aside-width: 360px;
  --page-pad-x: var(--space-md);
  --header-pad-x: var(--space-md);
  --gallery-img-w-mobile: 237px;
  --gallery-img-h-mobile: 312px;
  --gallery-w-desktop: 436px;
  --gallery-h-mobile: 431px;
  --gallery-h-wide: 524px;
  --gallery-stage-h-mobile: 343px;
  --gallery-stage-h-wide: 436px;
  --gallery-thumb-wrap-size: 80px;
  --gallery-thumb-size: 72px;
  --gallery-thumb-radius: var(--radius-xl);
  --gallery-tag-offset: 12px;
  --product-options-gap-mobile: 40px;
  --chip-size: 40px;
  --chip-radius: 12px;
  --swatch-btn-size: 40px;
  --swatch-inner-size: 32px;
  --swatch-radius: var(--radius-xs);
  --qty-h: 48px;
  --qty-w-wide: 164px;
  --qty-radius: var(--radius-md);
  --qty-border-hover: var(--color-icon-outline);
  --product-cart-btn-w-tablet: 217px;
  --product-cart-btn-w-desktop: 264px;

  /* News */
  --news-card-w-tablet: 288px;
  --news-card-h-tablet: 446px;
  --news-card-img-h-tablet: 280px;
  --news-card-w-desktop: 283px;
  --news-card-h-desktop: 446px;
  --news-card-img-h-desktop: 280px;
  --news-grid-gap: var(--space-lg);
  --news-cart-panel-h: 720px;
  --layout-cart-panel-h: var(--news-cart-panel-h);
  --news-list-w-desktop: calc(3 * var(--news-card-w-desktop) + 2 * var(--news-grid-gap));
  --news-card-img-aspect-mobile: 259 / 194;

  /* Catalog */
  --catalog-card-w-tablet: 288px;
  --catalog-card-w-desktop: 283px;
  --catalog-card-img-aspect: 283 / 335;
  --catalog-card-body-gap: var(--space-sm);
  --catalog-grid-gap: var(--space-lg);
  --catalog-grid-gap-x-mobile: var(--space-md);
  --catalog-grid-gap-y: var(--space-lg);
  --catalog-grid-gap-wide: var(--space-lg);
  --catalog-grid-row-h-mobile: 302.5px;
  --catalog-grid-row-h-wide: 410px;
  --catalog-grid-img-h-mobile: 188.5px;
  --catalog-grid-img-h-wide: 312px;
  --product-card-cart-size: 48px;
  --catalog-list-w-desktop: calc(3 * var(--catalog-card-w-desktop) + 2 * var(--catalog-grid-gap));
  --catalog-cart-panel-h: var(--news-cart-panel-h);
  --catalog-category-slider-w-desktop: 896px;
  --catalog-category-card-w-mobile: 165px;
  --catalog-category-card-h-mobile: 120px;
  --catalog-category-card-size-wide: 160px;
  --catalog-category-gradient-w: 32px;
  --catalog-select-h-mobile: 36px;
  --catalog-select-h-wide: 44px;
  --catalog-select-radius: 100px;
  --catalog-select-menu-w: 212px;
  --catalog-select-option-h: 36px;
  --catalog-select-option-pad-y: var(--space-sm);
  --catalog-select-option-pad-x: var(--space-md);
  --catalog-select-option-check-size: 20px;
  --catalog-select-menu-shadow: 0 14px 34px rgb(50 45 26 / 0.12);
  --catalog-pagination-w: 344px;
  --catalog-pagination-h: 44px;
  --catalog-pagination-gap: var(--space-sm);
  --catalog-pagination-control-size: 40px;
  --catalog-pagination-item-w: 40px;
  --catalog-pagination-item-h: 32px;
  --catalog-pagination-icon-size: 24px;
  --catalog-pagination-border-color: var(--color-pagination-border);
  --catalog-pagination-radius: 4px;
  --catalog-pagination-text: var(--color-pagination-muted);
  --catalog-pagination-text-active: var(--color-black);
  --catalog-pagination-bg-active: var(--color-bg-muted);

  /* Checkout */
  --checkout-heading: var(--color-text-soft);
  --checkout-option-bg: var(--color-bg-muted);
  --checkout-option-gap: var(--space-sm);
  --checkout-option-h-mobile: 90px;
  --checkout-option-h-wide: 94px;
  --checkout-option-radio-size: 18px;
  --checkout-option-radio-radius: 33px;
  --checkout-option-radio-border: 2px;
  --checkout-option-radio-border-checked: 4px;
  --checkout-option-card-bg-hover: var(--color-pagination-border);
  --checkout-submit-w: 312px;
  --checkout-submit-h: 44px;
  --checkout-hero-mb: var(--space-lg);
  --checkout-btn-bg: #6b4a28;
  --checkout-btn-bg-hover: #7a5630;
  --checkout-aside-sticky-top: var(--space-md);
  --checkout-field-gap: var(--space-xs);
  --checkout-fields-gap: 15px;
  --checkout-fields-row-gap: 15px;
  --checkout-fields-row-gap-desktop: var(--space-md);
  --checkout-input-h: 40px;
  --checkout-input-radius: var(--radius-md);
  --checkout-input-w-mobile: 75%;
  --checkout-input-min-w-tablet: 256px;
  --checkout-input-w-desktop: 440px;
  --checkout-address-locality-gap-mobile: 15px;
  --checkout-address-locality-gap-wide: var(--space-md);
  --checkout-address-fields-gap-wide: 15px;
  --checkout-address-fields-gap-mobile: var(--space-md);

  /* Form text input states */
  --input-border: var(--color-border);
  --input-border-hover: var(--color-icon-outline);
  --input-placeholder: var(--color-text-soft);
  --input-text: var(--color-black);
  --input-disabled-opacity: 0.4;
  --button-disabled-opacity: 0.4;

  /* Home */
  --home-hero-aspect-mobile: 375 / 220;
  --home-hero-aspect-tablet: 912 / 320;
  --home-hero-aspect-desktop: 1280 / 400;
  --home-category-img-aspect: 1 / 1;
  --home-promo-aspect-mobile: 343 / 140;
  --home-promo-aspect-wide: 628 / 240;
  --home-section-gap: var(--space-lg);
  --home-section-pad-y-mobile: var(--space-md);
  --home-section-pad-y-wide: var(--space-lg);
  --home-benefit-icon-size: 40px;
  --home-featured-bg: var(--color-accent);
  --home-greenhouse-color: #2fa84f;
  --home-catalog-greenhouse-img-w-mobile: 95px;
  --home-catalog-greenhouse-img-h-mobile: 64px;
  --home-catalog-greenhouse-img-w-wide: 136px;
  --home-catalog-greenhouse-img-h-wide: 92px;
  --home-catalog-greenhouse-pad-block-start: 24px;
  --home-catalog-greenhouse-pad-block-end: 12px;
  --home-catalog-greenhouse-pad-inline-start: 24px;
  --home-catalog-greenhouse-pad-inline-end-mobile: 12px;
  --home-catalog-greenhouse-pad-inline-end-wide: 16px;
  --home-catalog-layout-gap-mobile: 8px;
  --home-catalog-layout-gap-tablet: 12px;
  --home-catalog-card-ar-w-mobile: 170;
  --home-catalog-card-ar-h-mobile: 129;
  --home-catalog-card-ar-w-wide-sm: 209;
  --home-catalog-card-ar-h-wide-sm: 160;
  --home-catalog-card-ar-w-tablet: 225;
  --home-catalog-card-ar-h-tablet: 160;
  --home-tablet-hero-h: 320px;
  --home-tablet-card-h: 120px;
  --home-desktop-content-w: 1280px;
  --home-desktop-hero-h: 400px;
  --home-desktop-hero-w: 846px;
  --home-desktop-side-w: 410px;
  --home-desktop-feature-h: 188px;
  --home-desktop-card-h: 160px;
  --home-best-media-h-mobile: 128px;
  --home-best-media-h-tablet: 224px;
  --home-best-media-h-desktop: 220px;
  --home-best-cart-size: 40px;
  --home-sale-banner-bg: #f08e35;
  --home-sale-h-mobile: 330px;
  --home-sale-h-tablet: 310px;
  --home-sale-h-desktop: 332px;
  --home-sale-banner-body-pad-y-desktop: 59px;
  --home-sale-img-mobile: 290px;
  --home-sale-img-tablet: 480px;
  --home-sale-img-desktop: 626px;
  --home-sale-control-size: 38px;

  /* Article */
  --article-cover-h: 460px;
  --article-body-gap-mobile: 20px;
  --article-body-gap-wide: 92px;
  --article-prose-block-gap: var(--space-sm);
  --article-prose-blocks-gap: var(--space-lg);
  --article-prose-h4-size: var(--text-lg);
  --article-prose-h4-lh: var(--lh-title-md);
  --article-prose-h4-weight: 600;
  --article-prose-w: 540px;
  --article-aside-w: 280px;
  --article-aside-h: 458px;
  --article-product-media-w-mobile: 343px;
  --article-product-cart-inset: calc(var(--space-unit) * 3);
  --article-cart-panel-h: var(--catalog-cart-panel-h);
  --article-body-mb: var(--space-lg);
  --article-similar-track-h-mobile: 298px;
  --article-similar-track-h-wide: 406px;
  --article-similar-card-w-mobile: 160px;
  --article-similar-card-bp-wide: 640px;
  --article-similar-card-w-tablet: 288px;
  --article-similar-card-w-desktop: 282px;
  --article-spec-accent-w: 4px;
  --color-spec-bg: #fdf5f2;
  --color-spec-title: #c8440a;
  --color-spec-accent: var(--color-accent);
  --color-spec-text: var(--color-black);

  /* UI */
  --color-pagination-border: #e9e9eb;
  --color-pagination-muted: #92896d;
  --focus-ring-accent: 2px solid var(--color-accent);
  --focus-ring-offset: 2px;
}

@media (min-width: 960px) {
  :root {
    --page-pad-x: var(--space-lg);
    --header-pad-x: var(--space-lg);
  }
}

@media (min-width: 1440px) {
  :root {
    --page-pad-x: var(--space-3xl);
    --header-pad-x: var(--space-3xl);
  }
}

/* ===== RESET (minimal) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

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

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* ===== BASE ===== */
html {
  font-family: var(--font-main);
}

.page {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: clip;
}

.page:has(.home-page) {
  overflow-x: hidden;
}

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

/* ===== FORM TEXT INPUT ===== */
.checkout-field__input,
.checkout-field__textarea,
.header-search__input {
  margin: 0;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--input-text);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.checkout-field__input,
.checkout-field__textarea {
  border: 1px solid var(--input-border);
  background-color: var(--color-white);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.checkout-field__input::placeholder,
.checkout-field__textarea::placeholder,
.header-search__input::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}

.checkout-field__input::-webkit-input-placeholder,
.checkout-field__textarea::-webkit-input-placeholder,
.header-search__input::-webkit-input-placeholder {
  color: var(--input-placeholder);
}

.checkout-field__input::-moz-placeholder,
.checkout-field__textarea::-moz-placeholder,
.header-search__input::-moz-placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}

.checkout-field__input:hover:not(:disabled),
.checkout-field__textarea:hover:not(:disabled) {
  border-color: var(--input-border-hover);
}

.checkout-field__input:hover:not(:disabled)::placeholder,
.checkout-field__textarea:hover:not(:disabled)::placeholder {
  color: var(--input-placeholder);
}

.checkout-field__input:focus,
.checkout-field__input:focus-visible,
.checkout-field__textarea:focus,
.checkout-field__textarea:focus-visible {
  border-color: var(--input-border);
  color: var(--input-text);
  outline: none;
  box-shadow: none;
}

.checkout-field__input:disabled,
.checkout-field__textarea:disabled {
  border-color: var(--input-border);
  color: var(--input-text);
  opacity: var(--input-disabled-opacity);
  cursor: not-allowed;
}

.checkout-field__input:invalid,
.checkout-field__textarea:invalid,
.header-search__input:invalid {
  border-color: var(--input-border);
  box-shadow: none;
}

.checkout-field__input:-webkit-autofill,
.checkout-field__input:-webkit-autofill:hover,
.checkout-field__input:-webkit-autofill:focus,
.checkout-field__input:-webkit-autofill:active,
.checkout-field__textarea:-webkit-autofill,
.checkout-field__textarea:-webkit-autofill:hover,
.checkout-field__textarea:-webkit-autofill:focus,
.checkout-field__textarea:-webkit-autofill:active,
.header-search__input:-webkit-autofill,
.header-search__input:-webkit-autofill:hover,
.header-search__input:-webkit-autofill:focus,
.header-search__input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--input-text);
  caret-color: var(--input-text);
  box-shadow: 0 0 0 1000px var(--color-white) inset;
  transition: background-color 9999s ease-out 0s;
}

.checkout-field__input[type="search"]::-webkit-search-decoration,
.checkout-field__input[type="search"]::-webkit-search-cancel-button,
.header-search__input[type="search"]::-webkit-search-decoration,
.header-search__input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.checkout-field__input[type="number"]::-webkit-inner-spin-button,
.checkout-field__input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkout-field__input[type="number"] {
  -moz-appearance: textfield;
}

/* ===== BUTTON ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: var(--lh-text-sm);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.button:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: var(--focus-ring-offset);
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.button--primary:hover {
  background-color: var(--color-accent-hover);
}

.button--primary:active {
  background-color: var(--color-accent-pressed);
  transform: none;
}

.button--primary:disabled,
.button--primary:disabled:hover,
.button--primary:disabled:active {
  opacity: var(--button-disabled-opacity);
  cursor: not-allowed;
  transform: none;
}

.button--catalog {
  flex-shrink: 0;
  gap: 6px;
}

.button__icon-img {
  display: block;
  width: 24px;
  height: 24px;
}

.button--block {
  width: 100%;
}

.button--cart {
  min-width: 0;
  height: var(--qty-h);
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
}

.button--cart .button__icon-img {
  display: block;
  width: 20px;
  height: 20px;
}

@media (min-width: 960px) {
  .button--cart {
    flex: 0 0 auto;
    width: var(--product-cart-btn-w-tablet);
  }
}

@media (min-width: 1440px) {
  .button--cart {
    width: var(--product-cart-btn-w-desktop);
  }
}

.button--checkout {
  justify-content: space-between;
  padding-block: var(--space-md);
}

.button__total {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--lh-relaxed);
}

/* ===== HEADER ===== */
.site-header {
  background-color: var(--color-white);
}

.top-bar {
  display: none;
  width: 100%;
  margin: 0;
  max-width: none;
  border-radius: 0;
  background-color: var(--color-bg-muted);
}

@media (min-width: 960px) {
  .top-bar {
    display: block;
  }
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  box-sizing: border-box;
  height: var(--header-top-bar-h);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-block: 0;
  padding-inline: var(--header-pad-x);
  background-color: var(--color-bg-muted);
}

.top-bar__nav,
.top-bar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.top-bar__link {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-black);
  white-space: nowrap;
}

.top-bar__link:hover {
  text-decoration: underline;
}

.top-bar__schedule {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.header-main {
  padding: var(--space-sm) var(--header-pad-x) var(--space-md);
}

@media (min-width: 960px) {
  .header-main {
    padding-block: var(--space-lg);
  }
}

.header-main__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}

.header-main__logo {
  grid-column: 1;
  grid-row: 1;
}

.header-main__icons {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.header-main__toolbar {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

@media (min-width: 960px) {
  .header-main__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 23px;
  }

  .header-main__logo {
    order: 1;
    flex-shrink: 0;
  }

  .header-main__toolbar {
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 0;
  }

  .header-main__icons {
    order: 3;
    flex-shrink: 0;
    gap: var(--space-sm);
  }
}

@media (min-width: 1440px) {
  .header-main {
    padding-inline: max(var(--page-pad-x), calc((100vw - var(--header-content-max)) / 2));
  }

  .top-bar__inner,
  .header-main__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--header-content-max);
    margin-inline: auto;
    padding-inline: 0;
  }
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-header-icon);
  flex-shrink: 0;
}

.header-icon-btn__img {
  display: block;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.header-icon-btn--user {
  border: 1px solid var(--color-icon-outline);
  background-color: transparent;
  color: var(--color-black);
}

.header-icon-btn--user:hover {
  background-color: var(--color-bg-muted);
}

.header-icon-btn--cart {
  border: none;
  background-color: var(--color-accent);
}

.header-icon-btn--cart:hover {
  background-color: var(--color-accent-hover);
}

.header-icon-btn--cart:active {
  background-color: var(--color-accent-pressed);
}

.header-icon-btn--cart:disabled {
  opacity: var(--input-disabled-opacity);
  cursor: not-allowed;
}

.header-icon-btn:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

@media (min-width: 960px) {
  .header-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
  }

  .header-icon-btn__img {
    width: 24px;
    height: 24px;
  }
}

.header-search {
  flex: 1;
  min-width: 0;
}

.header-search__field {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 15px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  transition: border-color 0.15s ease, opacity 0.15s ease;
  height: 40px;
}

.header-search__field:hover:not(:has(.header-search__input:disabled)) {
  border-color: var(--input-border-hover);
}

.header-search__field:focus-within {
  border-color: var(--input-border);
}

.header-search__field:has(.header-search__input:disabled) {
  opacity: var(--input-disabled-opacity);
  cursor: not-allowed;
}

.header-search__icon {
  display: flex;
  color: var(--color-black);
  flex-shrink: 0;
}

.header-search__icon-img {
  display: block;
  width: 20px;
  height: 20px;
}

.header-search__input {
  flex: 1;
  border: 0;
  min-width: 0;
  color: var(--input-text);
  background: transparent;
}

.header-search__input:focus,
.header-search__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.header-search__input:disabled {
  cursor: not-allowed;
}

@media (max-width: 959px) {
  .button--catalog {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-md);
  }

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

  .button--catalog .button__icon-img {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 960px) {
  .button--catalog {
    width: 134px;
    height: 48px;
    min-width: 0;
  }
}

/* ===== PRODUCT LAYOUT ===== */
.product-layout {
  padding: 0 var(--page-pad-x) var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
}

.product-layout__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 1440px) {
  .product-layout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(var(--aside-width), 100%);
    align-items: start;
    gap: var(--space-lg);
  }

  .product-layout__aside {
    position: sticky;
    top: var(--space-md);
  }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  margin: 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  padding-left: 0;
  list-style: none;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
}

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

.breadcrumb__link {
  color: var(--color-text-muted);
}

.breadcrumb__link:hover {
  text-decoration: underline;
  color: var(--color-black);
}

.breadcrumb__current {
  color: var(--color-black);
}

.breadcrumb__sep {
  display: flex;
  align-items: center;
}

.breadcrumb__sep-img {
  display: block;
  width: 24px;
  height: 24px;
  max-width: none;
  flex-shrink: 0;
}

/* ===== PRODUCT HERO ===== */
.product-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.product-hero__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 1440px) {
  .product-hero__row {
    flex-direction: row;
    gap: var(--space-lg);
    align-items: flex-start;
  }
}

/* ===== GALLERY ===== */
.product-gallery {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: var(--space-sm);
  width: 100%;
  height: var(--gallery-h-mobile);
}

@media (min-width: 960px) {
  .product-gallery {
    height: var(--gallery-h-wide);
  }
}

@media (min-width: 1440px) {
  .product-gallery {
    flex: 0 0 var(--gallery-w-desktop);
    width: var(--gallery-w-desktop);
    max-width: var(--gallery-w-desktop);
  }
}

.product-gallery__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  height: var(--gallery-stage-h-mobile);
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

@media (min-width: 960px) {
  .product-gallery__stage {
    width: 100%;
    height: var(--gallery-stage-h-wide);
  }
}

@media (min-width: 1440px) {
  .product-gallery__stage {
    height: var(--gallery-w-desktop);
  }
}

.product-gallery__img {
  display: block;
  flex-shrink: 0;
  width: var(--gallery-img-w-mobile);
  height: var(--gallery-img-h-mobile);
  object-fit: cover;
}

@media (min-width: 1440px) {
  .product-gallery__img {
    width: var(--gallery-w-desktop);
    height: var(--gallery-w-desktop);
  }
}

.tag {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-white);
  z-index: 1;
}

.tag--sale {
  background-color: var(--color-semantic-red);
}

.product-gallery__stage .tag--sale {
  top: 0;
  right: 0;
  left: auto;
  margin-top: var(--gallery-tag-offset);
  margin-right: var(--gallery-tag-offset);
}

.product-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 960px) {
  .product-gallery__thumbs {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.product-gallery__thumb-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--gallery-thumb-wrap-size);
  height: var(--gallery-thumb-wrap-size);
  border: none;
  border-radius: var(--gallery-thumb-radius);
}

.product-gallery__thumb-wrap:has(.product-gallery__thumb--active) {
  border: 1px solid var(--color-black);
}

.product-gallery__thumb {
  position: relative;
  width: var(--gallery-thumb-size);
  height: var(--gallery-thumb-size);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--gallery-thumb-radius);
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.product-gallery__thumb img:not(.product-gallery__play) {
  display: block;
  width: 54px;
  height: 72px;
  margin: 0 auto;
  object-fit: cover;
}

.product-gallery__thumb:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: var(--focus-ring-offset);
}

.product-gallery__thumb--video .product-gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===== PRODUCT INFO ===== */
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.product-info__title {
  font-size: var(--text-h2-mobile);
  font-weight: 700;
  line-height: var(--lh-h2-mobile);
  letter-spacing: -0.02em;
}

@media (min-width: 960px) {
  .product-info__title {
    font-size: var(--text-2xl);
    line-height: var(--lh-heading-lg);
  }
}

.product-info__sku {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
}

.product-info__options {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--product-options-gap-mobile);
}

@media (min-width: 960px) {
  .product-info__options {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: var(--space-lg);
  }
}

.option-group__label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
}

.option-group__chips.chips {
  gap: var(--space-sm);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: flex-end;
}

.chips__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--chip-size);
  height: var(--chip-size);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--chip-radius);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  color: var(--color-border);
  background: none;
  cursor: pointer;
}

.chips__btn--active {
  border-color: var(--color-black);
  color: var(--color-black);
}

.chips__btn:hover,
.chips__btn:focus-visible {
  border-color: var(--color-black);
  color: var(--color-border);
  outline: none;
}

.chips__btn--active:hover,
.chips__btn--active:focus-visible {
  border-color: var(--color-black);
  color: var(--color-black);
}

.chips__btn:disabled {
  opacity: var(--input-disabled-opacity);
  cursor: not-allowed;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.color-swatches__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: var(--swatch-btn-size);
  height: var(--swatch-btn-size);
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--swatch-radius);
  background: none;
  cursor: pointer;
}

.color-swatches__swatch {
  display: block;
  width: var(--swatch-inner-size);
  height: var(--swatch-inner-size);
  border-radius: var(--swatch-radius);
}

.color-swatches__btn--black .color-swatches__swatch {
  background-color: var(--color-black);
}

.color-swatches__btn--yellow .color-swatches__swatch {
  background-color: var(--color-semantic-yellow);
}

.color-swatches__btn--green .color-swatches__swatch {
  background-color: var(--color-semantic-green);
}

.color-swatches__btn:hover:not(:disabled),
.color-swatches__btn:focus-visible:not(:disabled) {
  border-color: var(--color-black);
  outline: none;
}

.color-swatches__btn--active,
.color-swatches__btn--active:hover:not(:disabled),
.color-swatches__btn--active:focus-visible:not(:disabled) {
  border-color: var(--color-black);
}

.color-swatches__btn:disabled {
  opacity: var(--input-disabled-opacity);
  cursor: not-allowed;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-semantic-green);
}

.stock-badge__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background-color: var(--color-semantic-green);
}

.product-info__buy {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: stretch;
}

@media (max-width: 399px) {
  .product-info__buy {
    flex-direction: column;
  }
}

/* ===== QTY ===== */
.qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--qty-h);
  border: 1px solid var(--color-border);
  border-radius: var(--qty-radius);
  background-color: var(--color-white);
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.qty:hover {
  border-color: var(--qty-border-hover);
}

.qty--lg {
  width: 100%;
  padding: 0 var(--space-md);
}

@media (min-width: 960px) {
  .qty--lg {
    width: var(--qty-w-wide);
  }
}

.qty--sm {
  height: auto;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  gap: var(--space-sm);
}

.qty__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  border-radius: var(--radius-sm);
}

.qty__btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty__btn:not(:disabled):hover,
.qty__btn:not(:disabled):focus-visible {
  background-color: var(--color-bg-muted);
}

.qty__value {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-text-strong);
  min-width: 1.5ch;
  text-align: center;
}

/* ===== DELIVERY ===== */
.delivery-card {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.delivery-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--lh-relaxed);
  color: var(--color-black);
}

.delivery-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.delivery-card__item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.delivery-card__name {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
}

.delivery-card__meta {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
}

/* ===== DESCRIPTION ===== */
.product-desc__title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
  color: var(--color-black);
}

.product-desc__text {
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  line-height: var(--lh-text-sm);
  color: var(--color-black);
}

.spec-table__row {
  border-bottom: 1px solid var(--color-border);
}

.spec-table__row:first-child {
  border-top: 1px solid var(--color-border);
}

.spec-table__cell {
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  line-height: var(--lh-text-sm);
  text-align: right;
}

.spec-table__cell--label {
  text-align: left;
  font-weight: 400;
}

/* ===== RELATED ===== */
.related {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.related__title {
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
  color: var(--color-black);
}

@media (min-width: 960px) {
  .related__title {
    font-size: var(--text-xl);
    line-height: var(--lh-heading-md);
  }
}

.related__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-xs);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.related__grid .card-product {
  flex: 0 0 calc((100% - 2 * var(--space-md)) / 3);
  max-width: calc((100% - 2 * var(--space-md)) / 3);
  scroll-snap-align: start;
}

@media (min-width: 960px) {
  .related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .related__grid .card-product {
    flex: none;
    max-width: none;
  }
}

.related.home-products {
  --home-products-action-color: var(--color-text-muted);
  --home-products-badge-bg: var(--color-semantic-red);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.related.home-products .home-products__grid {
  --home-products-grid-gap: var(--space-md);
  --home-products-media-pad: 12px;
  --home-products-media-h: 188.5px;
  --home-products-card-w: minmax(0, 1fr);
  display: grid;
  grid-template-columns: repeat(2, var(--home-products-card-w));
  gap: var(--home-products-grid-gap);
  height: 302px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related.home-products .home-products__item:nth-child(n + 3) {
  display: none;
}

.related.home-products .home-product-card {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-lg);
}

.related.home-products .home-product-card__media {
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: var(--home-products-media-h);
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: var(--home-products-media-pad);
  overflow: hidden;
  background-color: var(--color-white);
}

.related.home-products .home-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related.home-products .home-product-card__tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: inline-flex;
  box-sizing: border-box;
  width: 67px;
  height: 16px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-white);
  background-color: var(--home-products-badge-bg);
}

.related.home-products .home-product-card__cart {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-md);
  color: var(--color-white);
  background-color: var(--color-black);
}

.related.home-products .home-product-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-xs);
}

.related.home-products .home-product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin: 0;
}

.related.home-products .home-product-card__price-current {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-accent-strong);
}

.related.home-products .home-product-card__price-old {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
  text-decoration: line-through;
}

.related.home-products .home-product-card__name {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-black);
}

.related.home-products .home-product-card__link:hover {
  color: var(--color-accent-strong);
}

.related.home-products .home-product-card__cart:hover {
  filter: brightness(1.1);
}

.related.home-products .home-product-card__cart:focus-visible,
.related.home-products .home-product-card__link:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

@media (min-width: 960px) {
  .related.home-products .home-products__grid {
    --home-products-grid-gap: var(--space-lg);
    --home-products-media-h: 312px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 410px;
  }

  .related.home-products .home-products__item:nth-child(n + 3) {
    display: block;
  }

  .related.home-products .home-product-card__price-current {
    font-size: var(--text-base);
    line-height: var(--lh-text-sm);
  }

  .related.home-products .home-product-card__name {
    font-size: var(--text-sm);
    line-height: var(--lh-text-sm);
  }
}

.card-product {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-radius: var(--radius-sm);
}

.card-product__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-white);
}

.card-product__img {
  width: 100%;
  aspect-ratio: 360 / 335;
  object-fit: cover;
}

.card-product .tag {
  top: var(--space-sm);
  left: var(--space-md);
  right: auto;
}

.card-product__fav {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-black);
  color: var(--color-white);
}

.card-product__fav:hover {
  filter: brightness(1.1);
}

.card-product__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 1px 0;
}

.card-product__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.card-product__price {
  font-size: var(--text-base);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-accent-strong);
}

@media (min-width: 960px) {
  .card-product__price {
    font-size: var(--text-lg);
    line-height: var(--lh-relaxed);
  }
}

.card-product__price-old,
.cart-item__old,
.cart-drawer-item__old {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
  text-decoration: line-through;
}

.card-product__name {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
}

.card-product__link:hover {
  text-decoration: underline;
}

/* ===== CART PANEL ===== */
.cart-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  min-height: 320px;
}

.cart-panel__title {
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
}

@media (min-width: 960px) {
  .cart-panel__title {
    font-size: var(--text-xl);
    line-height: var(--lh-heading-md);
  }
}

.cart-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.cart-item__preview {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  padding: 1px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-white);
}

.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cart-item__title {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
}

.cart-item__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cart-item__price {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  text-align: right;
  color: var(--color-accent-strong);
}

.cart-panel__summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  margin-top: auto;
}

.cart-panel__discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-panel__discount-label {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
}

.cart-panel__discount-value {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-accent-strong);
}

.cart-panel__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--space-unit) * 8);
}

.cart-panel__empty-icon {
  width: 80px;
  height: 80px;
}

.cart-panel__empty-text {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--lh-h3-mobile);
  color: var(--color-black);
  text-align: center;
}

@media (min-width: 1440px) {
  .cart-panel__title {
    color: var(--color-black);
  }

  .cart-panel .cart-item {
    height: 80px;
    align-items: center;
  }

  .cart-panel .cart-item__preview {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
  }

  .cart-panel .cart-item__main {
    gap: 0;
  }

  .cart-panel .cart-item__title {
    height: 40px;
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: var(--lh-text-sm);
    color: #000000;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .cart-panel .cart-item__row .qty--sm {
    box-sizing: border-box;
    width: 91px;
    height: 28px;
    padding: 0 var(--space-sm);
    gap: var(--space-xs);
  }

  .cart-panel .cart-panel__discount {
    margin-bottom: 14px;
  }

  .cart-panel .button--checkout.button--block {
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: space-between;
    padding-block: 0;
  }

  .cart-panel .button--checkout .button__label,
  .cart-panel .button--checkout .button__total {
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: var(--lh-text-sm);
    color: var(--color-white);
  }
}

.product-layout__aside.layout-cart {
  display: none;
}

@media (min-width: 1440px) {
  .product-layout__aside.layout-cart {
    display: block;
  }

  .product-layout__aside.layout-cart .cart-panel__inner {
    min-height: var(--layout-cart-panel-h);
  }
}

/* ===== CATALOG PANEL (mobile < 750px, tablet/desktop >= 750px) ===== */
@media (max-width: 749px) {
  .page--catalog-panel-open,
  .page:has(#catalog-panel-toggle:checked) {
    overflow: hidden;
  }
}

.catalog-panel {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.28s;
}

.catalog-panel--open,
.catalog-panel--closing,
.page:has(#catalog-panel-toggle:checked) .catalog-panel {
  visibility: visible;
  pointer-events: none;
  transition: visibility 0s linear 0s;
}

.catalog-panel__surface {
  position: fixed;
  top: var(--catalog-panel-top, 0);
  left: var(--catalog-panel-left, 0);
  width: var(--catalog-panel-width, 100%);
  box-sizing: border-box;
  padding: var(--space-md);
  background-color: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 12px 40px rgb(50 45 26 / 0.12);
  transform: translateY(calc(-100% - var(--space-xs)));
  transition: transform 0.28s ease;
  pointer-events: none;
}

.catalog-panel--open .catalog-panel__surface,
.page:has(#catalog-panel-toggle:checked) .catalog-panel .catalog-panel__surface {
  transform: translateY(0);
  pointer-events: auto;
}

.catalog-panel--fullscreen .catalog-panel__surface {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  box-shadow: none;
}

.catalog-panel--fullscreen.catalog-panel--open .catalog-panel__surface {
  transform: translateY(0);
}

.catalog-panel--fullscreen .catalog-panel__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.catalog-panel--fullscreen .catalog-panel__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.catalog-panel--fullscreen .catalog-panel__visual {
  margin-top: auto;
}

.catalog-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.catalog-panel__title {
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
}

.catalog-panel__close,
.cart-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: -8px;
  border-radius: var(--radius-sm);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-black);
}

.catalog-panel__close:hover,
.cart-drawer__close:hover {
  background-color: var(--color-bg-muted);
}

.catalog-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.catalog-panel__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.catalog-panel__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-panel__link {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
}

.catalog-panel__link:hover {
  color: var(--color-accent-strong);
}

.catalog-panel__link--featured {
  font-weight: 700;
}

.catalog-panel__visual {
  flex-shrink: 0;
}

.catalog-panel__visual-img {
  display: block;
  height: auto;
}

.catalog-panel__visual-img--mobile {
  width: 100%;
}

.catalog-panel__visual-img--tablet,
.catalog-panel__visual-img--desktop {
  display: none;
}

.catalog-panel__close:focus-visible,
.catalog-panel__link:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

@media (min-width: 750px) {
  .catalog-panel__head {
    display: none;
  }

  .catalog-panel__surface {
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
  }

  .catalog-panel__body {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .catalog-panel__nav {
    flex: 1;
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .catalog-panel__list--secondary {
    margin-top: 0;
  }

  .catalog-panel__list--featured {
    min-width: 120px;
  }

  .catalog-panel__visual {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: 0;
  }

  .catalog-panel__visual-img--mobile {
    display: none;
  }

  .catalog-panel__visual-img--tablet {
    display: block;
    width: auto;
    max-width: 280px;
  }
}

@media (min-width: 1440px) {
  .catalog-panel__body {
    gap: 56px;
  }

  .catalog-panel__nav {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 48px 56px;
    align-items: start;
  }

  .catalog-panel__list--featured {
    min-width: 0;
  }

  .catalog-panel__visual {
    align-self: stretch;
    justify-content: flex-end;
  }

  .catalog-panel__visual-img--tablet {
    display: none;
  }

  .catalog-panel__visual-img--desktop {
    display: block;
    width: auto;
    max-width: 280px;
  }
}

@media (max-width: 749px) {
  .catalog-panel .catalog-panel__surface {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transform: translateY(-100%);
  }

  .catalog-panel .catalog-panel__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .catalog-panel .catalog-panel__nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .catalog-panel .catalog-panel__visual {
    margin-top: auto;
  }

  .page:has(#catalog-panel-toggle:checked) .catalog-panel .catalog-panel__surface {
    transform: translateY(0);
  }
}

@media (min-width: 750px) and (max-width: 1439px) {
  .catalog-panel .catalog-panel__surface {
    --catalog-panel-top: calc(var(--space-sm) + 40px + var(--space-sm) + 48px + var(--space-md) + 4px);
    --catalog-panel-left: max(var(--header-pad-x), calc((100vw - var(--container-max)) / 2));
    --catalog-panel-width: min(var(--container-max), 100vw - 2 * var(--header-pad-x));
  }

  .catalog-panel__nav {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: var(--space-sm) 48px;
  }

  .catalog-panel__list--primary {
    grid-column: 1;
    grid-row: 1;
  }

  .catalog-panel__list--secondary {
    grid-column: 1;
    grid-row: 2;
  }

  .catalog-panel__list--featured {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
  }
}

@media (min-width: 960px) {
  .catalog-panel .catalog-panel__surface {
    --catalog-panel-top: calc(var(--header-top-bar-h) + var(--space-lg) + 48px + var(--space-lg) + 4px);
    --catalog-panel-left: max(var(--header-pad-x), calc((100vw - var(--container-max)) / 2));
    --catalog-panel-width: min(var(--container-max), 100vw - 2 * var(--header-pad-x));
  }
}

@media (min-width: 1440px) {
  .catalog-panel .catalog-panel__surface {
    --catalog-panel-left: max(var(--page-pad-x), calc((100vw - var(--header-content-max)) / 2));
    --catalog-panel-width: var(--header-content-max);
  }
}

/* ===== CART DRAWER ===== */
.page--cart-drawer-open,
.page:has(#cart-drawer-toggle:checked) {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.28s;
}

.cart-drawer--open,
.cart-drawer--closing,
.page:has(#cart-drawer-toggle:checked) .cart-drawer {
  visibility: visible;
  pointer-events: none;
  transition: visibility 0s linear 0s;
}

.cart-drawer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  max-width: 440px;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-md);
  border-radius: 0;
  background-color: var(--color-white);
  color: var(--color-black);
  box-shadow: -12px 0 40px rgb(50 45 26 / 0.14);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.cart-drawer--open .cart-drawer__panel,
.page:has(#cart-drawer-toggle:checked) .cart-drawer .cart-drawer__panel {
  transform: translateX(0);
  pointer-events: auto;
}

@media (min-width: 960px) {
  .cart-drawer__panel {
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  }
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.cart-drawer__title {
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
}

.cart-drawer__items {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
  padding-bottom: var(--space-md);
}

.cart-drawer-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  min-width: 0;
}

.cart-drawer-item__preview {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
}

.cart-drawer-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-drawer-item__main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: var(--space-sm);
}

.cart-drawer-item__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.cart-drawer-item__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
}

.cart-drawer-item__qty {
  width: 96px;
  min-height: 28px;
}

.cart-drawer-item__prices {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cart-drawer-item__price {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-accent-strong);
}

.cart-drawer__summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-sm);
}

.cart-drawer__discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
}

.cart-drawer__discount span:last-child {
  font-size: var(--text-sm);
  line-height: var(--lh-text-sm);
  color: var(--color-accent-strong);
}

.cart-drawer__checkout {
  min-height: 48px;
  border-radius: var(--radius-md);
}

.cart-drawer__close:focus-visible,
.cart-drawer__checkout:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

@media (min-width: 960px) {
  .cart-drawer__panel {
    padding: var(--space-xl);
  }

  .cart-drawer__head {
    margin-bottom: var(--space-lg);
  }

  .cart-drawer__title {
    font-size: var(--text-xl);
    line-height: var(--lh-heading-md);
  }

  .cart-drawer__close {
    margin-top: -4px;
  }
}

/* ===== NEWS PAGE ===== */
.news-page + .site-footer {
  margin-top: 0;
}

.news-page.product-layout {
  padding-bottom: var(--space-xl);
}

@media (min-width: 960px) {
  .news-page.product-layout {
    padding-bottom: var(--space-lg);
  }
}

.news-page__list-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

@media (min-width: 1440px) {
  .news-page.product-layout {
    padding-bottom: var(--space-lg);
  }

  .news-page__list-col {
    width: var(--news-list-w-desktop);
    max-width: 100%;
  }
}

.news-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.news-hero__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.news-hero__title {
  font-size: var(--text-h2-mobile);
  font-weight: 700;
  line-height: var(--lh-h2-mobile);
  letter-spacing: -0.02em;
}

.news-filter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.news-filter__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: var(--catalog-select-h-mobile);
  padding: 2px var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--catalog-select-radius);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-black);
  text-decoration: none;
  background-color: var(--color-white);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.news-filter__item:hover {
  background-color: var(--color-bg-muted);
}

.news-filter__item--active {
  border-color: var(--color-black);
  color: var(--color-white);
  background-color: var(--color-black);
}

.news-filter__item--active:hover {
  background-color: var(--color-black);
}

.news-filter__item:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--news-grid-gap);
}

@media (min-width: 960px) and (max-width: 1439px) {
  .news-list {
    grid-template-columns: repeat(3, var(--news-card-w-tablet));
    gap: var(--news-grid-gap);
    justify-content: start;
    width: fit-content;
    max-width: 100%;
  }
}

@media (min-width: 1440px) {
  .news-list {
    grid-template-columns: repeat(3, var(--news-card-w-desktop));
    gap: var(--news-grid-gap);
    justify-content: start;
    width: var(--news-list-w-desktop);
    max-width: 100%;
  }
}

.news-card {
  min-width: 0;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  height: 100%;
}

.news-card__link:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: 4px;
  border-radius: var(--radius-xl);
}

.news-card__image {
  width: 100%;
  aspect-ratio: var(--news-card-img-aspect-mobile);
  object-fit: cover;
  border-radius: var(--radius-xl);
  background-color: var(--color-bg-muted);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  flex: 1;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
}

.news-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
}

.news-card__text {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
  line-clamp: 3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card__link:hover .news-card__title {
  text-decoration: underline;
}

@media (min-width: 960px) {
  .news-hero__title {
    font-size: var(--text-2xl);
    line-height: var(--lh-heading-lg);
  }

  .news-filter {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .news-filter__item {
    min-height: var(--catalog-select-h-wide);
    padding: 6px var(--space-md);
  }

  .news-card__title {
    font-size: var(--text-lg);
    line-height: var(--lh-title-md);
  }
}

@media (min-width: 960px) and (max-width: 1439px) {
  .news-card {
    width: var(--news-card-w-tablet);
    height: var(--news-card-h-tablet);
  }

  .news-card__link {
    gap: var(--space-lg);
    min-height: 0;
  }

  .news-card__image {
    width: var(--news-card-w-tablet);
    height: var(--news-card-img-h-tablet);
    aspect-ratio: unset;
    flex-shrink: 0;
  }

  .news-card__body {
    min-height: 0;
    overflow: hidden;
  }
}

@media (min-width: 1440px) {
  .news-card {
    width: var(--news-card-w-desktop);
    height: var(--news-card-h-desktop);
  }

  .news-card__link {
    gap: var(--space-lg);
    min-height: 0;
  }

  .news-card__image {
    width: var(--news-card-w-desktop);
    height: var(--news-card-img-h-desktop);
    aspect-ratio: unset;
    flex-shrink: 0;
  }

  .news-card__body {
    min-height: 0;
    overflow: hidden;
  }
}

/* ===== CATALOG PAGE ===== */
.catalog-page + .site-footer {
  margin-top: 0;
}

.catalog-page.product-layout {
  padding-bottom: var(--space-xl);
}

@media (min-width: 960px) {
  .catalog-page.product-layout {
    padding-bottom: var(--space-lg);
  }
}

.catalog-page__list-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

@media (min-width: 1440px) {
  .catalog-page .product-layout__primary {
    min-width: 0;
  }

  .catalog-page__list-col {
    width: var(--catalog-list-w-desktop);
    max-width: 100%;
  }

  .catalog-hero {
    gap: var(--space-lg);
  }

  .catalog-toolbar {
    flex-direction: row;
    align-items: center;
    flex: 0 0 auto;
    gap: var(--space-lg);
  }

  .catalog-toolbar__count {
    white-space: nowrap;
  }

  .catalog-filter__item {
    min-height: 44px;
    padding: 6px var(--space-md);
  }

  .catalog-sort__select {
    min-height: 44px;
    min-width: 180px;
    font-size: var(--text-sm);
    line-height: var(--lh-text-sm);
  }

  .catalog-page__list-col .catalog-grid .card-product__price {
    font-size: var(--text-lg);
    line-height: var(--lh-title-md);
  }

  .catalog-page__list-col .catalog-grid .card-product__name {
    font-size: var(--text-sm);
    line-height: var(--lh-text-sm);
  }
}

.catalog-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.catalog-hero__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.catalog-hero__title {
  font-size: var(--text-h2-mobile);
  font-weight: 700;
  line-height: var(--lh-h2-mobile);
  letter-spacing: -0.02em;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.catalog-toolbar__count {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-text-muted);
}

.catalog-sort {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}

.catalog-sort__select {
  width: 100%;
  min-width: 168px;
  max-width: 220px;
  min-height: 36px;
  padding: 2px calc(var(--space-xl) + var(--space-sm)) 2px var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-black);
  background-color: var(--color-white);
  appearance: none;
  cursor: pointer;
}

.catalog-sort__select:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: var(--focus-ring-offset);
}

.catalog-sort::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--space-md);
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--color-black);
  border-bottom: 1.5px solid var(--color-black);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.catalog-category-slider {
  --catalog-category-card-w: var(--catalog-category-card-w-mobile);
  --catalog-category-card-h: var(--catalog-category-card-h-mobile);
  --catalog-category-gap: var(--space-sm);
  position: relative;
  width: 100%;
  min-width: 0;
}

@media (max-width: 1439px) {
  .catalog-hero {
    overflow: visible;
  }

  .catalog-category-slider {
    width: calc(100% + (100vw - 100%) / 2);
    max-width: none;
  }
}

.catalog-category-slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catalog-category-slider__viewport::-webkit-scrollbar {
  display: none;
}

.catalog-category-slider__track {
  display: flex;
  width: max-content;
  gap: var(--catalog-category-gap);
  margin: 0;
  padding: 0;
}

.catalog-category-slider__item {
  flex: 0 0 auto;
}

.catalog-category-card {
  position: relative;
  display: flex;
  width: var(--catalog-category-card-w);
  height: var(--catalog-category-card-h);
  overflow: hidden;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  background-color: var(--color-black);
  color: var(--color-white);
}

.catalog-category-card:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: 3px;
}

.catalog-category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.catalog-category-card__title {
  position: relative;
  z-index: 1;
  max-width: 128px;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-white);
}

.catalog-category-slider__controls {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.catalog-category-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--color-black);
  background-color: var(--color-white);
  pointer-events: auto;
  transform: translateY(-50%);
}

.catalog-category-slider__btn:hover {
  filter: brightness(0.96);
}

.catalog-category-slider__btn:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: 3px;
}

.catalog-category-slider__btn[hidden] {
  display: none;
}

.catalog-category-slider__btn--prev {
  left: var(--space-xs);
}

.catalog-category-slider__btn--next {
  right: var(--space-xs);
}

.catalog-category-slider__btn-icon,
.catalog-category-slider__btn-icon-img {
  display: block;
  width: 24px;
  height: 24px;
}

.catalog-select-filters {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: var(--catalog-select-h-mobile);
  min-width: 0;
  overflow: visible;
}

.catalog-select-filters__sort,
.catalog-select__button {
  display: inline-flex;
  min-height: var(--catalog-select-h-mobile);
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--catalog-select-radius);
  color: var(--color-black);
  background-color: var(--color-white);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.catalog-select-filters__sort {
  flex: 0 0 var(--catalog-select-h-mobile);
  width: var(--catalog-select-h-mobile);
}

.catalog-select-filters__sort-icon,
.catalog-select__chevron-img {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 32px;
}

.catalog-select__chevron {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  width: 22px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.catalog-select__chevron-img--up {
  display: none;
}

.catalog-select-filters__sort:hover,
.catalog-select__button:hover {
  background-color: var(--color-bg-muted);
}

.catalog-select-filters__sort[aria-pressed="true"],
.catalog-select--open .catalog-select__button,
.catalog-select--selected .catalog-select__button {
  border-color: var(--color-black);
  color: var(--color-white);
  background-color: var(--color-black);
}

.catalog-select--open .catalog-select__chevron-img--down {
  display: none;
}

.catalog-select--open .catalog-select__chevron-img--up {
  display: block;
}

.catalog-select-filters__sort[aria-pressed="true"] .catalog-select-filters__sort-icon,
.catalog-select--open .catalog-select__chevron-img,
.catalog-select--selected .catalog-select__chevron-img {
  filter: brightness(0) invert(1);
}

.catalog-select-filters__sort[aria-pressed="true"]:hover,
.catalog-select--open .catalog-select__button:hover,
.catalog-select--selected .catalog-select__button:hover {
  background-color: var(--color-black);
}

.catalog-select-filters__sort:disabled,
.catalog-select__button:disabled {
  cursor: default;
  border-color: rgb(236 231 210 / 0.55);
  color: var(--color-text-soft);
  background-color: var(--color-white);
}

.catalog-select-filters__sort:focus-visible,
.catalog-select__button:focus-visible,
.catalog-select__option:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

.catalog-select {
  position: relative;
  flex: 0 0 auto;
}

.catalog-select__button {
  min-width: 77px;
  padding: 2px 9px 2px var(--space-md);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
}

.catalog-select--open {
  z-index: 5;
}

.catalog-select__menu {
  position: absolute;
  top: calc(100% + var(--space-sm));
  left: 0;
  z-index: 6;
  width: var(--catalog-select-menu-w);
  overflow: hidden;
  padding: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background-color: var(--color-white);
  box-shadow: var(--catalog-select-menu-shadow);
}

.catalog-select__option {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: var(--catalog-select-menu-w);
  min-height: var(--catalog-select-option-h);
  align-items: center;
  padding: var(--catalog-select-option-pad-y) var(--catalog-select-option-pad-x);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-text-muted);
  background-color: var(--color-white);
}

.catalog-select__option:hover,
.catalog-select__option:focus-visible {
  color: var(--color-black);
  background-color: var(--color-bg-muted);
}

.catalog-select__option--active,
.catalog-select__option[aria-selected="true"]:not(:disabled) {
  color: var(--color-text-muted);
  background-color: var(--color-white);
}

.catalog-select__option--active:hover,
.catalog-select__option--active:focus-visible,
.catalog-select__option[aria-selected="true"]:not(:disabled):hover,
.catalog-select__option[aria-selected="true"]:not(:disabled):focus-visible {
  color: var(--color-text-muted);
  background-color: var(--color-white);
}

.catalog-select__option--active::after,
.catalog-select__option[aria-selected="true"]:not(:disabled)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--catalog-select-option-pad-x);
  width: var(--catalog-select-option-check-size);
  height: var(--catalog-select-option-check-size);
  background-image: url("../assets/icons/check.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-select__option:disabled {
  cursor: default;
  opacity: var(--input-disabled-opacity);
  color: var(--color-text-muted);
  background-color: var(--color-white);
}

.catalog-select__option:disabled:hover,
.catalog-select__option:disabled:focus-visible {
  opacity: var(--input-disabled-opacity);
  color: var(--color-text-muted);
  background-color: var(--color-white);
}

.catalog-filter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.catalog-filter__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 2px var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-black);
  background-color: var(--color-white);
}

.catalog-filter__item:hover,
.catalog-filter__item:focus-visible,
.catalog-filter__item--active {
  border-color: var(--color-black);
}

.catalog-page__list-col .catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--catalog-grid-gap-x-mobile);
  row-gap: var(--catalog-grid-gap-y);
  grid-auto-rows: var(--catalog-grid-row-h-mobile);
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-page__list-col .catalog-grid > li {
  min-width: 0;
}

.catalog-page__list-col .catalog-grid .card-product {
  height: 100%;
  min-height: 0;
  gap: var(--catalog-card-body-gap);
}

.catalog-page__list-col .catalog-grid .card-product__media {
  flex-shrink: 0;
  border: none;
}

.catalog-page__list-col .catalog-grid .card-product__img {
  display: block;
  width: 100%;
  height: var(--catalog-grid-img-h-mobile);
  aspect-ratio: auto;
  object-fit: cover;
}

.catalog-page__list-col .catalog-grid .card-product .tag {
  top: var(--space-sm);
  right: var(--space-md);
  left: auto;
}

.catalog-page__list-col .catalog-grid .card-product__body {
  min-height: 0;
}

@media (min-width: 960px) {
  .catalog-page__list-col .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--catalog-grid-gap-wide);
    row-gap: var(--catalog-grid-gap-wide);
    grid-auto-rows: var(--catalog-grid-row-h-wide);
    width: 100%;
    max-width: 100%;
  }

  .catalog-page__list-col .catalog-grid .card-product__img {
    height: var(--catalog-grid-img-h-wide);
  }
}

@media (min-width: 1440px) {
  .catalog-category-slider {
    width: var(--catalog-category-slider-w-desktop);
    max-width: 100%;
  }

  .catalog-select-filters {
    width: var(--catalog-category-slider-w-desktop);
    max-width: 100%;
  }

  .catalog-category-slider[data-can-scroll-next="true"]::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: var(--catalog-category-gradient-w);
    background: linear-gradient(90deg, rgb(255 255 255 / 0), var(--color-white));
    pointer-events: none;
  }

}

/* ===== PAGINATION (reusable) ===== */
.pagination,
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-around;
  align-self: flex-start;
  gap: var(--catalog-pagination-gap);
  width: var(--catalog-pagination-w);
  height: var(--catalog-pagination-h);
  margin: 0;
  padding: 0;
  border: 1px solid var(--catalog-pagination-border-color);
  border-radius: var(--catalog-pagination-radius);
}

.pagination__control,
.catalog-pagination__control {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--catalog-pagination-control-size);
  height: var(--catalog-pagination-control-size);
  padding: 0;
  border: none;
  border-radius: 0;
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  cursor: pointer;
}

.pagination__control:focus-visible,
.catalog-pagination__control:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

.pagination__control--disabled,
.catalog-pagination__control--disabled {
  opacity: var(--input-disabled-opacity);
  cursor: default;
  pointer-events: none;
}

.pagination__icon,
.catalog-pagination__icon {
  display: block;
  flex-shrink: 0;
  width: var(--catalog-pagination-icon-size);
  height: var(--catalog-pagination-icon-size);
}

.pagination__item,
.catalog-pagination__item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--catalog-pagination-item-w);
  height: var(--catalog-pagination-item-h);
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--catalog-pagination-text);
  text-decoration: none;
  background-color: transparent;
  cursor: pointer;
}

.pagination__item--disabled,
.catalog-pagination__item--disabled {
  opacity: var(--input-disabled-opacity);
  cursor: default;
  pointer-events: none;
}

.pagination__item:hover,
.catalog-pagination__item:hover {
  color: var(--catalog-pagination-text);
  background-color: var(--catalog-pagination-bg-active);
}

.pagination__item:focus-visible,
.catalog-pagination__item:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

.pagination__item--active,
.catalog-pagination__item--active {
  color: var(--catalog-pagination-text-active);
  background-color: var(--catalog-pagination-bg-active);
}

.pagination__item--active:hover,
.catalog-pagination__item--active:hover {
  color: var(--catalog-pagination-text-active);
  background-color: var(--catalog-pagination-bg-active);
}

.pagination__ellipsis,
.catalog-pagination__ellipsis {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--catalog-pagination-item-w);
  height: var(--catalog-pagination-item-h);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--catalog-pagination-text);
  pointer-events: none;
}

@media (min-width: 960px) {
  .catalog-hero__title {
    font-size: var(--text-2xl);
    line-height: var(--lh-heading-lg);
  }

  .catalog-category-slider {
    --catalog-category-card-w: var(--catalog-category-card-size-wide);
    --catalog-category-card-h: var(--catalog-category-card-size-wide);
    --catalog-category-gap: var(--space-xs);
  }

  .catalog-category-slider__viewport {
    overflow: hidden;
  }

  .catalog-category-slider__controls {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .catalog-select-filters {
    min-height: var(--catalog-select-h-wide);
  }

  .catalog-select-filters__sort,
  .catalog-select__button {
    min-height: var(--catalog-select-h-wide);
  }

  .catalog-select-filters__sort {
    flex-basis: var(--catalog-select-h-wide);
    width: var(--catalog-select-h-wide);
  }

  .catalog-filter {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .catalog-filter__item {
    min-height: 44px;
    padding: 6px var(--space-md);
  }
}

@media (min-width: 960px) and (max-width: 1439px) {
  .catalog-hero__heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
  }

  .catalog-toolbar {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
  }

  .catalog-sort__select {
    min-height: 44px;
    font-size: var(--text-sm);
    line-height: var(--lh-text-sm);
  }
}

@media (min-width: 1440px) {
  .catalog-hero__heading {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-lg);
  }
}

/* ===== ARTICLE PAGE ===== */
.article-page + .site-footer {
  margin-top: 0;
}

.article-page.product-layout {
  padding-bottom: var(--space-xl);
}

.article-page .product-layout__primary {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.article-panel {
  padding: 0;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: var(--article-body-gap-mobile);
  margin-bottom: var(--article-body-mb);
  min-width: 0;
}

.article-hero .breadcrumb__current {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.article-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.article-hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.article-hero__title {
  font-size: var(--text-h2-mobile);
  font-weight: 700;
  line-height: var(--lh-h2-mobile);
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
}

.article-hero__meta-sep {
  color: var(--color-text-muted);
  user-select: none;
}

.article-cover {
  margin: 0;
  width: 100%;
  height: var(--article-cover-h);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-bg-muted);
}

.article-cover__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

.article-prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
}

.article-prose > p {
  margin: 0;
}

.article-prose__h2 {
  margin: var(--space-sm) 0 0;
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
  color: var(--color-black);
}

.article-prose__blocks {
  display: flex;
  flex-direction: column;
  gap: var(--article-prose-blocks-gap);
}

.article-prose__block {
  display: flex;
  flex-direction: column;
  gap: var(--article-prose-block-gap);
}

.article-prose__block .article-prose__h2,
.article-prose__block .article-prose__h3,
.article-prose__block .article-prose__h4 {
  margin: 0;
}

.article-prose__block p {
  margin: 0;
}

.article-prose__h3 {
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
  color: var(--color-black);
}

.article-prose__h4 {
  font-family: var(--font-main);
  font-size: var(--article-prose-h4-size);
  font-weight: var(--article-prose-h4-weight);
  line-height: var(--article-prose-h4-lh);
  color: var(--color-black);
}

.article-prose__list {
  margin: 0;
  padding-left: 1.25em;
  list-style: disc;
}

.article-prose__list li + li {
  margin-top: var(--space-xs);
}

.article-spec {
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  border-left: var(--article-spec-accent-w) solid var(--color-spec-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background-color: var(--color-spec-bg);
  color: var(--color-spec-text);
}

.article-spec__title {
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--lh-text-sm);
  color: var(--color-spec-title);
}

.article-spec__text {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-spec-text);
}

.article-section__heading {
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
  color: var(--color-black);
}

.article-aside {
  min-width: 0;
}

.article-product {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin: 0 auto;
}

.article-product .card-product {
  gap: var(--space-md);
}

.article-product .card-product__media {
  width: var(--article-product-media-w-mobile);
  max-width: 100%;
}

.article-product .card-product__cart {
  margin-right: var(--article-product-cart-inset);
  margin-bottom: var(--article-product-cart-inset);
}

.article-product .tag {
  top: var(--space-sm);
  right: var(--space-md);
  left: auto;
}

.product-card__cart,
.card-product__cart {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--product-card-cart-size);
  height: var(--product-card-cart-size);
  padding: 0;
  border-radius: var(--radius-md);
  color: var(--color-white);
  background-color: var(--color-black);
  margin-right: 12px;
  margin-bottom: 12px;
}

.product-card__cart:hover,
.card-product__cart:hover {
  filter: brightness(1.1);
}

.product-card__cart:focus-visible,
.card-product__cart:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

.product-card__cart-img,
.card-product__cart-img {
  display: block;
  width: 16px;
  height: 16px;
}

.article-product .card-product__name,
.article-product .card-product__link {
  color: var(--color-black);
}

.article-similar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.article-similar__track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-lg);
  height: var(--article-similar-track-h-mobile);
  margin-inline: calc(-1 * var(--page-pad-x));
  padding-inline: var(--page-pad-x);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.article-similar-card {
  flex: 0 0 var(--article-similar-card-w-mobile);
  width: var(--article-similar-card-w-mobile);
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 640px) {
  .article-similar__track {
    height: auto;
  }

  .article-similar-card {
    flex: 0 0 var(--article-similar-card-w-tablet);
    width: var(--article-similar-card-w-tablet);
  }
}

.article-similar-card:nth-child(n + 3) {
  display: none;
}

.article-similar-card__link {
  display: flex;
  flex-direction: column;
}

.article-similar-card__link:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: 4px;
  border-radius: var(--radius-xl);
}

.article-similar-card__img {
  width: 100%;
  aspect-ratio: var(--news-card-img-aspect-mobile);
  object-fit: cover;
  border-radius: var(--radius-xl);
  background-color: var(--color-bg-muted);
  margin-bottom: var(--space-lg);
}

.article-similar-card__body {
  display: flex;
  flex-direction: column;
}

.article-similar-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
}

.article-similar-card__meta > time {
  margin-right: var(--space-md);
}

.article-similar-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
  margin-bottom: var(--space-sm);
}

.article-similar-card__text {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-black);

}

.article-similar-card__link:hover .article-similar-card__title {
  text-decoration: underline;
}

@media (min-width: 960px) {
  .article-page .product-layout__primary {
    gap: var(--space-xl);
  }

  .article-hero__title {
    font-size: var(--text-2xl);
    line-height: var(--lh-heading-lg);
  }

  .article-section__heading {
    font-size: var(--text-xl);
    line-height: var(--lh-heading-md);
  }

  .article-prose__h2,
  .article-prose__h3 {
    font-size: var(--text-xl);
    line-height: var(--lh-heading-md);
  }

  .article-body {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--article-body-gap-wide);
  }

  .article-prose {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .article-aside {
    flex: 0 0 var(--article-aside-w);
    width: var(--article-aside-w);
    height: var(--article-aside-h);
  }

  .article-product {
    margin: 0;
  }

  .article-product .card-product__media {
    width: 100%;
  }

  .article-similar-card:nth-child(n + 3) {
    display: block;
  }

  .article-similar__track {
    height: var(--article-similar-track-h-wide);
    margin-inline: 0;
    padding-inline: 0;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .article-similar-card {
    flex: 0 0 var(--article-similar-card-w-tablet);
    width: var(--article-similar-card-w-tablet);
  }

  .article-similar-card__title {
    font-size: var(--text-lg);
    line-height: var(--lh-title-md);
  }
}

@media (min-width: 1440px) {
  .article-similar__track {
    margin-inline: calc(-1 * var(--page-pad-x));
    padding-inline: var(--page-pad-x);
  }

  .article-similar-card {
    flex: 0 0 var(--article-similar-card-w-desktop);
    width: var(--article-similar-card-w-desktop);
  }
}

/* ===== FOOTER ===== */
.site-footer {
  --footer-icon-size: calc(var(--space-unit) * 6);
  --footer-cols-gap-mobile: calc(var(--space-unit) * 8);
  --footer-col-gap-narrow: calc(var(--space-unit) * 7);
  --footer-cols-col1-desktop: 231px;
  --footer-cols-col2-desktop: 235px;
  --footer-cols-col3-desktop: 158px;
  --footer-cols-col4-desktop: 120px;
  background-color: var(--color-footer-bg);
  color: var(--color-white);
  padding: var(--space-xl) var(--page-pad-x) 0;
}

@media (min-width: 960px) {
  .site-footer {
    padding-top: 40px;
  }
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (min-width: 960px) {
  .site-footer__grid {
    grid-template-columns: minmax(200px, 250px) 1fr;
    gap: var(--space-3xl);
  }
}

.site-footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.site-footer__lead {
  font-size: var(--text-sm);
  line-height: var(--lh-text-sm);
  color: var(--color-text-soft);
}

.site-footer__social {
  display: flex;
  gap: var(--space-lg);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  color: var(--color-white);
}

.social-link img {
  width: var(--footer-icon-size);
  height: var(--footer-icon-size);
  display: block;
}

.social-link:hover {
  opacity: 0.85;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
  column-gap: 0;
}

.site-footer__col:nth-child(2) {
  margin-top: var(--space-sm);
}

.site-footer__col:nth-child(3),
.site-footer__col:nth-child(4) {
  margin-top: var(--footer-cols-gap-mobile);
}

@media (min-width: 960px) {
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-lg);
    row-gap: var(--space-3xl);
  }

  .site-footer__col:nth-child(2),
  .site-footer__col:nth-child(3),
  .site-footer__col:nth-child(4) {
    margin-top: 0;
  }
}

@media (min-width: 1440px) {
  .site-footer__inner {
    max-width: var(--header-content-max);
  }

  .site-footer__cols {
    grid-template-columns:
      var(--footer-cols-col1-desktop)
      var(--footer-col-gap-narrow)
      var(--footer-cols-col2-desktop)
      var(--space-3xl)
      var(--footer-cols-col3-desktop)
      var(--space-3xl)
      var(--footer-cols-col4-desktop);
    row-gap: 0;
    column-gap: 0;
  }

  .site-footer__col:nth-child(1) {
    grid-column: 1;
  }

  .site-footer__col:nth-child(2) {
    grid-column: 3;
  }

  .site-footer__col:nth-child(3) {
    grid-column: 5;
  }

  .site-footer__col:nth-child(4) {
    grid-column: 7;
  }
}

.site-footer__heading {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--lh-text-sm);
  color: var(--color-text-soft);
  margin-bottom: var(--space-md);
}

.site-footer__col:nth-child(2) .site-footer__heading {
  display: none;
}

@media (min-width: 960px) {
  .site-footer__col:nth-child(2) .site-footer__heading {
    display: revert;
  }
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-white);
  white-space: nowrap;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-text-muted);
}

@media (min-width: 600px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
  }
}

.site-footer__copy {
  font-size: var(--text-sm);
  line-height: var(--lh-text-sm);
  color: var(--color-text-soft);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.site-footer__legal a {
  font-size: var(--text-sm);
  line-height: var(--lh-text-sm);
  color: var(--color-text-soft);
}

.site-footer__legal a:hover {
  color: var(--color-white);
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
  background-color: var(--color-white);
  color: var(--color-black);
}

.checkout-page + .site-footer {
  margin-top: 0;
}

.checkout-page__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x) var(--space-2xl);
}

.checkout-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  margin-bottom: var(--checkout-hero-mb);
}

.checkout-hero__title {
  font-size: var(--text-h2-mobile);
  font-weight: 700;
  line-height: var(--lh-h2-mobile);
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.checkout-page__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.checkout-page__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  min-width: 0;
}

.checkout-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.checkout-section__title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--lh-title-md);
  color: var(--color-black);
}

.checkout-section__note {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-soft);
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-fields-gap);
}

.checkout-fields__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--checkout-fields-row-gap);
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-field-gap);
  min-width: 0;
}

.checkout-field__label {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-text-label);
}

.checkout-field__input {
  width: var(--checkout-input-w-mobile);
  height: var(--checkout-input-h);
  padding: 9px var(--space-md);
  border-radius: var(--checkout-input-radius);
}

.checkout-field__textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  resize: vertical;
}

.checkout-address-fields {
  display: flex;
  flex-direction: row;
  gap: var(--checkout-address-fields-gap-mobile);
  align-items: flex-end;
}

.checkout-address-fields__locality {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-address-locality-gap-mobile);
  min-width: var(--checkout-input-min-w-tablet);
}

.checkout-address-fields__locality .checkout-field {
  width: 100%;
}

.checkout-address-fields__street {
  flex: 1;
  min-width: 0;
}

.checkout-address-fields .checkout-field__input {
  width: 100%;
}

.checkout-options {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-option-gap);
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-option {
  position: relative;
  cursor: pointer;
  width: 100%;
}

.checkout-option__input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkout-option__card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  width: 100%;
  height: var(--checkout-option-h-mobile);
  padding: var(--space-md);
  border: none;
  border-radius: var(--radius-xl);
  background-color: var(--checkout-option-bg);
  color: var(--color-black);
  transition: background-color 0.15s ease;
}

.checkout-option__input:not(:disabled):hover + .checkout-option__card {
  background-color: var(--checkout-option-card-bg-hover);
}

.checkout-option__radio {
  flex-shrink: 0;
  box-sizing: border-box;
  width: var(--checkout-option-radio-size);
  height: var(--checkout-option-radio-size);
  margin: 0;
  padding: 0;
  border: var(--checkout-option-radio-border) solid var(--input-border);
  border-radius: var(--checkout-option-radio-radius);
  background-color: var(--color-white);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, border-width 0.15s ease, opacity 0.15s ease;
  pointer-events: none;
}

.checkout-option__input:not(:disabled):not(:checked):hover + .checkout-option__card .checkout-option__radio {
  border-color: var(--input-border-hover);
}

.checkout-option__input:checked + .checkout-option__card .checkout-option__radio {
  border-width: var(--checkout-option-radio-border-checked);
  border-color: var(--color-accent);
}

.checkout-option__input:disabled + .checkout-option__card {
  cursor: not-allowed;
}

.checkout-option__input:disabled + .checkout-option__card .checkout-option__radio {
  opacity: var(--input-disabled-opacity);
}

.checkout-option__input:focus-visible + .checkout-option__card {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

.checkout-option__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: calc(100% - 72px);
}

.checkout-options--payment .checkout-option__body {
  max-width: 100%;
}

.checkout-option__title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--lh-text-sm);
}

.checkout-option__meta {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
}

.checkout-option__price {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 0;
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--lh-text-sm);
  color: var(--color-accent-strong);
  white-space: nowrap;
}

.checkout-option__price--free {
  color: var(--color-accent-strong);
}

.checkout-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.checkout-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--color-white);
}

.checkout-panel__title {
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
  color: var(--color-black);
}

.checkout-order {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-order__item {
  margin: 0;
}

.checkout-panel .cart-item__title {
  color: var(--color-black);
}

.checkout-totals {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
}

.checkout-totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
}

.checkout-totals__label {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-soft);
}

.checkout-totals__value {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-accent-strong);
}

.checkout-totals__row--total {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xs);
}

.checkout-totals__label--total {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-black);
}

.checkout-totals__value--total {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--lh-title-md);
  color: var(--color-accent-strong);
}

@media (min-width: 960px) {
  .checkout-totals__label--total {
    font-size: var(--text-sm);
    line-height: var(--lh-text-sm);
  }
}

.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}

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

.checkout-consent__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  position: relative;
}

.checkout-consent__input:checked + .checkout-consent__box {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
}

.checkout-consent__input:checked + .checkout-consent__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkout-consent__input:focus-visible + .checkout-consent__box {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

.checkout-consent__text {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-soft);
}

.button--checkout-submit {
  width: 100%;
  height: var(--checkout-submit-h);
  padding: 0 var(--space-md);
}

@media (min-width: 960px) {
  .checkout-hero__title {
    font-size: var(--text-2xl);
    line-height: var(--lh-heading-lg);
  }

  .button--checkout-submit {
    width: var(--checkout-submit-w);
  }

  .checkout-page__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .checkout-page__main {
    flex: 1;
    min-width: 0;
  }

  .checkout-aside {
    position: sticky;
    top: var(--checkout-aside-sticky-top);
    align-self: flex-start;
    width: min(var(--aside-width), 100%);
    flex-shrink: 0;
  }

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

  .checkout-field__input {
    width: 100%;
    min-width: var(--checkout-input-min-w-tablet);
  }

  .checkout-section__title {
    font-size: var(--text-xl);
    line-height: var(--lh-heading-md);
  }

  .checkout-panel__title {
    font-size: var(--text-xl);
    line-height: var(--lh-heading-md);
  }

  .checkout-option__card {
    height: var(--checkout-option-h-wide);
  }

  .checkout-address-fields {
    flex-direction: column;
    gap: var(--checkout-address-fields-gap-wide);
    align-items: stretch;
  }

  .checkout-address-fields__locality {
    flex-direction: row;
    gap: var(--checkout-address-locality-gap-wide);
    min-width: 0;
    width: 100%;
  }

  .checkout-address-fields__locality .checkout-field {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .checkout-address-fields .checkout-field__input {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 1440px) {
  .checkout-fields__row {
    gap: var(--checkout-fields-row-gap-desktop);
  }

  .checkout-field__input {
    width: var(--checkout-input-w-desktop);
    min-width: var(--checkout-input-w-desktop);
  }

  .checkout-address-fields .checkout-field__input {
    width: 100%;
    min-width: 0;
  }

  .checkout-options {
    flex-direction: row;
  }

  .checkout-option {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .checkout-option__card {
    width: auto;
    height: var(--checkout-option-h-wide);
  }
}

/* ===== HOME PAGE ===== */
.home-page {
  background-color: var(--color-white);
  color: var(--color-black);
}

.home-page + .site-footer {
  margin-top: 0;
}

.home-page .home-page__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--header-content-max);
  margin-inline: auto;
  padding-inline: var(--page-pad-x);
}

.home-page .home-page__inner > section {
  padding-block: var(--home-section-pad-y-mobile);
}

@media (min-width: 960px) {
  .home-page .home-page__inner > section {
    padding-block: var(--home-section-pad-y-wide);
  }
}

.home-page .home-catalog {
  --home-catalog-promo-title-size: 24px;
  --home-catalog-promo-title-lh: 20px;
  --home-catalog-promo-title-weight: 700;
  --home-catalog-card-title-size: 14px;
  --home-catalog-card-title-lh: 20px;
  --home-catalog-card-title-weight: 700;
  --home-catalog-hero-title-size: 24px;
  --home-catalog-hero-title-lh: 32px;
  --home-catalog-hero-title-weight: 700;
  --home-catalog-hero-title-tracking: normal;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

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

.home-page .home-catalog__item {
  min-width: 0;
  --home-catalog-item-pad: var(--space-md);
}

.home-page .home-catalog__item--hero,
.home-page .home-catalog__item--promo,
.home-page .home-catalog__item--greenhouse {
  grid-column: 1 / -1;
}

.home-page .home-catalog__item--greenhouse {
  container-type: inline-size;
}

.home-page .home-catalog-hero,
.home-page .home-catalog-promo,
.home-page .home-catalog-card,
.home-page .home-catalog-greenhouse {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-xl);
  color: var(--color-white);
}

.home-page .home-catalog-hero {
  --home-catalog-hero-action-radius: var(--radius-xs);
  --home-catalog-hero-control-border: var(--color-icon-outline);
  --home-catalog-hero-control-radius: var(--radius-xs);
  min-height: 0;
  aspect-ratio: 343 / 332;
}

.home-page .home-catalog-hero__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-page .home-catalog-hero__track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(calc(var(--home-catalog-hero-index, 0) * -100%));
  transition: transform 0.32s ease;
  will-change: transform;
}

.home-page .home-catalog-hero__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}

.home-page .home-catalog-promo {
  aspect-ratio: 347 / 136;
  background-color: var(--home-featured-bg);
}

.home-page .home-catalog-card {
  align-items: flex-start;
  padding: var(--home-catalog-item-pad);
  aspect-ratio: 170 / 129;
  background-color: var(--color-black);
}

.home-page .home-catalog-greenhouse {
  --home-catalog-greenhouse-img-w: var(--home-catalog-greenhouse-img-w-mobile);
  --home-catalog-greenhouse-img-h: var(--home-catalog-greenhouse-img-h-mobile);
  --home-catalog-greenhouse-pad-inline-end: var(--home-catalog-greenhouse-pad-inline-end-mobile);
  --home-catalog-greenhouse-title-max-w: 50%;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--home-catalog-greenhouse-pad-block-start) var(--home-catalog-greenhouse-pad-inline-end)
    var(--home-catalog-greenhouse-pad-block-end) var(--home-catalog-greenhouse-pad-inline-start);
  border: 2px solid var(--home-greenhouse-color);
  background-color: var(--color-white);
  color: var(--home-greenhouse-color);
  height: calc(
    (100cqi - var(--home-catalog-layout-gap-mobile)) / 2 * var(--home-catalog-card-ar-h-mobile) /
      var(--home-catalog-card-ar-w-mobile)
  );
  min-height: 0;
}

.home-page .home-catalog-greenhouse__title {
  position: relative;
  z-index: 1;
  max-width: var(--home-catalog-greenhouse-title-max-w);
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--lh-heading-md);
  color: var(--home-greenhouse-color);
}

.home-page .home-catalog-card::after {
  content: none;
}

.home-page .home-catalog-promo__media,
.home-page .home-catalog-card__media {
  position: absolute;
  inset: 0;
  display: block;
}

.home-page .home-catalog-greenhouse__media {
  position: absolute;
  right: var(--home-catalog-greenhouse-pad-inline-end);
  bottom: var(--home-catalog-greenhouse-pad-block-end);
  display: block;
  width: var(--home-catalog-greenhouse-img-w);
  height: var(--home-catalog-greenhouse-img-h);
}

.home-page .home-catalog-hero__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.home-page .home-catalog-hero__img,
.home-page .home-catalog-promo__img,
.home-page .home-catalog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .home-catalog-greenhouse__img {
  width: var(--home-catalog-greenhouse-img-w);
  height: var(--home-catalog-greenhouse-img-h);
  object-fit: contain;
}

.home-page .home-catalog-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: var(--home-catalog-item-pad);
  pointer-events: none;
}

.home-page .home-catalog-hero__copy {
  display: flex;
  max-width: 300px;
  flex-direction: column;
  gap: 7px;
}

.home-page .home-catalog-hero__title {
  font-size: var(--home-catalog-hero-title-size);
  font-weight: var(--home-catalog-hero-title-weight);
  line-height: var(--home-catalog-hero-title-lh);
  letter-spacing: var(--home-catalog-hero-title-tracking);
  color: var(--color-white);
}

.home-page .home-catalog-hero__text {
  max-width: 280px;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--lh-text-sm);
  color: var(--color-white);
}

.home-page .home-catalog-hero__footer {
  display: flex;
  align-items: center;
}

.home-page .home-catalog-hero__btn {
  display: inline-flex;
  box-sizing: border-box;
  width: 175px;
  min-height: 0;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border-radius: var(--home-catalog-hero-action-radius);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-white);
  pointer-events: auto;
}

.home-page .home-catalog-hero__controls {
  position: absolute;
  right: var(--home-catalog-item-pad);
  bottom: var(--home-catalog-item-pad);
  z-index: 2;
  display: flex;
  gap: var(--space-sm);
  pointer-events: none;
}

.home-page .home-catalog-hero__control {
  display: inline-flex;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--home-catalog-hero-control-border);
  border-radius: var(--home-catalog-hero-control-radius);
  color: var(--color-white);
  background-color: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.home-page .home-catalog-hero__btn-icon,
.home-page .home-catalog-hero__control-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.home-page .home-catalog-hero__btn-icon-img,
.home-page .home-catalog-hero__control-icon-img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-page .home-catalog-hero__control:hover {
  background-color: rgb(209 200 164 / 0.16);
}

.home-page .home-catalog-promo__title,
.home-page .home-catalog-card__title {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  color: var(--color-white);
}

.home-page .home-catalog-promo__title {
  max-width: 100%;
  padding: var(--home-catalog-item-pad);
  font-size: var(--home-catalog-promo-title-size);
  font-weight: var(--home-catalog-promo-title-weight);
  line-height: var(--home-catalog-promo-title-lh);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .home-catalog-card__title {
  max-width: 100%;
  padding: 0;
  font-size: var(--home-catalog-card-title-size);
  font-weight: var(--home-catalog-card-title-weight);
  line-height: var(--home-catalog-card-title-lh);
}

.home-page .home-catalog-hero__control:focus-visible,
.home-page .home-catalog-card:focus-visible,
.home-page .home-catalog-greenhouse:focus-visible,
.home-page .home-catalog-promo:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: 3px;
}

@media (min-width: 440px) {
  .home-page .home-catalog__item {
    --home-catalog-item-pad: var(--space-lg);
  }

  .home-page .home-catalog__item--hero {
    --home-catalog-item-pad: var(--space-md);
  }

  .home-page .home-catalog-promo {
    aspect-ratio: 423 / 189;
  }

  .home-page .home-catalog-card {
    aspect-ratio: 209 / 160;
  }

  .home-page .home-catalog-greenhouse {
    height: calc(
      (100cqi - var(--home-catalog-layout-gap-mobile)) / 2 * var(--home-catalog-card-ar-h-wide-sm) /
        var(--home-catalog-card-ar-w-wide-sm)
    );
  }
}

@media (min-width: 560px) {
  .home-page .home-catalog__item--hero {
    --home-catalog-item-pad: var(--space-lg);
  }

  .home-page .home-catalog-hero {
    aspect-ratio: 850 / 332;
  }
}

@media (min-width: 960px) {
  .home-page .home-catalog__layout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .home-page .home-catalog__item--hero {
    grid-column: 1 / -1;
  }

  .home-page .home-catalog__item--promo {
    grid-column: span 2;
  }

  .home-page .home-catalog__item--greenhouse {
    grid-column: span 2;
  }

  .home-page .home-catalog-hero {
    --home-catalog-hero-action-radius: var(--radius-md);
    --home-catalog-hero-control-radius: var(--radius-md);
    aspect-ratio: 912 / 332;
  }

  .home-page .home-catalog-promo {
    aspect-ratio: 454 / 189;
  }

  .home-page .home-catalog-card {
    aspect-ratio: 225 / 160;
  }

  .home-page .home-catalog-greenhouse {
    --home-catalog-greenhouse-img-w: var(--home-catalog-greenhouse-img-w-wide);
    --home-catalog-greenhouse-img-h: var(--home-catalog-greenhouse-img-h-wide);
    --home-catalog-greenhouse-pad-inline-end: var(--home-catalog-greenhouse-pad-inline-end-wide);
    --home-catalog-greenhouse-title-max-w: none;
    height: calc(
      (100cqi - var(--home-catalog-layout-gap-tablet)) / 2 * var(--home-catalog-card-ar-h-tablet) /
        var(--home-catalog-card-ar-w-tablet)
    );
  }

  .home-page .home-catalog-hero__copy {
    max-width: 424px;
  }

  .home-page .home-catalog {
    --home-catalog-promo-title-lh: 32px;
    --home-catalog-card-title-size: 16px;
    --home-catalog-card-title-lh: 24px;
    --home-catalog-hero-title-size: 32px;
    --home-catalog-hero-title-lh: 40px;
  }

  .home-page .home-catalog-hero__text {
    max-width: 430px;
  }

  .home-page .home-catalog-hero__btn {
    width: 207px;
    height: 48px;
    font-size: var(--text-sm);
    line-height: var(--lh-text-sm);
  }

  .home-page .home-catalog-hero__control {
    width: 48px;
    height: 48px;
  }

  .home-page .home-catalog-hero__btn-icon,
  .home-page .home-catalog-hero__control-icon {
    width: 24px;
    height: 24px;
  }

}

@media (min-width: 1440px) {
  .home-page .home-catalog {
    --home-catalog-card-title-weight: 600;
    --home-catalog-hero-title-weight: 600;
    --home-catalog-hero-title-tracking: -0.035em;
  }
  .home-page .home-page__inner {
    padding-bottom: var(--space-2xl);
    padding-inline: 0;
  }

  .home-page .home-catalog__layout {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(4, 160px);
  }

  .home-page .home-catalog__item--hero {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
  }

  .home-page .home-catalog__item--promo-hits {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .home-page .home-catalog__item--promo-new {
    grid-column: 3 / 5;
    grid-row: 3;
  }

  .home-page .home-catalog__item--cat-1 {
    grid-column: 5;
    grid-row: 1;
  }

  .home-page .home-catalog__item--cat-2 {
    grid-column: 6;
    grid-row: 1;
  }

  .home-page .home-catalog__item--cat-3 {
    grid-column: 5;
    grid-row: 2;
  }

  .home-page .home-catalog__item--cat-4 {
    grid-column: 6;
    grid-row: 2;
  }

  .home-page .home-catalog__item--cat-5 {
    grid-column: 5;
    grid-row: 3;
  }

  .home-page .home-catalog__item--cat-6 {
    grid-column: 6;
    grid-row: 3;
  }

  .home-page .home-catalog__item--cat-7 {
    grid-column: 1;
    grid-row: 4;
  }

  .home-page .home-catalog__item--cat-8 {
    grid-column: 2;
    grid-row: 4;
  }

  .home-page .home-catalog__item--cat-9 {
    grid-column: 3;
    grid-row: 4;
  }

  .home-page .home-catalog__item--cat-10 {
    grid-column: 4;
    grid-row: 4;
  }

  .home-page .home-catalog__item--greenhouse {
    grid-column: 5 / 7;
    grid-row: 4;
    container-type: normal;
  }

  .home-page .home-catalog-hero,
  .home-page .home-catalog-promo,
  .home-page .home-catalog-card,
  .home-page .home-catalog-greenhouse {
    height: 100%;
    aspect-ratio: auto;
  }

}

/* ===== HOME SALE SLIDER ===== */
.home-page .home-page__inner > section.home-sale-slider {
  padding-block: 0;
}

.home-page .home-sale-slider {
  --home-sale-content-w: 50%;
  --home-sale-content-gap: var(--space-sm);
  --home-sale-banner-pad-start: max(var(--page-pad-x), calc((100vw - var(--header-content-max)) / 2));
  --home-sale-title-size: 32px;
  --home-sale-title-lh: 40px;
  --home-sale-title-tracking: -0.025em;
  --home-sale-link-w: 102px;
  --home-sale-link-h: 28px;
  --home-sale-link-radius: var(--radius-xs);
  --home-sale-control-size: 28px;
  --home-sale-control-icon-size: 16px;
  --home-sale-controls-gap: var(--space-sm);
  --home-sale-controls-top: 278px;
  --home-sale-controls-left: 142px;
  --home-sale-img-w: var(--home-sale-img-mobile);
  --home-sale-img-right: max(var(--page-pad-x), calc((100vw - var(--header-content-max)) / 2));
  --home-sale-img-top: 27px;
  position: relative;
  width: 100vw;
  height: var(--home-sale-h-mobile);
  min-height: var(--home-sale-h-mobile);
  max-height: var(--home-sale-h-mobile);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  color: var(--color-white);
  background-color: var(--home-sale-banner-bg);
}

.home-page .home-sale-slider__viewport {
  height: 100%;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.home-page .home-sale-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(calc(var(--home-sale-index, 0) * -100%));
  transition: transform 0.32s ease;
  will-change: transform;
}

.home-page .home-sale-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
}

.home-page .home-sale-banner {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  padding-inline-start: var(--home-sale-banner-pad-start);
  padding-inline-end: var(--page-pad-x);
}

.home-page .home-sale-banner__body {
  position: relative;
  z-index: 2;
  display: flex;
  width: 55%;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding-block: var(--space-lg);
  pointer-events: none;
}

.home-page .home-sale-banner__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.home-page .home-sale-banner__badge {
  display: inline-flex;
  box-sizing: border-box;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-white);
  background-color: var(--color-semantic-red);
}

.home-page .home-sale-banner__title {
  margin: 0;
  font-size: var(--home-sale-title-size);
  font-weight: 600;
  line-height: var(--home-sale-title-lh);
  letter-spacing: var(--home-sale-title-tracking);
  color: var(--color-white);
}

.home-page .home-sale-banner__text {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--lh-text-sm);
  color: var(--color-white);
}

.home-page .home-sale-banner__link {
  display: inline-flex;
  box-sizing: border-box;
  width: var(--home-sale-link-w);
  height: var(--home-sale-link-h);
  align-items: center;
  justify-content: center;
  margin-top: 0;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: var(--home-sale-link-radius);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
  background-color: var(--color-white);
  text-decoration: none;
  pointer-events: auto;
}

.home-page .home-sale-banner__img {
  position: absolute;
  top: var(--home-sale-img-top);
  right: -32%;
  z-index: 1;
  width: var(--home-sale-img-w);
  height: var(--home-sale-img-w);
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

@media (min-width: 500px) {
  .home-page .home-sale-banner__img {
    right: -20%;
  }
}

@media (min-width: 700px) {
  .home-page .home-sale-banner__img {
    right: -10%;
  }
}

.home-page .home-sale-slider__controls {
  position: absolute;
  top: 278px;
  left: var(--home-sale-controls-left);
  z-index: 4;
  display: flex;
  gap: var(--home-sale-controls-gap);
  pointer-events: none;
}

.home-page .home-sale-slider__btn {
  display: inline-flex;
  box-sizing: border-box;
  width: var(--home-sale-control-size);
  height: var(--home-sale-control-size);
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--home-sale-link-radius);
  background-color: var(--color-white);
  pointer-events: auto;
  cursor: pointer;
}

.home-page .home-sale-slider__btn-icon {
  display: block;
  flex: 0 0 auto;
  width: var(--home-sale-control-icon-size);
  height: var(--home-sale-control-icon-size);
}

.home-page .home-sale-slider__btn-icon-img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-page .home-products {
  --home-products-action-color: var(--color-text-muted);
  --home-products-badge-bg: var(--color-semantic-red);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-page .home-products__grid {
  --home-products-grid-gap: var(--space-md);
  --home-products-media-pad: 12px;
  --home-products-media-h: 188.5px;
  --home-products-card-w: minmax(0, 1fr);
  display: grid;
  grid-template-columns: repeat(2, var(--home-products-card-w));
  gap: var(--home-products-grid-gap);
  height: 302px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .home-products__link {
  display: inline-flex;
  box-sizing: border-box;
  width: 143px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--home-products-action-color);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--home-products-action-color);
  background-color: var(--color-white);
  white-space: nowrap;
  cursor: pointer;
}

.home-page .home-products__link:hover {
  color: var(--home-products-action-color);
  border-color: var(--home-products-action-color);
}

.home-page .home-products__item:nth-child(n + 3) {
  display: none;
}

.home-page .home-product-card {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-lg);
}

.home-page .home-product-card__media {
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: var(--home-products-media-h);
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: var(--home-products-media-pad);
  overflow: hidden;
  background-color: var(--color-white);
}

.home-page .home-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-page .home-product-card__tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: inline-flex;
  box-sizing: border-box;
  width: 67px;
  height: 16px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-white);
  background-color: var(--home-products-badge-bg);
}

.home-page .home-product-card__cart {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-md);
  color: var(--color-white);
  background-color: var(--color-black);
}

.home-page .home-product-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-xs);
}

@media (min-width: 960px) {
  .home-page .home-products__grid {
    --home-products-grid-gap: var(--space-lg);
    --home-products-media-h: 312px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 410px;
  }

  .home-page .home-products__item:nth-child(n + 3) {
    display: block;
  }

  .home-page .home-products__item:nth-child(n + 4) {
    display: none;
  }

  .home-page .home-sale-slider__controls {
    position: absolute;
    top: 238px;
    left: var(--home-sale-controls-left);
  }

  .home-page .home-sale-banner__body {
    width: 40%;
    height: 100%;
    min-height: 100%;
    padding-block: var(--space-lg);
    padding-inline: 0;
  }

  .home-page .home-sale-banner__content {
    gap: 7px;
  }

  .home-page .home-sale-banner__badge {
    width: 95px;
    height: 40px;
    padding: 8px 14px;
  }

  .home-page .home-sale-banner__img {
    right: 5%;
  }

  .home-page .home-sale-slider {
    --home-sale-content-w: 340px;
    --home-sale-content-gap: 7px;
    --home-sale-title-size: 40px;
    --home-sale-title-lh: 48px;
    --home-sale-link-w: 126px;
    --home-sale-link-h: 44px;
    --home-sale-link-radius: var(--radius-md);
    --home-sale-control-size: 48px;
    --home-sale-control-icon-size: 24px;
    --home-sale-controls-gap: var(--space-sm);
    --home-sale-controls-top: 238px;
    --home-sale-controls-left: 174px;
    --home-sale-img-w: var(--home-sale-img-tablet);
    --home-sale-img-right: 28px;
    --home-sale-img-top: -25px;
    height: var(--home-sale-h-tablet);
    min-height: var(--home-sale-h-tablet);
    max-height: var(--home-sale-h-tablet);
  }
}

@media (min-width: 1350px) {
  .home-page .home-sale-slider {
    --home-sale-controls-offset: 165px;
  }

  .home-page .home-sale-slider__controls {
    left: calc(max(var(--page-pad-x), (100vw - var(--header-content-max)) / 2) + var(--home-sale-controls-offset));
  }
}

@media (min-width: 1440px) {
  .home-page .home-sale-slider__controls {
    top: 225px;
  }
  .home-page .home-products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-page .home-products__item:nth-child(n + 4) {
    display: block;
  }

  .home-page .home-sale-banner__body {
    height: 100%;
    min-height: 100%;
    padding-block: var(--home-sale-banner-body-pad-y-desktop);
    padding-inline: 0;
  }

  .home-page .home-sale-slider {
    --home-sale-content-w: 560px;
    --home-sale-controls-top: 225px;
    --home-sale-controls-offset: 170px;
    --home-sale-img-w: var(--home-sale-img-desktop);
    --home-sale-img-right: 93px;
    --home-sale-img-top: -73px;
    height: var(--home-sale-h-desktop);
    min-height: var(--home-sale-h-desktop);
    max-height: var(--home-sale-h-desktop);
  }
}

/* Product sections */
.home-page .home-best {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-page .home-products__head,
.home-page .home-best__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.home-page .home-products__title,
.home-page .home-best__title {
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
  color: var(--color-black);
}

.home-page .home-product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.home-page .home-product-card__price-current {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-accent-strong);
}

.home-page .home-product-card__price-old {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-text-label);
  text-decoration: line-through;
}

.home-page .home-product-card__name {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-text-xs);
  color: var(--color-black);
}

.home-page .home-product-card__link:hover {
  text-decoration: underline;
}

.home-page .home-product-card__cart:hover {
  filter: brightness(1.1);
}

.home-page .home-product-card__cart:focus-visible,
.home-page .home-product-card__link:focus-visible {
  outline: var(--focus-ring-accent);
  outline-offset: var(--focus-ring-offset);
}

.home-page .home-sale-banner__link:hover {
  filter: brightness(0.96);
}

.home-page .home-sale-slider__btn:hover {
  filter: brightness(0.96);
}

.home-page .home-sale-banner__link:focus-visible,
.home-page .home-sale-slider__btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

@media (min-width: 960px) {
  .home-page .home-products__head,
  .home-page .home-best__head {
    margin-bottom: var(--space-lg);
  }

  .home-page .home-products__title,
  .home-page .home-best__title {
    font-size: var(--text-2xl);
    line-height: var(--lh-heading-lg);
  }

  .home-page .home-product-card__price-current {
    font-size: var(--text-base);
    line-height: var(--lh-text-sm);
  }

  .home-page .home-product-card__name {
    font-size: var(--text-sm);
    line-height: var(--lh-text-sm);
  }
}

/* ===== CONTACTS PAGE ===== */
.contacts-page.product-layout {
  padding-bottom: var(--space-xl);
}

.contacts-page .product-layout__primary {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
  width: 100%;
}

.contacts-page__section {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: var(--space-lg);
}

.contacts-page__section:last-child {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  gap: 0;
}

@media (min-width: 960px) {
  .contacts-page.product-layout {
    padding-bottom: var(--space-lg);
  }

  .contacts-page__section:not(:last-child) {
    flex-direction: row;
  }

  .contacts-page__section:not(:last-child) > .contacts-info {
    flex: 1;
    min-width: 0;
  }

  .contacts-info__title {
    font-size: var(--text-xl);
    line-height: var(--lh-h2-mobile);
  }

  .contacts-info__group-title {
    font-size: var(--text-lg);
    line-height: var(--lh-title-md);
    font-weight: 700;
  }

  .contacts-address__title {
    font-size: var(--text-lg);
    line-height: var(--lh-title-md);
  }
}

@media (min-width: 1440px) {
  .contacts-page.product-layout {
    padding-bottom: var(--space-2xl);
  }
}

.contacts-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.contacts-info__title {
  font-family: var(--font-main);
  font-size: var(--text-h3-mobile);
  font-weight: 700;
  line-height: var(--lh-h3-mobile);
  color: var(--color-black);
}

.contacts-info__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contacts-info__group-title {
  font-family: var(--font-main);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
}

.contacts-info__values {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts-info__value {
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-accent);
  text-decoration: none;
}

.contacts-address {
  width: 100%;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contacts-address__title {
  font-family: var(--font-main);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
}

.contacts-address__text {
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-text-sm);
  color: var(--color-black);
}

.contacts-map {
  width: 100%;
  border: none;
  border-radius: var(--radius-xl);
  height: 376px;
}

.product-desc__text iframe{max-width:100%;}

.stock-badgeerr {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    font-size: var(--text-xs);
    font-weight: 500;
    line-height: var(--lh-text-xs);
    color: var(--color-semantic-red);
}
.stock-badge__doterr {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-pill);
    background-color: var(--color-semantic-red);
}