/* ————————————————————————————————————————————————
   Le Vineum — styles de la boutique et du tunnel de commande.
   Chargé APRÈS style.css : uniquement des compléments.
   ———————————————————————————————————————————————— */

/* ——— Boutique : filtres, recherche, bandeau ——— */
.bandeau-rappel {
  background: color-mix(in srgb, var(--ambre) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ambre) 40%, transparent);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.8rem;
  font-weight: 500;
}
.filtres { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.filtres-cats { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filtres-cats a {
  display: inline-block; padding: 0.55rem 1.15rem;
  border: 2px solid color-mix(in srgb, var(--chene) 45%, transparent); border-radius: 999px;
  text-decoration: none; color: var(--creme); font-weight: 600; font-size: 1rem;
}
.filtres-cats a:hover { border-color: var(--ambre); color: var(--ambre); }
.filtres-cats a.actif { background: var(--ambre); border-color: var(--ambre); color: var(--cave); }
.barre-outils { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; }
.barre-outils form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.barre-outils input[type="text"] { width: auto; min-width: 240px; }
.barre-outils select { width: auto; }
.nb-refs { font-family: var(--mono); color: var(--chene); font-size: 0.9rem; }

/* ——— Fiche produit ——— */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 860px) { .fiche { grid-template-columns: 1fr; gap: 1.8rem; } }
.fiche-photo {
  border-radius: 10px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--chene) 30%, transparent);
  background:
    radial-gradient(120% 85% at 50% 95%, color-mix(in srgb, var(--ambre) 28%, transparent) 0%, color-mix(in srgb, var(--ambre) 7%, transparent) 50%, transparent 80%),
    var(--cave-2);
}
.fiche-photo img { width: 100%; max-height: 560px; object-fit: cover; }
.fiche h1 { margin: 0.3rem 0 0.6rem; }
.fiche .etiquette-prix { font-size: 1.45rem; padding: 0.35rem 0.9rem; display: inline-block; margin: 0.8rem 0; }
.fiche-desc { color: color-mix(in srgb, var(--creme) 85%, transparent); margin-bottom: 1rem; }
.stock-alerte { color: var(--ambre-vif); font-weight: 600; }
.stock-epuise { color: #f0c4c4; font-weight: 600; }
.fiche-achat { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.fiche-achat .btn-grand { max-width: 360px; }

/* ——— Panier ——— */
.table-scroll { overflow-x: auto; }
table.liste td { vertical-align: middle; }
.panier-mini {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 6px; border: 1px solid color-mix(in srgb, var(--chene) 30%, transparent);
}
.qte .qte-val {
  display: inline-block; min-width: 2.6rem; text-align: center;
  font-family: var(--mono); font-size: 1.15rem; font-weight: 600;
}
.btn-retirer {
  background: none; border: none; color: #e08a8a; cursor: pointer;
  font-size: 0.95rem; text-decoration: underline; padding: 0.3rem;
  font-family: var(--body);
}
.btn-retirer:hover { color: #f0c4c4; }
.recap-encart {
  background: var(--cave-2); border: 1px solid color-mix(in srgb, var(--chene) 30%, transparent);
  border-radius: 10px; padding: 1.6rem; max-width: 440px; margin-left: auto;
}
.recap-encart .ligne { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.55rem; }
.recap-encart .ligne-total { border-top: 1px solid color-mix(in srgb, var(--chene) 35%, transparent); padding-top: 0.8rem; margin-top: 0.8rem; }
.nudge-livraison { color: var(--ambre-vif); font-size: 0.95rem; margin-top: 0.6rem; }

/* ——— Tunnel de commande ——— */
.tunnel { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 2.5rem; align-items: start; }
.tunnel-recap {
  position: sticky; top: 100px;
  background: var(--cave-2); border: 1px solid color-mix(in srgb, var(--chene) 30%, transparent);
  border-radius: 10px; padding: 1.5rem;
}
@media (max-width: 960px) {
  .tunnel { grid-template-columns: 1fr; }
  .tunnel-recap { position: static; order: -1; }
}
.tunnel-recap h2 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.tunnel-recap ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.tunnel-recap li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.95rem; padding: 0.35rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--chene) 25%, transparent);
}
.tunnel-recap .ligne { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.champs-cote-a-cote { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; }
@media (max-width: 640px) { .champs-cote-a-cote { grid-template-columns: 1fr; } }
.erreurs {
  background: #3d1a1a; border: 1px solid var(--bordeaux-vif); color: #f0c4c4;
  border-radius: 8px; padding: 1rem 1.3rem; margin-bottom: 1.6rem;
}
.erreurs strong { font-size: 1.05rem; }
.erreurs ul { margin: 0.4rem 0 0 1.2rem; }
.note-retrait, .note-slot {
  background: color-mix(in srgb, var(--ambre) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ambre) 35%, transparent);
  border-radius: 8px; padding: 0.9rem 1.1rem; font-size: 0.98rem;
}

