/* Theme Name:Les serres de mitry */

/* === Réinitialisation des marges et paddings === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0px;
    box-sizing: border-box;
}

/* === Couleurs de la marque (reprises du logo) === */
:root {
	--slm-gold: #826E08;
	--slm-gold-dark: #5a6521;
	--slm-green: #5b8c3e;
	--slm-green-dark: #3f6b2a;
}

/* === Structure de base === */
html {
	scrollbar-gutter: stable;
}
html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
	text-align: justify;
}

/*===police===*/

h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
	text-align: center;
}
h2 {
    font-size: 2em;
    color: var(--slm-gold-dark);
    margin-top: 30px;
	border-bottom: 2px solid var(--slm-green);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

h3 {
	padding-bottom: 20px;
}
p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}
.container {
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 60px 20px;
	flex: 1;
}

.container p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* === Page 404 (page introuvable) === */
.error-404 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.error-404 h1 {
    font-size: 4rem;
    color: var(--slm-green);
}
.error-404-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: var(--slm-green);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.error-404-btn:hover {
    background-color: var(--slm-green-dark);
}

/* === Header === */
header {
    align-items: center;
    background-color: #fdfcf5;
    color: black;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.navbar-container {
    background-color: #fdfcf5;
    padding: 10px 5px;
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
	width: 100%;
	box-shadow: 0 4px 10px rgba(130, 110, 8, 0.15);
}

.logo {
	margin: auto 10px;
}

.logo img {
    max-height: 60px; /* Ajustez la taille du logo */
	margin-right: 60px; /* Espace entre le logo et le menu */
	margin-left: 10px;
}


/* Menu hamburger et nav-links */
.hamburger {
    display: none; /* Caché sur les écrans larges */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
	position:center;
}

/* Menu navigation */

.nav-links {
	list-style: none;
	width: 100%;
    display: flex;
    justify-content: space-evenly;
	align-items: center;
	background-color: #826E08;
	border-radius: 5px;
	border: solid 1px #5e5110;
	padding: 10px 0;
}

.nav-links li {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.nav-links li a {
	text-decoration: none;         /* Enlever le soulignement */
	color: white;                  /* Couleur du texte du lien */
	padding: 10px 3px;            /* Espacement autour du texte du lien */
	font-size: 0.85rem;            /* Texte plus compact pour tenir sur une ligne */
	border-radius: 5px;            /* Bordure arrondie */
	transition: background-color 0.3s ease, border 0.3s ease; /* Transition uniquement sur fond et bordure */
	border: 2px solid transparent; /* Bordure invisible par défaut pour éviter le décalage */
}
.nav-links li a:hover {
	background-color: #826E08;     /* Couleur de fond au survol */
	border: 2px solid #444b20;     /* Bordure fine et colorée au survol */
	color: white;
}

.nav-links .sub-menu {
    display: none; /* Masque les sous-menus par défaut */
    position: absolute;
    top: 100%; /* Positionne le sous-menu juste en dessous de la catégorie */
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li:hover .sub-menu {
    display: block; /* Affiche le sous-menu au survol */
}

.nav-links .subcategory {
    padding: 5px 10px;
}

.nav-links .subcategory a {
    color: #333;
    text-decoration: none;
}

.nav-links .subcategory a:hover {
    text-decoration: underline;
}
.sub-menu{
	background-color : white
}
/* Style du bouton Panier */
.cart-menu-item {
	margin: auto 10px;
	padding: 10px 20px;            /* Espacement autour du texte du lien */
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 5px;            /* Bordure arrondie */
	transition: background-color 0.3s ease, border 0.3s ease; /* Transition uniquement sur fond et bordure */
	border: 2px solid transparent; /* Bordure invisible par défaut pour éviter le décalage */
}

.cart-menu-item a {
	color: black;
	text-decoration: none;
	text-align: center;
}

.cart-menu-item:hover {
	background-color: var(--slm-green);     /* Couleur de fond au survol */
	border: 2px solid var(--slm-green-dark);     /* Bordure fine et colorée au survol */
}

.cart-menu-item:hover a {
	text-decoration: none;
	color: white;
}

/* Barre de recherche produits */
.site-search-form {
	display: flex;
	align-items: center;
	margin: auto 10px;
	position: relative;
}

.site-search-input {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 5px 0 0 5px;
	border-right: none;
	font-size: 0.9rem;
}

.site-search-btn {
	padding: 8px 12px;
	background-color: #826E08;
	border: 1px solid #826E08;
	border-radius: 0 5px 5px 0;
	color: white;
	cursor: pointer;
}

.site-search-btn:hover {
	background-color: #5e5110;
}

#search-suggestions {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #ccc;
	border-top: none;
	border-radius: 0 0 5px 5px;
	z-index: 1001;
	max-height: 300px;
	overflow-y: auto;
}

.search-suggestion-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	text-decoration: none;
	color: black;
	border-bottom: 1px solid #eee;
}

.search-suggestion-item:hover {
	background-color: #f4f4f4;
}

.search-suggestion-item img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
}

