/* PRODUCT PAGE */
.product-page {
  padding: 100px 0;
}

.product-layout,
.product-page-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-gallery-main {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #e9e2d8;
  position: relative;
}

.product-gallery-main > img,
.product-gallery-item > img {
  display: block;
  width: 100%;
  height: auto;
}

.product-gallery-main img,
.product-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-gallery-item {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #e9e2d8;
}

.product-gallery-item:hover img {
  transform: scale(1.02);
}

.product-info {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-extra {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-page-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 10px;
}

.product-info h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.product-page-subtitle {
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.55;
  margin-bottom: 10px;
  max-width: 28rem;
}

.product-page-text,
.product-extra-text {
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 24px;
  text-align: justify;
}

.product-page-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.product-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.detail-value {
  font-size: 1rem;
  color: var(--color-text);
  text-align: right;
}

.product-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0;
  margin-bottom: 0;
  padding-bottom: 0.7rem;
  justify-content: center;
  align-items: center;
}

.product-extra-block {
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
}

.product-extra-block h2 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  font-weight: 400;
}

.product-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.product-feature-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.product-feature-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--color-muted);
}

.product-detail-row-color {
  align-items: flex-start;
}

.detail-color-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.selected-color-name {
  font-size: 0.95rem;
  color: var(--color-text);
}

.color-preview {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f1f1ef;
}

.color-preview-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.72);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.color-swatch {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  padding: 0;
  appearance: none;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.08);
}

.color-swatch.is-active {
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 3px rgba(0, 0, 0, 0.75);
}

.color-more-btn {
  height: 1.15rem;
  padding: 0 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.color-more-btn:hover {
  border-color: rgba(0, 0, 0, 0.35);
}

.more-colors-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  max-width: 18rem;
}

.more-colors-panel[hidden] {
  display: none !important;
}

.product-certifications-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.certifications-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.product-certifications {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-certifications img {
  height: 34px;
  width: auto;
  max-width: 100%;
  opacity: 0.9;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-certifications img:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.product-download-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.product-download-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(26, 26, 20, 1);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(26, 26, 20, 1);
  transition: all 0.2s ease;
}

.product-download-link:hover {
  border-color: rgba(26, 26, 20, 0.35);
  color: rgba(26, 26, 20, 0.9);
  background: rgba(26, 26, 20, 0.03);
}

.product-page .product-gallery-item:hover img {
  transform: none;
}

/* PRODUCT PAGE MOBILE */
@media (max-width: 900px) {
  .product-page {
    padding: 72px 0;
  }

  .product-layout,
  .product-page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-info {
    position: static;
  }

  .product-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .product-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .detail-value {
    text-align: left;
  }

  .detail-color-block {
    align-items: flex-start;
  }

  .color-swatches,
  .more-colors-panel {
    justify-content: flex-start;
  }

  .product-certifications {
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .product-certifications img {
    height: 28px;
  }

  .product-download-link {
    padding: 12px;
  }
}
