/* ===== Product Detail Page (Ozon-like) ===== */

.pd-page {
  padding: 19px 42px 70px;
}

/* Breadcrumbs */
.pd-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.pd-bc-link {
  border: 0;
  background: transparent;
  color: var(--violet);
  padding: 0;
  font-size: 12px;
  font-weight: 500;
}
.pd-bc-link:hover { text-decoration: underline; }
.pd-bc-sep { color: #b7b8c2; font-size: 14px; }
.pd-bc-current { color: var(--ink); font-weight: 500; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Layout */
.pd-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

/* Gallery */
.pd-gallery {
  position: sticky;
  top: 20px;
}
.pd-main-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7f8fa, #edf0f4);
}
.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-image-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 7px;
  background: rgba(31, 38, 52, .72);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
}
.pd-placeholder {
  background: var(--card-bg, #39206d);
}
.pd-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px 2px;
  scrollbar-width: thin;
}
.pd-thumb {
  flex: none;
  width: 54px;
  height: 72px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f5f6f8;
  padding: 0;
  transition: border-color .15s;
}
.pd-thumb:hover { border-color: #ccc; }
.pd-thumb.active { border-color: var(--violet); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info section */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-category {
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pd-title {
  margin: 0;
  font: 800 clamp(24px, 3vw, 34px) / 1.12 Manrope, sans-serif;
  letter-spacing: -.05em;
  color: var(--ink);
}

/* Reviews */
.pd-reviews-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.pd-reviews-stars { display: flex; gap: 1px; font-size: 16px; }
.star.full { color: #e59a15; }
.star.half { color: #e59a15; opacity: .6; }
.star.empty { color: #d0d2da; }
.pd-reviews-rating { font: 800 14px Manrope, sans-serif; color: var(--ink); }
.pd-reviews-count { color: var(--muted); font-size: 12px; }

/* Description */
.pd-description {
  color: #5f6470;
  font-size: 13px;
  line-height: 1.65;
  margin: 4px 0;
}

/* Price */
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0 4px;
}
.pd-price {
  font: 800 32px / 1 Manrope, sans-serif;
  letter-spacing: -.06em;
  color: var(--ink);
}
.pd-old-price {
  color: #9da2ac;
  font-size: 14px;
  text-decoration: line-through;
}
.pd-discount {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff0f2;
  color: var(--red);
  font: 700 12px Inter, sans-serif;
}

/* Stock */
.pd-stock {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
}
.pd-stock.ok { color: var(--green); }
.pd-stock.low { color: #cc6b00; }
.pd-stock.out { color: var(--red); }

/* Add to cart */
.pd-actions-row{display:flex;gap:10px;align-items:stretch}.pd-actions-row .pd-add-btn{flex:1}
.pd-add-btn{width:100%;min-height:52px;border:0;border-radius:10px;background:var(--violet);color:#fff;font:700 14px Inter,sans-serif;letter-spacing:.01em;transition:background .15s,transform .15s}
.pd-add-btn:hover{background:var(--violet-dark);transform:translateY(-1px)}
.pd-add-btn:active{transform:translateY(0)}
.pd-add-btn:disabled{background:var(--surface-soft);color:var(--muted);cursor:not-allowed}
.pd-fav-btn{display:grid;place-items:center;width:52px;min-height:52px;flex:none;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:24px;transition:color .15s,border-color .15s,background .15s}
.pd-fav-btn:hover{border-color:var(--red);color:var(--red)}
.pd-fav-btn.active{background:#fff0f2;border-color:var(--red);color:var(--red)}

/* Delivery card */
.pd-delivery-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 10px;
  background: #f0fbf4;
  margin-top: 4px;
}
.pd-delivery-icon { font-size: 26px; }
.pd-delivery-text b { display: block; font-size: 13px; color: var(--ink); }
.pd-delivery-text small { display: block; margin-top: 3px; font-size: 11px; color: var(--green); }

/* Benefits */
.pd-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}
.pd-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.pd-benefit span:first-child { font-size: 22px; flex-shrink: 0; }
.pd-benefit b { display: block; font-size: 12px; color: var(--ink); }
.pd-benefit small { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }

/* Related products */
.pd-related {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.pd-related-title {
  margin: 0 0 18px;
  font: 800 22px / 1 Manrope, sans-serif;
  letter-spacing: -.04em;
}
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pd-related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.pd-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23,31,48,.1);
}
.pd-related-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #f7f8fa, #eef0f3);
  font-size: 48px;
}
.pd-related-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-related-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
}
.pd-related-price {
  font: 800 15px / 1 Manrope, sans-serif;
  color: var(--ink);
}
.pd-related-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

/* ===== Responsive ===== */
@media (max-width: 850px) {
  .pd-page { padding: 14px 16px 50px; }
  .pd-layout { grid-template-columns: 1fr; gap: 22px; }
  .pd-gallery { position: static; }
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pd-title { font-size: 24px; }
  .pd-price { font-size: 26px; }
  .pd-main-image { max-height: none; }
  .pd-thumb { width: 44px; height: 59px; }
  .pd-add-btn { min-height: 48px; font-size: 13px; }
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .pd-benefits { gap: 8px; }
}
@media (max-width: 370px) {
  .pd-related-grid { grid-template-columns: 1fr; }
}
