/* ============================================================
   Велюрова елітна постільна білизна — чистий CSS
   Відтворює вигляд оригінального Tilda-лендінгу 1:1
   ============================================================ */

:root {
  --accent: #b8c3df; /* світло-блакитний акцент */
  --brand: #ff6047; /* помаранчево-червоний (кнопки "додати", лічильник) */
  --brand-hover: #ff3714;
  --text-dark: #1f2635;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  color: #000;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
}

/* ---------- Контейнери ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.container--narrow {
  max-width: 1000px;
}

/* ---------- Спільне для «тканинних» секцій ---------- */

.overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a3835f;
}

.overline--light {
  color: #c2a87e;
}

.serif-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: #2f2a23;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out,
    opacity 0.2s ease-in-out;
}

.btn--md {
  min-height: 60px;
  font-size: 16px;
  padding: 0 60px;
}

.btn--sm {
  min-height: 45px;
  font-size: 14px;
  padding: 0 30px;
  white-space: normal;
}

/* "Детальніше" / "Додати до кошика" в попапі */
.btn--detail {
  background-color: transparent;
  color: #6b4f3a;
  border: 1.5px solid #b8956e;
  border-radius: 999px;
}

.btn--detail:hover {
  background-color: #f6f0e7;
  border-color: #8a6c4c;
}

/* "Додати до кошику" на картці */
.btn--buy {
  background-color: #6b4f3a;
  border: none;
  color: #fff;
  border-radius: 999px;
}

.btn--buy:hover {
  background-color: #5a3f2c;
}

/* "Замовити" у кошику */
.btn--submit {
  background-color: #6b4f3a;
  color: #fff;
  border-radius: 8px;
  width: 100%;
}

.btn--submit:hover {
  background-color: #5a3f2c;
}

/* ---------- Обкладинки (hero, promo) ---------- */

.cover {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover__overlay {
  position: absolute;
  inset: 0;
}

.hero__overlay {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65));
}

.cover__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 42px 20px;
  text-align: center;
}

/* Стрілка вниз */
.cover__arrow {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 9;
}

.cover__arrow-inner {
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
  animation: arrow-bounce 1.7s ease infinite;
}

.cover__arrow-inner:hover {
  opacity: 0.7;
}

@keyframes arrow-bounce {
  0% {
    transform: translateY(0);
  }
  50%,
  55% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */

.hero__uptitle {
  padding: 30px 0 60px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  padding: 24px 0 38px;
  color: #fff;
  font-size: 72px;
  line-height: 1.17;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero__descr {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 0 28px;
  color: #fff;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 300;
}

.hero__deal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 10px;
  padding: 11px 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 195, 107, 0.5);
  color: #f5efe3;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.hero__deal-fire {
  font-size: 17px;
  line-height: 1;
}

.hero__deal-timer {
  font-size: 21px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #ffc36b;
  letter-spacing: 0.08em;
}

/* ---------- Sticky-бар акції ---------- */

.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  background: #2e2a24;
  color: #f5efe3;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  animation: promo-bar-in 0.3s ease-out;
}

@keyframes promo-bar-in {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
}

.promo-bar__text {
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
}

.promo-bar__text strong {
  color: #ffc36b;
}

.promo-bar__timer {
  display: inline-block;
  min-width: 76px;
  margin-left: 4px;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #ffc36b;
  letter-spacing: 0.06em;
}

.promo-bar__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: #e9dec7;
  color: #2e2a24;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.promo-bar__btn:hover {
  background: #f4ead4;
}

/* ---------- Переваги ---------- */

.benefits {
  padding: 88px 0 72px;
  background:
    linear-gradient(180deg, #fbf8f3 0%, #f6f1e8 100%);
}

.benefits__head {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.benefits__title {
  margin: 14px 0 16px;
  font-size: 40px;
  line-height: 1.2;
}

.benefits__note {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fbe9e3;
  border: 1px solid #f0cfc4;
  color: #b8432f;
  font-size: 15px;
  font-weight: 700;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eae1d1;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 3px 14px rgba(96, 78, 52, 0.06);
}

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #f3ecdf;
  color: #8a6c4c;
}

.benefit-card__name {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #33302a;
}

.benefit-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6d6557;
}

