/* Fiche produit WooCommerce : design VITALID (bleu marine, or, cartes arrondies). */
.single-product {
	--c-navy: #06192d;
	--c-navy2: #0d2f52;
	--c-gold: #f6a800;
	--c-ink: #18232d;
	--c-muted: #4f5d69;
	--c-line: #e3e8ee;
	--c-soft: #f5f7fa;
}

.vp-product {
	width: min(100% - 40px, 1160px);
	margin: 0 auto;
	padding: clamp(24px, 4vw, 52px) 0 clamp(48px, 6vw, 84px);
	color: var(--c-ink);
}
.vp-product .woocommerce-notices-wrapper { margin-bottom: 18px; }
.vp-product .woocommerce-message,
.vp-product .woocommerce-info,
.vp-product .woocommerce-error { margin: 0 0 18px; padding: 15px 20px; border: 0; border-left: 5px solid var(--c-gold); border-radius: 12px; background: #fff4d6; color: var(--c-navy); list-style: none; }
.vp-product .woocommerce-message::before,
.vp-product .woocommerce-info::before,
.vp-product .woocommerce-error::before { display: none; }
.vp-product .woocommerce-message .button { float: right; padding: 8px 18px; border-radius: 999px; background: var(--c-navy); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.vp-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 52px); align-items: start; }

