/* Product page extras: price per set, compact EU label badges. */

/* ── Price per set ───────────────────────────────────────── */
.set-prices { margin-top: 0.9rem; display: grid; gap: 0.4rem; max-width: 26rem; }
.set-prices-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
.set-price-row {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 0.75rem; row-gap: 0.1rem;
  width: 100%; padding: 0.5rem 0.75rem; text-align: left; font: inherit; color: var(--text, #141a2a);
  background: #fff; border: 1px solid var(--border-mid, #cbd5e1); border-radius: 6px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.set-price-row:hover { border-color: var(--sky, #0ea5e9); }
.set-price-row:focus-visible { outline: 2px solid var(--sky, #0ea5e9); outline-offset: 2px; }
.set-price-row.is-active { border-color: var(--sky, #0ea5e9); box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10); }
.set-price-qty { font-size: 0.9rem; font-weight: 600; }
.set-price-amount { justify-self: end; display: flex; align-items: baseline; gap: 0.5rem; text-align: right; }
.set-price-amount strong { font-size: 1.05rem; font-weight: 700; }
.set-price-amount small { font-size: 0.75rem; color: #64748b; }
.set-price-free { grid-column: 1 / -1; font-size: 0.75rem; color: #15803d; display: flex; align-items: center; gap: 0.35rem; }
@media (prefers-reduced-motion: reduce) { .set-price-row { transition: none; } }
@media (max-width: 400px) {
  .set-price-row { padding: 0.5rem 0.6rem; column-gap: 0.5rem; }
  .set-price-amount { flex-direction: column; align-items: flex-end; gap: 0; }
}

/* ── EU label badges on one row (phones) ─────────────────── */
.eu-label .eu-label-summary { flex-wrap: nowrap; }
.eu-label .eu-label-chip { min-width: 0; }
@media (max-width: 575.98px) {
  .eu-label .eu-label-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
  .eu-label .eu-label-chip {
    display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center;
    gap: 0.05rem 0.3rem; padding: 0.35rem 0.25rem; font-size: 0.9rem; text-align: center;
  }
  .eu-label .eu-label-chip small { grid-column: 1 / -1; font-size: 0.68rem; line-height: 1.2; white-space: nowrap; }
}

/* Cards: letters only, no frame */
.eu-label--compact { margin-top: 0; margin-bottom: 0.75rem; }
.eu-label--compact .eu-label-summary { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0.25rem; }
.eu-label--compact .eu-label-chip {
  display: inline-flex; padding: 0; border: 0; background: none; gap: 0.2rem; font-size: 0.75rem; min-width: 0;
}
.eu-label--compact .eu-label-chip > i { font-size: 0.75rem; }
.eu-label--compact .eu-label-chip small { display: none; }
.eu-label--compact .eu-label-badge { min-width: 1.2rem; height: 1.2rem; padding: 0 0.45rem 0 0.25rem; font-size: 0.72rem; }
@media (max-width: 575.98px) {
  .eu-label--compact .eu-label-summary { display: flex; }
  .eu-label--compact .eu-label-chip { display: inline-flex; padding: 0; }
}

/* Product page, phone buyers: delivery summary, cheaper same-size tyres, sticky call button. */
.pd-delivery { margin-top: 0.7rem; display: grid; gap: 0.3rem; font-size: 0.85rem; color: #334155; }
.pd-delivery-row { display: flex; align-items: baseline; gap: 0.45rem; }
.pd-delivery-row i { color: #20709a; flex: 0 0 auto; }
.pd-cheaper { display: grid; gap: 0.4rem; }
.pd-cheaper-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; margin: 0; }
.pd-cheaper-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; align-items: center;
  padding: 0.55rem 0.8rem; border: 1px solid var(--border, #e2e8f0); border-radius: 0.75rem;
  background: #fff; color: inherit; text-decoration: none; min-height: 44px;
}
.pd-cheaper-row:hover { border-color: var(--sky, #0ea5e9); }
.pd-cheaper-name { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-cheaper-price { justify-self: end; display: flex; align-items: baseline; gap: 0.4rem; text-align: right; }
.pd-cheaper-price small { font-size: 0.75rem; color: #64748b; }
.pd-cheaper-save { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 600; color: #16a34a; }
.pd-sticky-call { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.product-sticky-cta .price-block { min-width: 0; }
/* Le bouton « Ajouter au panier » principal est à l'écran : la barre collante
   s'efface (IntersectionObserver, voir product_detail.html). */
.product-sticky-cta.is-parked { display: none !important; }

/* Phones: price, lots, delivery and add-to-cart come before the size tiles. */
@media (max-width: 991.98px) {
  .product-info-col { display: flex; flex-direction: column; }
  .product-info-col > .pd-specs { order: 5; margin-top: 1rem; }
}
@media (max-width: 575.98px) {
  .product-visual { min-height: 0 !important; padding: .75rem !important; }
  .product-visual img { max-height: 190px !important; }
}
