/* =========================================================
   Fiche produit (/produit/REF) et panier (/panier)
   ========================================================= */
.cart-btn { position: relative; width: 44px; padding: 0; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--deal, #e4572e); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.15); } }

.p-page, .c-page { padding: 36px 0 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.p-msg { padding: 40px 0; color: var(--muted); font-size: 17px; }
.p-msg h1, .p-msg h2 { color: var(--ink); font-size: 28px; margin-bottom: 10px; }
.p-msg a:not(.h-link) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.p-main { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.p-photo { aspect-ratio: 4 / 3; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: #b4bfcd; overflow: hidden; }
.p-photo svg { width: 55%; height: auto; stroke-width: .6; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-photo-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.p-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.p-tags span { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.p-tags .a { color: #1d6b3a; }
.p-info h1 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.1; }
.p-specline { color: var(--muted); font-size: 17px; margin-top: 10px; }
.p-price { font-family: var(--head); font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin-top: 26px; line-height: 1; }
.p-ttc { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.p-buy { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.p-add { height: 52px; padding: 0 26px; font-size: 16px; }
.p-add[disabled] { opacity: .5; pointer-events: none; }
.p-stock { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
.p-perks { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.p-perks li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.p-perks b { color: var(--ink); }

.p-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.p-details h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.p-specs { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; font-size: 15.5px; }
.p-specs dt, .p-specs dd { padding: 9px 0; border-bottom: 1px solid var(--line); }
.p-specs dt { color: var(--muted); }
.p-desc { color: #3d4046; font-size: 16px; white-space: pre-line; }
.p-grade p { color: var(--muted); font-size: 15.5px; }
.p-grade ul { list-style: none; margin-top: 14px; }
.p-grade li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: #3d4046; }
.p-grade li b { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line); font-size: 13px; }

/* Panier */
.c-page h1 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; margin-bottom: 28px; }
.c-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: start; }
.c-lines { list-style: none; border-top: 1px solid var(--line); }
.c-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.c-thumb { width: 88px; height: 70px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: #b4bfcd; overflow: hidden; }
.c-thumb svg { width: 60px; height: 50px; stroke-width: 1.2; }
.c-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-line h3 { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.c-line h3 a:hover { text-decoration: underline; }
.c-line p { color: var(--muted); font-size: 14px; }
.c-line .c-remove { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 2px; margin-top: 6px; }
.c-line .c-remove:hover { color: #9b1c1c; }
.c-line .c-price { font-family: var(--head); font-weight: 800; font-size: 19px; white-space: nowrap; }
.c-line.gone { opacity: .55; }
.c-line.gone .c-price { text-decoration: line-through; }
.c-note { color: var(--muted); font-size: 14.5px; margin-top: 16px; }
.c-side { position: sticky; top: 190px; }
.c-total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.c-total span { font-weight: 600; }
.c-total strong { font-family: var(--head); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.c-how { color: var(--muted); font-size: 15px; margin: 14px 0 18px; }
.c-how b { color: var(--ink); }
.c-form { padding: 22px; }

/* Cartes du stock : lien vers la fiche + ajout au panier */
.item-link { color: inherit; }
.item-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.item-want.added { background: #1d6b3a; }

@media (max-width: 1000px) {
  .p-main, .c-grid { grid-template-columns: 1fr; gap: 32px; }
  .p-details { grid-template-columns: 1fr; gap: 36px; margin-top: 48px; }
  .c-side { position: static; }
}
@media (max-width: 640px) {
  .cart-btn { width: 44px; }
  .p-page, .c-page { padding: 24px 0 64px; }
  .p-price { font-size: 34px; }
  .p-add { width: 100%; justify-content: center; }
  .c-line { grid-template-columns: 64px 1fr; }
  .c-thumb { width: 64px; height: 52px; }
  .c-line .c-price { grid-column: 2; }
}
.p-grade li b { width: auto; height: auto; flex: none; display: block; border: 0; border-radius: 0; font-size: 15.5px; min-width: 112px; color: var(--ink); }

/* Bouton « Mon compte » de l'en-tête */
.icon-btn { width: 44px; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }

/* Tunnel de commande (panier) */
.c-side .c-form { padding: 0; }
.c-signin { font-size: 14.5px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.c-signin a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.c-step { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.c-step legend { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 17px; margin-bottom: 12px; padding: 0; }
.c-step legend span { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; display: grid; place-items: center; }
.c-fields { padding: 18px 18px 4px; }
.c-choices { display: grid; gap: 8px; }
.c-choices + .c-fields { margin-top: 10px; }
.c-choice { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.c-choice[hidden] { display: none; }
.c-choice:hover { border-color: #c3ccd8; }
.c-choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.c-choice input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.c-choice b { display: block; font-size: 15.5px; }
.c-choice small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.c-choice em { font-style: normal; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.c-choice em svg { width: 22px; height: 22px; color: var(--muted); }
.c-choice select { font: inherit; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: #fff; }
.c-alma-plan { font-size: 13.5px; color: var(--muted); margin-top: 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; }
.c-note-field { display: block; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.c-note-field textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #d3dae4; border-radius: 10px; font: inherit; font-weight: 400; font-size: 16px; resize: vertical; }
.c-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 15px; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); }
.c-sum dd { color: var(--ink); font-weight: 600; text-align: right; }
.c-pay { width: 100%; height: 54px; font-size: 16.5px; margin-top: 16px; }
.c-pay[disabled] { opacity: .6; pointer-events: none; }
.c-secure { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 12px; }
.c-secure svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.c-cancel { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fff7e6; color: #7a4b00; font-size: 14.5px; }
.c-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.c-side .form-msg { margin-top: 12px; }
.m-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.p-msg .m-links a.btn-dark { color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  .c-choice { grid-template-columns: auto 1fr; }
  .c-choice em { grid-column: 2; }
  .c-fields { padding: 16px 14px 2px; }
}
