/* Кондитерский ДОМ — палитра: #FFFFFF, #9F8771, #B2B2B2, #FC5A5B */

.catalog-template-2 {
  --white: #ffffff;
  --gray: #b2b2b2;
  --taupe: #9f8771; /* kept for backgrounds */
  --brand: #fc5a5b;

  --brand-dark: #e84e4f;
  --brand-soft: rgba(252, 90, 91, 0.12);
  --taupe-soft: rgba(159, 135, 113, 0.15);
  --gray-soft: rgba(178, 178, 178, 0.2);

  --cream: #ffffff;
  --sand: rgba(178, 178, 178, 0.14);
  --mint: rgba(159, 135, 113, 0.1);
  --pink-soft: rgba(252, 90, 91, 0.08);
  --vanilla: rgba(159, 135, 113, 0.1);

  --text: #111111;
  --muted: #b2b2b2;
  --line: rgba(178, 178, 178, 0.45);

  --shadow: 0 16px 48px rgba(159, 135, 113, 0.14);
  --shadow-sm: 0 4px 20px rgba(178, 178, 178, 0.22);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: 1140px;
  --heading: "Montserrat", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

@scope (.catalog-template-2) {

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--brand-soft);
}

.container {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: none;
  gap: 24px;
}

.header__nav a {
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--brand);
}

.header__phone {
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s;
}

.header__phone:hover {
  color: var(--brand);
}

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.header__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (min-width: 900px) {
  .header__nav {
    display: flex;
  }

  .header__burger {
    display: none;
  }
}

@media (max-width: 899px) {
  .header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 24px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    z-index: 10;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
  margin-top: 20px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--brand {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(252, 90, 91, 0.32);
}

.btn--brand:hover {
  background: var(--brand-dark);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line);
}

.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--full {
  width: 100% !important;
  border-radius: 10px;
}

.catalog-template-2 #order button.btn--full {
  width: 100% !important;
  display: flex;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(159, 135, 113, 0.92) 0%,
      rgba(159, 135, 113, 0.78) 28%,
      rgba(159, 135, 113, 0.4) 52%,
      rgba(178, 178, 178, 0.15) 72%,
      transparent 100%
    ),
    linear-gradient(0deg, var(--white) 0%, transparent 14%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero__content {
  color: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(159, 135, 113, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 64px rgba(159, 135, 113, 0.25);
}

.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--heading);
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  max-width: 42ch;
}

.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 20px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(159, 135, 113, 0.18);
  color: var(--text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.hero__rating:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(159, 135, 113, 0.22);
}

.hero__rating-logo {
  display: flex;
  flex-shrink: 0;
}

.hero__rating-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero__rating-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__rating-score {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.hero__rating-stars {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--brand);
}

.hero__rating-count {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .hero__rating {
    max-width: 400px;
    padding: 14px 22px;
    margin-bottom: 24px;
  }

  .hero__rating-score {
    font-size: 1.5rem;
  }

  .hero__rating-count {
    font-size: 0.78rem;
  }
}

@media (max-width: 767px) {
  .hero__bg::after {
    background:
      linear-gradient(
        180deg,
        rgba(159, 135, 113, 0.55) 0%,
        transparent 42%
      ),
      linear-gradient(
        90deg,
        rgba(159, 135, 113, 0.9) 0%,
        rgba(178, 178, 178, 0.35) 100%
      ),
      linear-gradient(0deg, var(--white) 0%, transparent 14%);
  }

  .hero__content {
    padding: 24px 20px;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero__content {
    padding: 36px 32px;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .hero__visual {
    aspect-ratio: 1;
  }
}

/* ——— Sections ——— */
.section {
  padding: 64px 0;
}

.section--white {
  background: var(--white);
}

.section--sand {
  background: var(--sand);
}

.section--mint {
  background: linear-gradient(180deg, var(--mint) 0%, var(--white) 100%);
}

.section__eyebrow {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.section__title {
  font-family: var(--heading);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #111111;
}

.section__lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 52ch;
}

.section__head {
  text-align: center;
  margin-bottom: 40px;
}

.section__head .section__lead {
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section {
    padding: 88px 0;
  }

  .section__head {
    margin-bottom: 52px;
  }
}

/* ——— Gift cards ——— */
.gifts {
  display: grid;
  gap: 16px;
}

.gift-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease),
    background 0.3s;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.gift-card.is-selected {
  border-color: var(--brand);
  background: var(--pink-soft);
  box-shadow: 0 12px 40px rgba(252, 90, 91, 0.2);
  transform: translateY(-4px);
}

.gift-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  background: var(--brand-soft);
  overflow: hidden;
}