/* ---------- Відгуки ---------- */

.reviews {
  padding: 72px 0 64px;
  background: #fff;
}

.reviews__head {
  text-align: center;
  margin-bottom: 34px;
}

.reviews__title {
  margin: 14px 0 14px;
  font-size: 40px;
  line-height: 1.2;
}

.reviews__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.reviews__score {
  font-size: 28px;
  font-weight: 900;
  color: #33302a;
  line-height: 1;
}

.reviews__summary-stars {
  position: relative;
  display: inline-block;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 2px;
  color: #e3dbcc;
}

.stars {
  display: block;
  white-space: nowrap;
}

.stars--fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #e8a33d;
}

.reviews__count {
  font-size: 14px;
  color: #8a8272;
}

.reviews__list {
  columns: 2;
  column-gap: 16px;
}

.review {
  break-inside: avoid;
  margin-bottom: 16px;
  background: #fbf9f5;
  border: 1px solid #ece4d6;
  border-radius: 16px;
  padding: 18px;
}

.review__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #4d463a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  overflow: hidden;
}

.review__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.review__name {
  color: #2f2b24;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.review__meta {
  margin-top: 2px;
  color: #948b79;
  font-size: 13px;
  line-height: 1.3;
}

.review__stars {
  color: #e8a33d;
  font-size: 16px;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.review__star-empty {
  color: #e3dbcc;
}

.review__verified {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #56805e;
  font-size: 12.5px;
  font-weight: 700;
}

.review__verified .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}

.review__text {
  margin: 10px 0 0;
  color: #3b362d;
  font-size: 15px;
  line-height: 1.6;
}

.review__photos {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.review__photos img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5dccb;
  background: #efe8da;
}

.review__reply {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid #d9cdb4;
  border-radius: 0 12px 12px 0;
  background: #f3eee4;
  color: #57503f;
  font-size: 13.5px;
  line-height: 1.55;
}

.review__reply-name {
  margin-bottom: 4px;
  font-weight: 700;
  color: #3f382c;
}

.reviews__more-wrap {
  display: none;
  text-align: center;
  margin-top: 6px;
}

.reviews__more {
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid #d8cdb8;
  border-radius: 999px;
  background: #fff;
  color: #4d463a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.reviews__more:hover {
  background: #f6f1e8;
}

/* ---------- Заголовок каталогу ---------- */

.catalog-title {
  background-color: #fff;
  text-align: center;
}

.catalog-title__text {
  margin: 0 auto;
  padding: 8px 20px 3px;
  font-size: 62px;
  line-height: 1.23;
  font-weight: 600;
}

/* ---------- Каталог ---------- */

.catalog {
  padding: 45px 0;
  background-color: #fff;
}

.catalog__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  row-gap: 90px;
}

.product-card {
  width: 50%;
  max-width: 560px;
  padding: 0 20px;
  text-align: center;
}

.product-card__content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card__link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.product-card__imgwrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 107.14285714286%;
  overflow: hidden;
  border-radius: 16px;
  background: #f0e9de;
  box-shadow: 0 10px 36px rgba(96, 78, 52, 0.18);
}