.search-suggestion-title {
	flex: 1;
	font-size: 0.9rem;
}

.search-suggestion-price {
	font-size: 0.85rem;
	color: #826E08;
	font-weight: bold;
}


/* Cacher le menu burger par défaut */
.hamburger {
    display: none;
}

/* Zone Coupon */
.promo-banner {
    background: linear-gradient(135deg, #f5f5f2 0%, #e4e4e0 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.woocommerce-coupons {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 20px;
}
.woocommerce-coupons h3 {
    color: #444;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
	padding-bottom: 4px;
}
.woocommerce-coupons ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
}
.woocommerce-coupons li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #444;
}
.woocommerce-coupons li strong {
    background: var(--slm-green);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.9em;
}

/* Réduit l'espace avant le contenu quand il suit directement le bandeau promo */
.promo-banner + .container {
    padding-top: 8px;
}

/* Réduit l'espace au-dessus du titre sur les pages boutique/catégories (sans toucher aux autres pages) */
.shop-container {
    padding-top: 20px;
}

/* === Footer === */

footer {
	font-size: large;
	background: linear-gradient(135deg, var(--slm-gold) 0%, var(--slm-green-dark) 100%);
	padding: 40px 20px 0;
}

.footer-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: 30px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-column {
	flex: 1 1 250px;
}

.footer-column h4 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: white;
	margin: 0 0 15px;
	font-size: 1.05em;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Colonne logo + texte + réseaux sociaux */
.footer-brand {
	text-align: center;
}
.footer-logo img {
	max-height: 70px;
	width: auto;
}
.footer-tagline {
	color: white;
	opacity: 0.9;
	font-size: 0.85em;
	line-height: 1.5;
	margin: 15px 0;
}
.footer-social {
	display: flex;
	justify-content: center;
	gap: 12px;
}
.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: white;
	transition: background 0.2s ease;
}
.footer-social a:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Colonne horaires (cartes) */
.footer-horaires {
	text-align: center;
}
.footer-horaires-cartes {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.horaire-carte {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.08);
	border-left: 3px solid var(--slm-gold);
	border-radius: 4px;
	padding: 10px 14px;
	text-align: left;
}
.horaire-carte.ferme {
	border-left: none;
	padding-left: 17px;
}
.horaire-carte .jour {
	color: white;
	font-weight: 600;
}
.horaire-carte .heure {
	color: white;
	font-size: 0.85em;
	opacity: 0.85;
}
.horaire-carte.ferme .heure {
	opacity: 0.6;
}

/* Colonne coordonnées */
.footer-contact {
	text-align: center;
}
.footer-contact p {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	color: white;
	margin: 0 0 12px;
}
.footer-contact p svg {
	flex-shrink: 0;
	margin-top: 3px;
}
.footer-contact p a {
	color: white;
	text-decoration: none;
}
.footer-contact p a:hover {
	color: #c9cb82;
}

