/* ═════════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE — Velocafe  (clean e-commerce style)
   Uses :root variables & base from styles.css
═════════════════════════════════════════════════════════════════════════ */

.page-product { background: var(--cream); color: #1a1410; }

/* Solid nav */
.page-product .nav {
  position: sticky;
  background: rgba(253, 248, 240, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(42, 21, 8, 0.06);
  animation: none;
}
.page-product .nav__logo { color: var(--espresso); }
.page-product .nav__links a { color: #6b6258; }
.page-product .nav__links a:hover { color: var(--espresso); }

/* ── Shell ── */
.pdp {
  width: min(1280px, 94vw);
  margin: 0 auto;
  padding: 1.5rem 0 5rem;
}

/* Breadcrumb */
.pdp__crumbs {
  font-size: 0.8rem;
  color: #9a8f84;
  margin-bottom: 2rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.pdp__crumbs a { color: #9a8f84; transition: color 0.2s; }
.pdp__crumbs a:hover { color: var(--espresso); }
.pdp__crumbs span { color: var(--brown); font-weight: 600; }
.pdp__crumbs i { color: #cfc6bc; font-style: normal; }

/* ── Top grid: [gallery + accordions] | info ── */
.pdp__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.5rem;
  row-gap: 0;
  align-items: start;
}
.pdp__gallery { grid-column: 1; grid-row: 1; }
.pdp__info    { grid-column: 2; grid-row: 1 / span 2; }
.pdp__acc     { grid-column: 1; grid-row: 2; }

/* ── Gallery: vertical thumbs + single main image ── */
.pdp__gallery {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 1rem;
  align-items: start;
}
.pdp__thumbs {
  display: flex; flex-direction: column;
  gap: 0.6rem;
}
.pdp__thumb {
  width: 68px; height: 68px;
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid #e6ddd1;
  background: #f6f3ef;
  cursor: pointer; padding: 0;
  transition: border-color 0.2s, transform 0.15s;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb:hover { transform: translateY(-1px); }
.pdp__thumb.is-active { border-color: var(--espresso); }

.pdp__stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f3ef;
}
.pdp__stage img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f6f3ef;
  transition: opacity 0.25s var(--ease);
}
.pdp__stage-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: #E11D48; color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.3rem 0.7rem; border-radius: 6px;
}

/* ── Info column ── */
.pdp__info { padding-top: 0.5rem; }

/* Rating row */
.pdp__rating-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.pdp__stars { color: #E0A93B; font-size: 1rem; letter-spacing: 0.06em; }
.pdp__rating-text { font-size: 0.85rem; color: #6b6258; font-weight: 600; }

.pdp__name {
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin-bottom: 0.7rem; line-height: 1.15;
}
.pdp__subtitle {
  font-size: 1rem; color: #6b6258; line-height: 1.6;
  margin: 1rem 0 1.75rem;
}

.pdp__divider { height: 1px; background: #eae4dc; border: 0; margin: 1.5rem 0; }

/* Price */
.pdp__price-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.pdp__price-new { font-size: 1.5rem; font-weight: 700; color: var(--espresso); }
.pdp__price-old { font-size: 1rem; color: #b3a99e; text-decoration: line-through; }
.pdp__price-badge {
  font-size: 0.8rem; font-weight: 700; color: #fff;
  background: #E11D48; padding: 0.2rem 0.55rem; border-radius: 5px;
}
.pdp__price-note { font-size: 0.8rem; color: #9a8f84; margin-top: 0.5rem; }

/* Color */
.pdp__field-label {
  font-size: 0.92rem; color: #6b6258; margin-bottom: 0.75rem;
}
.pdp__field-label b { color: var(--espresso); font-weight: 600; }
.pdp__swatches { display: flex; gap: 0.7rem; }
.pdp__swatch {
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer; padding: 0; position: relative;
  transition: transform 0.15s;
}
.pdp__swatch:hover { transform: scale(1.1); }
.pdp__swatch.is-active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -0.5rem;
  height: 2px; background: var(--espresso); border-radius: 2px;
}

/* Option radios */
.pdp__options { display: flex; flex-direction: column; gap: 0.6rem; }
.pdp__radio {
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer; font-size: 0.95rem; color: var(--espresso);
}
.pdp__radio input { display: none; }
.pdp__radio-dot {
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 1.5px solid #c3b9ad; flex-shrink: 0;
  position: relative; transition: border-color 0.2s;
}
.pdp__radio input:checked + .pdp__radio-dot { border-color: var(--espresso); }
.pdp__radio input:checked + .pdp__radio-dot::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--espresso); border-radius: 50%;
}
.pdp__radio b { font-weight: 600; }

/* Installments */
.pdp__installments {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.85rem; color: #6b6258;
  background: #faf7f3; border: 1px solid #eae4dc;
  border-radius: 10px; padding: 0.7rem 0.9rem;
}
.pdp__installments-badge {
  background: #FFB3C7; color: #17120b;
  font-weight: 800; font-size: 0.78rem;
  padding: 0.25rem 0.55rem; border-radius: 6px; flex-shrink: 0;
}
.pdp__installments a { color: var(--espresso); text-decoration: underline; }

.pdp__shipping {
  font-size: 0.88rem; font-weight: 600; color: #2E7D32;
  text-align: center; margin: 1.25rem 0;
}

/* Cart row */
.pdp__cart { display: flex; gap: 0.8rem; align-items: stretch; }
.pdp__qty {
  display: flex; align-items: center;
  border: 1px solid #d8cfc4; border-radius: 100px;
  padding: 0 0.4rem; flex-shrink: 0;
}
.pdp__qty button {
  width: 2.2rem; height: 2.2rem; border: 0; background: none;
  font-size: 1.2rem; color: var(--espresso); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pdp__qty button:hover { color: var(--brown); }
.pdp__qty span { min-width: 2rem; text-align: center; font-weight: 600; }
.pdp__add {
  display: block; width: 100%;
  border: 0; cursor: pointer;
  background: var(--espresso); color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem; font-weight: 700;
  border-radius: 100px; padding: 1.1rem;
  margin: 1.75rem 0 1rem;
  transition: background 0.25s, transform 0.15s;
}
.pdp__add:hover { background: #1a0d04; transform: translateY(-1px); }
.pdp__add { margin-top: 0.9rem; }

/* Zgoda na regulamin */
.pdp__regulamin {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 1.75rem 0 0;
  font-size: 0.85rem; line-height: 1.5; color: #6b6258;
  cursor: pointer;
}
.pdp__regulamin input {
  margin-top: 0.15rem; flex: 0 0 auto;
  width: 1.05rem; height: 1.05rem;
  accent-color: var(--espresso); cursor: pointer;
}
.pdp__regulamin a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }
.pdp__regulamin-error {
  margin: -0.4rem 0 1rem;
  font-size: 0.82rem; line-height: 1.5;
  color: #b3261e;
}

/* Payment methods */
.pdp__payments {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  justify-content: center;
}
.pdp__payments span {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em;
  color: #6b6258;
  background: #faf7f3; border: 1px solid #eae4dc;
  padding: 0.3rem 0.6rem; border-radius: 6px;
}

/* Feature bullets */
.pdp__bullets { list-style: none; margin: 0; padding: 0; }
.pdp__bullets li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.95rem; line-height: 1.55; color: var(--espresso);
  margin-bottom: 0.7rem;
}
.pdp__bullets li:last-child { margin-bottom: 0; }
.pdp__bullets li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brown);
}

/* Trust badges row */
.pdp__trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.pdp__trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-align: center;
  font-size: 0.72rem; color: #6b6258; line-height: 1.3;
}
.pdp__trust-item svg { width: 26px; height: 26px; color: var(--brown); }

/* Accordions */
.pdp__acc { margin-top: 2rem; }
.pdp__acc-item { border-top: 1px solid #eae4dc; }
.pdp__acc-item:last-child { border-bottom: 1px solid #eae4dc; }
.pdp__acc-head {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 0; font-family: var(--font-body);
  font-size: 0.98rem; font-weight: 600; color: var(--espresso);
  text-align: left;
}
.pdp__acc-head .pdp__acc-icon {
  font-size: 1.3rem; line-height: 1; transition: transform 0.3s var(--ease);
  color: #9a8f84;
}
.pdp__acc-item.is-open .pdp__acc-icon { transform: rotate(45deg); }
.pdp__acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.pdp__acc-item.is-open .pdp__acc-body { grid-template-rows: 1fr; }
.pdp__acc-body > div { overflow: hidden; }
.pdp__acc-inner { padding: 0 0 1.5rem; }

/* Feature text inside accordion */
.pdp__feature { margin-bottom: 1.5rem; }
.pdp__feature:last-child { margin-bottom: 0; }
.pdp__feature h4 {
  font-size: 1rem; font-weight: 700; color: var(--espresso);
  margin-bottom: 0.4rem;
}
.pdp__feature p { font-size: 0.92rem; line-height: 1.7; color: #6b6258; }
.pdp__feature ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.pdp__feature li {
  position: relative; padding-left: 1.3rem;
  font-size: 0.92rem; line-height: 1.8; color: #6b6258;
}
.pdp__feature li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brown);
}
.pdp__lead { font-size: 0.95rem; line-height: 1.75; color: #6b6258; margin-bottom: 1.5rem; }

/* Spec table */
.pdp__spec-table { width: 100%; border-collapse: collapse; }
.pdp__spec-table tr { border-bottom: 1px solid #f0ebe3; }
.pdp__spec-table td { padding: 0.6rem 0; font-size: 0.88rem; vertical-align: top; }
.pdp__spec-table td:first-child { color: #6b6258; width: 55%; }
.pdp__spec-table td:last-child { color: var(--espresso); font-weight: 600; text-align: right; }
.pdp__box-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.pdp__box-list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: #6b6258; padding: 0.35rem 0;
}
.pdp__box-list svg { width: 15px; height: 15px; color: var(--brown); flex-shrink: 0; }

/* ── Reviews ── */
.pdp__reviews { margin-top: 5rem; }
.pdp__reviews-title {
  font-family: var(--font-body);
  font-size: 1.5rem; font-weight: 700; color: var(--espresso);
  margin-bottom: 2rem;
}
.pdp__reviews-summary {
  display: grid; grid-template-columns: auto 1fr;
  gap: 3rem; align-items: center;
  border: 1px solid #eae4dc; border-radius: 16px;
  padding: 2rem 2.5rem; margin-bottom: 2rem;
}
.pdp__score { text-align: center; }
.pdp__score-num { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--espresso); }
.pdp__score-stars { color: #E0A93B; font-size: 1rem; margin: 0.4rem 0 0.2rem; }
.pdp__score-count { font-size: 0.8rem; color: #9a8f84; }
.pdp__breakdown { display: flex; flex-direction: column; gap: 0.45rem; }
.pdp__bar-row { display: flex; align-items: center; gap: 0.7rem; font-size: 0.8rem; color: #6b6258; }
.pdp__bar-row span:first-child { width: 2.5rem; }
.pdp__bar { flex: 1; height: 7px; background: #f0ebe3; border-radius: 100px; overflow: hidden; }
.pdp__bar i { display: block; height: 100%; background: #E0A93B; border-radius: 100px; }
.pdp__bar-row span:last-child { width: 2.5rem; text-align: right; }

.pdp__reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pdp__review { border: 1px solid #eae4dc; border-radius: 14px; padding: 1.5rem; }
.pdp__review-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.75rem; }
.pdp__review-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--brown); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.pdp__review-name { font-weight: 700; font-size: 0.9rem; color: var(--espresso); }
.pdp__review-verified {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.72rem; color: #2E7D32; font-weight: 600;
}
.pdp__review-verified svg { width: 13px; height: 13px; }
.pdp__review-stars { color: #E0A93B; font-size: 0.85rem; margin-bottom: 0.5rem; }
.pdp__review-text { font-size: 0.9rem; line-height: 1.65; color: #6b6258; margin-bottom: 1rem; }
.pdp__review-photos { display: flex; gap: 0.5rem; }
.pdp__review-photos img {
  width: 4rem; height: 4rem; border-radius: 10px;
  object-fit: cover; border: 1px solid #eae4dc;
}

.pdp__reviews-disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eae4dc;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #8a8177;
  font-style: italic;
  max-width: 60ch;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pdp__top { grid-template-columns: 1fr; gap: 2rem; }
  .pdp__gallery, .pdp__info, .pdp__acc { grid-column: auto; grid-row: auto; }
  .pdp__reviews-summary { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .pdp__reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .pdp__gallery { grid-template-columns: 56px 1fr; gap: 0.6rem; }
  .pdp__thumb { width: 56px; height: 56px; }
  .pdp__trust { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.75rem; }
}