/* ——— Paiement ——— */
.demo-banniere {
  border: 2px dashed var(--ambre); background: color-mix(in srgb, var(--ambre) 8%, transparent);
  border-radius: 10px; padding: 1rem 1.3rem;
  font-family: var(--mono); font-size: 0.95rem; margin-bottom: 1.6rem;
}
.paiement-cadre {
  background: var(--cave-2); border: 1px solid color-mix(in srgb, var(--chene) 30%, transparent);
  border-radius: 10px; padding: 1.8rem; max-width: 560px;
}

/* ——— Confirmation ——— */
.confirm-entete { text-align: center; margin-bottom: 2.5rem; }
.confirm-check {
  display: inline-flex; width: 76px; height: 76px; border-radius: 50%;
  background: var(--vert-ok); color: #fff; font-size: 2.3rem;
  align-items: center; justify-content: center; margin-bottom: 1rem;
}
.confirm-ref {
  font-family: var(--mono); background: var(--creme); color: var(--cave);
  padding: 0.15rem 0.6rem; border-radius: 4px; white-space: nowrap;
}
.confirm-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .confirm-grille { grid-template-columns: 1fr; } }
.confirm-bloc {
  background: var(--cave-2); border: 1px solid color-mix(in srgb, var(--chene) 30%, transparent);
  border-radius: 10px; padding: 1.6rem;
}
.confirm-bloc h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.confirm-bloc p { margin-bottom: 0.45rem; }
.paiement-etat-ok { color: #9fd39f; font-weight: 600; }
.paiement-etat-attente { color: var(--ambre-vif); font-weight: 600; }

/* ——— Ajustements mobiles ——— */
@media (max-width: 700px) {
  /* Recherche et tri : chaque outil sur sa ligne, bien aligné. */
  .barre-outils { gap: 0.7rem; }
  .barre-outils form { width: 100%; flex-wrap: nowrap; }
  .barre-outils form[role="search"] input { flex: 1; min-width: 0; }
  .barre-outils select { flex: 1; min-width: 0; }
  .nb-refs { width: 100%; }
  .filtres-cats a { padding: 0.45rem 0.9rem; font-size: 0.92rem; }

  /* Panier : le tableau devient des cartes empilées. */
  .table-scroll table.liste, .table-scroll tbody,
  .table-scroll tr, .table-scroll td { display: block; width: 100%; }
  .table-scroll thead { display: none; }
  .table-scroll tr {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--chene) 30%, transparent); border-radius: 10px;
    padding: 1rem 1rem 1rem 92px; margin-bottom: 1rem; min-height: 108px;
  }
  .table-scroll td { border: none; padding: 0.15rem 0; }
  .table-scroll td:nth-child(1) { position: absolute; left: 1rem; top: 1rem; width: auto; padding: 0; }
  .table-scroll td:nth-child(2) { font-weight: 600; padding-right: 4.2rem; }
  .table-scroll td:nth-child(3)::before { content: "Prix : "; color: var(--chene); font-size: 0.85rem; }
  .table-scroll td:nth-child(4) { padding: 0.45rem 0; }
  .table-scroll td:nth-child(5)::before { content: "Sous-total : "; color: var(--chene); font-size: 0.85rem; }
  .table-scroll td:nth-child(6) { position: absolute; top: 0.4rem; right: 0.4rem; width: auto; padding: 0; }
  .recap-encart { max-width: none; margin-left: 0; }

  /* Fiche : achat pleine largeur, quantité centrée. */
  .fiche-achat .btn-grand { max-width: none; width: 100%; }
  .fiche-photo img { max-height: 340px; }
}
@media (max-width: 700px) {
  .tunnel-recap li span:last-child, .recap-encart .ligne strong { white-space: nowrap; }
}
