/* ============================================================
   LISS BUZZ × NARA — Boutique : cartes produit, fiche produit,
   panier (tiroir), toasts, pages succès/annulation.
   Réutilise les variables de styles.css (thème sombre rose / or).
   ============================================================ */

/* ── Utilitaires ── */
.lb-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lb-overlay[hidden], .lb-cart[hidden], .lb-cart [hidden], .cart-count[hidden] { display: none !important; }
html.lb-lock { overflow: hidden; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.todo { background: rgba(201,169,110,.18); color: var(--gold-light); padding: 0 .3em; border-radius: 3px; font-style: normal; }

/* ── Bouton panier du header ── */
.topbar-actions .cart-btn {
  position: relative;
  display: flex; align-items: center; gap: .3rem;
  color: var(--grey-mid);
  font-family: var(--font-body); font-weight: 100;
  font-size: .8rem; letter-spacing: .08em;
  transition: color var(--transition);
}
.topbar-actions .cart-btn:hover { color: var(--white); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px;
  background: var(--rose); color: var(--white);
  border-radius: var(--radius-pill);
  font-size: .62rem; font-weight: 400; letter-spacing: 0; line-height: 1;
}
.cart-btn.is-bump .cart-count { animation: lb-bump .4s ease; }
@keyframes lb-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* Footer : les liens légaux (CGV, retours…) passent à la ligne sur petit écran */
.footer-bottom nav { flex-wrap: wrap; row-gap: .4rem; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--rose); outline-offset: 2px;
}

/* ── Cartes produit (shop + produits associés) ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.product-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  position: relative;
}
.product-card:hover { border-color: rgba(229,115,153,.2); transform: translateY(-4px); }
.product-img { width: 100%; aspect-ratio: 1; background: #fff; overflow: hidden; }
.product-img a { display: block; width: 100%; height: 100%; }
.product-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-card.out-of-stock .product-img img { opacity: .55; }
.product-badge {
  position: absolute; z-index: 2; pointer-events: none;
  top: .75rem; left: .75rem;
  padding: .18rem .7rem;
  border-radius: 4px;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 400;
}
.badge-new { background: var(--rose); color: var(--white); }
.badge-best { background: var(--gold); color: var(--black); }
.badge-promo { background: rgba(20,20,20,.88); border: 1px solid rgba(229,115,153,.4); color: var(--rose-pale); }
.badge-enzy { background: rgba(20,20,20,.88); border: 1px solid rgba(201,169,110,.4); color: var(--gold-light); }

.product-body { padding: 1.2rem; }
.product-brand { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-dark); margin-bottom: .3rem; }
.product-name { font-size: .88rem; font-weight: 100; color: var(--white); margin-bottom: .4rem; line-height: 1.35; }
.product-name a { color: inherit; }
.product-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-name a:focus-visible { outline: none; }
.product-name a:focus-visible::after { outline: 2px solid var(--rose); outline-offset: -2px; border-radius: var(--radius-lg); }
.product-desc { font-size: .72rem; color: var(--grey-dark); line-height: 1.6; margin-bottom: .9rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.product-price { font-size: 1rem; font-weight: 100; color: var(--white); }
.product-price .old { color: var(--grey-dark); text-decoration: line-through; font-size: .72rem; display: block; }
.product-price .unit { color: var(--grey-mid); font-size: .7rem; margin-left: .35rem; }
.product-price.stock-out { font-size: .8rem; color: var(--rose-pale); letter-spacing: .04em; }
.add-btn {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(229,115,153,.1);
  border: 1px solid rgba(229,115,153,.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all .25s;
  color: var(--rose-pale);
  flex-shrink: 0;
}
.add-btn:hover { background: var(--rose); border-color: var(--rose); color: var(--white); }

@media (max-width: 1000px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .products-grid { grid-template-columns: 1fr; } }

/* ── Fiche produit ── */
.pdp { padding: 2.5rem 0 var(--space-xl); background: var(--black); }
.pdp-crumbs { font-size: .72rem; color: var(--grey-dark); margin-bottom: 1.8rem; }
.pdp-crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.pdp-crumbs li + li::before { content: '\203A'; margin-right: .4rem; color: var(--grey-dark); }
.pdp-crumbs a { color: var(--grey-mid); }
.pdp-crumbs a:hover { color: var(--rose); }
.pdp-crumbs [aria-current] { color: var(--grey-light); }