/* Bas de page */
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
}
.footer-bottom p {
	color: white;
	margin: 0;
	font-size: 0.85em;
}
.footer-legal-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-legal-links li a {
	color: white;
	text-decoration: none;
	font-size: 0.85em;
	padding: 0 10px;
}
.footer-legal-links li a:hover {
	color: #c9cb82;
}
.footer-legal-links li:not(:last-child) {
	border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/*=== produit=== */

.product-content {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 40px;
	padding: 30px;
}

.product-image {
	flex: 1 1 350px;
	display: flex;
	justify-content: center;
}

/* Galerie photos de la fiche produit : grande photo + vignettes dessous */
.product-image .woocommerce-product-gallery {
	position: relative;
	width: 80%;
}

.product-image .woocommerce-product-gallery__image a img,
.product-image .woocommerce-product-gallery__image--placeholder img {
	display: block;
	width: 100%;
	height: auto;
}

.product-image .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.product-image .flex-control-thumbs li {
	flex: 0 0 calc(25% - 6px);
	margin: 0;
}

.product-image .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.product-image .flex-control-thumbs img.flex-active,
.product-image .flex-control-thumbs img:hover {
	opacity: 1;
}

/* Bouton loupe : ouvre les photos en plein écran */
.product-image .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 99;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	font-size: 18px;
	text-decoration: none;
}

.product-info {
	flex: 1 1 350px;
	text-align: center;
}
.product-description{
	text-align: center;
}

button.single_add_to_cart_button {
    background-color: #826E08;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
	padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
	text-align: center;
	margin-top: 15px;
}
button.single_add_to_cart_button:hover {
    background-color: #5a6521;
}

.slm-recap-livraison {
	font-size: 0.85em;
	color: #666;
	margin-top: 12px;
}

button.product_type_simple add_to_cart_button ajax_add_to_cart{
	background-color: #826E08;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
	padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
	text-align: center;
	margin-top: 15px;
}
/* === Contenu principal === */
.main-content {
    flex: 1; /* Prend tout l'espace restant disponible */
    padding: 30px; /* Padding pour l'espace autour du contenu */
	text-align: justify; /* Aligne le texte à gauche */
	max-width: 1200px; /* Largeur maximale du contenu */
    margin: 0 auto; /* Centre le contenu horizontalement */
}

.woocommerce ul.products li.product a img{
	height: 700% !important;
	width: 70% !important
}

.woocommerce img, .woocommerce-page img{
	height: 60% !important;
	width: 100%;
}
.woocommerce table.cart td.actions .input-text{
	padding: 15px;
    border-radius: 5px;
	font-weight: bold;
}
.woocommerce #content table.cart td.actions .input-text, .woocommerce table.cart td.actions .input-text, .woocommerce-page #content table.cart td.actions .input-text, .woocommerce-page table.cart td.actions .input-text {
    width: 160px !important;
	font-size: 18px;
}
.woocommerce .quantity .qty{
	font-size: 16px;
}

/* --- Panier : réduire la taille des photos produits (sinon la règle ".woocommerce img" ci-dessus les affiche en 100% de la colonne) --- */
.woocommerce table.cart td.product-thumbnail img {
	width: 80px !important;
	height: 80px !important;
	object-fit: cover;
	border-radius: 8px;
}

/* --- Paiement : remettre à sa taille normale la flèche du bloc "crédit boutique" (même souci que ci-dessus) --- */
.woocommerce .acfw-accordion .caret img {
	width: 14px !important;
	height: 14px !important;
}

/* --- Paiement : le crédit boutique n'est pas utilisé sur le site, on cache tout le bloc "Apply store credit discounts?" --- */
.woocommerce .acfw-store-credits-checkout-ui {
	display: none !important;
}

.woocommerce ul.products li.product .button {
	visibility: hidden !important;
}
.woocommerce ul.products li.product .price{
	color: black !important
}

