/* ─── PRODUCT PAGE — минимализм ───────────────────────────────────────────── */
.product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 15px 48px;
}

/* ─── Breadcrumb ──────────────────────────────────────────────────────────── */
.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
}

.product-breadcrumb a {
  color: #666;
}

.product-breadcrumb a:hover {
  color: var(--product-green, #3d8f63);
}

.product-breadcrumb-sep {
  color: #ccc;
  user-select: none;
}

.product-breadcrumb-current {
  color: #aaa;
}

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ─── Gallery ─────────────────────────────────────────────────────────────── */
.product-detail-gallery {
  position: sticky;
  top: 88px;
}

@media (max-width: 860px) {
  .product-detail-gallery {
    position: static;
  }
}

.product-detail-img {
  position: relative;
  background: #f5f5f5;
  border-radius: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-detail-img img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}

.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.product-detail-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  transition: border-color 0.15s;
}

.product-detail-thumb.is-active,
.product-detail-thumb:hover {
  border-color: var(--product-green, #3d8f63);
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-noimg {
  color: #bbb;
  font-size: 14px;
}

.product-detail-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--product-green, #3d8f63);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  z-index: 1;
}

/* ─── Info ────────────────────────────────────────────────────────────────── */
.product-detail-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}

.product-detail-cat {
  font-size: 13px;
  font-weight: 500;
  color: var(--product-green-muted, #5a9a78);
  margin-bottom: 8px;
}

.product-detail-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  margin-bottom: 16px;
}

.product-detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.product-detail-price {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--product-green, #3d8f63);
  letter-spacing: -0.02em;
}

.product-detail-price-old {
  font-size: 18px;
  color: #aaa;
  text-decoration: line-through;
}

.product-detail-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.product-detail-stock {
  margin-bottom: 24px;
}

.product-detail-stock-yes {
  font-size: 13px;
  font-weight: 600;
  color: var(--product-green, #3d8f63);
}

.product-detail-stock-no {
  font-size: 13px;
  font-weight: 600;
  color: #999;
}

/* ─── Cart row ────────────────────────────────────────────────────────────── */
.product-detail-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 24px;
}

.product-qty {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
}

.product-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  font-size: 18px;
  color: #333;
  background: transparent;
  border: none;
  cursor: pointer;
}

.product-qty-btn:hover {
  background: #ebebeb;
}

.product-qty-input {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  -moz-appearance: textfield;
}

.product-qty-input::-webkit-inner-spin-button,
.product-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.product-qty-input:focus {
  outline: none;
}

.product-detail-btn {
  flex: 1;
  min-width: 160px;
  height: 48px;
  padding: 0 28px;
  background: var(--product-green, #3d8f63);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.product-detail-btn:hover {
  background: var(--product-green-hover, #2f7350);
}

.product-detail-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.product-detail-meta {
  font-size: 13px;
  color: #888;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.product-detail-meta span {
  color: #444;
  font-weight: 500;
}

/* ─── Description ─────────────────────────────────────────────────────────── */
.product-detail-about {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #f0f0f0;
}

.product-detail-about h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}

.product-detail-about-text {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  max-width: 720px;
}

.product-detail-about-text p {
  margin-bottom: 12px;
}

/* ─── Related ───────────────────────────────────────────────────────────────── */
.product-related {
  background: #fafafa;
  padding: 48px 0 64px;
  margin-top: 16px;
}

.product-related-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

.product-related-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 28px;
}
