:root {
  /*--font: Avenir, "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;*/
  --font: "Halvar Breitschrift", sans-serif;
  --font-display: "Halvar Breitschrift", sans-serif;
  --container-max: 1528px;
  --container-gutter: 40px;
  --ink: #141313;
  --muted: #4e4e4e;
  --btn-bg: #73092a;
  --dns-orange: #ff8a00;
  --search-bg: #f5f5f5;
  --gap: 20px;
  --hero-h: 600px;
  --side-h: 290px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  font-family: var(--font);
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Shared container — matches dogma.ru slider/header content */
.container {
  width: min(var(--container-max), calc(100% - (var(--container-gutter) * 2)));
  margin-left: auto;
  margin-right: auto;
}

/* ========== HEADER ========== */
.header {
  width: 100%;
  background: #ffffff;
}

.header-top {
  width: 100%;
  height: 56px;
  background: #ffffff;
}

.header-top .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.header-top__left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 20px;
}

.lang-selector,
.location-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.lang-selector__flag {
  display: block;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}





.lang-selector__text,
.location-selector__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.lang-selector__chevron {
  flex-shrink: 0;
}

.lang-switch {
  position: relative;
  margin: 0;
}

.lang-switch__menu {
  position: absolute;
  top: 100%;
  left: -12px;
  z-index: 90;
  display: none;
  flex-direction: column;
  min-width: 90px;
  margin-top: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(20, 19, 19, 0.12);
}

.lang-switch.is-open .lang-switch__menu {
  display: flex;
}

.lang-switch.is-open .lang-selector__chevron {
  transform: rotate(180deg);
}

.lang-switch__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #1c2126;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}

.lang-switch__item:hover,
.lang-switch__item.is-active {
  background: #f7f7f8;
  color: var(--btn-bg);
}

.location-selector__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 18px;
  min-width: 0;
  margin-left: 12px;
}

.header-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.header-nav__link:hover {
  color: #333;
}

.header-nav__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-radius: 50%;
  background: #ffa319;
  flex-shrink: 0;
}

.header-nav__chevron {
  flex-shrink: 0;
}

.header-phone {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.header-main {
  width: 100%;
  padding: 12px 0 20px;
  background: #ffffff;
}

.header-main .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  overflow: visible;
  justify-content: space-between;
}

.brand-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex: 0 0 auto;
  width: auto;
  /*height: 64px;*/
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.brand-area__logo {
  display: flex;
  align-items: center;
  height: 100%;
  width: 110px;
  padding-right: 4px;
}
.slogan__text {
    opacity: 48%;
    max-width: 208px;
    font-size: 13px;
}

.brand-area__logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 124px;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.catalog-btn:hover {
  background: #5c0722;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  height: 44px;
  min-width: 200px;
  max-width: 730px;
}

.search-bar__input {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 6px 182px 6px 16px;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 15px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #0005;
}

.search-bar__input::placeholder {
  color: #afafaf;
}

.search-bar__input::-webkit-search-decoration,
.search-bar__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-bar__btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 270px;
  width: 270px;
  height: 64px;
  overflow: visible;
  position: relative;
  z-index: 30;
}
.header-actions > a.header-action:first-child {
    display: none !important;
}
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  color: var(--muted);
}

.header-action:hover {
  color: #333;
}

.header-action__icon {
  display: block;
  width: 22px;
  height: 22px;
}

.header-action__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.header-action__count {
  position: absolute;
  top: -7px;
  right: -9px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font: 700 10px/1 var(--font);
  letter-spacing: 0;
  pointer-events: none;
}

.header-action__label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

/* ========== AUTH DROPDOWN (technopark.ru style) ========== */
.header-auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  align-self: stretch;
  z-index: 40;
}

.header-auth__trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-auth__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: color 0.2s ease;
  color: #afafaf;
}

.header-auth__icon-wrap::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
  z-index: -1;
}

.header-auth__trigger .header-action__icon {
  color: inherit;
}

.header-auth.is-open .header-auth__icon-wrap,
.header-auth__trigger:hover .header-auth__icon-wrap {
  color: #141313;
}

.header-auth.is-open .header-auth__icon-wrap::before,
.header-auth__trigger:hover .header-auth__icon-wrap::before {
  background: #f0f0f0;
}

.header-auth.is-open .header-action__label {
  color: #141313;
}

.header-auth__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  padding: 16px 0 8px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(20, 19, 19, 0.14);
  z-index: 50;
}

.header-auth__dropdown[hidden] {
  display: none !important;
}

.header-auth__dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(20, 19, 19, 0.04);
}

.header-auth__city {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.header-auth__city svg {
  color: var(--btn-bg);
  flex-shrink: 0;
}

.header-auth__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  height: 44px;
  margin: 0 16px 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #ffffff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.header-auth__cta:hover {
  filter: brightness(1.08);
}

.header-auth__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-auth__list li + li {
  border-top: 1px solid #ececec;
}

.header-auth__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  transition: background 0.15s ease;
}

.header-auth__item svg {
  flex-shrink: 0;
  color: #9a9a9a;
}

.header-auth__item:hover {
  background: #f5f5f5;
}

.header-auth__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* ========== HERO SLIDER (dogma.ru) ========== */
.hero {
    margin-top: 30px;
  width: 100%;
  padding: 0 0 40px;
  background: #ffffff;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.785fr) minmax(0, 1fr);
  gap: var(--gap);
  height: var(--hero-h);
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-width: 0;
  height: var(--hero-h);
  max-height: var(--hero-h);
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 16px;
}

.hero-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
}

.hero-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide__title {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  margin: 0;
  max-width: 720px;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero-slide__title .is-light {
  display: block;
  font-weight: 400;
  font-size: 0.62em;
  line-height: 1.05;
  margin-bottom: 0.12em;
}

.hero-slide__cta {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 191px;
  height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 2px;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.hero-slide__cta:hover {
  background: #f3f3f3;
}

.hero-slider__controls {
  position: absolute;
  right: 20px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-slider__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 56px;
  padding: 0 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-slider__counter span {
  opacity: 0.7;
}

.hero-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.hero-slider__arrow:hover {
  background: #000;
}

.hero-slider__arrow svg {
  display: block;
}

.hero-side {
  display: grid;
  grid-template-rows: var(--side-h) var(--side-h);
  gap: var(--gap);
  min-width: 0;
  height: var(--hero-h);
  max-height: var(--hero-h);
}

.promo-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
}

.promo-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  height: 100%;
  padding: 22px 12px 20px 20px;
  box-sizing: border-box;
  min-width: 0;
}

.promo-card__title {
  margin: 0 0 6px;
  font-family: var(--font);
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.promo-card__subtitle {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  color: #fff;
}

.promo-card__media {
  position: absolute;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  left: 0;
  top: 0;
}


.promo-card:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 51%;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .5) 100%);
    transition: opacity .2s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.promo-card__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 40px;
  padding: 0 20px;
  border-radius: 0;
  background: var(--btn-bg);
  color: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .header-nav {
    gap: 12px;
  }

  .header-nav__link,
  .header-phone {
    font-size: 14px;
  }

  .brand-area {
    flex: 1 1 auto;
    width: auto;
  }

  .header-actions {
    flex-basis: 230px;
    width: 230px;
  }

  .hero__grid {
    height: 440px;
  }
}