/* Fiches produits sur les pages de catégories */
.products-grid .product-item {
	flex: 0 1 calc(25% - 37.5px);
	background: white;
	border-radius: 8px;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
	padding: 15px;
	text-align: center;
	list-style-type: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.products-grid .product-item:hover {
	transform: translateY(-4px);
	box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}

.products-grid .product-item a {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* Vignettes de la boutique : taille identique quelle que soit la forme de la photo d'origine (ne touche pas la fiche produit) */
.products-grid .product-item .product-image {
	width: 100%;
	height: 180px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.products-grid .product-item .product-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.products-grid .product-item h2 {
	font-size: 1.15em;
	font-weight: 600;
	color: var(--slm-gold-dark);
	border-bottom: none;
	margin-top: 10px;
	margin-bottom: 8px;
	padding-bottom: 0;
}

.products-grid .product-item span {
	font-size: 1.1em;
	font-weight: 700;
	color: var(--slm-green-dark);
}

/* Bandeau "page suivante" en bas de la boutique (a le même fond que le menu du haut car WordPress réutilise le nom "nav-links", mais sans le texte blanc prévu pour le menu) */
.pagination .nav-links a.page-numbers,
.pagination .nav-links span.page-numbers {
	color: white;
	font-weight: bold;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 5px;
}

.pagination .nav-links a.page-numbers:hover {
	background-color: var(--slm-gold-dark);
}

.pagination .nav-links span.page-numbers.current {
	background-color: white;
	color: var(--slm-gold);
}

.woocommerce{
	padding: 15px;
}

.related-products {
    margin-top: 50px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.related-products h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* === Filtres de la page boutique (tri, stock, catégories) === */
.shop-filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: #f7f7f2;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.shop-filters-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.shop-filters-row select {
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.shop-filters-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.shop-filters-label {
    font-weight: bold;
    color: #555;
}

.shop-filters-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.shop-filters-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shop-filters-actions button {
    background-color: var(--slm-gold);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.shop-filters-actions button:hover {
    background-color: var(--slm-gold-dark);
}

.shop-filters-reset {
    color: var(--slm-green-dark);
    text-decoration: underline;
    font-size: 0.9em;
}

.products-grid {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.products-grid .product {
    flex: 0 1 calc(25% - 37.5px);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    background: white;
    border-radius: 8px;
    text-align: center;
	list-style-type: none;
}

.products-grid .product a {
    text-decoration: none;
    color: inherit;
}
.related-products .price,
.related-products .button {
    display: none !important;
}
.woocommerce-SavedPaymentMethods-new {
	display: none;
}

/*=== Page d'accueil : grille des catégories ===*/
.categories-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.category-card {
	flex: 0 1 calc(25% - 22.5px); /* 4 par ligne (3 espaces de 30px), sans s'étirer : la dernière carte seule garde sa taille */
	background: white;
	border-radius: 8px;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
	padding: 15px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease;
}

.category-card:hover {
	transform: translateY(-4px);
}

.category-card img {
	width: 100% !important;
	height: 180px !important;
	object-fit: cover !important;
	border-radius: 6px;
}

.category-card h2 {
	font-size: 1.2em;
	border-bottom: none;
	margin-top: 10px;
	margin-bottom: 0;
	padding-bottom: 0;
}

@media (max-width: 768px) {
	.category-card {
		flex: 0 1 calc(50% - 15px);
	}
}

/* === Responsive (mobilité) === */
@media (max-width: 768px) {
	header {
		padding: 5px;	
	}
	
	.navbar-container {
		justify-content: space-evenly;
		padding: 0;
	}
	
	.hamburger {
        display: block; /* Affiche le bouton hamburger */
		justify-content: center;
		color:black;
    }

    .nav-links {
        display: none; /* Cache le menu par défaut */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #826E08;
        position: absolute;
        top: 100%; /* Toujours juste sous le bandeau, quelle que soit sa hauteur réelle */
        left: 0;
        margin: 0;
        padding: 0;
    }
	.logo img {
		max-height: 50px; /* Ajustez la taille du logo */
		margin-right: 20px; /* Espace entre le logo et le menu */
	}

    .nav-links.active {
        display: flex; /* Affiche le menu */
    }

    .nav-links li ul.sub-menu {
        display: none !important;
    }

    .nav-links li.active ul.sub-menu {
        display: none !important;
    }
	.cart-menu-item{
		padding: 0px 0px;
	}
	.site-search-input {
		width: 120px;
	}
}
/* Footer styles (Responsive) */
@media only screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Colonne sur mobile */
        align-items: center; /* Centrer les colonnes */
    }

    .footer-column {
        min-width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        font-size: 0.8em;
    }
}

@media (max-width: 768px) {
    /* Style du main-content */
    .main-content {
        flex-direction: column; /* Affiche les sections en colonne sur mobile */
        gap: 20px; /* Réduit l'espace entre les sections */
        padding: 15px; /* Réduit le padding pour les petits écrans */
    }
}

    /* Style des sections */
    .main-content section {
        flex: none; /* Supprime le flex-grow, chaque section aura sa propre taille */
        max-width: 100%; /* Prend toute la largeur disponible */
        padding: 20px; /* Réduit le padding pour plus de place */
        background-color: #f4f4f4;
        border-radius: 8px;
    }
@media (max-width: 768px){
	.product-content {
		flex-direction: column;
		gap: 20px;
	}
	/* Pleine largeur, sinon la galerie photos ne sait pas quelle taille prendre */
	.product-content .product-image {
		width: 100%;
	}
	}
@media (max-width: 768px){
	.products-grid{
		flex-direction: column;
	}
	.products-grid .product-item {
		width: 100%;
	}
}

/* Tablette : 2 produits par ligne au lieu de 4 */
@media (min-width: 769px) and (max-width: 1024px) {
	.products-grid .product-item,
	.products-grid .product {
		flex: 0 1 calc(50% - 37.5px);
	}
}

/* =========================================================
   PAGE DE PAIEMENT (checkout) — livraison + paiement CB
   ========================================================= */

.custom-checkout-container h1 {
	margin-bottom: 30px;
}

/* --- Champs de facturation --- */
.woocommerce-checkout .form-row label {
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
	display: inline-block;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout select {
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	padding: 12px 14px;
	width: 100%;
	font-size: 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background-color: #fff;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
	border-color: #826E08;
	box-shadow: 0 0 0 3px rgba(130, 110, 8, 0.15);
	outline: none;
}

/* --- Bloc "Zone correspondant au client" --- */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout p.zone-matching,
.woocommerce-checkout .woocommerce-message {
	background: #f1f8f4;
	border-left: 4px solid var(--slm-green);
	border-radius: 6px;
	padding: 12px 16px;
	font-weight: 600;
	color: var(--slm-green-dark);
	margin-bottom: 25px;
}

/* --- Choix du mode de livraison (page paiement) --- */
.woocommerce-shipping-totals th {
	vertical-align: top;
	padding-top: 14px;
	font-weight: 700;
	color: #333;
}
ul#shipping_method.woocommerce-shipping-methods {
	list-style: none;
	padding: 0;
	margin: 4px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
ul#shipping_method.woocommerce-shipping-methods li {
	border: 2px solid #e5e5e5;
	border-radius: 10px;
	padding: 12px 16px;
	background: #fafafa;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	position: relative;
}
ul#shipping_method.woocommerce-shipping-methods li:has(input:checked) {
	border-color: var(--slm-green);
	background: #f1fbf9;
}
ul#shipping_method.woocommerce-shipping-methods li label {
	font-size: 15px;
	color: #333;
	cursor: pointer;
	margin-left: 8px;
}
ul#shipping_method.woocommerce-shipping-methods li input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--slm-green);
	cursor: pointer;
	vertical-align: middle;
}

/* --- Panier : on cache la ligne "Total" (elle additionne à tort sous-total + livraison) --- */
.cart_totals tr.order-total {
	display: none;
}

/* --- Récapitulatif de commande --- */
.woocommerce-checkout-review-order {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
	padding: 10px 5px;
}
table.woocommerce-checkout-review-order-table tfoot .order-total .woocommerce-Price-amount {
	color: #826E08;
	font-size: 1.2em;
	font-weight: 700;
}

/* --- Bloc "Options de paiement" --- */
#payment {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 20px;
	margin-top: 25px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
ul.wc_payment_methods {
	list-style: none;
	padding: 0;
	margin: 0;
}
li.wc_payment_method {
	border: 2px solid #e5e5e5;
	border-radius: 10px;
	margin-bottom: 14px;
	padding: 16px 18px;
	background: #fafafa;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
li.wc_payment_method.payment_method_stripe {
	border-color: #d8d8d8;
}
li.wc_payment_method:has(input[type="radio"]:checked) {
	border-color: #826E08;
	background: #fdf8ea;
}
li.wc_payment_method input[type="radio"]:checked ~ label,
li.wc_payment_method label {
	font-weight: 600;
	color: #333;
	cursor: pointer;
}
li.wc_payment_method input[type="radio"] {
	width: 22px;
	height: 22px;
	accent-color: #826E08;
	vertical-align: middle;
	margin-right: 10px;
	cursor: pointer;
}
li.wc_payment_method:last-child {
	margin-bottom: 0;
}
li.wc_payment_method img.stripe-cards-icon,
li.wc_payment_method img.stripe-icon {
	height: 22px;
	vertical-align: middle;
	margin-left: 8px;
}

/* --- Formulaire carte bancaire (Stripe) --- */
.payment_box {
	background: #ffffff !important;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 18px !important;
	margin-top: 10px !important;
}
/* Supprime la petite flèche par défaut de WooCommerce (mal alignée avec nos cases arrondies) */
.payment_box::before {
	display: none !important;
}
#wc-stripe-upe-form,
#wc-stripe-cc-form {
	border: none;
	padding: 0;
}
.wc-stripe-upe-element,
.wc-stripe-elements-field {
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	padding: 14px;
	transition: border-color 0.2s ease;
}
.wc-stripe-upe-element:focus-within {
	border-color: #826E08;
	box-shadow: 0 0 0 3px rgba(130, 110, 8, 0.15);
}
#wc-stripe-upe-errors,
.woocommerce-NoticeGroup-checkout .woocommerce-error {
	background: #fdecea;
	border-left: 4px solid #e74c3c;
	color: #c0392b;
	padding: 10px 14px;
	border-radius: 6px;
	margin-top: 10px;
	font-size: 14px;
}
#wc-stripe-upe-errors:empty {
	display: none;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
}

