/* Общие */
body {
  background-color: #f8f9fa;
  color: #212529;
}

.order-form-error-highlight {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
  transition: box-shadow 0.3s ease;
}

/* Карточки товаров в каталоге */
.card {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}
.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-img-wrap {
  aspect-ratio: 3 / 4; /* пропорция как на маркетплейсах — чуть вытянутая */
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* вписывает целиком без обрезки */
  padding: 8px;
}

/* Галерея товара */
.product-gallery {
  max-width: 520px;
}

/* Обёртка вокруг картинки для зума */
.zoom-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f9fa;
  aspect-ratio: 4 / 5;
}

/* Главное изображение */
.zoomable-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

/* Иконка лупы (десктоп) */
.zoom-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 1.4rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 8px;
  border-radius: 20px;
}

/* Эффект зума при наведении (только на десктопе) */
@media (min-width: 768px) {
  .zoom-wrap:hover .zoomable-img {
    transform: scale(1.8);
  }
}

/* Миниатюры под галереей */
.product-thumbs {
  max-width: 520px;
  margin-inline: auto; /* центрируем сам блок */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.thumb-btn {
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 6px;
  outline: none;
}

.thumb-img {
  height: 70px;
  width: 70px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  opacity: 0.7;
  transition:
    border-color 0.15s,
    opacity 0.15s;
}

.thumb-img:hover {
  opacity: 1;
}
.thumb-btn.active .thumb-img {
  border-color: #212529;
  opacity: 1;
}

/* На мобильных курсор‑лупа не нужен */
@media (max-width: 767px) {
  .zoomable-img {
    cursor: default;
  }
}

/* Каталог: минимальная ширина карточки на мобилках */
@media (max-width: 575px) {
  .products-row > .col {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 180px;
  }
  .card-title {
    font-size: 0.9rem;
  }
  .product-thumbs {
    justify-content: center; /* центрируем миниатюры */
    gap: 0.4rem;
  }

  .thumb-img {
    width: 56px;
    height: 56px;
  }
}

/* Навбар */
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Бейджи статусов в админке */
.badge {
  font-size: 0.8rem;
}
/* Выбор комплекта / количества */
.qty-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.qty-option {
  display: block;
  cursor: pointer;
}

.qty-option input[type="radio"] {
  display: none;
}

.qty-option-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    transform 0.1s ease;
}

.qty-option-main {
  display: flex;
  flex-direction: column;
}

.qty-label {
  font-weight: 600;
  font-size: 0.98rem;
}

.qty-option-price {
  font-weight: 700;
  color: #e53935; /* акцент на цене */
  font-size: 1.02rem;
}

/* Hover */
@media (hover: hover) {
  .qty-option-body:hover {
    border-color: #ff7961;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
  }
}

/* Выбранная опция */
.qty-option input[type="radio"]:checked + .qty-option-body {
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.16);
  background: #fff8f8;
}
.qty-option-best .qty-option-body {
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.16);
}
.bundle-summary {
  background-color: #fff;
}

.bundle-pill {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #212529;
}

/* Самый выгодный */
.bundle-pill-best {
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.16);
  background-color: #fff8f8;
}

/* На очень маленьких экранах сжимаем немного шрифт */
@media (max-width: 575px) {
  .qty-option-body {
    padding: 0.7rem 0.9rem;
  }
  .qty-label {
    font-size: 0.95rem;
  }
  .qty-option-price {
    font-size: 0.98rem;
  }
}

/* ---- Сетка расцветок ---- */
.color-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 в ряд */
  gap: 6px;
}

.color-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1; /* квадрат — всё ровно */
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.qty-meta {
  margin-top: 2px;
  margin-bottom: 2px;
  line-height: 1.25;
}

.qty-coverage {
  font-size: 0.9rem;
  color: #8a8f98;
  font-weight: 400;
}
/* Мобилка — 2 в ряд */
@media (max-width: 575px) {
  .color-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .color-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zoomable-img {
  max-height: none !important;
}

/* ===== Секции продукта ===== */

.product-section {
  padding: 2rem 0 0.5rem;
}

.product-section-bg {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

/* ===== Где использовать ===== */

.usage-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  text-align: center;
  height: 100%;
}

.usage-img-wrap {
  width: 100%;
  overflow: hidden;
}

.usage-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin-bottom: 0;
}

