/* ============================================================
   NYRIX — Product Showcase layout (Nomad-style structure,
   reskinned in NYRIX carbon + copper identity).
   Loads AFTER product.css (reuses its tokens & components).
   ============================================================ */

/* Tokens / base components this layout relies on but that the homepage
   stylesheet doesn't expose globally: the max content width and a base
   (unscoped) eyebrow. Defined here so showcase.css is self-sufficient. */
:root { --maxw: 1400px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Restraint: Unbounded headings at weight 600 max ---------- */
.pdp-title, .fb-text h2, .section-head h2, .acc-head, .also h3 { font-weight: 600; letter-spacing: -0.3px; }
.pdp-price { font-weight: 600; }

/* ---------- Layout: gallery + sticky buy column ---------- */
.pdp { max-width: var(--maxw); margin: 0 auto; padding: 2rem 2rem 4rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: start; }

.pdp-gallery { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 0.65rem; }
.pdp-thumb { aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 0.35rem; transition: all 0.3s ease; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb:hover { border-color: rgba(232,99,44,0.5); }
.pdp-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pdp-main { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.pdp-main::before { content: ''; position: absolute; width: 72%; height: 72%; background: radial-gradient(circle, rgba(232,99,44,0.26) 0%, rgba(232,99,44,0.07) 44%, transparent 70%); filter: blur(8px); z-index: 0; }
.pdp-main img { position: relative; z-index: 1; width: 84%; height: 84%; object-fit: contain; cursor: zoom-in; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.pdp-main.zoom img { transform: scale(1.7); cursor: zoom-out; }

.pdp-buy { position: sticky; top: 100px; }
.pdp-rating { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; font-size: 0.82rem; color: var(--text-secondary); }
.pdp-rating .stars { color: var(--accent); letter-spacing: 2px; }
.pdp-title { font-size: 2.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.pdp-price { font-family: 'Unbounded', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.8rem; }
.pdp-price .was { font-family: 'Manrope', sans-serif; font-size: 1rem; color: var(--text-secondary); text-decoration: line-through; opacity: 0.7; font-weight: 600; }
.pdp-price .save { background: linear-gradient(135deg, #E8632C, #F0884E); color: #0A0A0C; font-family: 'Manrope', sans-serif; font-size: 0.78rem; font-weight: 800; padding: 0.25rem 0.7rem; border-radius: 50px; }
.pdp-sub { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); margin: 1.2rem 0 2rem; max-width: 46ch; }

/* option groups */
.opt-group { margin-bottom: 1.8rem; }
.opt-label { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; margin-bottom: 0.8rem; }
.opt-label b { color: var(--text-primary); font-weight: 700; margin-left: 0.3rem; }
body.rtl .opt-label b { margin-left: 0; margin-right: 0.3rem; }

.size-pills { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.size-pill { padding: 0.7rem 1.2rem; border-radius: 12px; border: 1px solid var(--border); background: rgba(22,22,26,0.6); color: var(--text-secondary); cursor: pointer; font-family: 'Manrope', sans-serif; font-size: 0.9rem; font-weight: 600; transition: all 0.25s ease; }
.size-pill:hover { border-color: rgba(232,99,44,0.5); color: var(--text-primary); }
.size-pill.active { border-color: var(--accent); color: var(--text-primary); background: rgba(232,99,44,0.1); }

.swatches { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border); transition: all 0.25s ease; position: relative; }
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.pdp-actions { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.5rem 0 1.2rem; }
.pdp-actions .btn { padding: 1.15rem 2rem; font-size: 1rem; }

.ship-line { font-size: 0.82rem; color: var(--text-secondary); padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.ship-line a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* overview bullets */
.overview-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.overview-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.92rem; color: var(--text-secondary); }
.overview-list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.overview-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 2rem; }
  .pdp-buy { position: static; }
  .pdp-gallery { grid-template-columns: 64px 1fr; }
}
@media (max-width: 520px) {
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .pdp-thumb { width: 64px; flex-shrink: 0; }
}

/* ---------- "Also bought" mini rail ---------- */
.also { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem 4rem; }
.also h3 { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; }
.also-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.also-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-surface); transition: all 0.3s ease; }
.also-card:hover { border-color: rgba(232,99,44,0.5); transform: translateY(-3px); }
.also-card .thumb-img { width: 72px; height: 72px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.also-card .thumb-img img { width: 100%; height: 100%; object-fit: contain; padding: 0.4rem; }
.also-card .meta span { font-size: 0.75rem; color: var(--text-secondary); }
.also-card .meta strong { display: block; font-size: 0.95rem; color: var(--text-primary); font-weight: 700; margin: 0.1rem 0 0.3rem; }
.also-card .meta .p { color: var(--accent); font-weight: 800; font-size: 0.95rem; }
@media (max-width: 700px) { .also-grid { grid-template-columns: 1fr; } }

/* ---------- Alternating full-bleed feature bands ---------- */
.feature-band { border-top: 1px solid var(--border); }
.feature-band-inner { max-width: var(--maxw); margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 460px; }
.feature-band.flip .fb-visual { order: 2; }
.fb-visual { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.fb-visual::before { content: ''; position: absolute; width: 70%; height: 70%; background: radial-gradient(circle, rgba(232,99,44,0.22) 0%, transparent 68%); filter: blur(10px); }
.fb-visual img { position: relative; z-index: 1; width: 70%; object-fit: contain; }
.fb-text { display: flex; flex-direction: column; justify-content: center; padding: 4rem 3.5rem; }
.fb-text .eyebrow { margin-bottom: 0.9rem; }
.fb-text h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 1rem; }
.fb-text p { font-size: 1.02rem; line-height: 1.75; color: var(--text-secondary); max-width: 46ch; }
@media (max-width: 860px) {
  .feature-band-inner { grid-template-columns: 1fr; min-height: 0; }
  .feature-band.flip .fb-visual { order: 0; }
  .fb-text { padding: 2.5rem 1.8rem; }
  .fb-visual { min-height: 300px; }
}

/* ---------- Accordions ---------- */
.accordions { max-width: 880px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.accordions > .eyebrow { margin-bottom: 1.5rem; }
.acc { border-bottom: 1px solid var(--border); }
.acc-head { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; color: var(--text-primary); font-family: 'Unbounded', sans-serif; font-size: 1.05rem; font-weight: 700; text-align: left; }
body.rtl .acc-head { text-align: right; }
.acc-head .pm { width: 26px; height: 26px; flex-shrink: 0; position: relative; transition: transform 0.3s ease; color: var(--accent); }
.acc.open .acc-head .pm { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.acc-body-inner { padding: 0 0 1.6rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; }
.acc-body-inner ul { list-style: none; display: grid; gap: 0.5rem; }
.acc-body-inner li { padding-left: 1.3rem; position: relative; }
body.rtl .acc-body-inner li { padding-left: 0; padding-right: 1.3rem; }
.acc-body-inner li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
body.rtl .acc-body-inner li::before { left: auto; right: 0; }
.acc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.acc-cols h4 { font-family: 'Manrope', sans-serif; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-primary); margin-bottom: 0.7rem; }
.spec-mini { width: 100%; border-collapse: collapse; }
.spec-mini td { padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-mini td:first-child { color: var(--text-secondary); }
.spec-mini td:last-child { color: var(--text-primary); font-weight: 700; text-align: right; }
body.rtl .spec-mini td:last-child { text-align: left; }
@media (max-width: 700px) { .acc-cols { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ---------- "Plus d'infos" (DETAILS) long-description typography ----------
   Readability fix ONLY, scoped to the long-description accordion (#acc-info)
   so the Specifications / Shipping accordions and the rest of the page are
   untouched. */
#acc-info .acc-body-inner {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #C9CCD1;
  font-weight: 400;
}
#acc-info .acc-body-inner p { margin: 0 0 1.1rem; }
#acc-info .acc-body-inner p:last-child { margin-bottom: 0; }
#acc-info .acc-body-inner h2,
#acc-info .acc-body-inner h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: #F4F4F6;
  margin: 2.25rem 0 0.9rem;
}
#acc-info .acc-body-inner h2:first-child,
#acc-info .acc-body-inner h3:first-child { margin-top: 0; }
#acc-info .acc-body-inner ul,
#acc-info .acc-body-inner ol { margin: 0 0 1.1rem; gap: 0.6rem; }
#acc-info .acc-body-inner li { line-height: 1.7; }