.gift-card__icon img { width: 100%; height: 100%; object-fit: cover; }

.gift-card:nth-child(2) .gift-card__icon {
  background: var(--taupe-soft);
}

.gift-card:nth-child(3) .gift-card__icon {
  background: var(--gray-soft);
}

.gift-card:nth-child(4) .gift-card__icon {
  background: var(--brand-soft);
}

.gift-card__note {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  font-family: var(--heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111111;
}

.gift-card.is-selected .gift-card__note {
  background: var(--brand-soft);
  color: var(--brand);
}

.gift-card__title {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111111;
}

.gift-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.gift-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.gift-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.gift-card__btn--detail {
  background: var(--cream);
  border: 1.5px solid var(--line);
  color: var(--text);
  pointer-events: none;
}

.gift-card__btn--cart {
  background: var(--brand);
  border: 1.5px solid var(--brand);
  color: var(--white);
  pointer-events: all;
}

.gift-card__btn--cart:hover {
  background: #e04748;
  border-color: #e04748;
  transform: translateY(-1px);
}

.gift-card.is-selected .gift-card__btn--detail {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.gift-card.is-selected .gift-card__btn--cart {
  background: var(--white);
  border-color: var(--brand);
  color: var(--brand);
}

.gift-card.is-selected .gift-card__btn--cart:hover {
  background: #fff0f0;
}

.gift-card__check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.gift-card.is-selected .gift-card__check {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.gifts-hint {
  margin-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.gifts-hint strong {
  color: var(--brand);
}

@media (min-width: 600px) {
  .gifts {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .gifts {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

/* ——— Gift detail panels ——— */
.gift-detail-panel {
  display: none;
  animation: panelIn 0.45s var(--ease);
}

.gift-detail-panel.is-active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.gift-detail-panel .section__head {
  text-align: center;
  margin-bottom: 32px;
}

.gift-detail-panel .section__lead a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Promo code reveal ——— */
.promo-reveal {
  margin-top: 32px;
}

.promo-reveal__inner {
  display: flex;
  justify-content: center;
  min-height: 52px;
}

.promo-reveal__btn,
.promo-reveal__code {
  min-width: min(100%, 280px);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}

.promo-reveal__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px dashed var(--brand);
  color: var(--brand);
  letter-spacing: 0.1em;
  animation: panelIn 0.25s var(--ease);
}

.promo-reveal__code[hidden] {
  display: none;
}

.promotion-cart-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.promotion-cart-btn.is-added {
  background: #19a66a;
}

.promotion-cart-notice {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #15764d;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.promotion-cart-notice.is-error {
  color: var(--brand);
}

.promotion-cart-notice[hidden] {
  display: none;
}

/* ——— Song player ——— */
.song-player {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.song-player__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.song-player__cover {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.song-player__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 4px;
}

.song-player__title {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.song-player__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.song-player__volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

.song-player__volume input {
  flex: 1;
  accent-color: var(--brand);
}

/* ——— Balloon carousel ——— */
.balloon-carousel {
  max-width: 640px;
  margin-inline: auto;
}

.balloon-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.balloon-carousel__track {
  display: flex;
  transition: transform 0.45s var(--ease);
}

.balloon-slide {
  flex: 0 0 100%;
  margin: 0;
}

.balloon-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.balloon-slide figcaption {
  padding: 16px 20px;
  text-align: center;
  font-family: var(--heading);
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--white);
}

.balloon-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.balloon-carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.balloon-carousel__btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: scale(1.05);
}

.balloon-carousel__dots {
  display: flex;
  gap: 8px;
}

.balloon-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--taupe-soft);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.balloon-carousel__dot.is-active {
  background: var(--brand);
  transform: scale(1.2);
}

/* ——— Weight bonus ——— */
.weight-bonus {
  max-width: 520px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.weight-bonus__row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.weight-bonus__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 0;
}

.weight-bonus__from {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 56px;
  text-align: right;
}

.weight-bonus__arrow {
  font-size: 1.4rem;
  color: #111111;
}

.weight-bonus__to {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand);
  min-width: 64px;
  text-align: left;
}

.weight-bonus__row-line {
  width: 2px;
  height: 16px;
  background: var(--line);
  margin-inline: auto;
}

.weight-bonus__note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.weight-bonus__note strong {
  color: var(--brand);
}

/* ——— Discount info ——— */
.discount-info {
  max-width: 480px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.discount-info__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--taupe) 100%);
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 8px 28px rgba(252, 90, 91, 0.35);
}

.discount-info__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.discount-info__list {
  list-style: none;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.discount-info__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.discount-info__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.discount-info__list strong {
  color: var(--brand);
}

/* ——— Filter tabs ——— */
.filter-tabs-wrap {
  position: relative;
  margin-bottom: 32px;
}

#catalogPromo {
  position: relative;
}

#catalogPromo .filter-tabs-placeholder {
  display: none;
}

#catalogPromo .filter-tabs-placeholder.is-active {
  display: block;
}

