﻿/* ===== PRODUCT PAGE ===== */

.product-page {
  background: #ececec;
  padding: 28px 0 72px;
}

.product-page__container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 22px;
  color: #2c2622;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #a7a19c;
}

.product-breadcrumbs a {
  color: #8b5b3c;
  text-decoration: none;
  transition: color 0.16s ease;
}

.product-breadcrumbs a:hover {
  color: #6f452d;
}

.product-breadcrumbs__sep {
  color: #c5bdb6;
}

.product-page__title {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f1a16;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 392px;
  gap: 22px;
  align-items: start;
}

.product-gallery-column {
  min-width: 0;
}

.product-gallery-stage {
  position: relative;
  border-radius: 14px;
  background: #e1e1e1;
  padding: 20px 66px;
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main {
  width: min(100%, 760px);
  height: 100%;
  min-height: 570px;
  border-radius: 10px;
  overflow: hidden;
  background: #d6d6d6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5f5751;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.product-gallery-arrow--left {
  left: 14px;
}

.product-gallery-arrow--right {
  right: 14px;
}

.product-gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.product-gallery-arrow:hover {
  background: #ffffff;
}

.product-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-thumb {
  border: 1px solid #cfc7bf;
  border-radius: 8px;
  background: #f7f7f7;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #f3f1ee 0%, #e9e5e1 100%);
  color: #8b8178;
}

.product-thumb-placeholder__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-placeholder__icon svg {
  width: 24px;
  height: 24px;
}

.product-thumb-placeholder__text {
  padding: 0 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.product-thumb.is-active {
  border-color: #9b6f53;
  box-shadow: 0 0 0 2px rgba(155, 111, 83, 0.2);
}

.product-info-card {
  position: sticky;
  top: 22px;
  background: #f3f3f3;
  border: 1px solid #ded8d2;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  padding: 18px 22px 20px;
}

.product-price-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.product-price-label {
  margin: 0;
  color: #6e655f;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.product-price-current {
  margin: 6px 0 2px;
  color: #161311;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.product-price-old {
  margin: 0;
  font-size: 14px;
  color: #7c746d;
  text-decoration: line-through;
}

.product-head-actions {
  display: flex;
  gap: 8px;
}

.product-head-icon {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #7a726b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-head-icon:hover {
  background: rgba(0, 0, 0, 0.04);
}

.product-head-icon svg {
  width: 21px;
  height: 21px;
}

.product-head-icon img {
  width: 21px;
  height: 21px;
  display: block;
}

.product-short-description {
  margin: 0 0 16px;
  color: #544d47;
  font-size: 14px;
  line-height: 1.34;
}

.product-variants {
  margin-bottom: 18px;
}

.product-variants__label {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #231d19;
}

.product-variants__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-variant {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #ac8366;
  background: #f8f6f4;
  cursor: pointer;
  padding: 0 12px;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.product-variant input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.product-variant__size {
  font-size: 14px;
  font-weight: 600;
  color: #5c524b;
}

.product-variant:has(input:checked) {
  border-color: #7f4f35;
  background: #ffffff;
}

.product-variant:has(input:checked) .product-variant__size {
  color: #1f1813;
  font-weight: 700;
}

.product-info-block {
  margin-top: 8px;
}

.product-info-block + .product-info-block {
  margin-top: 18px;
}

.product-info-block__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #1f1813;
  line-height: 1.08;
}

.product-info-block__text {
  margin: 0;
  color: #4f4843;
  font-size: 13px;
  line-height: 1.46;
}

.product-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.product-spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #36302b;
}

.product-spec-row__label,
.product-spec-row__value {
  white-space: nowrap;
}

.product-spec-row__dots {
  flex: 1;
  border-bottom: 1px dotted #aba39c;
  transform: translateY(2px);
}

.product-spec-row__value {
  color: #28211d;
}

.product-specs-btn {
  height: 28px;
  border-radius: 7px;
  border: 1px solid #d8d0c9;
  background: #f7f4f0;
  color: #756b64;
  font-size: 11px;
  padding: 0 10px;
}

.product-btn {
  min-width: 180px;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.product-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.product-btn__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.product-btn--primary {
  background: #7b4a30;
  color: #ffffff;
}

.product-btn--primary:hover {
  filter: brightness(1.03);
}

.product-btn--primary.is-added {
  background: #e5c492;
  color: #2f251f;
}

.product-btn--ghost {
  background: #e8cc97;
  color: #2f251f;
}

.product-btn--ghost:hover {
  filter: brightness(1.01);
}

.product-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-info-card .product-actions {
  flex-direction: column;
}

.product-info-card .product-btn {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  font-size: 16px;
  white-space: nowrap;
}

.product-subtitle {
  margin: 0;
  color: #8d847d;
  font-size: 15px;
}

.product-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  color: #1f1a16;
}

.product-description {
  margin: 0;
  color: #544d47;
  font-size: 19px;
  line-height: 1.4;
}

.product-surface {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #ded8d2;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.product-empty {
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  background: #f9f2e8;
  color: #715a44;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 1300px) {
  .product-showcase {
    grid-template-columns: minmax(0, 1fr) 372px;
  }

  .product-gallery-stage {
    min-height: 560px;
  }

  .product-gallery-main {
    min-height: 520px;
  }

  .product-page__title {
    font-size: 29px;
  }
}

@media (max-width: 1100px) {
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-info-card {
    position: static;
  }

  .product-price-label {
    font-size: 19px;
  }

  .product-price-current {
    font-size: 34px;
  }

  .product-short-description {
    font-size: 14px;
  }

  .product-variants__label {
    font-size: 18px;
  }

  .product-info-block__title {
    font-size: 19px;
  }

  .product-btn {
    font-size: 16px;
  }

  .product-info-card .product-btn {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .product-page {
    padding: 22px 0 52px;
  }

  .product-page__container {
    padding: 0 14px;
  }

  .product-breadcrumbs {
    font-size: 13px;
  }

  .product-page__title {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .product-gallery-stage {
    min-height: 340px;
    padding: 10px 48px;
  }

  .product-gallery-main {
    min-height: 320px;
  }

  .product-gallery-arrow {
    width: 34px;
    height: 34px;
  }

  .product-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-info-card {
    padding: 14px;
  }

  .product-price-head {
    margin-bottom: 10px;
  }

  .product-price-label {
    font-size: 18px;
  }

  .product-price-current {
    font-size: 29px;
  }

  .product-price-old {
    font-size: 13px;
  }

  .product-short-description {
    font-size: 14px;
  }

  .product-variants__label {
    font-size: 17px;
  }

  .product-variant__size {
    font-size: 14px;
  }

  .product-info-block__title {
    font-size: 18px;
  }

  .product-info-block__text,
  .product-spec-row {
    font-size: 13px;
  }

  .product-btn {
    height: 44px;
    font-size: 15px;
    width: 100%;
  }

  .product-info-card .product-btn {
    height: 50px;
    font-size: 14px;
  }
}