/* --- Zone du bouton de commande / bouton PayPal --- */
.woocommerce-checkout-payment .place-order,
#payment .place-order {
	margin-top: 20px;
}
.woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 16px;
}
/* Centre le bouton PayPal (rendu dans une iframe) quand il remplace le bouton "Commander" */
.woocommerce-checkout-payment .place-order iframe,
.woocommerce-checkout-payment .place-order > div {
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* --- Bouton "Commander" --- */
#place_order,
button#place_order {
	background-color: #826E08 !important;
	color: #fff !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 16px 24px !important;
	border-radius: 8px !important;
	border: none !important;
	width: 100%;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.15s ease;
	box-shadow: 0 4px 14px rgba(130, 110, 8, 0.35);
}
#place_order:hover,
button#place_order:hover {
	background-color: #5a6521 !important;
	transform: translateY(-1px);
}

/* --- Bouton "Valider la commande" (page panier) --- */
.woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button,
.woocommerce a.checkout-button.button {
	background-color: #826E08 !important;
	color: #fff !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 16px 24px !important;
	border-radius: 8px !important;
	border: none !important;
	font-size: 16px;
	transition: background-color 0.25s ease, transform 0.15s ease;
	box-shadow: 0 4px 14px rgba(130, 110, 8, 0.35);
}
.woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce a.checkout-button.button:hover {
	background-color: #5a6521 !important;
	transform: translateY(-1px);
}