@media (max-width: 980px) {
  :root {
    --container-gutter: 20px;
  }

  .header-top {
    height: auto;
    padding: 10px 0;
  }

  .header-top .container {
    flex-wrap: wrap;
    height: auto;
    row-gap: 10px;
  }

  .header-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-main .container {
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
  }

  .brand-area {
    flex: 1 1 auto;
    width: auto;
  }

  .search-bar {
    flex: 1 1 100%;
    order: 3;
    height: 52px;
  }

  .header-actions {
    flex: 1 1 auto;
    width: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-slider {
    height: 420px;
  }

  .hero-side {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    height: 220px;
  }
}

/* ========== OFFERS / CATEGORIES (vseinstrumenti exact cards) ========== */
.offers {
  width: 100%;
  background: #ffffff;
  padding: 40px 0 24px;
  color: var(--ink);
}

.offers__title {
  margin: 0 0 20px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.offers__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 6px 0 22px;
}

@media (max-width: 1024px) {
  .offers__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .offers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.offer-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 220px;
}

/* 12 distinct pastel backgrounds; hues are shuffled so side-by-side and stacked cards (6/3/2 columns) never get similar colours */
.offers__grid .offer-card:nth-child(12n + 1) { background: #ffe0e0; } /* coral */
.offers__grid .offer-card:nth-child(12n + 2) { background: #cdf5f1; } /* aqua */
.offers__grid .offer-card:nth-child(12n + 3) { background: #ffdeec; } /* pink */
.offers__grid .offer-card:nth-child(12n + 4) { background: #e9f8cc; } /* lime */
.offers__grid .offer-card:nth-child(12n + 5) { background: #cdf5f1; } /* lavender */
.offers__grid .offer-card:nth-child(12n + 6) { background: #ffe8cc; } /* peach */
.offers__grid .offer-card:nth-child(12n + 7) { background: #e9f8cc; } /* sky */
.offers__grid .offer-card:nth-child(12n + 8) { background: #f3ebdf; } /* sand */
.offers__grid .offer-card:nth-child(12n + 9) { background: #d5f7e2; } /* mint */
.offers__grid .offer-card:nth-child(12n + 10) { background: #ffe0e0; } /* orchid */
.offers__grid .offer-card:nth-child(12n + 11) { background: #fef7cc; } /* butter */
.offers__grid .offer-card:nth-child(12n + 12) { background: #ffe0e0; } /* periwinkle */

.offer-card img {
    width: 60%;
    height: 60%;
    display: block;
    object-fit: contain;
    position: absolute;
    right: 50%;
    top: 40%;
    transform: translateX(50%);
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 19, 19, 0.12);
}

.offer-card:focus-visible {
  outline: 3px solid #1570ef;
  outline-offset: 3px;
}

.offer-card__title {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 15px;
  max-width: calc(100% - 32px);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .offers {
    padding: 28px 0 8px;
  }

  .offers__title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .offer-card__title {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    font-size: 14px;
  }
}

/* ========== PRODUCTS CAROUSEL (KAMA TYRES) ========== */
.products {
  width: 100%;
  background: #ffffff;
  padding: 40px 0 48px;
  color: var(--ink);
}

.products__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.products__title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.products__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products__all {
  margin-right: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.products__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(20, 19, 19, 0.15);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.products__arrow:hover {
  background: #f5f5f5;
  border-color: rgba(20, 19, 19, 0.35);
}

.products__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.products-carousel {
  overflow: hidden;
  width: 100%;
}

.products-carousel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.product-card {
  --kama-cyan: #73092a;
  --kama-border: #e6eef1;
  --kama-muted: #4a4a4a;
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--kama-border);
  border-radius: 5px;
  background: #ffffff;
  box-sizing: border-box;
  font-family: var(--font);
}

.product-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px;
  box-sizing: border-box;
}

.product-card__fav {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  width: 24px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kama-muted);
  cursor: pointer;
}

.product-card__fav:hover,
.product-card__fav.is-active {
  color: var(--kama-cyan);
}

.product-card__fav.is-active svg path {
  fill: var(--kama-cyan);
  stroke: var(--kama-cyan);
}

.product-card__top {
  position: relative;
  padding: 0 10px;
}

.product-card__labels {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--kama-muted);
}

.product-card__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-height: 24px;
  color: var(--kama-muted);
}

.product-card__label--plan {
  font: italic 700 13px/1 var(--font);
  letter-spacing: -0.02em;
}

.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding-bottom: 8px;
  box-sizing: content-box;
}

.product-card__media img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.product-card__info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.product-card__season {
  display: inline-flex;
  flex: 0 0 auto;
}

.product-card__rating {
  display: flex;
  align-items: center;
}

.product-card__stars {
  display: inline-flex;
  align-items: center;
}

.product-card__star {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 2px 0 1px;
  background: url("../assets/products/star-empty.png") center / 15px 15px no-repeat;
}

.product-card__star--fill {
  background-image: url("../assets/products/star-fill.png");
}

.product-card__reviews {
  display: block;
  margin: 1px 2px 0;
  font: 400 13px/15px var(--font);
  color: #828282;
}

.product-card__title {
  display: block;
  margin: 0 0 14px;
  font: 500 15px/21px var(--font);
  color: var(--kama-cyan);
  text-decoration: none;
  transition: color 0.3s;
  text-transform: uppercase;
}

.product-card__title:hover {
  color: #4a4a4a;
}

.product-card__price-row {
  margin-top: auto;
  display: flex;
  align-items:center;
}

.product-card__price {
  display: block;
  font: 400 19px var(--font);
  color: #000;
}

.product-card__price-currency {
  display: inline;
  margin-right: 2px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  vertical-align: 0.08em;
}

.product-card__price-value {
  display: inline;
  margin-right: 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
}
.product-card__price-row del {
    font-size: 14px;
}
.product-card__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: fit-content;
  height: 36px;
  padding: 10px 15px;
  border: 1px solid var(--kama-cyan);
  border-radius: 3px;
  background: var(--kama-cyan);
  color: #ffffff;
  font: 700 12px var(--font);
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-card__cart:hover {
  background: #ffffff;
  color: var(--kama-cyan);
}

.product-card__qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  height: fit-content;
  flex: 0 0 auto;
}

.product-card__qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--kama-border);
  border-radius: 3px;
  background: #ffffff;
  color: #000;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.product-card__qty-btn:hover {
  border-color: var(--kama-cyan);
  color: var(--kama-cyan);
}

.product-card__qty-value {
  width: 30px;
  text-align: center;
  font: 400 18px var(--font);
  color: #000;
}

.product-card__total {
  margin-top: 12px;
  font: 400 16px/15px var(--font);
  color: var(--kama-muted);
  text-align: left;
}

.product-card__total-value {
  display: inline;
  margin-left: 5px;
  font-weight: 700;
  color: var(--kama-cyan);
}

@media (max-width: 1100px) {
  .products__title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .products {
    padding: 28px 0 32px;
  }

  .products__title {
    font-size: 22px;
  }

  .products__all {
    display: none;
  }

  .product-card__buy {
    flex-wrap: wrap;
  }

  .product-card__cart {
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* ========== ADVANTAGES ========== */
.advantages {
  width: 100%;
  background: transparent;
  padding: 48px 0 64px;
}

.advantages__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.advantages__row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.advantages__card {
  --adv-bg: #ebebeb;
  --adv-title: #1a1a1a;
  --adv-muted: #6b6b6b;
  --adv-cta: #1a1a1a;
  --adv-cta-icon-bg: #1a1a1a;
  --adv-cta-icon-fg: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 0;
  min-width: 0;
  min-height: 200px;
  padding: 22px 20px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(255, 255, 255, 0.55) 0%, transparent 55%),
    var(--adv-bg);
  color: var(--adv-title);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advantages__card--gray {
  --adv-bg: #ebebeb;
  --adv-title: #1a1a1a;
  --adv-muted: #5c5c5c;
  --adv-cta: #1a1a1a;
  --adv-cta-icon-bg: #1a1a1a;
  --adv-cta-icon-fg: #ffffff;
}

.advantages__card--beige {
  --adv-bg: #cbb496;
  --adv-title: #ffffff;
  --adv-muted: rgba(255, 255, 255, 0.85);
  --adv-cta: #ffffff;
  --adv-cta-icon-bg: #ffffff;
  --adv-cta-icon-fg: #8a7a68;
}

.advantages__card--dark {
  --adv-bg: #141414;
  --adv-title: #ffffff;
  --adv-muted: rgba(255, 255, 255, 0.8);
  --adv-cta: #ffffff;
  --adv-cta-icon-bg: #ffffff;
  --adv-cta-icon-fg: #141414;
}

.advantages__row--4 .advantages__card {
  max-width: calc((100% - 48px) / 4);
  aspect-ratio: 767 / 409;
}

.advantages__row--3 .advantages__card {
  flex: 0 1 calc((100% - 48px) / 4);
  max-width: calc((100% - 48px) / 4);
  aspect-ratio: 767 / 409;
}

.advantages__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  max-width: 58%;
}

.advantages__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--adv-title);
}

.advantages__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--adv-cta);
}

.advantages__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--adv-cta-icon-bg);
  color: var(--adv-cta-icon-fg);
  flex: 0 0 auto;
}

.advantages__cta-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.advantages__media {
  position: absolute;
  right: -4%;
  bottom: -6%;
  z-index: 1;
  width: 58%;
  max-width: 240px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.advantages__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* ========== NEWS (dogma.ru) ========== */
.news {
  width: 100%;
  background: #ffffff;
  padding: 48px 0 64px;
  color: var(--ink);
}

.news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.news__title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.news__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(20, 19, 19, 0.2);
  border-radius: 2px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.news__all:hover {
  border-color: var(--ink);
  background: #f5f5f5;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
}

.news-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 310 / 340;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 16px;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card__link:hover .news-card__media img {
  transform: scale(1.03);
}

.news-card__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  background: #ffffff;
  font-size: 12px;
  line-height: 1;
  color: var(--ink);
}

.news-card__title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 18px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
  max-height: max-content;
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  font-size: 12px;
  color: var(--ink);
}

.news-card__more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-promo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f7f7f7;
  aspect-ratio: 310 / 496;
  text-decoration: none;
  color: inherit;
}

.news-promo__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 8px;
  flex: 0 0 auto;
}

.news-promo__price {
  font-family: var(--font);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #d3428a;
}

.news-promo__title {
  font-family: var(--font);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 500;
  line-height: 1.25;
  color: #141313;
  max-width: 16em;
}

.news-promo__media {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.news-promo__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  transition: transform 0.35s ease;
}

.news-promo:hover .news-promo__media img {
  transform: scale(1.03);
}

/* ========== FOOTER (dogma.ru) ========== */
.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;
}

.site-footer {
  width: 100%;
  background: #141313;
  color: #ffffff;
  padding: 64px 0 40px;
}

.site-footer a {
  color: inherit;
}

.site-footer__subscribe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
}

.site-footer__subscribe-title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.site-footer__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__form-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.site-footer__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.site-footer__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__input:focus {
  border-color: rgba(255, 255, 255, 0.7);
}