#catalogPromo .filter-tabs-wrap.is-fixed,
#catalogPromo .filter-tabs-wrap.is-bottom {
  z-index: 3;
  margin-inline: 0;
  padding-inline: 16px;
  padding-block: 10px 8px;
  background: var(--sand);
  box-shadow: 0 10px 24px rgba(159, 135, 113, 0.12);
}

#catalogPromo .filter-tabs-wrap.is-fixed {
  position: fixed;
  top: var(--catalog-filter-sticky-top, 0px);
  left: 0;
  right: 0;
}

#catalogPromo .filter-tabs-wrap.is-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.filter-tab {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(252, 90, 91, 0.28);
}

/* Мобильный: горизонтальная прокрутка в одну строку */
@media (max-width: 767px) {
  .filter-tabs-wrap {
    margin-inline: -16px;
    margin-bottom: 24px;
    padding-inline: 16px;
  }

  #catalogPromo .filter-tabs-wrap {
    padding-block: 10px 8px;
    background: var(--sand);
  }

  .filter-tabs-wrap::before,
  .filter-tabs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 1;
    pointer-events: none;
  }

  .filter-tabs-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--sand) 30%, transparent);
  }

  .filter-tabs-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--sand) 30%, transparent);
  }

  .filter-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    gap: 8px;
    padding-block: 4px 8px;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 9px 16px;
    font-size: 0.8rem;
  }
}

.section--mint .filter-tabs-wrap::before {
  background: linear-gradient(90deg, var(--mint) 30%, transparent);
}

.section--mint .filter-tabs-wrap::after {
  background: linear-gradient(270deg, var(--mint) 30%, transparent);
}

/* ——— Product grid ——— */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  padding: 16px 0 8px;
  transition: opacity 0.2s;
  align-items: stretch;
}

.products-grid.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.products-grid .tovar {
  min-width: 0;
  height: 100%;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.products-grid .tovar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.products-grid .tovar picture {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sand);
}

.products-grid .tovar > a {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  color: #111111;
}

.products-grid .tovar picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.products-grid .tovar:hover picture img {
  transform: scale(1.06);
}

.products-grid .tovar .position {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  z-index: 2;
}

.products-grid .tovar .position .plash:empty,
.products-grid .tovar .position .plash.s:empty {
  display: none;
}

.products-grid .tovar .position .plash {
  display: inline-flex;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  margin: 0 4px 4px 0;
}

.products-grid .tovar .position .like {
  display: none;
}