/* Galerie */
.vp-gallery-main { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.2; padding: 18px; border: 1px solid var(--c-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(6, 25, 45, .08); }
.vp-gallery-main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px; margin-top: 14px; }
.vp-thumb { display: block; padding: 4px; border: 2px solid var(--c-line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s ease; }
.vp-thumb img { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
.vp-thumb:hover, .vp-thumb.is-active { border-color: var(--c-gold); }

/* Achat */
.vp-title { margin: 0 0 8px; color: var(--c-navy); font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.12; text-transform: uppercase; }
.vp-title::after { content: ''; display: block; width: 100px; height: 5px; margin-top: 12px; border-radius: 3px; background: var(--c-gold); }
.vp-short { margin: 16px 0 0; color: var(--c-muted); font-size: 15px; line-height: 1.65; }
.vp-price { margin: 18px 0 18px; color: var(--c-navy); font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.vp-price del { margin-right: 8px; color: var(--c-muted); font-size: .65em; font-weight: 600; }
.vp-price ins { background: transparent; text-decoration: none; }

.vp-banner { margin: 0 0 14px; padding: 14px 18px; border-left: 5px solid var(--c-gold); border-radius: 12px; background: var(--c-navy); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.45; text-align: center; }
.vp-banner-energy { margin-top: 18px; color: var(--c-gold); font-size: 17px; }
.vp-method { display: inline-flex; margin: 0 0 20px; padding: 11px 24px; border: 2px solid var(--c-gold); border-radius: 999px; color: var(--c-navy); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background .15s ease; }
.vp-method:hover { background: var(--c-gold); }

/* Ajout au panier */
.vp-cart form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.vp-cart table.variations { width: 100%; margin: 0 0 6px; border: 0; }
.vp-cart table.variations td, .vp-cart table.variations th { padding: 6px 0; border: 0; text-align: left; background: transparent; }
.vp-cart table.variations label { color: var(--c-navy); font-weight: 800; }
.vp-cart select { padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; color: var(--c-ink); font-size: 15px; }
.vp-cart .quantity .qty { width: 84px; padding: 13px 10px; border: 1px solid var(--c-line); border-radius: 12px; text-align: center; font-size: 16px; }
.vp-cart .single_add_to_cart_button {
	flex: 1 1 220px;
	padding: 16px 26px;
	border: 2px solid var(--c-gold);
	border-radius: 999px;
	background: var(--c-gold);
	color: var(--c-navy);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(246, 168, 0, .35);
	transition: background .15s ease, transform .15s ease;
}
.vp-cart .single_add_to_cart_button:hover { background: #ffb81f; transform: translateY(-1px); }
.vp-cart .single_add_to_cart_button.disabled, .vp-cart .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.vp-cart .woocommerce-variation-price { margin: 8px 0; color: var(--c-navy); font-weight: 800; font-size: 20px; }
.vp-cart .stock { margin: 8px 0 0; color: var(--c-muted); font-weight: 700; }
.vp-cart .reset_variations { margin-left: 10px; color: var(--c-muted); font-size: 13px; }

/* Rassurance */
.vp-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.vp-trust > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-soft); }
.vp-trust strong { color: var(--c-navy); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vp-trust span { color: var(--c-muted); font-size: 12.5px; line-height: 1.4; }

/* Onglets avec icônes */
.vp-tabs { margin-top: clamp(36px, 5vw, 64px); }
.vp-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border: 1px solid var(--c-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(6, 25, 45, .06); }
.vp-tab { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 0; border-radius: 12px; background: transparent; color: var(--c-navy); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .15s ease, color .15s ease; }
.vp-tab img { display: block; width: 26px; height: 26px; object-fit: contain; }
.vp-tab:hover { background: var(--c-soft); }
.vp-tab.is-active { background: #f6a800; color: #06192d; box-shadow: 0 8px 18px rgba(246, 168, 0, .35); }

.vp-tab.is-active img { filter: none; }
.vp-tab:focus-visible { outline: 3px solid #0e8fbd; outline-offset: 2px; }

.vp-panel { margin-top: 18px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--c-line); border-radius: 20px; background: #fff; box-shadow: 0 18px 44px rgba(6, 25, 45, .06); }
.vp-panel[hidden] { display: none; }
.vp-panel h3 { margin: 26px 0 10px; color: var(--c-navy); font-size: clamp(18px, 1.9vw, 22px); font-weight: 800; line-height: 1.25; }
.vp-panel h3:first-child { margin-top: 0; }
.vp-panel p { margin: 0 0 14px; color: var(--c-ink); font-size: 15.5px; line-height: 1.75; }
.vp-panel ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.vp-panel li { position: relative; margin: 0 0 8px; padding-left: 26px; color: var(--c-ink); font-size: 15.5px; line-height: 1.65; }
.vp-panel li::before { content: ''; position: absolute; top: .62em; left: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-gold); }
.vp-plan { text-align: center; }
.vp-plan img { max-width: 100%; height: auto; border-radius: 14px; }

@media (max-width: 900px) {
	.vp-top { grid-template-columns: minmax(0, 1fr); }
	.vp-trust { grid-template-columns: minmax(0, 1fr); }
	.vp-tabs-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.vp-tabs-nav::-webkit-scrollbar { display: none; }
	.vp-tab { flex: 0 0 auto; padding: 11px 16px; }
}

/* Attributs (finition, couleur), pastilles de tailles, bloc stock */
.vp-attrs { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--c-muted); font-size: 15px; }
.vp-attrs span { color: var(--c-navy); font-weight: 800; }
.vp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.vp-chips button { min-width: 46px; padding: 10px 12px; border: 2px solid var(--c-line); border-radius: 12px; background: #fff; color: var(--c-navy); font-size: 14px; font-weight: 800; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.vp-chips button:hover { border-color: var(--c-gold); }
.vp-chips button.is-active { border-color: var(--c-navy); background: var(--c-navy); color: #fff; }
.vp-stock-note { margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-soft); }
.vp-stock-note strong { display: block; margin-bottom: 6px; color: var(--c-navy); font-size: 17px; font-weight: 800; }
.vp-stock-note p { margin: 0; color: var(--c-muted); font-size: 13.5px; line-height: 1.6; }
/* Stock : « En stock » en vert avec un point, « Rupture de stock » en rouge avec une croix */
.vp-stock { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 16px; font-weight: 800; }
.vp-stock-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: 50%; }
.vp-stock.is-in { color: #1a8a3c; }
.vp-stock.is-in .vp-stock-icon { background: rgba(26, 138, 60, .15); }
.vp-stock.is-in .vp-stock-icon::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #1a8a3c; }
.vp-stock.is-out { color: #c62828; }
.vp-stock.is-out .vp-stock-icon { background: rgba(198, 40, 40, .12); }
.vp-stock.is-out .vp-stock-icon::before { content: '\2715'; color: #c62828; font-size: 12px; font-weight: 900; line-height: 1; }
.vp-stock-text { margin: 8px 0 0; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-soft); color: var(--c-muted); font-size: 13.5px; line-height: 1.6; }
.vp-cart > p.stock { display: none; }
/* Aide visible uniquement par l'administrateur */
.vp-admin-note { margin: 0 0 16px; padding: 12px 14px; border-left: 4px solid #c62828; border-radius: 8px; background: #fdecea; color: #7f1d1d; font-size: 13px; line-height: 1.5; }

/* Miniatures : l'image entière est visible (pas de rognage) */
.vp-thumb img { object-fit: contain; background: #fff; }

/* Miniatures plus larges que hautes : le produit occupe toute la case */
.vp-thumbs { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.vp-thumb { padding: 3px; }
.vp-thumb img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: contain; border-radius: 10px; }

/* Photo principale : le produit est bien visible (carte aux proportions de la photo) et s'agrandit au clic */
.vp-gallery-main { aspect-ratio: auto; min-height: 0; padding: 10px; }
.vp-gallery-main img { width: 100%; height: auto; max-height: 640px; cursor: zoom-in; }
.vp-lightbox[hidden] { display: none; }
.vp-lightbox { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 25, 45, .88); cursor: zoom-out; }
.vp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default; }
.vp-lightbox-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #06192d; font-size: 28px; line-height: 1; cursor: pointer; }
body.vp-lightbox-open { overflow: hidden; }