.site-footer__submit {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.site-footer__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.site-footer__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.site-footer__check input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.site-footer__check a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 48px;
  padding: 48px 0;
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__phones {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__phone {
  display: inline-block;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-footer__address,
.site-footer__company {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  max-width: 340px;
}

.site-footer__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  width: fit-content;
}

.site-footer__callback {
  margin-top: 8px;
  width: 100%;
  max-width: 320px;
  height: 48px;
  border: 0;
  border-radius: 2px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.site-footer__col a {
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
}

.site-footer__col a:hover {
  color: #ffffff;
}

.site-footer__bottom {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  gap: 32px;
  padding-top: 32px;
  align-items: start;
}

.site-footer__credit p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  max-width: 220px;
}

.site-footer__ida {
  font-size: 16px;
  font-weight: 500;
}

.site-footer__legal p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.site-footer__policies a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-footer__socials a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s ease;
}

.site-footer__socials a:hover {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .news-card__title {
    font-size: 20px;
  }

  .site-footer__subscribe,
  .site-footer__main,
  .site-footer__bottom {
    grid-template-columns: 1fr;
  }

  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantages__row--4,
  .advantages__row--3 {
    flex-wrap: wrap;
  }

  .advantages__row--4 .advantages__card,
  .advantages__row--3 .advantages__card {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
    aspect-ratio: auto;
    min-height: 180px;
  }

  .advantages__title {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .advantages {
    padding: 32px 0 40px;
  }

  .advantages__grid,
  .advantages__row {
    gap: 12px;
  }

  .advantages__row--4 .advantages__card,
  .advantages__row--3 .advantages__card {
    flex: 1 1 100%;
    max-width: none;
    min-height: 170px;
    aspect-ratio: auto;
  }

  .advantages__content {
    max-width: 62%;
  }

  .advantages__media {
    width: 50%;
  }

  .news {
    padding: 32px 0 40px;
  }

  .news__title {
    font-size: 28px;
  }

  .news__head {
    margin-bottom: 24px;
    gap: 12px;
  }

  .news__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .news-promo {
    aspect-ratio: 310 / 400;
    max-height: 420px;
  }

  .site-footer {
    padding: 40px 0 28px;
  }

  .site-footer__subscribe-title {
    font-size: 24px;
  }

  .site-footer__form-row {
    flex-direction: column;
  }

  .site-footer__phone {
    font-size: 24px;
  }

  .site-footer__callback {
    max-width: none;
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .hero-slider {
    height: 360px;
  }

  .hero-slide__title {
    font-size: 28px;
  }

  .hero-slider__controls {
    right: 12px;
    bottom: 12px;
  }

  .hero-slider__counter,
  .hero-slider__arrow {
    height: 44px;
  }

  .hero-slider__arrow {
    width: 44px;
  }

  .hero-slide__cta {
    left: 12px;
    bottom: 12px;
    height: 44px;
    min-width: 0;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero-side {
    grid-template-columns: 1fr;
    height: auto;
  }

  .promo-card {
    height: 220px;
    grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.9fr);
  }

  .promo-card__media {
    max-height: 200px;
  }
}

/* ========== PRESS CENTER (dogma.ru/press-center) ========== */
.press-center {
  width: 100%;
  background: #ffffff;
  padding: 20px 0 80px;
  color: var(--ink);
}

.press-center__crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
  font-size: 12px;
  line-height: 16px;
  color: #6e7782;
}

.press-center__crumbs a {
  color: inherit;
  text-decoration: none;
}

.press-center__crumbs a:hover {
  color: var(--ink);
}

.press-center__crumbs-sep {
  color: #6e7782;
}

.press-center__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.press-center__title {
  margin: 0;
  font-family: var(--font);
  font-size: 40px;
  font-weight: 400;
  line-height: 39px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.press-center__filter {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 250px;
  height: 48px;
  padding: 15px 20px;
  border: 0;
  border-radius: 2px;
  outline: 1px solid #e5e9ed;
  outline-offset: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
}

.press-center__filter:hover {
  outline-color: #cfd5db;
}

.press-center__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.press-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 408px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}

.press-card__media {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #f0f0f0;
}

.press-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.press-card:hover .press-card__media img {
  transform: scale(1.03);
}

.press-card__body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  height: 100%;
  padding: 20px;
  background: #f4f4f5;
  box-sizing: border-box;
}

.press-card__top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.press-card__title {
  margin: 0;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.press-card__excerpt {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: #6e7782;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.press-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink);
}

.press-card__more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.press-center__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 76px;
}

.press-center__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.press-center__page.is-active,
.press-center__page:hover {
  background: #9aa0a8;
}

/* OpenCart pagination (common/pagination.twig) inside press-center */
.press-center__pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.press-center__pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: none;
}

.press-center__pagination .page-item.active .page-link,
.press-center__pagination .page-link:hover {
  background: #9aa0a8;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .press-center__grid {
    grid-template-columns: 1fr;
  }

  .press-card {
    height: auto;
    min-height: 320px;
  }

  .press-card__media {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .press-center__title {
    font-size: 28px;
    line-height: 1.1;
  }

  .press-card {
    grid-template-columns: 1fr;
    height: auto;
  }

  .press-card__media {
    aspect-ratio: 330 / 408;
    min-height: 0;
  }

  .press-card__body {
    min-height: 220px;
  }

  .press-center__pagination {
    margin-top: 48px;
  }
}

/* ========== ARTICLE PAGE (dogma.ru press article) ========== */
.article-page {
  width: 100%;
  background: #ffffff;
  padding: 20px 0 80px;
  color: var(--ink);
}

.article-page__crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 40px;
  font-size: 12px;
  line-height: 16px;
  color: #6e7782;
}

.article-page__crumbs a {
  color: inherit;
  text-decoration: none;
}

.article-page__crumbs a:hover {
  color: var(--ink);
}

.article-page__crumbs-sep {
  color: #6e7782;
}

.article-page__crumbs [data-article-crumb-title] {
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.article-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 900px) 310px;
  gap: 150px;
  align-items: start;
}

.article__top {
  display: grid;
  gap: 28px;
  margin-bottom: 40px;
}

.article__headline {
  display: grid;
  gap: 16px;
}

.article__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 32px;
  padding: 0 15px;
  border-radius: 2px;
  background: #f4f4f5;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
}

.article__title {
  margin: 0;
  font-family: var(--font);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.article__posted {
  display: grid;
  gap: 4px;
}

.article__posted-label {
  font-size: 12px;
  line-height: 1.2;
  color: #6e7782;
}

.article__posted-date {
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
}

.article__share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article__share--bottom {
  margin-top: 40px;
}

.article__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #e5e9ed;
  border-radius: 2px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.article__share-btn:hover {
  border-color: #cfd5db;
  background: #f7f7f7;
}

.article__content {
  display: grid;
  gap: 40px;
}

.article__media {
  width: 100%;
  height: 620px;
  overflow: hidden;
  background: #f0f0f0;
}

.article__media[hidden] {
  display: none !important;
}

.article__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  object-fit: cover;
  object-position: center;
}

.article__body {
  display: grid;
  gap: 18px;
}

.article__body p {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  color: var(--ink);
}

.article-aside {
  display: grid;
  gap: 24px;
  align-content: start;
  position: sticky;
    top: 180px;
}

.article-aside__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.article-aside__list {
  display: grid;
  gap: 24px;
}

.article-aside__item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  color: var(--ink);
  text-decoration: none;
}

.article-aside__thumb {
  width: 76px;
  height: 76px;
  overflow: hidden;
  background: #f0f0f0;
}

.article-aside__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-aside__text {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.article-aside__item-title {
  font-size: 16px;
  line-height: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-aside__text time {
  font-size: 12px;
  color: var(--ink);
}

.article-aside__promo {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.article-aside__promo-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.article-aside__promo-text {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  color: #6e7782;
}

.article-aside__form {
  display: grid;
  gap: 8px;
}

.article-aside__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e5e9ed;
  border-radius: 2px;
  background: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
}

.article-aside__submit {
  height: 48px;
  border: 0;
  border-radius: 2px;
  background: var(--btn-bg);
  color: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
}

.article-aside__submit:hover {
  filter: brightness(1.05);
}

.article-related {
  margin-top: 80px;
}

.article-related__title {
  margin: 0 0 40px;
  font-size: 40px;
  font-weight: 400;
  line-height: 39px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.article-related .press-card__title {
  font-size: 20px;
}

@media (max-width: 1100px) {
  .article-page__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .article-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .article__title,
  .article-related__title {
    font-size: 28px;
    line-height: 1.1;
  }

  .article__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-page__crumbs [data-article-crumb-title] {
    max-width: 100%;
    white-space: normal;
  }
}

/* ——— Product detail (VI-style) ——— */
.pdp {
  padding: 20px 0 72px;
  background: #fff;
  color: #1c2126;
}

.pdp__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font: 400 13px/1.3 var(--font);
  color: #7a828a;
}

.pdp__crumbs a {
  color: #7a828a;
  text-decoration: none;
}

.pdp__crumbs a:hover {
  color: #1c2126;
}

.pdp__crumbs-sep {
  color: #c0c5ca;
}

.pdp__crumbs [data-pdp-crumb-title] {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1c2126;
}

.pdp__title {
  margin: 0 0 12px;
  font: 700 23px/1.25 var(--font);
  letter-spacing: -0.01em;
  color: #1c2126;
}

.pdp__tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 820px;
  margin-bottom: 14px;
  color: #1f8f3a;
}

.pdp__tip-icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.pdp__tip p {
  margin: 0;
  font: 500 14px/1.35 var(--font);
}

.pdp__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 12px;
  font: 400 13px/1.3 var(--font);
  color: #484f55;
}

.pdp__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pdp__rating strong {
  font-weight: 700;
  color: #1c2126;
}

.pdp__rating a,
.pdp__questions {
  color: #484f55;
  text-decoration: none;
}

.pdp__rating a:hover,
.pdp__questions:hover {
  color: #d60000;
}

.pdp__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 24px;
}

.pdp__warranty {
  font: 500 13px/1.3 var(--font);
  color: #1c2126;
}

.pdp__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #484f55;
  font: 400 13px/1.3 var(--font);
  cursor: pointer;
}

.pdp__action-btn:hover,
.pdp__action-btn.is-active {
  color: #d60000;
}

.pdp__action-btn.is-active svg path {
  fill: currentColor;
}

.pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(260px, 1fr) 328px;
  gap: 28px 32px;
  align-items: start;
  margin-bottom: 56px;
}

.pdp-gallery {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pdp-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-gallery__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 60px;
  padding: 0;
  border: 1px solid #e3e6e9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.pdp-gallery__thumb.is-active,
.pdp-gallery__thumb:hover {
  border-color: #1c2126;
}

.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-gallery__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 482px;
  border-radius: 12px;
  background: #f7f8f9;
}

.pdp-gallery__main img {
  max-width: 100%;
  max-height: 482px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pdp-gallery__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-gallery__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 12px/1.2 var(--font);
  color: #fff;
}

.pdp-gallery__badge--dark {
  background: #1c2126;
}

.pdp-gallery__badge--blue {
  background: #2f6fed;
}

.pdp-specs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdp-specs__row {
  display: grid;
  grid-template-columns: auto minmax(12px, 1fr) auto;
  align-items: end;
  gap: 6px;
  margin-bottom: 10px;
  font: 400 14px/1.35 var(--font);
}

.pdp-specs__label {
  color: #7a828a;
}

.pdp-specs__dots {
  border-bottom: 1px dotted #c8ced1;
  transform: translateY(-4px);
}

.pdp-specs__value {
  color: #1c2126;
  text-align: right;
}

.pdp-specs__all {
  display: inline-block;
  margin-top: 8px;
  color: #d60000;
  font: 500 14px/1.3 var(--font);
  text-decoration: none;
}

.pdp-specs__all:hover {
  text-decoration: underline;
}

.pdp-buy {
  position: sticky;
  top: 16px;
  padding: 24px;
  border: 1px solid #212121;
  border-radius: 20px;
  background: #fff;
}

.pdp-buy__tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #1c2126;
  color: #fff;
  font: 600 12px/1.2 var(--font);
}

