/* Lot 3.4, étape 2 — la boutique publique (includes/boutique-public.php). Couleurs du site (acer-site.css). */

/* En-tête : lien du panier, rappel des frais de port */
.acer-boutique-entete { display: flex; flex-wrap: wrap; gap: .5em 1.5em; align-items: center; justify-content: space-between; margin: 0 0 1em; }
.acer-boutique-port { color: #5a5a5a; font-size: .95em; }
.acer-panier-lien { font-weight: 700; color: #b00020; text-decoration: none; }
.acer-panier-lien:hover, .acer-panier-lien:focus { text-decoration: underline; }

/* Onglets de catégorie */
.acer-boutique-onglets { display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 1.5em; }
.acer-boutique-onglets a { padding: .3em .9em; border: 1px solid #b00020; border-radius: 1em; color: #b00020; text-decoration: none; font-weight: 700; }
.acer-boutique-onglets a:hover, .acer-boutique-onglets a:focus, .acer-boutique-onglets a[aria-current] { background: #b00020; color: #fff; }

/* Grille des articles */
.acer-boutique-grille { display: grid; grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) ); gap: 1.5em; list-style: none; margin: 0; padding: 0; }
.acer-boutique-grille li.acer-produit { margin: 0; list-style: none; }
.acer-boutique-grille li.acer-produit::before { content: none; }
.acer-produit a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.acer-produit__image { position: relative; display: block; aspect-ratio: 1; background: #fff; border: 1px solid #e4e2dc; }
.acer-produit__image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.acer-produit__badge { position: absolute; top: .5em; left: .5em; background: #5a5a5a; color: #fff; font-size: .8em; font-weight: 700; padding: .15em .6em; border-radius: 1em; }
.acer-produit--epuise .acer-produit__image img { opacity: .55; }
.acer-produit__nom { margin-top: .6em; font-weight: 700; line-height: 1.3; }
.acer-produit a:hover .acer-produit__nom, .acer-produit a:focus .acer-produit__nom { text-decoration: underline; }
.acer-produit__sous { color: #5a5a5a; font-size: .9em; }
.acer-produit__accroche { font-size: .9em; margin-top: .3em; }
.acer-produit__prix { margin-top: auto; padding-top: .4em; color: #b00020; font-weight: 700; font-size: 1.1em; }

/* Fiche d'un article */
.acer-article { display: grid; grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr ); gap: 2em; margin: 1em 0 2em; }
.acer-article__photos .acer-galerie-publique { grid-template-columns: repeat( 3, 1fr ); }
.acer-article__photos .acer-galerie-publique li:first-child { grid-column: 1 / -1; }
.acer-article__photos .acer-galerie-publique img { width: 100%; height: auto; object-fit: contain; background: #fff; }
.acer-article__auteur { font-size: 1.15em; font-weight: 700; margin: 0 0 .5em; }
.acer-article__accroche { margin: 0 0 1em; }
.acer-article__prix { color: #b00020; font-weight: 700; font-size: 1.6em; margin: 0 0 1em; }
.acer-article__prix span { color: #5a5a5a; font-size: .55em; font-weight: 400; }
.acer-article__form label { display: inline-block; min-width: 6em; font-weight: 700; }
.acer-article__form select, .acer-article__form input[type=number] { padding: .35em; }
.acer-article__form input[type=number] { width: 5em; }
.acer-article__form .acer-bouton { border: 0; font-size: 1.05em; cursor: pointer; }
.acer-article__indispo { font-weight: 700; color: #5a5a5a; }
.acer-article__liens { margin-top: 1.5em; }
.acer-article__details { margin-top: 1.5em; }
@media ( max-width: 760px ) {
	.acer-article { grid-template-columns: 1fr; }
}

/* Panier et commande */
.acer-message { background: #fff8e5; border-left: 4px solid #dba617; padding: .6em 1em; margin: 0 0 1em; }
.acer-message--ok { background: #edf7ed; border-left-color: #2e7d32; }
.acer-message ul { margin: 0; }
.acer-panier__table, .acer-panier__totaux { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.acer-panier__table th, .acer-panier__table td, .acer-panier__totaux th, .acer-panier__totaux td { padding: .55em .6em; border-bottom: 1px solid #e4e2dc; text-align: left; vertical-align: middle; }
.acer-panier__table td:nth-child( n + 2 ), .acer-panier__totaux td { text-align: right; white-space: nowrap; }
.acer-panier__table input[type=number] { width: 4.5em; padding: .3em; }
.acer-panier__taille { display: inline-block; margin-left: .3em; padding: 0 .5em; background: #f6f6f4; border-radius: 1em; font-size: .9em; }
.acer-panier__totaux { max-width: 32em; margin-left: auto; }
.acer-panier__totaux th span { font-weight: 400; color: #5a5a5a; font-size: .85em; }
.acer-panier__total th, .acer-panier__total td { font-size: 1.15em; font-weight: 700; color: #b00020; }
.acer-panier__pays select { max-width: 100%; padding: .3em; }
.acer-panier__actions { display: flex; flex-wrap: wrap; gap: 1em; align-items: center; justify-content: space-between; }
.acer-panier__actions .acer-bouton, .acer-commande .acer-bouton { border: 0; font-size: 1.05em; cursor: pointer; }
.acer-lien-bouton { background: none; border: 0; padding: 0; color: #b00020; text-decoration: underline; cursor: pointer; font: inherit; }
.acer-commande__form label { display: block; font-weight: 700; margin-bottom: .2em; }
.acer-commande__form input[type=text], .acer-commande__form input[type=email], .acer-commande__form input[type=tel] { width: 100%; max-width: 30em; padding: .45em; }
.acer-commande__paiement { border: 1px solid #e4e2dc; padding: .8em 1em; margin: 1em 0; }
.acer-commande__paiement label, .acer-commande__cgv label { font-weight: 400; margin: .4em 0; }
