/* =====================================================================
   PRODUCT PAGE (loaded after style.css)
   ===================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 18px; padding-bottom: 26px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--abyss); text-decoration: underline; }
.crumbs [aria-current] { color: var(--abyss); font-weight: 600; }

.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: 104px; position: relative; }
.pd::before { content: ""; position: absolute; left: -10%; top: -120px; width: 70%; height: 800px; z-index: -1; background: radial-gradient(closest-side, rgba(29, 60, 120, .14), transparent 70%); pointer-events: none; }

/* Gallery */
.pd__gallery { position: sticky; top: 104px; }
.pd__stage { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--abyss); aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.pd__stage img { width: 100%; height: 100%; object-fit: cover; }
.pd__stage img.is-contain { object-fit: contain; padding: 8%; background: radial-gradient(circle at 50% 40%, var(--label), var(--abyss) 70%); }
.pd__tag[hidden] { display: none; }
.pd__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd__thumbs[hidden] { display: none; }
.pd__thumbs button { width: 88px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden; background: var(--abyss); opacity: .65; transition: opacity .25s, border-color .25s, transform .3s var(--ease); }
.pd__thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.pd__thumbs button[aria-current="true"] { border-color: var(--aqua); opacity: 1; }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs img.is-contain { object-fit: contain; padding: 8%; }

/* Info */
.pd__title { font-size: clamp(38px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.045em; color: var(--abyss); line-height: 1; }
.pd__ar { margin-top: 10px; font-size: 22px; color: var(--label); text-align: left; }
.pd__priceline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 24px; }
.pd__price { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--abyss); font-variant-numeric: tabular-nums; }
.pd__short { margin-top: 20px; font-size: 17.5px; color: var(--muted); max-width: 44ch; }

/* Déjà fait pour vous */
.done { margin-top: 30px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.done__head { display: flex; gap: 14px; align-items: center; }
.done__icon { width: 46px; height: 46px; margin: 0; }
.done__icon svg { width: 20px; height: 20px; }
.done__title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--abyss); }
.done__sub { font-size: 14px; color: var(--muted); }
.done__sub strong { color: var(--abyss); }
.done__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.done__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.done__list li span { text-decoration: line-through; text-decoration-color: var(--aqua); text-decoration-thickness: 2px; }
.done__list .ico { color: var(--aqua-deep); margin-top: 3px; width: 16px; height: 16px; }
.done__left { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-md); background: var(--abyss); color: #fff; }
.done__left span { font-size: 13.5px; opacity: .75; }
.done__left strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--aqua-light); line-height: 1; }

/* Buy */
.buy { display: flex; gap: 12px; margin-top: 28px; }
.buy .qty { flex: none; height: 56px; }
.buy__add { flex: 1; min-height: 56px; }
.buy__add.added { background: var(--aqua); color: var(--abyss); }
.buy__direct { margin-top: 12px; min-height: 56px; }
.buy__total { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
.buy__total strong { color: var(--abyss); }

.assure { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.assure li { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.assure li + li { border-left: 1px solid var(--line); }
.assure svg { width: 24px; height: 24px; color: var(--aqua-deep); }
.assure strong { display: block; font-size: 14px; color: var(--abyss); line-height: 1.3; }
.assure span { font-size: 12.5px; color: var(--muted); }

/* Tabs */
.details { padding: 96px 0; }
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { flex: none; padding: 11px 22px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: transparent; color: var(--abyss); font-weight: 600; font-size: 14.5px; transition: background .25s, color .25s, border-color .25s; }
.tabs [role="tab"]:hover { border-color: var(--abyss); }
.tabs [role="tab"][aria-selected="true"] { background: var(--abyss); border-color: var(--abyss); color: #fff; }
.panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.panel[hidden] { display: none; }
.panel__desc h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.04em; color: var(--abyss); margin-bottom: 20px; }
.panel__desc h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--label); font-size: 1.12em; letter-spacing: -.01em; }
.panel__desc p { font-size: 16.5px; color: var(--muted); max-width: 58ch; }
.panel__desc p + p { margin-top: 14px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.facts div { padding: 24px 22px; }
.facts div:nth-child(1), .facts div:nth-child(2) { border-bottom: 1.5px dashed var(--line-strong); }
.facts div:nth-child(odd) { border-right: 1.5px dashed var(--line-strong); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--abyss); }
.uses { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.uses--3 { grid-template-columns: repeat(3, 1fr); }
.uses li { padding: 26px 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); }
.uses .step-num { width: 46px; height: 46px; font-size: 16px; margin-bottom: 16px; }
.uses li:first-child .step-num { background: var(--aqua); }
.uses h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--abyss); margin-bottom: 6px; }
.uses p { font-size: 14.5px; color: var(--muted); }

/* Related */
.products--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.products--4 .product-meta { flex-direction: column; gap: 2px; }
.products--4 .product-meta h3 { font-size: 16.5px; }

/* Sticky bar (phone) */
.buybar { display: none; }

@media (max-width: 1000px) {
  .pd { grid-template-columns: minmax(0, 1fr); }
  .pd__gallery { position: static; max-width: 620px; }
  .panel { grid-template-columns: 1fr; gap: 32px; }
  .uses { grid-template-columns: 1fr 1fr; }
  .products--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-product .nav-wrap { margin-bottom: 0; }
  .crumbs { padding-top: 6px; padding-bottom: 16px; font-size: 12.5px; }
  .pd { padding-bottom: 72px; gap: 28px; }
  .pd__stage { border-radius: var(--r-lg); }
  .pd__thumbs button { width: 68px; }
  .pd__price { font-size: 44px; }
  .done { padding: 18px; }
  .done__list { grid-template-columns: 1fr; }
  .assure { grid-template-columns: 1fr; }
  .assure li { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
  .assure li + li { border-left: 0; border-top: 1px solid var(--line); }
  .details { padding: 72px 0; }
  .tabs { justify-content: flex-start; margin-bottom: 32px; }
  .uses, .uses--3 { grid-template-columns: 1fr; }
  .products--4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .products--4 .product-body { padding: 12px 4px 4px; }
  .products--4 .product-ar, .products--4 .product-foot { display: none; }
  .products--4 .add { margin-top: 10px; min-height: 42px; font-size: 13px; }
  .buybar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70;
    padding: 8px 8px 8px 18px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow);
    transform: translateY(140%); transition: transform .4s var(--ease);
  }
  .buybar.is-on { transform: none; }
  .buybar > div { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
  .buybar__name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__price { font-family: var(--serif); font-size: 22px; color: var(--abyss); }
  .buybar .btn--wa { width: 42px; padding: 0; }
  .page-product .footer { padding-bottom: 110px; }
  .page-product .toast { bottom: 88px; }
}