.product-card__img {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.product-card__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2e2a24;
  color: #f0e7d4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__mark {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
  padding: 5px 12px;
  border-radius: 999px;
  background: #c4534a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Стрілки міні-слайдера на картці */
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(31, 37, 58, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-arrow--prev {
  left: 8px;
}

.card-arrow--next {
  right: 8px;
}

.card-arrow .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  pointer-events: none;
}

.product-card__title {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.product-card__descr {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #ff3714;
  font-weight: 500;
}

.product-card__textwrapper {
  margin-bottom: 19px;
}

/* Ціна (спільна для картки та попапу) */
.price-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #faf5ec;
  border: 1px solid #ddd1b8;
}

.price {
  display: inline-flex;
  align-items: flex-start;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: #2f2a23;
  white-space: nowrap;
}

.price .price__currency {
  font-size: 16px;
  font-weight: 700;
  margin-left: 4px;
}

.price-old {
  display: inline-flex;
  align-items: flex-start;
  font-size: 20px;
  line-height: 1.1;
  color: #a0917e;
  white-space: nowrap;
}

.price-old .price__value {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-old .price__currency {
  font-size: 14px;
}

/* Вибір розміру */
.product-option {
  margin-top: 10px;
  margin-bottom: 10px;
}

.product-option__title {
  padding-bottom: 3px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
}

.product-option__variants {
  position: relative;
  display: inline-block;
  min-width: 150px;
}

.product-option__variants::after {
  content: ' ';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 5px 0;
  border-color: #000 transparent transparent;
  position: absolute;
  right: 10px;
  top: 10px;
  pointer-events: none;
}

.product-option__select {
  width: 100%;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #000;
  cursor: pointer;
  padding: 2px 30px 2px 10px;
  border-radius: 5px;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

/* Вибір розміру на картці прихований (як в оригіналі) — доступний у попапі та кошику */
.product-card .product-option {
  display: none;
}

.stock-note {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.4;
}

.stock-note__ok {
  color: #56805e;
  font-weight: 600;
}

.stock-note__low {
  color: #c2452e;
  font-weight: 700;
}

.product-card__btns {
  margin-top: 19px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ---------- Попап товару ---------- */

.product-popup {
  position: fixed;
  inset: 0;
  z-index: 10000001;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 1);
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.product-popup.is-open {
  opacity: 1;
}

body.popup-open {
  overflow: hidden;
}

.product-popup__close {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 999;
  width: 23px;
  height: 23px;
  padding: 0;
  border: none;
  background: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.product-popup__back {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 999;
  cursor: pointer;
  opacity: 0.8;
  font-size: 14px;
  color: #000;
}

.product-popup__back::before {
  content: '← ';
  white-space: pre;
  font-family: Arial, Helvetica, sans-serif;
}

.product-popup__container {
  position: relative;
  max-width: 1240px;
  margin: 65px auto;
  background-color: #f5f5f5;
}

.product-popup__inner {
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.product-popup__gallery {
  width: 50%;
  padding: 0 20px;
}

.product-popup__info {
  width: 50%;
  padding: 0 20px;
  text-align: left;
}

/* Галерея-слайдер */
.gallery__main {
  position: relative;
  overflow: hidden;
  background-color: #ebebeb;
}

.gallery__slide {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 100px;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__arrow[hidden] {
  display: none;
}

.gallery__arrow--left {
  left: 20px;
}

.gallery__arrow--right {
  right: 20px;
}

.gallery__arrow svg {
  display: block;
  width: 7px;
}

.gallery__thumbs {
  font-size: 0;
  margin-top: 4px;
}

.gallery__thumb {
  position: relative;
  display: inline-block;
  width: 60px;
  margin-right: 5px;
  margin-top: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.gallery__thumb:not(.is-active):hover {
  opacity: 0.7;
}

.gallery__thumb-img {
  padding-bottom: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.gallery__thumb-border {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease-in-out;
}

.gallery__thumb.is-active .gallery__thumb-border {
  border-color: rgba(0, 0, 0, 0.15);
}

/* Права колонка попапу */
.product-popup__title-wrapper {
  margin-bottom: 18px;
}

.product-popup__title {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.product-popup__sku {
  margin-top: 4px;
  color: #777;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
}

.product-popup__info .price-wrapper {
  margin-top: 0;
}

.product-popup__btn-wrapper {
  margin-top: 20px;
  margin-bottom: 30px;
}

.product-popup__descr {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: #3b362d;
  font-weight: 500;
  background: #faf5ec;
  border: 1px solid #ddd1b8;
  border-radius: 14px;
  padding: 16px 18px;
}

.product-popup__descr strong {
  color: #2f2a23;
  font-weight: 800;
}

.product-popup__descr em {
  color: #6b4f3a;
  font-style: normal;
  font-weight: 700;
}

.product-popup__descr ul {
  margin: 10px 0 14px 0;
  padding-left: 22px;
}

.product-popup__descr li {
  margin-bottom: 6px;
}

/* ---------- Ми лідер ---------- */

.leader {
  padding: 72px 0;
  background: #f6f1e8;
  text-align: center;
}

.leader__overline {
  display: block;
}

.leader__title {
  max-width: 640px;
  margin: 14px auto 48px;
  font-size: 32px;
  line-height: 1.3;
}

.leader__row {
  display: flex;
  align-items: stretch;
}

.leader__item {
  flex: 1;
  padding: 6px 28px;
}

.leader__item + .leader__item {
  border-left: 1px solid #ddd1bc;
}

.leader__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e6dcc9;
  color: #8a6c4c;
}

.leader__name {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #33302a;
}

.leader__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6d6557;
}

/* ---------- Контакти ---------- */

.contacts {
  padding: 72px 0 80px;
  background: #2e2a24;
  text-align: center;
}

.contacts__title {
  margin: 14px 0 10px;
  font-size: 38px;
  line-height: 1.15;
  color: #f5efe3;
}

.contacts__subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.5;
  color: #a89e8c;
}

.contacts__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 30px;
  border-radius: 999px;
  background: #e9dec7;
  color: #2e2a24;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.contacts__phone:hover {
  background: #f4ead4;
}

.contacts__phone .icon {
  width: 20px;
  height: 20px;
}

.contacts__schedule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 15px;
  color: #c8bda6;
}

.contacts__schedule .icon {
  width: 18px;
  height: 18px;
}

/* ---------- Іконка кошика ---------- */

.cart-icon {
  position: fixed;
  right: 50px;
  top: 100px;
  z-index: 4000;
}

.cart-icon__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50px;
  background-color: hsla(0, 0%, 100%, 0.8);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: visible;
  transition: transform 0.2s ease-in-out;
  will-change: transform;
}

.cart-icon__wrapper:hover {
  transform: scale(1.1);
}

.cart-icon__img {
  width: 38px;
  height: 38px;
}

.cart-icon__counter {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 30px;
  height: 30px;
  line-height: 30px;
  padding: 0 5px;
  border-radius: 30px;
  background-color: var(--brand);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

/* ---------- Вікно кошика ---------- */

.cart-window {
  position: fixed;
  inset: 0;
  z-index: 100001;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

body.cart-open {
  overflow: hidden;
}

.cart-window__close {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 1;
  color: #fff;
}

.cart-window__close-btn {
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0;
}

.cart-window__content {
  background-color: #fff;
  margin: 65px auto;
  max-width: 560px;
  min-height: 300px;
  padding: 40px;
  width: 100%;
}

.cart-window__top {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0 0 30px;
}

.cart-window__heading {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
}

.cart-window__empty {
  padding: 20px 0;
  font-size: 18px;
  font-weight: 300;
}

.cart-product {
  display: flex;
  align-items: center;
  margin: 35px 0;
}

.cart-product__main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 10px;
}

.cart-product__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #f0e9de;
}

.cart-product__title {
  flex: 1 1 auto;
  min-width: 0;
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

.cart-size-select {
  display: block;
  width: 100%;
  max-width: 200px;
  margin-top: 8px;
  border: 1px solid #cad3ea;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.2;
  font-family: inherit;
  background: #fff;
  color: #2f3650;
}

.cart-size-select.is-invalid {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 96, 71, 0.2);
}

.cart-product__plusminus {
  padding-right: 20px;
  color: #000;
  white-space: nowrap;
}

.cart-product__minus,
.cart-product__plus {
  display: inline-block;
  cursor: pointer;
  opacity: 0.4;
  font-size: 16px;
  padding: 0 2px;
}

.cart-product__minus:hover,
.cart-product__plus:hover {
  opacity: 1;
}

.cart-product__qty {
  margin: 0 5px;
  padding: 2px 5px;
  font-size: 16px;
  color: #000;
}

.cart-product__amount {
  padding-right: 20px;
  color: #000;
  font-size: 16px;
  white-space: nowrap;
}

.cart-product__del {
  cursor: pointer;
  opacity: 0.4;
  font-size: 15px;
}

.cart-product__del:hover {
  opacity: 1;
}

.cart-window__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 30px;
}

.cart-window__amount-wrap {
  padding-bottom: 20px;
  text-align: right;
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Смужка довіри в кошику ---------- */

.cart-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin: 0 0 20px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #f5f0e8;
  border: 1px solid #e4d9c5;
  color: #6b5a43;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.cart-trust__sep {
  color: #c4b49a;
}

/* ---------- Форма замовлення ---------- */

.cart-window__form {
  margin-top: 20px;
  margin-bottom: 40px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  padding-bottom: 5px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 300;
}

.form__input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.33;
  font-family: inherit;
  color: #000;
  border: 1px solid #000;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
}

.form__error {
  display: none;
  margin-top: 5px;
  color: red;
  font-size: 13px;
}

.form__group.has-error .form__error {
  display: block;
}

.form__group.has-error .form__input {
  border-color: red;
}

.form__group--checkbox {
  font-size: 12px;
}

.form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 300;
}

.form__checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.form__checkbox-indicator {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  opacity: 0.6;
  transition: all 0.2s;
}

.form__checkbox-indicator::after {
  content: '';
  display: none;
  position: absolute;
  left: 6px;
  top: 2px;
  width: 3px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__checkbox:checked ~ .form__checkbox-indicator {
  opacity: 1;
}

.form__checkbox:checked ~ .form__checkbox-indicator::after {
  display: block;
}

.form__submit {
  margin-top: 30px;
  margin-bottom: 10px;
  text-align: center;
}

/* ---------- Telegram банер ---------- */

.tg-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9998;
  max-width: 500px;
}

.tg-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.tg-banner img {
  width: 100%;
  display: block;
}

/* ---------- Лоадер відправки ---------- */

.order-loading {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(20, 24, 35, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-loading__box {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  color: #2f3650;
}

.order-loading__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #dfe5f3;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   Адаптивність
   ============================================================ */

@media screen and (max-width: 1200px) {
  .hero__title {
    font-size: 68px;
  }

  .hero__descr {
    font-size: 22px;
  }

  .benefits__title {
    font-size: 36px;
  }

  .product-card__title {
    font-size: 22px;
  }

  .reviews__title {
    font-size: 36px;
  }
}

@media screen and (max-width: 960px) {
  .benefits {
    padding: 64px 0 56px;
  }

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

  .catalog__grid {
    row-gap: 60px;
  }

  .product-card {
    max-width: 100%;
  }

  .leader {
    padding: 56px 0;
  }

  .leader__title {
    font-size: 28px;
    margin-bottom: 36px;
  }

  .leader__row {
    flex-direction: column;
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
  }

  .leader__item {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 22px 0;
    text-align: left;
  }

  .leader__item + .leader__item {
    border-left: none;
    border-top: 1px solid #ddd1bc;
  }

  .leader__icon {
    margin: 0;
    grid-row: 1 / span 2;
  }

  .leader__name {
    margin-bottom: 4px;
  }

  .contacts__title {
    font-size: 32px;
  }

  .product-popup__gallery,
  .product-popup__info {
    width: 100%;
    padding: 0;
  }

  .product-popup__info {
    padding-top: 30px;
  }

  .product-popup__inner {
    padding: 30px 20px;
  }
}

@media screen and (max-width: 640px) {
  .hero__uptitle {
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__descr {
    font-size: 14px;
    line-height: 20px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero__deal {
    padding: 9px 18px;
    gap: 8px;
    font-size: 13px;
  }

  .hero__deal-fire {
    font-size: 15px;
  }

  .hero__deal-timer {
    font-size: 18px;
  }

  .cover__arrow {
    bottom: 14px;
  }

  .btn--md {
    min-height: 60px;
    padding: 0 30px;
  }

  .promo-bar__inner {
    gap: 10px;
    padding: 8px 12px;
  }

  .promo-bar__text {
    font-size: 13px;
  }

  .promo-bar__fire {
    display: none;
  }

  .promo-bar__timer {
    min-width: 64px;
    font-size: 14px;
  }

  .promo-bar__btn {
    min-height: 32px;
    padding: 0 13px;
    font-size: 12.5px;
  }

  .benefits {
    padding: 48px 0 44px;
  }

  .benefits__head {
    margin-bottom: 26px;
  }

  .benefits__title {
    font-size: 27px;
  }

  .benefits__note {
    font-size: 13px;
    padding: 7px 14px;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
  }

  .benefit-card__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    border-radius: 12px;
  }

  .benefit-card__name {
    font-size: 17px;
  }

  .benefit-card__text {
    font-size: 14px;
  }

  .reviews {
    padding: 44px 0 40px;
  }

  .reviews__title {
    font-size: 27px;
  }

  .reviews__head {
    margin-bottom: 22px;
  }

  .reviews__list {
    columns: 1;
  }

  .review {
    padding: 16px;
    margin-bottom: 12px;
  }

  /* на мобілці спершу видно 3 відгуки */
  .review--extra {
    display: none;
  }

  .reviews__list.is-expanded .review--extra {
    display: block;
  }

  .reviews__more-wrap {
    display: block;
  }

  .catalog-title__text {
    font-size: 40px;
  }

  .product-card {
    width: 50%;
    padding: 0 10px;
  }

  .product-card__title {
    font-size: 20px;
  }

  .price-wrapper {
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .price {
    font-size: 28px;
  }

  .price-old {
    font-size: 16px;
  }

  .btn--sm {
    padding: 0 20px;
  }

  .leader {
    padding: 44px 0;
  }

  .leader__title {
    font-size: 23px;
    margin-bottom: 24px;
  }

  .leader__item {
    padding: 18px 0;
  }

  .contacts {
    padding: 52px 0 56px;
  }

  .contacts__title {
    font-size: 29px;
  }

  .contacts__subtitle {
    margin-bottom: 24px;
  }

  .contacts__phone {
    width: 100%;
    font-size: 18px;
  }

  .cart-icon {
    right: 20px;
    top: 60px;
  }

  .tg-banner {
    max-width: 300px;
  }

  .cart-icon__wrapper {
    width: 60px;
    height: 60px;
  }

  .cart-icon__img {
    width: 30px;
    height: 30px;
  }

  .cart-icon__counter {
    right: -6px;
    bottom: -6px;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
  }

  .cart-product {
    position: relative;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: 25px 0;
  }

  .cart-product__main {
    flex: 0 0 100%;
    padding-right: 30px;
    padding-bottom: 10px;
  }

  .cart-product__del {
    position: absolute;
    right: 0;
    top: 0;
  }

  .product-popup__container {
    margin: 50px 0 0;
  }

  .product-popup__descr {
    font-size: 15px;
    line-height: 1.6;
    padding: 12px;
    border-radius: 12px;
  }

  .product-popup__back {
    display: none;
  }

  .product-popup__close {
    background: transparent;
  }
}

@media screen and (max-width: 480px) {
  .product-card {
    width: 100%;
  }

  .cart-window__content {
    padding: 20px;
  }
}
