/* ── Product detail page (e-commerce PDP) ── */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: 0.75rem;
  color: var(--brown-lt);
}
.breadcrumb a { color: var(--brown-mid); }
.breadcrumb a:hover { color: var(--honey); }
.breadcrumb__sep { margin: 0 0.4rem; color: var(--stone); }

.pdp {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 2rem 5rem;
}

/* Hero: gallery + buy box */
.pdp__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.pdp__gallery {
  position: sticky;
  top: 88px;
}
.pdp__image-main {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp__image-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--cream);
}
.pdp__gallery-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.875rem;
}
.pdp__gallery-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
  background: var(--cream);
  border: 1px solid var(--sand);
  color: var(--brown-mid);
}
.pdp__gallery-badge--green {
  background: var(--green-lt, #E8F5E9);
  border-color: transparent;
  color: var(--green);
}
.pdp__gallery-use {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--brown-mid);
  line-height: 1.65;
}
.pdp__gallery-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.875rem 0 0;
  padding: 0.875rem 0 0;
  border-top: 1px solid var(--sand);
}
.pdp__gallery-trust li {
  font-size: 0.8125rem;
  color: var(--brown-mid);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.pdp__gallery-trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Buy box */
.pdp__buybox {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.pdp__brand {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}
.pdp__title {
  font-family: var(--font-disp);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brown);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.pdp__sku {
  font-size: 0.8125rem;
  color: var(--brown-lt);
  margin-bottom: 1.25rem;
}
.pdp__price-block {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--sand);
}
.pdp__price-block--discounted {
  background: linear-gradient(180deg, rgba(232, 245, 233, 0.45) 0%, transparent 100%);
  margin: -0.5rem -0.5rem 1.25rem;
  padding: 0.75rem 0.5rem 1.25rem;
  border-radius: var(--r);
}
.pdp__price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pdp__price-current {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pdp__price-block--discounted .pdp__price-current {
  color: var(--green);
}
.pdp__price-discount {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-lt, #E8F5E9);
  border-radius: 2px;
}
.pdp__price-was {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--brown-lt);
  text-decoration: line-through;
}
.pdp__discount-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--green-lt, #E8F5E9);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: var(--r);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2E7D32;
  line-height: 1.5;
}
.pdp__discount-banner__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
}
.pdp__tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.875rem;
}
.pdp__tier {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--brown-lt);
  padding: 0.3rem 0.55rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pdp__tier.is-active {
  color: var(--brown);
  background: var(--white);
  border-color: var(--brown-lt);
  font-weight: 600;
}
.pdp__tier.is-active.is-discounted {
  color: var(--green);
  background: var(--green-lt, #E8F5E9);
  border-color: rgba(46, 125, 50, 0.35);
}
.pdp__price-was[hidden],
.pdp__price-discount[hidden],
.pdp__discount-banner[hidden],
.pdp__surface[hidden] {
  display: none !important;
}
.pdp__surface {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brown-mid);
  letter-spacing: 0.02em;
}
.pdp__price-dynamic {
  font-size: 0.8125rem;
  color: var(--brown-lt);
  margin-top: 0.5rem;
  line-height: 1.55;
}
.pdp__price-dynamic--base {
  color: var(--brown-lt);
}
.pdp__price-dynamic--mid,
.pdp__price-dynamic--high {
  color: #2E7D32;
  font-weight: 500;
}
.pdp__price-from {
  font-size: 0.8125rem;
  color: var(--brown-lt);
  margin-top: 0.25rem;
  display: block;
}
.pdp__price-note {
  font-size: 0.75rem;
  color: var(--brown-lt);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.pdp__atc {
  margin-bottom: 0;
  padding: 0.9rem 1.5rem !important;
  font-size: 0.9375rem !important;
}
.pdp__field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-lt);
  margin-bottom: 0.5rem;
}
.pdp__variants {
  margin-bottom: 1.5rem;
}
.pdp__variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pdp__variant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brown-mid);
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.pdp__variant:hover {
  border-color: var(--stone);
  color: var(--brown);
}
.pdp__variant--active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
  cursor: default;
}