.pdp-buy__old {
  margin-bottom: 2px;
  color: #484f55;
  font: 400 16px/1.2 var(--font);
  text-decoration: line-through;
}

.pdp-buy__save {
  margin-bottom: 4px;
  color: #1f8f3a;
  font: 600 14px/1.2 var(--font);
}

.pdp-buy__price {
  margin-bottom: 8px;
  color: #1c2126;
  font: 700 28px/1.15 var(--font);
  letter-spacing: -0.02em;
}

.pdp-buy__note {
  margin: 0 0 6px;
  color: #7a828a;
  font: 400 13px/1.35 var(--font);
}

.pdp-buy__bonus {
  margin: 0 0 14px;
  color: #1c2126;
  font: 400 14px/1.3 var(--font);
}

.pdp-buy__b2b {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f5f7;
  font: 400 12px/1.3 var(--font);
}

.pdp-buy__b2b-discount {
  grid-row: span 2;
  color: #1f8f3a;
  font: 700 18px/1 var(--font);
}

.pdp-buy__b2b-text {
  color: #1c2126;
}

.pdp-buy__b2b-code {
  color: #7a828a;
}

.pdp-buy__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 12px;
  background: #d60000;
  color: #fff;
  font: 700 16px/1 var(--font);
  cursor: pointer;
  transition: background 0.2s ease;
}

.pdp-buy__cart:hover {
  background: #b80000;
}

.pdp-buy__cart.is-added {
  background: #1f8f3a;
}

.pdp-buy__quick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid #d0d5da;
  border-radius: 12px;
  background: #fff;
  color: #1c2126;
  font: 600 15px/1 var(--font);
  cursor: pointer;
}

.pdp-buy__quick:hover {
  border-color: #1c2126;
}

.pdp-buy__installment {
  color: #484f55;
  font: 400 13px/1.35 var(--font);
  text-align: center;
}

.pdp-analogues__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.pdp-analogues__title {
  margin: 0;
  font: 700 20px/1.2 var(--font);
  color: #1c2126;
}

.pdp-analogues__compare {
  color: #7a828a;
  font: 400 14px/1.2 var(--font);
  text-decoration: none;
}

.pdp-analogues__compare:hover {
  color: #d60000;
}

.pdp-analogues__wrap {
  position: relative;
}

.pdp-analogues__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 220px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}

.pdp-analogues__track::-webkit-scrollbar {
  display: none;
}

.pdp-analog {
  scroll-snap-align: start;
  color: inherit;
  text-decoration: none;
}

.pdp-analog__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #f7f8f9;
}

.pdp-analog__media img {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
}

.pdp-analog__discount {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1f8f3a;
  color: #fff;
  font: 700 12px/1.2 var(--font);
}

.pdp-analog__price {
  margin-bottom: 6px;
  font: 700 20px/1.2 var(--font);
  color: #1c2126;
}

.pdp-analog__title {
  font: 400 14px/1.35 var(--font);
  color: #1c2126;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdp-analogues__nav {
  position: absolute;
  top: 56px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e3e6e9;
  border-radius: 50%;
  background: #fff;
  color: #484f55;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28, 33, 38, 0.08);
}

.pdp-analogues__nav--prev {
  left: -8px;
}

.pdp-analogues__nav--next {
  right: -8px;
}

.pdp-analogues__nav:hover {
  color: #1c2126;
  border-color: #c8ced1;
}

@media (max-width: 1100px) {
  .pdp__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .pdp-gallery {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .pdp {
    padding-top: 12px;
  }

  .pdp__title {
    font-size: 20px;
  }

  .pdp__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdp-gallery {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .pdp-gallery__thumb {
    width: 56px;
    height: 50px;
  }

  .pdp-gallery__main {
    min-height: 280px;
  }

  .pdp-gallery__main img {
    max-height: 280px;
  }

  .pdp-buy {
    position: static;
  }

  .pdp-analogues__nav {
    display: none;
  }
}

/* ========== SHIPPING PAGE (guinot-shop style) ========== */
.shipping-page {
  padding: 24px 0 80px;
  background: #fff;
  color: #333;
}

.shipping-page__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font: 400 13px/1.3 var(--font);
  color: #8c8c8c;
}

.shipping-page__crumbs a {
  color: inherit;
  text-decoration: none;
}

.shipping-page__crumbs a:hover {
  color: var(--btn-bg);
}

.shipping-page__crumbs-sep {
  color: #c0c0c0;
}

.shipping-page__title {
  margin: 0 0 36px;
  font: 300 28px/1.25 var(--font);
  letter-spacing: -0.01em;
  color: #8c8c8c;
}

.shipping-section {
  max-width: 860px;
}

.shipping-section + .shipping-section,
.shipping-page__divider + .shipping-section {
  margin-top: 8px;
}

.shipping-section__title {
  margin: 0 0 14px;
  font: 700 24px/1.25 var(--font);
  color: #333;
}

.shipping-section__lead {
  margin: 0 0 14px;
  font: italic 400 16px/1.45 var(--font);
  color: #666;
}

.shipping-section__text {
  margin: 0 0 22px;
  font: 400 15px/1.55 var(--font);
  color: #555;
}

.shipping-section__subtitle {
  margin: 28px 0 14px;
  font: 700 18px/1.3 var(--font);
  color: #333;
}

.shipping-place {
  margin: 0 0 20px;
  padding-left: 2px;
}

.shipping-place__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #333;
  font: 700 15px/1.3 var(--font);
}

.shipping-place__pin {
  flex: 0 0 auto;
  color: var(--btn-bg);
}

.shipping-place p,
.shipping-block p {
  margin: 0 0 4px;
  padding-left: 22px;
  font: 400 14px/1.5 var(--font);
  color: #666;
}

.shipping-place p span,
.shipping-block p span {
  color: #444;
  font-weight: 600;
}

.shipping-block {
  margin: 0 0 18px;
}

.shipping-block__title {
  margin: 0 0 8px;
  font: 700 15px/1.35 var(--font);
  color: #333;
}

.shipping-list {
  margin: 0 0 8px;
  padding-left: 22px;
  font: 400 14px/1.55 var(--font);
  color: #666;
}

.shipping-list li + li {
  margin-top: 4px;
}

.shipping-list--meta {
  list-style: none;
  padding-left: 0;
}

.shipping-list--meta li {
  margin-bottom: 8px;
}

.shipping-list--meta strong {
  color: #333;
  font-weight: 700;
}

.shipping-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--btn-bg);
  background: #faf7f8;
}

.shipping-note p {
  margin: 0 0 10px;
  font: 400 14px/1.55 var(--font);
  color: #555;
}

.shipping-note p:last-child {
  margin-bottom: 0;
}

.shipping-page__divider {
  max-width: 860px;
  margin: 36px 0 32px;
  border: 0;
  border-top: 1px solid #e6e6e6;
}

@media (max-width: 760px) {
  .shipping-page {
    padding-top: 16px;
  }

  .shipping-page__title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .shipping-section__title {
    font-size: 22px;
  }

  .shipping-place p,
  .shipping-block p {
    padding-left: 0;
  }
}

/* ========== CATALOG MEGA (lovehoney format) ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.catalog-btn.is-open .catalog-btn__chevron {
  transform: rotate(180deg);
}

.catalog-btn__chevron {
  transition: transform 0.2s ease;
}

.catalog-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 70;
  padding: 0 0 28px;
  background: #fff;
  border-top: 1px solid #ececec;
  box-shadow: 0 18px 40px rgba(20, 19, 19, 0.12);
}

.catalog-mega[hidden] {
  display: none !important;
}

.catalog-mega__panel {
  display: grid;
  grid-template-columns: 280px minmax(220px, 1fr) 300px;
  gap: 0 28px;
  min-height: 420px;
  padding-top: 8px;
}

.catalog-mega__cats {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-right: 1px solid #eee;
}

.catalog-mega__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 18px 14px 16px;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: #1c2126;
  font: 500 15px/1.25 var(--font);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.catalog-mega__cat svg {
  flex: 0 0 auto;
  color: #9aa1a8;
}

.catalog-mega__cat:hover,
.catalog-mega__cat.is-active {
  background: #f3f4f6;
  border-left-color: var(--btn-bg);
}

.catalog-mega__cat.is-active svg {
  color: #1c2126;
}

.catalog-mega__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 8px 18px 4px;
}

.catalog-mega__link {
  display: block;
  padding: 10px 8px;
  color: #1c2126;
  font: 400 15px/1.3 var(--font);
  text-decoration: none;
  border-radius: 6px;
}

.catalog-mega__link:hover {
  background: #f7f7f8;
  color: var(--btn-bg);
}

.catalog-mega__promo {
  align-self: stretch;
  margin: 16px 0;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: #f6ebe8;
  color: var(--btn-bg);
}

.catalog-mega__promo-media {
  position: relative;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3e4c8;
  aspect-ratio: 4 / 3;
}

.catalog-mega__promo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-mega__promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: 88px;
  padding: 8px 8px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: #fff;
  font: 800 10px/1.15 var(--font);
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(115, 9, 42, 0.25);
}

.catalog-mega__promo-title {
  margin: 0 0 8px;
  font: 700 20px/1.2 var(--font);
  color: var(--btn-bg);
}

.catalog-mega__promo-text {
  margin: 0 0 16px;
  font: 400 14px/1.4 var(--font);
  color: #5c3a45;
}

.catalog-mega__promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  color: var(--btn-bg);
  font: 700 14px/1 var(--font);
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.catalog-mega__promo-cta:hover {
  background: var(--btn-bg);
  color: #fff;
}

@media (max-width: 1100px) {
  .catalog-mega__panel {
    grid-template-columns: 240px minmax(180px, 1fr) 260px;
    gap: 0 18px;
  }
}

@media (max-width: 860px) {
  .catalog-mega {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(78vh, 640px);
    overflow: auto;
    padding-bottom: 24px;
    border-radius: 16px 16px 0 0;
  }

  .catalog-mega__panel {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 8px;
  }

  .catalog-mega__cats {
    border-right: 0;
    border-bottom: 1px solid #eee;
    max-height: 220px;
    overflow: auto;
  }

  .catalog-mega__promo {
    margin: 8px 0 0;
  }
}

/* ========== PRODUCT PAGE: OpenCart parts (options, description, specs, reviews) ========== */
.pdp-buy__form {
  margin: 0;
}

