/* =====================================================================
   LOOP & SHOP — Composants boutique
   ===================================================================== */

/* ============================ CARTE PRODUIT ============================ */
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}
.product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), opacity var(--t);
}
.product-card:hover .product-card__img { transform: scale(1.07); }
.product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .product-card__img--hover { opacity: 1; }

.product-card__badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  align-items: flex-start;
}

.product-card__actions {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  transform: translateX(12px);
  transition: all var(--t);
}
.product-card:hover .product-card__actions { opacity: 1; transform: none; }
.product-card__action {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  box-shadow: var(--sh-sm);
  transition: all var(--t-fast);
}
.product-card__action:hover { background: var(--ink); color: #fff; transform: scale(1.08); }
.product-card__action.is-active { background: var(--danger); color: #fff; }
.product-card__action.is-active svg { fill: currentColor; }

.product-card__cart {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition: all var(--t);
}
.product-card:hover .product-card__cart { opacity: 1; transform: none; }

.product-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.product-card__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.product-card__title {
  font-family: var(--font-heading);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.product-card__title a:hover { color: var(--brand-700); }
.product-card__rating { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-3); }
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.product-card__amount {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--ink);
}
.product-card__old {
  font-size: .88rem;
  color: var(--text-3);
  text-decoration: line-through;
}
.product-card__stock { font-size: .76rem; font-weight: 700; }
.product-card__stock--in  { color: var(--success); }
.product-card__stock--low { color: var(--warning); }
.product-card__stock--out { color: var(--danger); }

.product-card--out .product-card__media { opacity: .62; }

/* Carte produit horizontale (listes) */
.product-row {
  display: flex;
  gap: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: box-shadow var(--t);
}
.product-row:hover { box-shadow: var(--sh); }
.product-row__img {
  width: 118px; height: 118px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  flex-shrink: 0;
}
.product-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* ============================ CARROUSEL ============================ */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 calc((100% - 3 * 22px) / 4);
  scroll-snap-align: start;
  min-width: 0;
}
.carousel__nav {
  position: absolute;
  top: 34%;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh);
  z-index: 3;
  transition: all var(--t-fast);
}
.carousel__nav:hover { background: var(--ink); color: #fff; }
.carousel__nav--prev { left: -20px; }
.carousel__nav--next { right: -20px; }
.carousel__nav:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 1200px) { .carousel__item { flex-basis: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 991px)  {
  .carousel__item { flex-basis: calc((100% - 22px) / 2); }
  .carousel__nav { display: none; }
}
@media (max-width: 640px)  { .carousel__item { flex-basis: 72%; } .carousel__track { gap: 14px; } }

/* ========================== PAGE CATALOGUE ========================== */
.shop-layout {
  display: grid;
  grid-template-columns: 282px 1fr;
  gap: 40px;
  align-items: start;
}
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  padding-right: 6px;
}
.filter-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.filter-group:first-child { padding-top: 0; }
.filter-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.filter-group__title svg { transition: transform var(--t-fast); color: var(--text-3); }
.filter-group__title.is-closed svg { transform: rotate(-90deg); }
.filter-group__body { display: grid; gap: 10px; }
.filter-group__body.is-closed { display: none; }

.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  margin-left: -10px;
  border-radius: var(--r-xs);
  font-size: .89rem;
  color: var(--text-2);
  transition: all var(--t-fast);
}
.filter-list a:hover { background: var(--surface-2); color: var(--ink); }
.filter-list a.is-active { background: var(--brand-soft); color: var(--brand-700); font-weight: 700; }
.filter-list__count { font-size: .76rem; color: var(--text-3); }
.filter-list__sub { padding-left: 14px; }

.price-range { display: flex; align-items: center; gap: 10px; }
.price-range .input { padding: 9px 12px; font-size: .86rem; }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 26px;
}
.shop-toolbar__count { font-size: .88rem; color: var(--text-2); }
.shop-toolbar__count b { color: var(--ink); }
.shop-toolbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-toolbar .select { padding: 9px 36px 9px 14px; font-size: .86rem; width: auto; }

.view-toggle { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: var(--r-xs); }
.view-toggle button {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--text-3);
}
.view-toggle button.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-xs); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip svg { opacity: .6; }

.filters-toggle { display: none; }

/* ========================== PAGE PRODUIT ========================== */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}

.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__main {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery__main:hover img { transform: scale(1.5); }
.gallery__badges { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gallery__thumb {
  aspect-ratio: 1/1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-2);
  transition: border-color var(--t-fast);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--brand); }

