.site-main {
  flex: 1;
  
}

/* ===============================
   PRODUCT SINGLE
=============================== */

.product-single {
  padding: 32px 0 64px;
}

.product-hero {
  margin: 16px 0 48px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.product-gallery {
  position: relative;
}

.product-gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1; 
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.product-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  cursor: pointer;
}

.product-gallery-arrow.prev {
  left: 12px;
}

.product-gallery-arrow.next {
  right: 12px;
}

.product-gallery-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
  transform: rotate(225deg);
  margin: 0 auto;
}

.product-gallery-arrow.next span {
  transform: rotate(45deg);
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-gallery-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.product-gallery-thumb img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.product-gallery-thumb.active {
  border-color: var(--color-primary);
}

.product-gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 24px;
}

.product-gallery-overlay.is-open {
  display: flex;
}

.product-gallery-overlay img {
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.product-info .product-title {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.product-price {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-price-label {
  font-size: 14px;
  color: #6b7280;
  min-width: 120px;
}

.product-price-old {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 18px;
}

.product-price-current {
  font-size: 30px;
  font-weight: 700;
  color: #e11d48;
}

.product-availability {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(15, 122, 58, 0.15);
  background: rgba(15, 122, 58, 0.06);
  color: #0f7a3a;
}

.product-availability.out-of-stock {
  border-color: rgba(185, 28, 28, 0.2);
  background: rgba(185, 28, 28, 0.06);
  color: #b91c1c;
}

.product-specs h3,
.product-specs h4 {
  margin: 16px 0 8px;
  font-size: 16px;
}

.product-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.product-specs li {
  display: flex;
  gap: 10px;
  color: #111;
}

.product-section {
  position: relative;
  margin-top: 16px;
  padding: 44px 16px 16px; /* ⬅️ ВАЖНО: место под заголовок */
  border-radius: 14px;

  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}


.product-section-title {
  position: absolute;
  top: 6px;
  left: 12px;

  margin: 0;
  padding: 2px 6px;

  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;

  color: #4a5877;
  background: transparent;
  z-index: 3;
  pointer-events: none;
}





.product-section .product-specs-list {
  row-gap: 14px;
  padding-top: 22px;
}



.product-specs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

}


.product-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-spec-dimensions .product-spec-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-spec-unit {
  margin-left: 4px;
  color: inherit;
}

.product-spec-label {
  color: #6b7280;
  min-width: 120px;
}

.product-dimensions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-dimensions .dim-item {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 122, 58, 0.06);
  color: #0f7a3a;
  font-size: 13px;
}


.main,
.site-content,
.page-content,
body {
  padding-top: 80px;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(37, 63, 80, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(37, 63, 80, 0.08),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      #f6ebd9 0%,
      #efe1c7 100%
    );

    background-attachment: fixed;
    
}