.pdp-options {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.pdp-options__item {
  display: grid;
  gap: 6px;
}

.pdp-options__label {
  font: 500 13px/1.3 var(--font);
  color: #1c2126;
}

.pdp-options__item.required .pdp-options__label::after {
  content: " *";
  color: #d60000;
}

.pdp-options__control {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d0d5da;
  border-radius: 10px;
  background: #fff;
  font: 400 14px/1.3 var(--font);
  color: #1c2126;
}

.pdp-options__control.is-invalid,
.pdp-options__choices.is-invalid {
  border-color: #d60000;
}

.pdp-options__choices {
  display: grid;
  gap: 6px;
}

.pdp-options__choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 14px/1.3 var(--font);
  cursor: pointer;
}

.pdp-options__error {
  color: #d60000;
  font: 400 12px/1.3 var(--font);
}

.pdp-options__error:empty {
  display: none;
}

.pdp-section {
  margin-bottom: 48px;
  max-width: 900px;
}

.pdp-section__title {
  margin: 0 0 16px;
  font: 700 20px/1.2 var(--font);
  color: #1c2126;
}

.pdp-section__subtitle {
  margin: 16px 0 10px;
  font: 600 15px/1.3 var(--font);
  color: #1c2126;
}

.pdp-section__text {
  font: 400 15px/1.55 var(--font);
  color: #1c2126;
}

.pdp-section__text img {
  max-width: 100%;
  height: auto;
}

.pdp-section__tags {
  margin-top: 16px;
  font: 400 13px/1.4 var(--font);
  color: #7a828a;
}

.pdp-section__tags a {
  color: #484f55;
}

.pdp-section__specs {
  max-width: 620px;
}

.pdp-toast {
  position: fixed;
  right: 24px;
  bottom: 46px;
  z-index: 1000;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #1f8f3a;
  color: #fff;
  font: 500 14px/1.4 var(--font);
  box-shadow: 0 8px 24px rgba(28, 33, 38, 0.18);
}

.pdp-toast.is-error {
  background: #d60000;
}

.pdp-toast[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .pdp-toast {
    left: 16px;
    right: 16px;
    bottom: 46px;
    max-width: none;
  }
}

/* ========== PRODUCT PAGE: Reviews ========== */
.pdp-reviews {
  max-width: none;
}

.pdp-reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 20px;
}

.pdp-reviews__head .pdp-section__title {
  margin: 0;
}

.pdp-reviews__summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdp-reviews__score {
  font: 700 28px/1 var(--font);
  color: #1c2126;
}

.pdp-reviews__count {
  font: 400 14px/1.3 var(--font);
  color: #7a828a;
}

.pdp-reviews__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.pdp-reviews__list {
  display: grid;
  gap: 16px;
}

.pdp-star {
  fill: #e3e6e9;
}

.pdp-star.is-on {
  fill: #d60000;
}

.pdp-review__stars {
  display: inline-flex;
  gap: 2px;
}

.pdp-review {
  padding: 20px 24px;
  border: 1px solid #e3e6e9;
  border-radius: 16px;
  background: #fff;
}

.pdp-review__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pdp-review__avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f5f7;
  color: #1c2126;
  font: 700 16px/1 var(--font);
}

.pdp-review__who {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}

.pdp-review__author {
  font: 600 15px/1.3 var(--font);
  color: #1c2126;
}

.pdp-review__date {
  font: 400 12px/1.3 var(--font);
  color: #7a828a;
}

.pdp-review__text {
  margin: 0;
  font: 400 15px/1.55 var(--font);
  color: #1c2126;
  overflow-wrap: anywhere;
}

.pdp-review__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  padding: 32px 24px;
  border: 1px dashed #d0d5da;
  border-radius: 16px;
  background: #f7f8f9;
  color: #7a828a;
  text-align: center;
}

.pdp-review__empty p {
  margin: 0;
  font: 400 15px/1.4 var(--font);
  color: #484f55;
}

.pdp-review__pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pdp-review__pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e3e6e9;
  border-radius: 10px;
  color: #1c2126;
  font: 500 14px/1 var(--font);
  text-decoration: none;
}

.pdp-review__pagination .page-item.active .page-link,
.pdp-review__pagination .page-link:hover {
  border-color: #1c2126;
  background: #1c2126;
  color: #fff;
}

.pdp-review-form {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid #212121;
  border-radius: 20px;
  background: #fff;
}

.pdp-review-form__title {
  margin: 0;
  font: 700 18px/1.25 var(--font);
  color: #1c2126;
}

.pdp-review-form__field {
  display: grid;
  gap: 6px;
}

.pdp-review-form__label,
.pdp-review-form legend,
.pdp-review-form .form-label {
  font: 500 13px/1.3 var(--font);
  color: #1c2126;
}

.pdp-review-form__control,
.pdp-review-form .form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d0d5da;
  border-radius: 12px;
  background: #fff;
  font: 400 14px/1.4 var(--font);
  color: #1c2126;
  resize: vertical;
}

.pdp-review-form__control:focus,
.pdp-review-form .form-control:focus {
  outline: none;
  border-color: #1c2126;
}

.pdp-review-form__control.is-invalid,
.pdp-review-form .form-control.is-invalid,
.pdp-rate.is-invalid {
  border-color: #d60000;
}

.pdp-review-form__error,
.pdp-review-form .invalid-feedback {
  color: #d60000;
  font: 400 12px/1.3 var(--font);
}

.pdp-review-form__error:empty,
.pdp-review-form .invalid-feedback:empty {
  display: none;
}

.pdp-review-form fieldset {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.pdp-review-form legend {
  padding: 0;
  margin-bottom: 6px;
}

.pdp-review-form #captcha img {
  margin-top: 8px;
  border-radius: 8px;
}

/* Star picker: inputs are rendered 5..1 so "~" lights up lower stars */
.pdp-rate {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  width: fit-content;
  border: 1px solid transparent;
  border-radius: 8px;
}

.pdp-rate input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pdp-rate label {
  display: inline-flex;
  cursor: pointer;
  fill: #e3e6e9;
  transition: fill 0.15s ease;
}

.pdp-rate label:hover,
.pdp-rate label:hover ~ label,
.pdp-rate input:checked ~ label {
  fill: #d60000;
}

.pdp-rate input:focus-visible + label {
  outline: 2px solid #1c2126;
  outline-offset: 2px;
  border-radius: 4px;
}

.pdp-review-form__msg {
  padding: 10px 14px;
  border-radius: 10px;
  font: 500 13px/1.4 var(--font);
}

.pdp-review-form__msg.is-success {
  background: #e9f6ec;
  color: #1f8f3a;
}

.pdp-review-form__msg.is-error {
  background: #fdecec;
  color: #d60000;
}

.pdp-review-form__msg[hidden] {
  display: none;
}

.pdp-review-form__submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #d60000;
  color: #fff;
  font: 700 16px/1 var(--font);
  cursor: pointer;
  transition: background 0.2s ease;
}

.pdp-review-form__submit:hover {
  background: #b80000;
}

.pdp-review-form__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.pdp-review-form__login {
  margin: 0;
  font: 400 14px/1.5 var(--font);
  color: #484f55;
}

.pdp-review-form__login a {
  color: #d60000;
}

@media (max-width: 1100px) {
  .pdp-reviews__layout {
    grid-template-columns: 1fr;
  }

  .pdp-review-form {
    position: static;
  }
}

@media (max-width: 760px) {
  .pdp-review {
    padding: 16px;
  }

  .pdp-review__head {
    flex-wrap: wrap;
  }

  .pdp-review-form {
    padding: 20px 16px;
  }
}

/* ========== AUTH PAGE (login) ========== */
.auth-page {
  --auth-dark: #221c20;
  --auth-accent: #73092a;
  --auth-accent-soft: #f7e6ea;
  --auth-line: #e5e7ea;
  padding: 40px 0 72px;
  background: #f7f7f7;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  width: min(1240px, calc(100% - 40px));
  min-height: 640px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(20, 19, 19, 0.08);
}

/* ---- left promo ---- */
.auth-card__promo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 48px 48px 18px;
  overflow: hidden;
  background: var(--auth-dark);
  color: #fff;
}

.auth-promo__body {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.auth-promo__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: #f2a5b8;
  font: 800 12px/1.2 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-promo__title {
  margin: 0 0 16px;
  max-width: 380px;
  font: 700 38px/1.15 var(--font);
  letter-spacing: -0.01em;
  color: #fff;
}

.auth-promo__lead {
  margin: 0;
  max-width: 360px;
  font: 400 15px/1.5 var(--font);
  color: rgba(255, 255, 255, 0.78);
}

.auth-promo__visual {
  position: absolute;
  right: 28px;
  bottom: 80px;
  z-index: 1;
  width: auto;
  height: 340px;
  max-width: 42%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.auth-promo__features {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 350px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-feature:last-child {
  border-bottom: 0;
}

.auth-feature__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.auth-feature__text {
  display: grid;
  gap: 3px;
}

.auth-feature__text strong {
  font: 700 14px/1.2 var(--font);
  color: #fff;
}

.auth-feature__text small {
  font: 400 11px/1.3 var(--font);
  color: rgba(255, 255, 255, 0.65);
}

.auth-promo__secure {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
}

.auth-promo__secure svg {
  color: #59c48a;
}

/* ---- right form ---- */
.auth-card__form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: start;
  min-width: 0;
  padding: 48px 42px 20px;
  /*border-left: 4px solid var(--auth-accent);*/
}

.auth-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.auth-head__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border-radius: 8px;
  background: var(--auth-accent-soft);
  color: var(--auth-accent);
}

.auth-head__text {
  display: grid;
  gap: 4px;
}

.auth-head__eyebrow {
  color: var(--auth-accent);
  font: 800 10px/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-head__title {
  margin: 0;
  font: 700 28px/1.15 var(--font);
  color: var(--ink);
}

.auth-head__sub {
  margin: 4px 0 0;
  font: 400 12px/1.4 var(--font);
  color: #7a828a;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field__label {
  font: 700 12px/1.2 var(--font);
  color: var(--ink);
}

.auth-field__box {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__icon {
  position: absolute;
  left: 16px;
  color: #8a9199;
  pointer-events: none;
}

.auth-field__input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 48px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
  font: 400 14px/1 var(--font);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field__input::placeholder {
  color: #9aa1a8;
}

.auth-field__input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(115, 9, 42, 0.12);
}

.auth-field__input.is-invalid {
  border-color: #d60000;
}

.auth-field__toggle {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a9199;
  cursor: pointer;
}

.auth-field__toggle:hover,
.auth-field__toggle.is-on {
  color: var(--auth-accent);
}

.auth-field__error {
  display: none;
  color: #d60000;
  font: 400 12px/1.3 var(--font);
}

.auth-field__error.d-block {
  display: block;
}

.auth-form__row {
  display: flex;
  justify-content: flex-end;
}

.auth-link {
  color: var(--auth-accent);
  font: 700 12px/1.2 var(--font);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--auth-accent);
  color: #fff;
  font: 700 14px/1 var(--font);
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-submit:hover {
  background: #5a0721;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--auth-line);
}

.auth-switch__text {
  display: grid;
  gap: 4px;
}

.auth-switch__text strong {
  font: 700 12px/1.2 var(--font);
  color: var(--ink);
}

.auth-switch__text small {
  font: 400 10px/1.3 var(--font);
  color: #7a828a;
}

.auth-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-accent);
  font: 700 13px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
}