.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.pdp-gallery-main {
  background: #fff; border: 1px solid var(--black-border); border-radius: var(--radius-lg);
  aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pdp-thumbs button {
  width: 68px; height: 68px; padding: 0; background: #fff;
  border: 2px solid transparent; border-radius: var(--radius-md); overflow: hidden; opacity: .7;
}
.pdp-thumbs button[aria-current="true"] { border-color: var(--rose); opacity: 1; }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdp-brand { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-mid); margin-bottom: .6rem; }
.pdp-title { font-family: var(--font-display); font-weight: 100; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--white); margin-bottom: 1rem; }
.pdp-badge {
  display: inline-block; margin-bottom: 1.2rem;
  padding: .18rem .7rem; border-radius: 4px;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 400;
}
.pdp-price { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.6rem; }
.pdp-price-now { font-size: 1.8rem; font-weight: 100; color: var(--white); }
.pdp-price-old { font-size: 1rem; color: var(--grey-dark); text-decoration: line-through; }
.pdp-tax { font-size: .68rem; color: var(--grey-dark); letter-spacing: .04em; }

.pdp-variants { border: 0; margin-bottom: 1.4rem; min-inline-size: 0; }
.pdp-variants legend { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-mid); margin-bottom: .7rem; padding: 0; }
.pdp-variant-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pdp-variant { position: relative; }
.pdp-variant input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.pdp-variant span {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.2rem; border: 1px solid var(--black-border); border-radius: var(--radius-pill);
  font-size: .8rem; color: var(--grey-light); transition: border-color .2s, background .2s;
}
.pdp-variant small { font-size: .62rem; color: var(--rose-pale); letter-spacing: .04em; }
.pdp-variant input:checked + span { border-color: var(--rose); background: rgba(229,115,153,.1); color: var(--white); }
.pdp-variant input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.pdp-variant input:disabled { cursor: not-allowed; }
.pdp-variant input:disabled + span { opacity: .45; text-decoration: line-through; }
.pdp-variant input:disabled + span small { text-decoration: none; }

.pdp-buy-row { display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; }
.pdp-qty { display: inline-flex; align-items: center; border: 1px solid var(--black-border); border-radius: var(--radius-pill); }
.pdp-qty button { width: 42px; height: 46px; color: var(--grey-light); font-size: 1.1rem; }
.pdp-qty button:hover:not(:disabled) { color: var(--rose); }
.pdp-qty button:disabled { opacity: .35; cursor: not-allowed; }
.pdp-qty input {
  width: 44px; text-align: center; background: transparent; border: 0; color: var(--white);
  font-family: inherit; font-size: .95rem; -moz-appearance: textfield;
}
.pdp-qty input::-webkit-outer-spin-button, .pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-add { flex: 1 1 220px; justify-content: center; min-height: 46px; }
.pdp-stock { margin-top: 1rem; font-size: .75rem; color: var(--gold-light); letter-spacing: .04em; }
.pdp-stock.is-out { color: var(--rose-pale); }
.pdp-ship { margin-top: .6rem; font-size: .75rem; color: var(--grey-mid); }

.pdp-desc { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--black-border); }
.pdp-desc h2 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 300; color: var(--gold); margin-bottom: 1rem; }
.pdp-desc-body p { font-size: .88rem; color: var(--grey-mid); line-height: 1.85; margin-bottom: .9rem; }
.pdp-desc-body strong { color: var(--white); font-weight: 400; }
.pdp-desc-body ul, .pdp-desc-body ol { padding-left: 1.3rem; margin-bottom: .9rem; }
.pdp-desc-body ul { list-style: disc; }
.pdp-desc-body ol { list-style: decimal; }
.pdp-desc-body li { font-size: .88rem; color: var(--grey-mid); line-height: 1.8; margin-bottom: .4rem; }
.pdp-desc-body li::marker { color: var(--rose); }

.pdp-related { padding: var(--space-lg) 0 var(--space-xl); background: var(--black-soft); border-top: 1px solid var(--black-border); }

@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .pdp-add { flex-basis: 100%; }
}

/* ── Tiroir panier ── */
.lb-overlay {
  position: fixed; inset: 0; z-index: 1900;
  background: rgba(0,0,0,.65);
  opacity: 0; transition: opacity .25s ease;
}
.lb-overlay.is-open { opacity: 1; }
.lb-cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2000;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--black-soft);
  border-left: 1px solid var(--black-border);
  box-shadow: -12px 0 40px rgba(0,0,0,.55);
  transform: translateX(100%); transition: transform .25s ease;
}
.lb-cart.is-open { transform: none; }
.lb-cart:focus { outline: none; }
.lb-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--black-border);
}
.lb-cart-head h2 { font-family: var(--font-display); font-weight: 100; font-size: 1.3rem; color: var(--white); }
.lb-cart-x { width: 38px; height: 38px; border-radius: 50%; font-size: 1.6rem; line-height: 1; color: var(--grey-light); }
.lb-cart-x:hover { color: var(--rose); background: rgba(229,115,153,.08); }
.lb-cart-body { flex: 1; overflow-y: auto; padding: 0 1.4rem; }
.lb-cart-status { padding: 1.4rem 0; font-size: .82rem; color: var(--grey-mid); }
.lb-cart-empty { padding: 3rem 0; text-align: center; color: var(--grey-mid); font-size: .9rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }

.lb-cart-list { list-style: none; }
.lb-line { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--black-border); }
.lb-line-img { display: block; width: 72px; height: 72px; background: #fff; border-radius: var(--radius-md); overflow: hidden; }
.lb-line-img img { width: 100%; height: 100%; object-fit: contain; }
.lb-line-name { display: block; font-size: .85rem; color: var(--white); line-height: 1.35; margin-bottom: .2rem; }
a.lb-line-name:hover { color: var(--rose); }
.lb-line-variant, .lb-line-unit { font-size: .72rem; color: var(--grey-mid); }
.lb-line-warn { margin-top: .4rem; font-size: .72rem; color: var(--rose-pale); }
.lb-line.is-unavailable .lb-line-img { opacity: .5; }
.lb-qty { display: inline-flex; align-items: center; gap: .2rem; margin-top: .7rem; border: 1px solid var(--black-border); border-radius: var(--radius-pill); }
.lb-qty button { width: 30px; height: 30px; color: var(--grey-light); font-size: 1rem; border-radius: 50%; }
.lb-qty button:hover:not(:disabled) { color: var(--rose); }
.lb-qty button:disabled { opacity: .35; cursor: not-allowed; }
.lb-qty-val { min-width: 24px; text-align: center; font-size: .85rem; color: var(--white); }
.lb-line-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.lb-line-total { font-size: .9rem; font-weight: 300; color: var(--white); }
.lb-line-del { font-size: .68rem; color: var(--grey-mid); text-decoration: underline; letter-spacing: .04em; }
.lb-line-del:hover { color: var(--rose); }

.lb-cart-foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--black-border); background: var(--black-card); }
.lb-ship { margin-bottom: 1rem; }
.lb-ship-text { display: block; font-size: .75rem; color: var(--gold-light); margin-bottom: .5rem; }
.lb-ship-bar { height: 4px; background: var(--black-border); border-radius: var(--radius-pill); overflow: hidden; }
.lb-ship-fill { display: block; height: 100%; width: 0; background: var(--rose); transition: width .3s ease; }
.lb-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--grey-light); }
.lb-subtotal-val { font-size: 1.15rem; font-weight: 300; color: var(--white); }
.lb-note { margin: .5rem 0 1rem; font-size: .7rem; color: var(--grey-dark); line-height: 1.5; }
.lb-cart-error { margin-bottom: .8rem; padding: .7rem .9rem; font-size: .75rem; color: var(--rose-pale); border: 1px solid rgba(229,115,153,.35); border-radius: var(--radius-md); background: rgba(229,115,153,.07); }
.lb-checkout { width: 100%; justify-content: center; }
.lb-continue { display: block; margin: .9rem auto 0; font-size: .75rem; color: var(--grey-mid); text-decoration: underline; }
.lb-continue:hover { color: var(--rose); }

/* ── Toasts ── */
.lb-toasts { position: fixed; left: 1rem; bottom: 1rem; z-index: 2100; display: flex; flex-direction: column; gap: .5rem; max-width: min(400px, calc(100vw - 2rem)); pointer-events: none; }
.lb-toast {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: .9rem;
  padding: .8rem 1rem; font-size: .8rem; color: var(--white);
  background: var(--black-card); border: 1px solid rgba(229,115,153,.4); border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
  animation: lb-in .25s ease;
  transition: opacity .3s;
}
.lb-toast.is-leaving { opacity: 0; }
.lb-toast-link { flex-shrink: 0; font-size: .74rem; color: var(--rose); text-decoration: underline; }
@keyframes lb-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 480px) {
  .lb-toasts { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; }
  .lb-line { grid-template-columns: 60px 1fr auto; gap: .7rem; }
  .lb-line-img { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-cart, .lb-overlay, .lb-toast, .lb-ship-fill, .product-card, .product-img img { transition: none; animation: none; }
  .cart-btn.is-bump .cart-count { animation: none; }
}

/* ── Pages succès / annulation ── */
.notice-page { padding: 6rem 2rem 7rem; text-align: center; max-width: 640px; margin: 0 auto; }
.notice-page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.notice-page p { font-size: .9rem; color: var(--grey-mid); line-height: 1.85; margin-bottom: 1rem; }
.notice-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