.pdp__config {
  margin-bottom: 1.25rem;
}
.pdp__config-box {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--r);
  padding: 1rem;
}
.pdp__config-hint {
  font-size: 0.75rem;
  color: var(--brown-lt);
  line-height: 1.55;
  margin-top: 0.75rem;
}
.pdp__config-hint strong { color: var(--brown); }

.lengths { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.length-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.35rem 0; width: 100%;
}
.length-row__label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brown-lt); min-width: 5.5rem;
}
.length-control { display: flex; align-items: center; gap: 0; }
.length-control__btn {
  width: 36px; height: 36px;
  border: 1px solid var(--sand); background: var(--white);
  color: var(--brown); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.length-control__btn:hover { background: var(--white); border-color: var(--stone); }
.length-control__btn:first-of-type { border-radius: var(--r) 0 0 var(--r); }
.length-control__btn:last-of-type { border-radius: 0 var(--r) var(--r) 0; }
.length-control__input {
  width: 56px; height: 36px;
  border: 1px solid var(--sand); border-left: none; border-right: none;
  background: var(--white); color: var(--brown);
  font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700;
  text-align: center; outline: none;
  -moz-appearance: textfield;
}
.length-control__input::-webkit-outer-spin-button,
.length-control__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.length-control__unit { font-size: 0.75rem; color: var(--brown-lt); margin-left: 0.5rem; }
.length-row__remove {
  margin-left: auto; width: 30px; height: 30px;
  border: 1px solid var(--sand); border-radius: var(--r);
  background: var(--white); color: var(--brown-lt); cursor: pointer;
  font-size: 1rem; line-height: 1;
}
.length-row__remove:hover { border-color: #C00; color: #C00; background: #FEE; }
.length-row__remove.hidden { visibility: hidden; pointer-events: none; }
.add-row-btn {
  margin-top: 0.5rem;
  font-size: 0.75rem; padding: 0.45rem 0.75rem;
  border: 1px dashed var(--sand); border-radius: var(--r);
  background: transparent; color: var(--brown-lt); cursor: pointer;
  width: 100%;
}
.add-row-btn:hover { border-color: var(--honey); color: var(--honey); background: var(--honey-lt); }

.mesure-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.mesure-field label {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-lt);
  margin-bottom: 0.4rem;
}
.mesure-field__row { display: flex; align-items: center; }
.mesure-field input {
  flex: 1; height: 40px; padding: 0 0.625rem;
  border: 1px solid var(--sand); border-radius: var(--r) 0 0 var(--r);
  background: var(--white); color: var(--brown);
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
  outline: none; -moz-appearance: textfield;
}
.mesure-field input:focus { border-color: var(--honey); }
.mesure-field input::-webkit-outer-spin-button,
.mesure-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.mesure-field__unit {
  height: 40px; padding: 0 0.625rem;
  border: 1px solid var(--sand); border-left: none;
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--white); color: var(--brown-lt);
  font-size: 0.75rem; display: flex; align-items: center;
}


/* Details tabs */
.pdp__details {
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  background: var(--white);
  overflow: hidden;
}
.pdp__tabs {
  display: flex;
  border-bottom: 1px solid var(--sand);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pdp__tab {
  flex: 1;
  min-width: max-content;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brown-lt);
  background: var(--cream);
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.pdp__tab:hover { color: var(--brown); }
.pdp__tab.is-active {
  color: var(--brown);
  background: var(--white);
  border-bottom-color: var(--honey);
  font-weight: 600;
}
.pdp__panels { padding: 1.75rem 2rem 2rem; }
.pdp__panel { display: none; }
.pdp__panel.is-active { display: block; }

/* Description panel */
.pdp__desc-lead {
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  margin-bottom: 1.5rem;
}
.pdp__desc-lead-text {
  font-size: 1rem;
  color: var(--brown);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.pdp__highlights {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
}
.pdp__highlights li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brown-mid);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.pdp__highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
}
.pdp__desc-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pdp__desc-card {
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}
.pdp__desc-card-title {
  font-family: var(--font-disp);
  font-size: 1.125rem;
  color: var(--brown);
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  line-height: 1.3;
}
.pdp__desc-card-body {
  padding: 1.125rem 1.25rem 1.25rem;
}
.pdp__desc-card-text {
  font-size: 0.9375rem;
  color: var(--brown-mid);
  line-height: 1.75;
}
.pdp__desc-card-text + .pdp__desc-card-text {
  margin-top: 0.75rem;
}
.pdp__desc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sand);
}
.pdp__desc-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brown-mid);
  padding: 0.35rem 0.65rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 2rem;
}
.pdp__sun-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--brown);
  background: color-mix(in srgb, var(--honey) 12%, var(--white));
  border-left: 3px solid var(--honey);
  border-radius: 0 var(--r) var(--r) 0;
}
.pdp__sun-note--gallery {
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.pdp__desc-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sand);
  font-size: 0.875rem;
}
.pdp__desc-foot a {
  color: var(--honey);
  font-weight: 500;
  text-decoration: none;
}
.pdp__desc-foot a:hover { text-decoration: underline; }