.auth-switch__link:hover {
  text-decoration: underline;
}

/* alerts (ajax + session messages) */
.auth-alerts:empty {
  display: none;
}

.auth-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-alerts .alert {
  position: relative;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  font: 500 13px/1.4 var(--font);
}

.auth-alerts .alert-danger {
  background: #fdecec;
  color: #d60000;
}

.auth-alerts .alert-success {
  background: #e9f6ec;
  color: #1f8f3a;
}

.auth-alerts .btn-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.auth-alerts .btn-close::before {
  content: "\00d7";
  font: 400 18px/1 var(--font);
}

@media (max-width: 960px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-card__promo {
    padding: 32px 24px 24px;
  }

  .auth-promo__title {
    font-size: 30px;
  }

  .auth-promo__visual,
  .auth-promo__features {
    display: none;
  }

  .auth-card__form {
    padding: 32px 24px;
    border-left: 0;
    border-top: 4px solid var(--auth-accent);
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 16px 0 40px;
  }

  .auth-card {
    width: calc(100% - 12px * 2);
  }

  .auth-switch {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== AUTH PAGE (registration) ========== */

.auth-panel {
  width: min(520px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 28px 32px;
  border: 1px solid #f0e4e7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(115, 9, 42, 0.06);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--auth-accent);
  font: 700 14px/1 var(--font);
  text-decoration: none;
}

.auth-back:hover {
  text-decoration: underline;
}

.auth-panel__title {
  margin: 0 0 8px;
  font: 700 28px/1.2 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.auth-panel__lead {
  margin: 0 0 24px;
  font: 400 15px/1.5 var(--font);
  color: #6b7a99;
}

.auth-panel__foot {
  margin: 18px 0 0;
  font: 400 14px/1.4 var(--font);
  color: #4e4e4e;
}

.auth-panel__foot a {
  color: #d60000;
  font-weight: 700;
  text-decoration: none;
}

.auth-panel__foot a:hover {
  text-decoration: underline;
}

.auth-field__input--plain {
  padding: 0 16px;
  border-color: #dde5f0;
  border-radius: 14px;
}

.auth-field__input--toggle {
  padding-right: 56px;
}

.auth-field__input--area {
  height: auto;
  min-height: 100px;
  padding: 14px 16px;
  line-height: 1.4;
  resize: vertical;
}

select.auth-field__input--plain {
  appearance: auto;
}

.auth-field__toggle--filled {
  background: #f3f5f7;
}

/* highlight the input of a field that shows an error */
.auth-field:has(.auth-field__error.d-block) .auth-field__input {
  border-color: #d60000;
}

.auth-choices {
  display: grid;
  gap: 8px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 400 14px/1.4 var(--font);
  color: var(--ink);
  cursor: pointer;
}

.auth-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--auth-accent);
}

.auth-check a {
  color: var(--auth-accent);
}

.auth-check--agree {
  font-size: 13px;
  color: #4e4e4e;
}

.auth-captcha fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-captcha legend {
  padding: 0;
  font: 700 12px/1.2 var(--font);
}

.auth-captcha label {
  font: 700 12px/1.2 var(--font);
  color: var(--ink);
}

.auth-captcha .form-control {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #dde5f0;
  border-radius: 14px;
  font: 400 14px/1 var(--font);
}

.auth-captcha .invalid-feedback {
  display: none;
  color: #d60000;
  font: 400 12px/1.3 var(--font);
}

.auth-captcha .invalid-feedback.d-block {
  display: block;
}

.auth-upload {
  height: 44px;
  padding: 0 18px;
  border: 1px solid #dde5f0;
  border-radius: 12px;
  background: #fff;
  font: 600 13px/1 var(--font);
  cursor: pointer;
}

.auth-submit--center {
  justify-content: center;
  border-radius: 14px;
  background: #86112f;
  font-size: 15px;
}

.auth-submit--center:hover {
  background: #6c0d26;
}

@media (max-width: 520px) {
  .auth-panel {
    padding: 22px 18px 26px;
    border-radius: 18px;
  }
}

/* ========== Header nav: category dropdowns ========== */
.header-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  margin: -10px 0;
}

.header-nav__link {
  text-decoration: none;
}

.header-nav__item:hover > .header-nav__link,
.header-nav__item:focus-within > .header-nav__link {
  color: #333;
}

.header-nav__chevron {
  transition: transform 0.2s ease;
}

.header-nav__item:hover .header-nav__chevron,
.header-nav__item:focus-within .header-nav__chevron {
  transform: rotate(180deg);
}

.header-nav__dropdown {
  position: absolute;
  top: 100%;
  left: -12px;
  z-index: 80;
  display: none;
  flex-direction: column;
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(20, 19, 19, 0.12);
}

.header-nav__item:hover > .header-nav__dropdown,
.header-nav__item:focus-within > .header-nav__dropdown {
  display: flex;
}

.header-nav__dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1c2126;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav__dropdown-link:hover {
  background: #f7f7f8;
  color: var(--btn-bg);
}

.catalog-mega__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.catalog-mega__group[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .header-nav__dropdown {
    display: none !important;
  }

  .header-nav__item {
    padding: 0;
    margin: 0;
  }
}

/* Fit all category items in the top bar */
.header-nav {
  gap: 14px;
}

.header-nav__link {
  font-size: 14px;
  letter-spacing: 0;
}

.header-phone {
  font-size: 15px;
}

.offer-title {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 24px;
    font-weight: 500;
}

/* ========== CATEGORY PAGE ========== */
.cat-page {
  padding: 20px 0 72px;
  background: #fff;
  color: #1c2126;
}
.cat-page__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font: 400 13px/1.3 var(--font);
  color: #7a828a;
}
.cat-page__crumbs a {
  color: #7a828a;
}
.cat-page__crumbs a:hover {
  color: #1c2126;
}
.cat-page__crumbs-sep {
  color: #c0c5ca;
}
.cat-page__crumbs > span:last-child {
  color: #1c2126;
}
.cat-page__title {
  margin: 0 0 24px;
  font: 700 32px/1.2 var(--font);
  letter-spacing: -0.01em;
  color: #141313;
}
.cat-page__lead {
  max-width: 760px;
  margin: -8px 0 28px;
  font: 400 15px/1.6 var(--font);
  color: var(--muted);
}
.cat-page__cover {
  display: block;
  max-width: 320px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 8px;
}
.cat-page__empty {
  font: 400 15px/1.5 var(--font);
}
.cat-page__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background: var(--btn-bg);
  color: #fff;
  font: 500 14px/1 var(--font);
}

/* Subcategory cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.cat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6eef1;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cat-card:hover {
  border-color: var(--btn-bg);
  box-shadow: 0 10px 28px rgba(20, 19, 19, 0.1);
  transform: translateY(-3px);
}
.cat-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--search-bg);
}
.cat-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-card__img {
  transform: scale(1.06);
}
.cat-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5eef0 0%, #ebdde2 100%);
  font: 700 64px/1 var(--font);
  color: rgba(115, 9, 42, 0.35);
}
.cat-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}
.cat-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cat-card__name {
  font: 600 16px/1.3 var(--font);
  color: #141313;
  transition: color 0.2s;
}
.cat-card:hover .cat-card__name {
  color: var(--btn-bg);
}
.cat-card__count {
  font: 400 13px/1.2 var(--font);
  color: #7a828a;
}
.cat-card__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--search-bg);
  color: #141313;
  transition: background 0.2s, color 0.2s;
}
.cat-card:hover .cat-card__arrow {
  background: var(--btn-bg);
  color: #fff;
}

/* Product listing (categories without subcategories) */
.cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 20px;
  font: 400 14px/1 var(--font);
}
.cat-toolbar select {
  padding: 9px 12px;
  border: 1px solid #e6eef1;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}
.cat-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.cat-pager {
  display: flex;
  justify-content: flex-start;
  margin-top: 28px;
  font: 400 14px/1.4 var(--font);
}

@media (max-width: 1100px) {
  .cat-grid,
  .cat-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .cat-grid,
  .cat-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .cat-page__title {
    font-size: 26px;
  }
  .cat-card__body {
    padding: 12px 12px 14px;
  }
  .cat-card__name {
    font-size: 14px;
  }
  .cat-card__arrow {
    display: none;
  }
}

/* Footer: category column titles are links */
.site-footer__col-title a {
  color: #ffffff;
  font-size: inherit;
  font-weight: inherit;
}

.site-footer__col .site-footer__col-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ========== FAVORITES PAGE ========== */
.fav-page__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.fav-page__head .cat-page__title {
  margin: 0;
}

.fav-page__count {
  font: 400 15px/1 var(--font);
  color: #7a828a;
}

.fav-page__empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 72px 16px 56px;
  border: 1px dashed #d9dde1;
  border-radius: 16px;
  background: #fafafa;
  text-align: center;
  color: #c9ced3;
}

