/* ─── Product Detail Page ──────────────────────────────────────── */

.pd-wrap {
  width: min(1200px, 92%);
  margin-inline: auto;
  padding: 28px 0 56px;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────── */
.pd-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  font-size: .82rem; opacity: .72; margin-bottom: 18px;
}
.pd-breadcrumb a { color: inherit; text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--accent); }
.pd-breadcrumb .current { color: var(--accent); font-weight: 700; opacity: 1; }

/* ─── Main 2-col layout ──────────────────────────────────────────── */
.pd-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ─── Gallery ────────────────────────────────────────────────────── */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Main image */
.pd-main-img {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 36px rgba(0,0,0,.25);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.pd-main-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s;
}
.pd-main-img img:hover { transform: scale(1.03); }
.pd-no-img {
  font-size: 4rem; opacity: .3;
}

/* Thumbnails */
.pd-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-thumb {
  width: 76px; height: 76px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
  flex-shrink: 0;
}
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Aparat video */
.pd-video {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  aspect-ratio: 16 / 9;
}
.pd-video iframe {
  width: 100%; height: 100%;
  display: block; border: 0;
}

/* ─── Info ───────────────────────────────────────────────────────── */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Title */
.pd-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.3;
}

/* Price box */
.pd-price-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 14px 18px;
}
.pd-price {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 900;
  min-width: 0;
}
.pd-currency {
  font-size: .9rem;
  font-weight: 700;
  opacity: .85;
}
.pd-call {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}
.pd-old {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: line-through;
  opacity: .55;
  max-width: 100%;
}

/* Description */
.pd-desc {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 16px 18px;
  line-height: 1.85;
  font-size: .97rem;
}

/* Consultation buttons */
.pd-consult { display: flex; flex-direction: column; gap: 12px; }
.pd-consult-label {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  opacity: .75;
}
.pd-consult-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  padding: .7rem 1.2rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .18s, filter .18s;
  white-space: nowrap;
}
.pd-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pd-btn.cta-whatsapp { background: #25D366; color: #fff; }
.pd-btn.cta-rubika   { background: #00A1E4; color: #fff; }
.pd-btn.cta-bale     { background: #21A67A; color: #fff; }
.pd-btn.cta-call     { background: var(--accent); color: #1b1b1b; }

/* ─── Related products ───────────────────────────────────────────── */
.pd-related {
  margin-top: 48px;
}
.pd-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pd-related-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent);
}
.pd-rel-nav { display: flex; gap: 8px; }
.pd-rel-btn {
  width: 38px; height: 38px;
  border-radius: 10px; border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  color: var(--accent);
  font-size: 1.1rem;
  display: grid; place-items: center;
  transition: background .2s;
}
.pd-rel-btn:hover { background: var(--accent); color: #1b1b1b; }

/* Viewport + track */
.pd-rel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.pd-rel-viewport::-webkit-scrollbar { display: none; }
.pd-rel-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.pd-rel-card {
  flex: 0 0 auto;
  width: clamp(160px, 22vw, 220px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s, box-shadow .22s;
}
.pd-rel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.pd-rel-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.pd-rel-card:hover img { transform: scale(1.04); }
.pd-rel-title {
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 8px;
  line-height: 1.4;
}

/* ─── Responsive — Tablet ≤900px ────────────────────────────────── */
@media (max-width: 900px) {
  .pd-main { grid-template-columns: 1fr; gap: 22px; }
  .pd-title { font-size: 1.45rem; }
  .pd-rel-card { width: clamp(150px, 40vw, 200px); }
}

/* ─── Responsive — Mobile ≤600px ────────────────────────────────── */
@media (max-width: 600px) {
  .pd-wrap { padding: 18px 0 40px; }
  .pd-title { font-size: 1.25rem; }
  .pd-price { font-size: clamp(1.05rem, 5.5vw, 1.25rem); }
  .pd-price-box { padding: 12px 14px; gap: 6px 9px; }
  .pd-desc { padding: 12px 14px; font-size: .9rem; }
  .pd-thumb { width: 62px; height: 62px; }
  .pd-btn { min-height: 44px; font-size: .84rem; padding: .6rem 1rem; }
  .pd-rel-card { width: clamp(140px, 44vw, 180px); }
  .pd-related { margin-top: 32px; }
}

/* ─── Responsive — Small mobile ≤400px ──────────────────────────── */
@media (max-width: 400px) {
  .pd-consult-btns { flex-direction: column; }
  .pd-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .pd-thumbs { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; }
  .pd-price-box { align-items: baseline; }
}

/* ─── Light theme ────────────────────────────────────────────────── */
html.theme-light .pd-main-img {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.10);
}
html.theme-light .pd-price-box {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.09);
}
html.theme-light .pd-desc {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.08);
}
html.theme-light .pd-rel-card {
  background: #fff;
  border-color: rgba(0,0,0,.09);
}
html.theme-light .pd-rel-btn {
  background: rgba(0,0,0,.07);
}