.product-info__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 10px;
}
.product-info__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.product-info__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
  color: var(--text-2);
}
.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.product-info__amount {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.product-info__old { font-size: 1.15rem; color: var(--text-3); text-decoration: line-through; }
.product-info__save { font-size: .86rem; color: var(--success); font-weight: 700; margin-bottom: 22px; }
.product-info__excerpt { color: var(--text-2); font-size: .98rem; line-height: 1.75; margin-bottom: 26px; }

.variant-group { margin-bottom: 22px; }
.variant-group__label {
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
}
.variant-group__label span { color: var(--text-3); font-weight: 500; }
.variant-options { display: flex; flex-wrap: wrap; gap: 9px; }
.variant-option {
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--t-fast);
}
.variant-option:hover { border-color: var(--ink); color: var(--ink); }
.variant-option.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.variant-option.is-disabled { opacity: .4; pointer-events: none; text-decoration: line-through; }
.variant-option--color {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  position: relative;
}
.variant-option--color.is-active::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: #fff;
}
.qty button {
  width: 44px; height: 50px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.qty button:hover { background: var(--surface-2); color: var(--ink); }
.qty input {
  width: 52px;
  height: 50px;
  text-align: center;
  border: 0;
  font-weight: 700;
  font-size: .98rem;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 34px; height: 38px; }
.qty--sm input { width: 42px; height: 38px; font-size: .88rem; }

.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.buy-actions .btn--primary { flex: 1; min-width: 200px; height: 52px; }

.product-reassure {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--surface-2);
  border-radius: var(--r);
  margin-top: 26px;
}
.product-reassure__item { display: flex; gap: 13px; align-items: flex-start; font-size: .88rem; }
.product-reassure__item svg { color: var(--brand-700); flex-shrink: 0; margin-top: 2px; }
.product-reassure__item b { display: block; color: var(--ink); }
.product-reassure__item span { color: var(--text-2); }

/* Onglets */
.tabs { margin-top: 72px; }
.tabs__nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn {
  padding: 14px 22px;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-3);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { color: var(--ink); border-color: var(--brand); }
.tabs__panel { display: none; animation: fadeUp .35s; }
.tabs__panel.is-active { display: block; }

.prose { max-width: 78ch; color: var(--text-2); line-height: 1.85; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.8em; }
.prose img { border-radius: var(--r); margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  border-left: 4px solid var(--brand);
  padding: 6px 0 6px 22px;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--ink);
}
.prose a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 700; color: var(--ink); }

/* Specifications */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 14px 4px; font-size: .92rem; }
.spec-table td:first-child { font-weight: 700; color: var(--ink); width: 220px; }
.spec-table td:last-child { color: var(--text-2); }

