/* Product page (produkt.html). Reuses .cl-crumbs, .hm-title, .hm-grid from collection/home css. */
.pd { padding: 0 var(--side-padding-desktop) 0; color: var(--text-main); }
.pd-crumbs { margin-bottom: 32px; } /* same position as Collection: right under the header, 8px top padding from .cl-crumbs */
.pd-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }

.pd-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pd-gal img { width: 100%; height: 533px; object-fit: cover; display: block; background: var(--bg-content-secondary); -webkit-user-drag: none; }
.pd-dots { display: none; }

.pd-info { position: sticky; top: 24px; padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; font-family: var(--font-sans); }
.pd-name { margin: 0; font: 700 var(--fs-h3)/1.2 var(--font-serif); }
.pd-price { margin: 4px 0 0; font: 700 32px/1.2 var(--font-serif); font-variant-numeric: proportional-nums lining-nums; }
.pd-field { border: 0; margin: 32px 0 0; padding: 0; min-width: 0; }
.pd-field legend, .pd-label { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 700; }
.pd-field legend span { font-weight: 400; }
.pd-swatches { display: flex; align-items: center; gap: 10px; }
.pd-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-size {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--brand-green); border-radius: 4px; background: var(--bg-page); color: var(--text-main);
  font: 900 14px/1 var(--font-sans); cursor: pointer;
}
.pd-size[aria-pressed="true"] { background: var(--brand-green); color: #fff; }
.pd-sglink { display: inline-block; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--text-main); font: 400 14px/1.5 var(--font-sans); text-decoration: underline; cursor: pointer; min-height: 32px; }

.pd-qtywrap { margin-top: 32px; display: flex; flex-direction: column; }
.pd-qty { display: inline-flex; align-items: center; width: 200px; height: 48px; box-sizing: border-box; border: 1px solid var(--brand-green); border-radius: var(--radius-control); }
.pd-qty button { width: 48px; height: 46px; border: 0; background: transparent; color: var(--text-main); font-size: 22px; cursor: pointer; }
.pd-qty span { flex: 1; text-align: center; font-size: 16px; }

.pd-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; align-self: stretch; max-width: 520px; }
.pd-btn { box-sizing: border-box; height: 56px; padding: 0 24px; border-radius: var(--radius-control); font: 700 16px/1.5 var(--font-sans); cursor: pointer; }
.pd-btn--primary { border: 0; background: var(--brand-red); color: #fff; }
.pd-btn--primary:hover { background: var(--brand-red-light); }
.pd-btn--secondary { height: 58px; border: 2px solid var(--brand-green); background: transparent; color: var(--text-main); }

.pd-desc { margin-top: 32px; align-self: stretch; max-width: 520px; display: flex; flex-direction: column; gap: 16px; font: 400 18px/1.5 var(--font-sans); }
.pd-desc p { margin: 0; }
.pd-more-btn { margin-top: 16px; padding: 0 0 2px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--brand-red); font: 700 16px/1.5 var(--font-sans); cursor: pointer; }
.pd-more-btn:hover { border-bottom-color: var(--brand-red); }
.pd button:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }

.pd-section { padding-top: 40px; }
.pd-section--sets { padding-top: 0; padding-bottom: 64px; }
.pd .hm-title { padding-left: 0; padding-right: 0; }
.pd-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1100px) and (min-width: 768px) {
  .pd-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-gal { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .pd { padding: 0 var(--side-padding-mobile); }
  .pd-crumbs { display: none; }
  .pd-split { display: flex; flex-direction: column; gap: 24px; }
  .pd-galwrap { margin: 0 calc(-1 * var(--side-padding-mobile)); }
  .pd-gal { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pd-gal::-webkit-scrollbar { display: none; }
  .pd-gal img { flex: 0 0 100%; height: auto; aspect-ratio: 3 / 4; scroll-snap-align: start; }
  .pd-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .pd-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); opacity: 0.35; }
  .pd-dots span.is-on { opacity: 1; }
  .pd-info { position: static; padding-top: 0; align-items: stretch; }
  .pd-name { margin-top: 8px; font-size: 32px; }
  .pd-field legend, .pd-label { font-size: 18px; font-weight: 400; }
  .pd-field legend span { display: none; }
  .pd-swatches, .pd-sizes { gap: 16px; }
  .pd-swatches .pc__swatch { width: 52px; height: 52px; }
  .pd-swatches .pc__swatch span { width: 44px; height: 44px; }
  .pd-size { width: 52px; height: 52px; padding: 0; font-size: 16px; }
  .pd-sizes .pd-size:only-child { width: auto; padding: 0 16px; }
  .pd-sglink { align-self: flex-start; font-size: 16px; }
  .pd-qty { width: 100%; height: 56px; }
  .pd-qty button { width: 56px; height: 54px; }
  .pd-actions, .pd-desc { max-width: none; }
  .pd-more-btn { align-self: flex-start; }
  .pd-grid3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pd .pc__name { font-size: 24px; padding-top: 12px; }
  .pd .pc__price { font-size: 24px; }
}

/* Set page (komplekt.html): one landscape photo instead of the 2×2 gallery */
.set-img { width: 100%; aspect-ratio: 616 / 398; object-fit: cover; display: block; background: var(--bg-content-secondary); }
@media (max-width: 767px) {
  .set-img { aspect-ratio: 4 / 5; }
}

/* Product description lists (Особености, Състав, Поддръжка, Важно уточнение) */
.pd-list__h { margin: 0 0 8px; }
.pd-list ul { margin: 0; padding-left: 40px; display: flex; flex-direction: column; gap: 8px; }
.pd-list li { padding-left: 4px; }
@media (max-width: 767px) {
  .pd-list ul { padding-left: 28px; }
}

/* Loop copies for the mobile gallery: not part of the desktop 2×2 grid */
@media (min-width: 768px) {
  .pd-gal .is-clone { display: none; }
}