.fav-page.is-empty .fav-page__empty {
  display: flex;
}

.fav-page.is-empty .cat-products,
.fav-page.is-empty .fav-page__count {
  display: none;
}

.fav-page__empty-title {
  margin: 8px 0 0;
  font: 600 22px/1.3 var(--font);
  color: #141313;
}

.fav-page__empty-text {
  margin: 0 0 12px;
  font: 400 15px/1.5 var(--font);
  color: var(--muted);
}

/* heart button feedback while the request is in flight */
.product-card__fav.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 640px) {
  .fav-page__head {
    margin-bottom: 16px;
  }

  .fav-page__empty {
    padding: 48px 16px 40px;
  }

  .fav-page__empty-title {
    font-size: 18px;
  }
}

/* ========== BASKET PAGE ========== */
.basket__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.basket__head .cat-page__title {
  margin: 0;
}

.basket__count {
  font: 400 15px/1 var(--font);
  color: #7a828a;
}

.basket__alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font: 500 14px/1.4 var(--font);
}

.basket__alert--error {
  background: #fdecec;
  color: #d60000;
}

.basket__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.basket__items {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.basket-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto 130px 32px;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid #e6eef1;
  border-radius: 12px;
  background: #fff;
  transition: opacity 0.2s ease;
}

.basket-item.is-busy {
  opacity: 0.5;
  pointer-events: none;
}

.basket-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #f7f8f9;
  overflow: hidden;
}

.basket-item__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.basket-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.basket-item__name {
  font: 500 15px/1.35 var(--font);
  color: var(--btn-bg);
  text-transform: uppercase;
}

.basket-item__name:hover {
  color: #4a4a4a;
}

.basket-item__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 13px/1.4 var(--font);
  color: #7a828a;
}

.basket-item__unit {
  font: 400 13px/1.4 var(--font);
  color: #4a4a4a;
}

.basket-item__warn {
  font: 500 12px/1.4 var(--font);
  color: #d60000;
}

.basket-item__qty-input {
  width: 46px;
  height: 38px;
  border: 0;
  background: transparent;
  text-align: center;
  font: 400 18px var(--font);
  color: #000;
  -moz-appearance: textfield;
}

.basket-item__qty-input::-webkit-outer-spin-button,
.basket-item__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.basket-item__total {
  font: 700 18px/1.2 var(--font);
  color: #000;
  text-align: right;
  white-space: nowrap;
}

.basket-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9aa1a8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.basket-item__remove:hover {
  background: #fdecec;
  color: #d60000;
}

.basket__summary {
  position: sticky;
  top: 180px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid #212121;
  border-radius: 20px;
  background: #fff;
}

.basket__summary-title {
  margin: 0;
  font: 700 20px/1.2 var(--font);
  color: #141313;
}

.basket__totals {
  display: grid;
  gap: 10px;
  margin: 0;
}

.basket__total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 400 15px/1.3 var(--font);
  color: #4a4a4a;
}

.basket__total-row dd {
  margin: 0;
  color: #141313;
  white-space: nowrap;
}

.basket__total-row.is-grand {
  padding-top: 12px;
  border-top: 1px solid #ececec;
  font-weight: 700;
  font-size: 18px;
  color: #141313;
}

.basket__weight {
  margin: 0;
  font: 400 13px/1.4 var(--font);
  color: #7a828a;
}

.basket__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 6px;
  background: var(--btn-bg);
  color: #fff;
  font: 700 15px/1 var(--font);
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.basket__checkout:hover {
  background: #5c0722;
}

.basket__link {
  align-self: center;
  font: 500 14px/1.3 var(--font);
  color: var(--btn-bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.basket__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 72px 16px 56px;
  border: 1px dashed #d9dde1;
  border-radius: 16px;
  background: #fafafa;
  text-align: center;
  color: #c9ced3;
}

.basket__empty-title {
  margin: 8px 0 0;
  font: 600 22px/1.3 var(--font);
  color: #141313;
}

.basket__empty-text {
  max-width: 420px;
  margin: 0 0 12px;
  font: 400 15px/1.5 var(--font);
  color: var(--muted);
}

.basket__empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Add to cart button while the request is in flight */
.product-card__cart.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .basket__layout {
    grid-template-columns: 1fr;
  }

  .basket__summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .basket-item {
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    grid-template-areas:
      "media info remove"
      "media qty total";
    gap: 10px 12px;
    padding: 12px;
  }

  .basket-item__media {
    grid-area: media;
    width: 72px;
    height: 72px;
  }

  .basket-item__info {
    grid-area: info;
  }

  .basket-item__qty {
    grid-area: qty;
  }

  .basket-item__total {
    grid-area: total;
    font-size: 16px;
  }

  .basket-item__remove {
    grid-area: remove;
    align-self: start;
  }

  .basket__empty {
    padding: 48px 16px 40px;
  }

  .basket__empty-title {
    font-size: 18px;
  }
}

/* ========== NOTICE PAGES (account created, logout, order success/failure...) ========== */
.notice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 48px 40px 40px;
  border: 1px solid #e6eef1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(20, 19, 19, 0.06);
  text-align: center;
}

.notice-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #e9f6ec;
  color: #1f8f3a;
}

.notice-card--error .notice-card__icon {
  background: #fdecec;
  color: #d60000;
}

.notice-card__title {
  margin: 0 0 16px;
  font: 700 30px/1.2 var(--font);
  letter-spacing: -0.01em;
  color: #141313;
}

.notice-card__text {
  max-width: 560px;
  font: 400 15px/1.6 var(--font);
  color: var(--muted);
}

.notice-card__text p {
  margin: 0 0 10px;
}

.notice-card__text p:last-child {
  margin-bottom: 0;
}

.notice-card__text a {
  color: var(--btn-bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .notice-card {
    margin-top: 8px;
    padding: 32px 20px 28px;
    border-radius: 16px;
  }

  .notice-card__title {
    font-size: 22px;
  }
}

/* ========== COMPARE: card button ========== */
.product-card__compare {
  position: absolute;
  top: 58px;
  right: 20px;
  z-index: 4;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kama-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.product-card__compare {
    display: none;
}
.product-card__compare:hover,
.product-card__compare.is-active {
  color: var(--kama-cyan);
}

.product-card__compare.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* ========== COMPARE PAGE ========== */
.compare__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.compare__head .cat-page__title {
  margin: 0;
}

.compare__count {
  font: 400 15px/1 var(--font);
  color: #7a828a;
}

.compare__scroll {
  overflow-x: auto;
  border: 1px solid #e6eef1;
  border-radius: 16px;
  background: #fff;
}

.compare__table {
  width: 100%;
  min-width: calc(200px + var(--compare-cols, 2) * 240px);
  border-collapse: collapse;
  table-layout: fixed;
  font: 400 14px/1.5 var(--font);
  color: #1c2126;
}

.compare__table th,
.compare__table td {
  padding: 14px 20px;
  border-bottom: 1px solid #eef1f3;
  text-align: left;
  vertical-align: top;
}

.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td {
  border-bottom: 0;
}

.compare__table td + td,
.compare__table .compare__label + td {
  border-left: 1px solid #eef1f3;
}

.compare__label {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 200px;
  background: #fafafa;
  font-weight: 500;
  color: #4a4a4a;
}

.compare__group th {
  padding: 12px 20px;
  background: #f0f0f0;
  font: 700 13px/1.3 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--btn-bg);
}

.compare__product {
  position: relative;
  padding: 20px !important;
}

.compare__remove {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #7a828a;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.compare__remove:hover {
  background: #fdecec;
  color: #d60000;
}

.compare__remove:disabled {
  opacity: 0.5;
}

.compare__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin-bottom: 14px;
}

.compare__media img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.compare__name {
  display: block;
  min-height: 42px;
  margin-bottom: 10px;
  font: 500 15px/21px var(--font);
  color: var(--btn-bg);
  text-transform: uppercase;
}

.compare__name:hover {
  color: #4a4a4a;
}

.compare__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.compare__price span {
  font: 700 22px/1.2 var(--font);
  color: #000;
}

.compare__price del {
  font-size: 14px;
  color: #7a828a;
}

.compare__product form {
  margin: 0;
}

.compare__cart {
  width: 100%;
}

.compare__summary {
  color: #4a4a4a;
}

.compare__muted {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #828282;
}

@media (max-width: 640px) {
  .compare__table {
    min-width: calc(130px + var(--compare-cols, 2) * 200px);
  }

  .compare__label {
    width: 130px;
  }

  .compare__table th,
  .compare__table td {
    padding: 12px;
  }
}


/* =====================================================================
   RESPONSIVE: tablets & phones (2026-11-16)
   Desktop (>= 1440px) keeps its layout untouched; everything below only adapts
   the existing markup for narrower screens.
   ===================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 980px) {
  /* safety net against stray horizontal scroll (clip keeps the sticky header working) */
  body {
    overflow-x: clip;
  }

  select,
  input,
  textarea {
    max-width: 100%;
  }
}

/* The "Japan products" category shows up twice in the az/ru menu
   (header.twig filters only the English name; a fixed link is added after it) */
.header-nav > a.header-nav__link[href*="/catalog/japan-products"],
.header-nav > a.header-nav__link[href*="/catalog/yaponiya-mehsullari"],
.header-nav > a.header-nav__link[href*="/catalog/yaponskiy-tovari"] {
  display: none;
}

/* 1366–1439px laptops: tighten the top row so the menu doesn't run into the phone number */
@media (min-width: 1366px) and (max-width: 1439px) {
  .header-top .container {
    gap: 16px;
  }

  .header-nav {
    gap: 10px;
  }
}

/* ---------- Laptops / small desktops: menu gets its own row ---------- */
@media (max-width: 1365px) {
  .header-top {
    height: auto;
    padding: 8px 0 6px;
  }

  .header-top .container {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .header-nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
    margin-left: 0;
  }
}

/* Hero: the grid shrinks to 440px here, so slider + side cards must too */
@media (max-width: 1200px) {
  :root {
    --hero-h: 440px;
    --side-h: 210px;
  }
}