/* --- Note du panier (page panier) --- */
.slm-shipping-cart-note {
	background: #f1f8f4;
	border-left: 4px solid var(--slm-green);
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 0.95em;
	color: var(--slm-green-dark);
	margin: 8px 0;
}

/* --- Responsive checkout --- */
@media (max-width: 768px) {
	#payment,
	.woocommerce-checkout-review-order {
		padding: 14px;
	}
	#place_order,
	button#place_order {
		padding: 14px 18px !important;
		font-size: 15px;
	}
}

/* --- Suggestions d'adresse (autocomplétion Commander) --- */
.slm-address-autocomplete-wrapper {
	position: relative;
}

.slm-address-suggestions {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: white;
	border: 1px solid #ccc;
	border-top: none;
	border-radius: 0 0 5px 5px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	max-height: 220px;
	overflow-y: auto;
}

.slm-address-suggestions li {
	padding: 8px 12px;
	cursor: pointer;
	text-align: left;
	font-size: 0.95em;
	color: #333;
}

.slm-address-suggestions li:hover {
	background-color: #826E08;
	color: white;
}

/* =========================================================
   PAGE DE CONFIRMATION DE COMMANDE (merci pour votre commande)
   ========================================================= */

.woocommerce-order-confirmation {
	max-width: 900px;
	margin: 0 auto;
}

.order-confirmation-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #f1f8f4;
	border-left: 4px solid var(--slm-green);
	border-radius: 8px;
	padding: 20px 24px;
	margin-bottom: 30px;
}

.order-confirmation-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	background: var(--slm-green);
	color: #fff;
	border-radius: 50%;
	font-size: 22px;
	font-weight: 700;
}

