/* ════════════════════════════════════════════════════
   LISTE DES PRODUITS
════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.product-card {
  border: 1px solid var(--border, #2a2a2a);
  border-radius: .75rem;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-lt, #c8a85a);
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.product-card-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.product-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-2, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: .5rem;
}

.product-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.product-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-lt, #c8a85a);
}

.product-card-cta {
  font-size: .78rem;
  padding: .35rem .8rem;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════
   PANIER
════════════════════════════════════════════════════ */
.panier-vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 5rem 0;
  color: var(--text-muted);
  text-align: center;
}

.panier-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: stretch;
  margin-bottom: 5rem;
}
@media (max-width: 768px) {
  .panier-grid { grid-template-columns: 1fr; }
}

.panier-lignes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panier-ligne {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
}
@media (max-width: 600px) {
  .panier-ligne { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; }
  .panier-ligne-qte, .panier-ligne-sous-total { grid-column: 2; }
}

.panier-ligne-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: .5rem;
  display: block;
}
.panier-ligne-img-placeholder {
  width: 100px;
  height: 100px;
  border-radius: .5rem;
  background: var(--surface-2, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panier-ligne-nom {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: .25rem;
}
.panier-ligne-nom:hover { color: var(--accent-lt); }

.panier-ligne-prix-unit {
  font-size: .82rem;
  color: var(--text-muted);
}

.panier-ligne-qte {
  font-size: .9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.panier-ligne-sous-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-lt);
  white-space: nowrap;
}

.panier-recap {
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panier-recap-titre {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.panier-recap-ligne {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--text-muted);
}

.panier-recap-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.panier-btn-commande {
  width: 100%;
  justify-content: center;
}

.panier-continuer {
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
}
.panier-continuer:hover { color: var(--accent-lt); }

/* ════════════════════════════════════════════════════
   DÉTAIL PRODUIT
════════════════════════════════════════════════════ */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
  margin: 2.5rem 0;
}
.product-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.product-breadcrumb a:hover { color: var(--accent-lt); }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.product-img {
  width: 100%;
  height: auto;
  border-radius: .75rem;
  object-fit: cover;
  aspect-ratio: 1;
}
.product-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: .75rem;
  background: var(--surface-2, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: .75rem 0 1.25rem;
}

.product-price-block {
  margin-bottom: 1.5rem;
}
.product-price-ttc {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent-lt, #c8a85a);
  display: block;
  margin-bottom: .25rem;
}
.product-price-ht {
  font-size: .82rem;
  color: var(--text-muted);
}

.product-description {
  font-size: .97rem;
  line-height: 1.75;
  color: var(--text-secondary, #ccc);
  margin-bottom: 2rem;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.product-detail-actions {
  margin-top: 1.5rem;
}

.product-detail-actions .btn-add-cart {
  width: 100%;
  justify-content: center;
}

.product-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border, #333);
  border-radius: .5rem;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.2rem;
  padding: .5rem .9rem;
  transition: background .15s;
}
.qty-btn:hover { background: var(--surface-2, #1a1a1a); }
.qty-input {
  width: 3rem;
  background: none;
  border: none;
  color: inherit;
  font-size: .95rem;
  text-align: center;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-meta {
  font-size: .78rem;
  color: var(--text-muted);
}
.product-meta code {
  font-size: .78rem;
  opacity: .7;
}