/* ---------- Tablets & phones: compact header ---------- */
@media (max-width: 980px) {
  :root {
    /* height of the part of the header that scrolls away (top row + menu strip) */
    --hdr-scroll-h: 84px;
  }

  /* only the logo/actions + search rows stay pinned while scrolling */
  .header {
    top: calc(-1 * var(--hdr-scroll-h));
  }

  .header-top {
    height: auto;
    padding: 0;
  }

  .header-top .container {
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .header-top__left {
    height: 40px;
    gap: 16px;
    min-width: 0;
  }

  .lang-selector__text,
  .location-selector__text {
    font-size: 14px;
  }

  .header-phone {
    display: inline-flex;
    align-items: center;
    height: 40px;
    font-size: 14px;
  }

  /* category menu = horizontally scrollable chips */
  .header-nav {
    order: 3;
    flex: 0 0 auto;
    width: calc(100% + var(--container-gutter) * 2);
    height: 44px;
    margin: 0 calc(-1 * var(--container-gutter));
    padding: 0 var(--container-gutter);
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid #f0f0f0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .header-nav::-webkit-scrollbar {
    display: none;
  }

  .header-nav__item {
    flex: 0 0 auto;
  }

  .header-nav__link {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f5f5f5;
    font-size: 12px;
    line-height: 16px;
    color: #333;
  }

  .header-nav__chevron {
    display: none;
  }

  /* logo + actions on the first row, catalog button + search on the second */
  .header-main {
    padding: 8px 0 10px;
    box-shadow: 0 1px 0 #f0f0f0;
  }

  .header-main .container {
    flex-wrap: wrap;
    justify-content: flex-start;
    height: auto;
    gap: 0 12px;
  }

  /* forced line break between row one and row two */
  .header-main .container::after {
    content: "";
    order: 4;
    flex: 0 0 100%;
    height: 0;
  }

  .brand-area {
    display: contents;
  }

  .brand-area__logo {
    order: 1;
    flex: 0 0 auto;
    width: auto;
    height: 44px;
    padding: 0;
  }

  .brand-area__logo img {
    width: auto;
    max-width: 120px;
    height: 44px;
    object-fit: contain;
  }

  .slogan__text {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 260px;
    font-size: 12px;
    line-height: 1.3;
  }

  .header-actions {
    order: 3;
    flex: 1 1 auto;
    justify-content: flex-end;
    width: auto;
    height: 44px;
    margin-left: auto;
    gap: 12px;
  }

  .header-action,
  .header-auth {
    flex: 0 0 auto;
    min-width: 56px;
  }

  .header-auth__trigger {
    padding: 0 4px;
  }

  .header-action__label {
    font-size: 11px;
  }

  .header-auth__dropdown {
    width: min(300px, calc(100vw - 24px));
  }

  .catalog-btn {
    order: 5;
    flex: 0 0 auto;
    width: auto;
    height: 44px;
    margin-top: 10px;
    padding: 0 14px;
    font-size: 14px;
  }

  .search-bar {
    order: 6;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    height: 44px;
    margin-top: 10px;
  }

  .search-bar__input {
    padding: 6px 44px 6px 14px;
    font-size: 16px; /* 16px prevents the iOS zoom-in on focus */
  }

  .search-bar__btn {
    right: 10px;
  }

  .hero {
    margin-top: 16px;
  }
}

/* phones/tablets in landscape: not enough height for a pinned header */
@media (max-width: 980px) and (max-height: 500px) {
  .header {
    position: relative;
    top: 0;
  }
}

/* ---------- Catalog menu as a bottom sheet ---------- */
@media (max-width: 860px) {
  /* lock page scroll (html only: overflow on body would break the sticky header) */
  html.catalog-mega-open {
    overflow: hidden;
  }

  /* taps outside the sheet only close it */
  html.catalog-mega-open main,
  html.catalog-mega-open footer {
    pointer-events: none;
  }

  .catalog-mega {
    z-index: 100;
    max-height: min(80vh, 640px);
    padding: 0 0 16px;
    border-top: 0;
    box-shadow: 0 0 0 100vmax rgba(20, 19, 19, 0.45);
    overscroll-behavior: contain;
  }

  .catalog-mega::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 10px auto 4px;
    border-radius: 999px;
    background: #d9d9d9;
  }

  .catalog-mega__panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 0;
    padding-top: 0;
  }

  .catalog-mega__cats {
    max-height: none;
    padding: 4px 0;
    border-right: 1px solid #eee;
    border-bottom: 0;
    overflow: visible;
  }

  .catalog-mega__cat {
    padding: 12px 10px 12px 12px;
    font-size: 14px;
  }

  .catalog-mega__links {
    padding: 8px 0 8px 12px;
  }

  .catalog-mega__link {
    padding: 10px 8px;
    font-size: 14px;
  }

  .catalog-mega__promo {
    display: none;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  :root {
    --container-gutter: 16px;
  }

  .slogan__text {
    display: none;
  }

  /* hero */
  .hero-slider {
    height: 340px;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: none;
  }

  .promo-card {
    height: 170px;
    border-radius: 12px;
  }

  .promo-card__content {
    padding: 12px;
  }

  .promo-card__title {
    font-size: 13px;
  }

  .hero {
    padding-bottom: 24px;
  }

  /* product grids (category, specials, favourites): two compact columns */
  .cat-products {
    gap: 10px;
  }

  .cat-products .product-card__inner {
    padding: 12px 10px;
  }

  .cat-products .product-card__fav {
    top: 10px;
    right: 8px;
  }

  .cat-products .product-card__top {
    padding: 0;
  }

  .cat-products .product-card__labels {
    gap: 4px;
    transform: scale(0.85);
    transform-origin: top left;
  }

  .cat-products .product-card__media {
    height: 140px;
    padding: 0 0 4px;
  }

  .cat-products .product-card__media img {
    max-height: 140px;
  }

  .product-card__info {
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
  }

  .product-card__rating {
    flex-wrap: wrap;
    min-width: 0;
  }

  .cat-products .product-card__info {
    margin: 6px 0 8px;
  }

  .cat-products .product-card__reviews {
    font-size: 11px;
  }

  .cat-products .product-card__title {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 16px;
    overflow-wrap: anywhere;
  }

  .cat-products .product-card__price-row {
    flex-wrap: wrap;
    gap: 2px 6px;
  }

  .cat-products .product-card__price-value {
    font-size: 15px;
  }

  .cat-products .product-card__buy {
    gap: 8px;
    margin-top: 10px;
  }

  .cat-products .product-card__cart {
    flex: 1 1 100%;
    width: 100%;
    height: 36px;
    padding: 8px;
    font-size: 11px;
  }

  .cat-products .product-card__qty {
    width: 100%;
  }

  .cat-products .product-card__total {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.3;
  }

  .cat-products .product-card__total-value {
    margin-left: 3px;
  }

  /* sort / limit: label + select per row */
  .cat-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
  }

  .cat-toolbar select {
    width: 100%;
    max-width: 100%;
  }

  .cat-page__title {
    margin-bottom: 16px;
  }
}

/* small phones: drop the decorative "Japan" location label */
@media (max-width: 420px) {
  .location-selector {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-action,
  .header-auth {
    min-width: 52px;
  }
}

@media (max-width: 360px) {
  :root {
    --container-gutter: 12px;
  }

  .brand-area__logo img {
    height: 40px;
  }

  .catalog-btn {
    padding: 0 10px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-action,
  .header-auth {
    min-width: 48px;
  }

  .header-action__label {
    font-size: 10px;
  }
}

/* =====================================================================
   404 / PAGE NOT FOUND (2026-11-16)
   ===================================================================== */
.nf-page {
  padding: 20px 0 80px;
  background: #fff;
  color: #1c2126;
}

.nf-page__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  margin: 8px auto 0;
  padding: 64px 32px 72px;
  border: 1px solid #f0f0f0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(115, 9, 42, 0.06), transparent 60%),
    #fafafa;
  text-align: center;
}

/* "4 ● 4": the zero is a rising sun in the brand colour */
.nf-page__code {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  font: 700 clamp(96px, 16vw, 168px) / 1 var(--font-display);
  letter-spacing: -0.02em;
  color: #141313;
  user-select: none;
}

.nf-page__sun {
  flex: 0 0 auto;
  width: 0.74em;
  height: 0.74em;
  border-radius: 50%;
  background: var(--btn-bg);
  box-shadow:
    0 0 0 0.06em #fafafa,
    0 0 0 0.075em rgba(115, 9, 42, 0.18),
    0 0.12em 0.3em rgba(115, 9, 42, 0.25);
  animation: nf-sun-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes nf-sun-rise {
  from {
    opacity: 0;
    transform: translateY(0.25em) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-page__sun {
    animation: none;
  }
}

.nf-page__title {
  margin: 32px 0 12px;
  font: 700 30px/1.25 var(--font);
  letter-spacing: -0.01em;
  color: #141313;
}

.nf-page__text {
  max-width: 480px;
  margin: 0 0 32px;
  font: 400 16px/1.6 var(--font);
  color: var(--muted);
}

.nf-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}

.nf-page__btn {
  padding: 15px 32px;
  font-size: 15px;
  transition: background-color 0.15s ease;
}

.nf-page__btn:hover,
.nf-page__btn:focus-visible {
  background: #5c0722;
  color: #fff;
}

.nf-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 15px/1.3 var(--font);
  color: #141313;
  text-decoration: underline;
  text-decoration-color: rgba(20, 19, 19, 0.3);
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.nf-page__back:hover,
.nf-page__back:focus-visible {
  color: var(--btn-bg);
  text-decoration-color: currentColor;
}

@media (max-width: 640px) {
  .nf-page {
    padding: 16px 0 56px;
  }

  .nf-page__card {
    margin-top: 0;
    padding: 44px 20px 48px;
    border-radius: 16px;
  }

  .nf-page__title {
    margin-top: 24px;
    font-size: 22px;
  }

  .nf-page__text {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .nf-page__actions {
    flex-direction: column;
    align-self: stretch;
    gap: 18px;
  }

  .nf-page__btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

.pd-description_body {
    font-family: "Gilroy", sans-serif !important;
    font-size: 17px !important;
}