.order-confirmation-banner h2 {
	color: var(--slm-green-dark);
	margin-bottom: 4px;
}

.order-confirmation-sub {
	color: #555;
	font-size: 0.95em;
}

.order-confirmation-pickup {
	background: #f1f8f4;
	border-left: 4px solid var(--slm-green);
	border-radius: 8px;
	padding: 16px 24px;
	margin-bottom: 30px;
	color: #333;
}

.order-confirmation-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
}

.order-confirmation-card {
	flex: 1 1 350px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.order-confirmation-card h3 {
	color: #333;
	margin-top: 20px;
	margin-bottom: 12px;
}

.order-confirmation-card h3:first-child {
	margin-top: 0;
}

.order-confirmation-card table.shop_table {
	width: 100%;
	border-collapse: collapse;
}

.order-confirmation-card table.shop_table th,
.order-confirmation-card table.shop_table td {
	padding: 10px 5px;
	text-align: left;
	border-bottom: 1px solid #ececec;
}

.order-confirmation-totals {
	list-style: none;
	margin-top: 12px;
}

.order-confirmation-totals li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #ececec;
	color: #555;
}

.order-confirmation-totals li.total {
	border-bottom: none;
	font-weight: 700;
	color: #826E08;
	font-size: 1.1em;
	padding-top: 12px;
}

.order-confirmation-button {
	display: inline-block;
	background-color: #826E08;
	color: #fff !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 14px 28px;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.15s ease;
	box-shadow: 0 4px 14px rgba(130, 110, 8, 0.35);
}

.order-confirmation-button:hover {
	background-color: #5a6521;
	transform: translateY(-1px);
}

@media (max-width: 768px) {
	.order-confirmation-grid {
		flex-direction: column;
	}
}

/* === Conditions générales de vente (page-condition-general-de-vente.php) === */
.slm-cgv h2 {
	font-size: 1.5em;
	scroll-margin-top: 140px; /* l'en-tête reste collé en haut : le titre ne doit pas passer dessous */
}
.slm-cgv h3 {
	font-size: 1.15em;
	color: #333;
	padding-bottom: 10px;
	margin-top: 10px;
}
.slm-cgv ul,
.slm-cgv ol {
	padding-left: 1.5em;
	margin-bottom: 20px;
}
.slm-cgv li {
	font-size: 1.05rem;
	color: #555;
	line-height: 1.6;
	margin-bottom: 8px;
}
.slm-cgv li ul {
	margin: 8px 0 0;
}
.slm-cgv-date {
	text-align: center;
}
.slm-cgv-sommaire {
	background-color: #f6f8f2;
	border-left: 4px solid var(--slm-green);
	padding: 15px 20px 5px;
	margin-bottom: 30px;
}
.slm-cgv-sommaire p {
	margin-bottom: 10px;
}
.slm-cgv-sommaire a,
.slm-cgv a {
	color: var(--slm-green-dark);
}
.slm-cgv-encadre {
	border: 2px solid var(--slm-green);
	border-radius: 6px;
	background-color: #fafbf7;
	padding: 20px 20px 0;
	margin-bottom: 25px;
}
.slm-cgv-encadre p {
	font-size: 0.95rem;
	margin-bottom: 14px;
}

/* === Page Nouveautés (page-nouveautes.php) === */
.slm-nouveautes .page-content {
	margin-bottom: 30px;
}
.slm-nouveautes .product-item {
	position: relative;
}
/* Étiquette posée sur la photo (plus précis que la règle du prix ".product-item span") */
.products-grid .product-item .slm-badge-nouveaute {
	position: absolute;
	top: 22px;
	left: 22px;
	z-index: 2;
	padding: 4px 12px;
	border-radius: 20px;
	background-color: var(--slm-green);
	color: #fff;
	font-size: 0.8em;
	font-weight: 600;
}
.products-grid .product-item .slm-badge-nouveaute.est-retour {
	background-color: var(--slm-gold);
}
/* === Texte de présentation d'une catégorie (archive-product.php) === */
.slm-categorie-intro {
	max-width: 900px;
	margin: 0 auto 20px;
	line-height: 1.6;
	text-align: center;
}
.slm-categorie-intro p {
	margin: 0 0 10px;
}