/* Avis */
.reviews-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 28px;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  margin-bottom: 34px;
}
.reviews-score { text-align: center; }
.reviews-score__num {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.reviews-score__count { font-size: .85rem; color: var(--text-3); margin-top: 8px; }
.reviews-bars { display: grid; gap: 9px; align-content: center; }
.reviews-bar { display: flex; align-items: center; gap: 12px; font-size: .84rem; }
.reviews-bar__track { flex: 1; height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.reviews-bar__fill { height: 100%; background: var(--brand); border-radius: 99px; }

.review {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
}
.review__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}
.review__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review__author { font-weight: 700; color: var(--ink); }
.review__date { font-size: .8rem; color: var(--text-3); }
.review__title { font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.review__text { color: var(--text-2); font-size: .93rem; }

/* Barre sticky mobile produit */
.sticky-buy {
  position: fixed;
  bottom: 62px; left: 0; right: 0;
  z-index: 140;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform var(--t);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy__price { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; }
.sticky-buy .btn { flex: 1; }

/* ============================== PANIER ============================== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.cart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__img {
  width: 104px; height: 104px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.cart-item__name { font-family: var(--font-heading); font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.cart-item__meta { font-size: .82rem; color: var(--text-3); margin-bottom: 10px; }
.cart-item__price { font-weight: 800; color: var(--brand-700); }
.cart-item__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cart-item__total { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.cart-item__remove { font-size: .8rem; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; }
.cart-item__remove:hover { color: var(--danger); }

.summary-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.summary-box__title { font-size: 1.12rem; margin-bottom: 20px; }
.coupon-row { display: flex; gap: 8px; margin: 18px 0; }
.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  background: var(--success-soft);
  border: 1px dashed rgba(18,161,80,.35);
  border-radius: var(--r-sm);
  font-size: .86rem;
  color: #0a7a3c;
  font-weight: 700;
  margin: 18px 0;
}

/* ============================= CHECKOUT ============================= */
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
.checkout-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 22px;
}
.checkout-section__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.checkout-section__num {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .92rem;
  flex-shrink: 0;
}
.checkout-section__title { margin: 0; font-size: 1.14rem; }

.pay-methods { display: grid; gap: 12px; }
.pay-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--t-fast);
  background: #fff;
}
.pay-method:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pay-method.is-selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(249,200,70,.16); }
.pay-method input { margin-top: 3px; accent-color: var(--brand); width: 20px; height: 20px; flex-shrink: 0; }
.pay-method__icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  flex-shrink: 0;
}
.pay-method.is-selected .pay-method__icon { background: #fff; color: var(--brand-700); }
.pay-method--wa .pay-method__icon { background: rgba(37,211,102,.12); color: var(--whatsapp); }
.pay-method__title { font-family: var(--font-heading); font-weight: 700; color: var(--ink); }
.pay-method__desc { font-size: .85rem; color: var(--text-2); margin-top: 3px; }

.order-review { display: flex; flex-direction: column; gap: 14px; max-height: 320px; overflow-y: auto; padding-right: 6px; }
.order-review__item { display: flex; gap: 13px; align-items: center; }
.order-review__img {
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  position: relative;
  flex-shrink: 0;
}
.order-review__qty {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 21px; height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
}
.order-review__name { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.order-review__price { font-weight: 700; font-size: .9rem; white-space: nowrap; }

.wa-checkout-box {
  padding: 20px;
  background: linear-gradient(135deg, rgba(37,211,102,.1), rgba(37,211,102,.03));
  border: 1.5px dashed rgba(37,211,102,.4);
  border-radius: var(--r);
  margin-top: 18px;
}
.wa-checkout-box__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #128C4A;
  margin-bottom: 7px;
}
.wa-checkout-box p { font-size: .87rem; color: var(--text-2); margin-bottom: 15px; }

/* ========================== CONFIRMATION ========================== */
.thankyou {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.thankyou__icon {
  width: 96px; height: 96px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  animation: popIn .5s cubic-bezier(.16,1,.3,1);
}
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.thankyou__number {
  display: inline-block;
  padding: 9px 22px;
  background: var(--brand-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--brand-700);
  letter-spacing: .04em;
  margin: 14px 0 20px;
}

.order-steps { display: flex; justify-content: space-between; gap: 8px; position: relative; margin: 40px 0; }
.order-steps::before {
  content: '';
  position: absolute;
  top: 19px; left: 8%; right: 8%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.order-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.order-step__dot {
  width: 38px; height: 38px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--text-3);
  transition: all var(--t);
}
.order-step.is-done .order-step__dot { background: var(--success); border-color: var(--success); color: #fff; }
.order-step.is-current .order-step__dot {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
  box-shadow: 0 0 0 6px rgba(249,200,70,.2);
}
.order-step__label { font-size: .8rem; font-weight: 600; color: var(--text-3); }
.order-step.is-done .order-step__label,
.order-step.is-current .order-step__label { color: var(--ink); }

/* ============================== COMPTE ============================== */
.account-layout { display: grid; grid-template-columns: 268px 1fr; gap: 34px; align-items: start; }
.account-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.account-nav__user {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.account-nav__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.account-nav__name { font-weight: 700; color: var(--ink); font-size: .93rem; }
.account-nav__mail { font-size: .78rem; color: var(--text-3); word-break: break-all; }
.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--t-fast);
}
.account-nav a:hover { background: var(--surface-2); color: var(--ink); }
.account-nav a.is-active { background: var(--ink); color: #fff; }
.account-nav a.is-active svg { color: var(--brand); }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.stat-card__value { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.stat-card__label { font-size: .84rem; color: var(--text-3); }

/* Tableau simple */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table th {
  padding: 14px 18px;
  text-align: left;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }

/* ================================ BLOG ================================ */
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.post-card__cat {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.post-card__title { font-size: 1.1rem; margin: 0; line-height: 1.35; }
.post-card__excerpt { font-size: .9rem; color: var(--text-2); flex: 1; }
.post-card__meta {
  display: flex;
  gap: 14px;
  font-size: .78rem;
  color: var(--text-3);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ============================= MODALE ============================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  animation: modalIn .35s cubic-bezier(.16,1,.3,1);
}
.modal__box--sm { max-width: 520px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  z-index: 3;
}
.modal__close:hover { background: var(--ink); color: #fff; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1100px) {
  .product-detail { grid-template-columns: 1fr; gap: 34px; }
  .gallery { position: static; }
  .checkout-layout, .cart-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
}

@media (max-width: 991px) {
  .shop-layout { grid-template-columns: 1fr; gap: 20px; }
  .shop-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 88vw);
    max-height: none;
    background: #fff;
    z-index: 300;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--t-slow);
    box-shadow: var(--sh-lg);
  }
  .shop-sidebar.is-open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .reviews-summary { grid-template-columns: 1fr; gap: 24px; }
  .sticky-buy { display: flex; }
  .stat-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cart-item { grid-template-columns: 76px 1fr; gap: 14px; padding: 16px; }
  .cart-item__img { width: 76px; height: 76px; }
  .cart-item__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .product-info__amount { font-size: 1.85rem; }
  .buy-actions .btn--primary { min-width: 0; }
  .checkout-section { padding: 20px; }
  .order-steps::before { left: 12%; right: 12%; }
  .order-step__label { font-size: .7rem; }
}