.products-grid .tovar .info {
  width: 100%;
  min-width: 0;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.products-grid .tovar .info .titleTovar {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  font-family: var(--heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
  margin-bottom: 6px;
}

.products-grid .tovar .info .cardDetailsLink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.products-grid .tovar .info .price {
  width: 100%;
  display: block;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #111111;
}

.products-grid .tovar .info .price span {
  color: var(--muted);
}

.products-grid .tovar .info .priceOld {
  color: var(--muted);
}

.products-grid .tovar .info .cardFooter {
  width: calc(100% + 32px);
  margin: auto -16px -16px;
  padding: 25px 16px 14px;
  border-top: 0;
  background: linear-gradient(var(--line), var(--line)) 0 12px / 100% 1px no-repeat;
}

.products-grid .tovar .info .button,
.products-grid .tovar .info .buttonOrder,
.products-grid .tovar .info .fastViewUr {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-top: 10px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  font-family: var(--heading);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.products-grid .tovar .info .button:hover,
.products-grid .tovar .info .buttonOrder:hover,
.products-grid .tovar .info .fastViewUr:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card__link {
  display: block;
  color: inherit;
}

.product-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.product-card:hover .product-card__img img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 16px 18px 20px;
}

.product-card__title {
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  color: #111111;
}

.product-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-card__btn {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  font-family: var(--heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  transition: background 0.2s, color 0.2s;
}

.product-card:hover .product-card__btn {
  background: var(--brand);
  color: var(--white);
}

.catalog-more {
  text-align: center;
}

.catalog-more .btn {
  padding: 16px 36px;
  font-size: 0.95rem;
  min-width: min(100%, 320px);
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (min-width: 900px) {
  .products-grid {
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 0 8px;
  }

  .products-grid .tovar {
    border-radius: 8px;
  }

  .products-grid .tovar .info {
    padding: 12px;
  }

  .products-grid .tovar .info .cardFooter {
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-bottom: -12px;
    margin-left: -12px;
    padding: 21px 12px 12px;
    background-position-y: 10px;
  }

  .products-grid .tovar .info .titleTovar {
    font-size: 14px;
  }

  .products-grid .tovar .info .price {
    font-size: 13px;
  }

  .products-grid .tovar .info .button,
  .products-grid .tovar .info .buttonOrder,
  .products-grid .tovar .info .fastViewUr {
    font-size: 12px;
    padding: 9px 10px;
  }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Category grid (legacy) ——— */
.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 140px;
  background: var(--taupe);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.category-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow);
}

.category-card__bg {
  position: absolute;
  inset: 0;
}

.category-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.5s var(--ease), opacity 0.35s;
}

.category-card:hover .category-card__bg img {
  transform: scale(1.08);
  opacity: 0.55;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(159, 135, 113, 0.88) 0%, rgba(159, 135, 113, 0.2) 70%);
}

.category-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: var(--white);
}

.category-card__icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.category-card__title {
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .categories {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .category-card {
    min-height: 180px;
  }

  .category-card__title {
    font-size: 0.95rem;
  }
}

/* ——— Order / CTA ——— */
.order {
  display: grid;
  gap: 36px;
  align-items: start;
}

.order__intro {
  text-align: center;
}

.order__intro .section__lead {
  margin-inline: auto;
}

.gift-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--vanilla);
  border: 1.5px dashed var(--taupe);
  font-size: 0.92rem;
  justify-content: center;
}

.gift-summary__label {
  color: var(--muted);
}

.gift-summary__value {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--brand);
}

.order-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field input.is-invalid,
.field select.is-invalid {
  border-color: var(--brand);
  background: var(--pink-soft);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field__error {
  display: none;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--brand);
}

.field__error.is-visible {
  display: block;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  font-size: 0.9rem;
  text-align: center;
}

.form-success.is-visible {
  display: block;
  background: var(--taupe-soft);
  color: #111111;
}

@media (min-width: 768px) {
  .order {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    text-align: left;
  }

  .order__intro {
    text-align: left;
  }

  .order__intro .section__lead {
    margin-inline: 0;
  }

  .gift-summary {
    justify-content: flex-start;
  }

  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .field--full {
    grid-column: 1 / -1;
  }
}

/* ——— Footer ——— */
.footer {
  background: var(--taupe);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__logo img {
  height: 36px;
  filter: brightness(10);
  margin-bottom: 8px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__phone {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.2s;
}

.footer__phone:hover {
  color: var(--brand);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.25s;
}

.footer__social a:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__copy {
  font-size: 0.78rem;
  opacity: 0.5;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer__copy a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__copy a:hover {
  color: var(--brand);
}

/* ——— Reveal animation ——— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Upload zone ——— */
.upload-zone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--brand);
  background: var(--pink-soft);
}

.upload-zone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.upload-zone__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 20px;
  text-align: center;
  pointer-events: none;
}

.upload-zone__icon {
  font-size: 2rem;
}

.upload-zone__text {
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #111111;
}

.upload-zone__hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.upload-zone__preview {
  position: relative;
  max-height: 220px;
  overflow: hidden;
}

.upload-zone__preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

.upload-zone__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s;
}

.upload-zone__remove:hover {
  background: var(--brand);
}

/* ——— Order perks ——— */
.order__perks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order__perks li {
  font-size: 0.88rem;
  color: #111111;
  font-weight: 600;
}

/* ——— Form consent ——— */
.form-consent {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

.form-consent a {
  color: var(--brand);
  text-decoration: underline;
}

}