.usage-body {
  padding: 0.7rem 0.75rem 0.85rem;
}

.usage-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #b5863a;
  margin-bottom: 0.25rem;
}

.usage-desc {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.35;
}

/* ===== Преимущества ===== */

.product-benefits .section-title {
  margin-bottom: 0.5rem;
}

.benefits-strip {
  background: #fff;
  border: 1px solid #ede8e1;
  border-radius: 14px;
  overflow: hidden;
}

.benefits-strip .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.benefit-card {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem 1rem 0.95rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
}

.benefit-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 0;
  width: 1px;
  height: calc(100% - 28px);
  background: #ebe4dc;
}

.benefits-strip .row > div:last-child .benefit-card::after {
  display: none;
}

.benefit-icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  background: #f7f2eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  align-self: center;
}

.benefit-icon {
  font-size: 1.15rem;
  color: #b5863a;
  line-height: 1;
  display: block;
}

.benefit-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefit-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 0.18rem;
  margin-top: 0;
}

.benefit-desc {
  font-size: 0.74rem;
  color: #6f6f6f;
  line-height: 1.3;
  margin: 0;
}

/* 5 равных колонок на lg+ */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* На планшете и мобилке — обычные отдельные карточки */
@media (max-width: 991.98px) {
  .benefits-strip {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .benefits-strip .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .benefit-card {
    background: #fff;
    border: 1px solid #ede8e1;
    border-radius: 14px;
    padding: 0.9rem;
  }

  .benefit-card::after {
    display: none;
  }
}

/* ===== Шаги установки ===== */

.step-card {
  background: #fff;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 0;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.step-img-wrap {
  position: relative;
  width: 100%;
}

.step-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin-bottom: 0;
}

.step-num {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b5863a;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  z-index: 1;
}

.step-body {
  padding: 0.65rem 0.75rem 0.8rem;
  flex: 1;
}

.step-desc {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.35;
}

/* Карточка "время" */
.step-time {
  background: #fdf7f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0.75rem;
  height: 100%;
}

.step-time-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f0e8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
}

.step-time-icon {
  font-size: 1.5rem;
  color: #b5863a;
}
/* ===== Доставка ===== */

.delivery-card {
  background: #f8f5f0;
  border: 1px solid #e6ddd2;
  border-radius: 12px;
  padding: 1rem 0.75rem 0.9rem;
  aspect-ratio: 1 / 1;
  max-width: 140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.delivery-icon-wrap {
  width: auto;
  height: auto;
  margin: 0 0 0.6rem;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-icon {
  font-size: 1.5rem;
  color: #b5863a;
  line-height: 1;
}

.delivery-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  max-width: 110px;
  margin: 0 auto;
}

@media (max-width: 575.98px) {
  .delivery-card {
    padding: 0.75rem 0.55rem;
  }

  .delivery-icon {
    font-size: 1.35rem;
  }

  .delivery-title {
    font-size: 0.76rem;
  }
}

/* Характеристики */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.spec-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8ddd1;
  border-radius: 14px;
  padding: 0.95rem 1rem 0.9rem;
  box-shadow: 0 4px 14px rgba(90, 60, 30, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.spec-card:hover {
  border-color: #d9b48a;
  box-shadow: 0 8px 20px rgba(90, 60, 30, 0.08);
}

.spec-key {
  font-size: 0.78rem;
  color: #9b7e67;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.spec-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f241a;
  line-height: 1.3;
}

@media (max-width: 575.98px) {
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .spec-card {
    padding: 0.85rem 0.9rem 0.8rem;
  }

  .spec-val {
    font-size: 1rem;
  }
}

/* footer */
.site-footer {
  background: #1f2329;
  color: rgba(255, 255, 255, 0.92);
  padding: 32px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.site-footer a:hover {
  color: #d6b16a;
  opacity: 1;
}

.footer-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.footer-worktime {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.footer-phone {
  display: inline-block;
  margin-bottom: 16px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.footer-phone:hover {
  color: #d6b16a;
}

.footer-brand {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-meta {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 3px;
}

.footer-mail {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