.pdp__panel h2 {
  font-family: var(--font-disp);
  font-size: 1.25rem;
  color: var(--brown);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.pdp__panel h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brown);
  margin: 1.25rem 0 0.5rem;
}
.pdp__text {
  font-size: 0.9375rem;
  color: var(--brown-mid);
  line-height: 1.75;
}
.pdp__text + .pdp__text { margin-top: 0.75rem; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.spec-table th,
.spec-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sand);
}
.spec-table th {
  width: 45%;
  font-weight: 500;
  color: var(--brown-lt);
  background: var(--cream);
}
.spec-table td {
  color: var(--brown);
  font-weight: 500;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }
.spec-table .val--green { color: var(--green); }

.compat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.compat-table th,
.compat-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sand);
}
.compat-table th { font-weight: 500; color: var(--brown-lt); }
.compat-table td { text-align: right; font-weight: 600; }
.compat-table .ok { color: var(--green); }
.compat-table .warn { color: #B86A00; }
.compat-table .no { color: #C00; }

.pdp__delivery-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pdp__delivery-list li {
  font-size: 0.9375rem;
  color: var(--brown-mid);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}
.pdp__delivery-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.cart-prompt {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; pointer-events: none; opacity: 0;
  transition: opacity 0.2s;
}
.cart-prompt.is-open { pointer-events: auto; opacity: 1; }
.cart-prompt__backdrop {
  position: absolute; inset: 0; background: rgba(30, 22, 16, 0.45);
}
.cart-prompt__dialog {
  position: relative; background: var(--white);
  border-radius: var(--r-lg); padding: 1.75rem;
  max-width: 360px; width: 100%;
  box-shadow: 0 16px 48px rgba(30, 22, 16, 0.18);
  text-align: center;
}
.cart-prompt__title {
  font-family: var(--font-disp); font-size: 1.25rem;
  color: var(--brown); margin-bottom: 0.625rem;
}
.cart-prompt__text {
  font-size: 0.9rem; color: var(--brown-lt);
  line-height: 1.65; margin-bottom: 1.5rem;
}
.cart-prompt__actions { display: flex; flex-direction: column; gap: 0.625rem; }

@media (max-width: 900px) {
  .pdp__hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .pdp__gallery { position: static; }
  .pdp__image-main { aspect-ratio: 4 / 3; max-height: 400px; }
}
@media (max-width: 680px) {
  .pdp { padding: 1rem 1rem 4rem; }
  .breadcrumb { padding: 0.75rem 1rem 0; }
  .pdp__buybox { padding: 1.25rem; }
  .pdp__panels { padding: 1.25rem 1rem 1.5rem; }
  .pdp__desc-lead { padding: 1rem; }
  .pdp__highlights { grid-template-columns: 1fr; }
  .mesure-fields { grid-template-columns: 1fr; }
  .pdp__tab { padding: 0.875rem 1rem; font-size: 0.75rem; }
  .pdp__tiers { gap: 0.25rem; }
  .pdp__tier { font-size: 0.625rem; padding: 0.25rem 0.45rem; }
}
