/**
 * Améliorations fiche produit — Le Ballon Publicitaire
 *
 * - Fil d'ariane (aligné 1400px = header)
 * - Référence SKU
 * - Galerie thumbnails (sous image principale)
 * - Lightbox PhotoSwipe plein écran
 *
 * @version 0.32.2
 */

/* ==========================================================================
   Fil d'ariane
   ========================================================================== */

.lbp-breadcrumb {
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px;
	font-size: 13px;
	color: #888;
}

.lbp-breadcrumb-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	line-height: 1.5;
}

.lbp-breadcrumb a {
	color: #666;
	text-decoration: none;
	transition: color 0.15s ease;
}

.lbp-breadcrumb a:hover {
	color: #1FA8DC;
	text-decoration: underline;
}

.lbp-breadcrumb-sep {
	color: #ccc;
	font-weight: 300;
	margin: 0 2px;
}

.lbp-breadcrumb-current {
	color: #222;
	font-weight: 600;
}

@media (max-width: 600px) {
	.lbp-breadcrumb {
		padding: 16px 16px 0;
		font-size: 12px;
	}
}

/* ==========================================================================
   Référence SKU
   ========================================================================== */

.lbp-product-sku {
	font-size: 13px;
	color: #888;
	margin: -8px 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.lbp-product-sku-label {
	font-weight: 500;
}

.lbp-product-sku-value {
	color: #1FA8DC;
	font-weight: 700;
	letter-spacing: 0.3px;
}

/* ==========================================================================
   Galerie produit (thumbnails + zoom)
   ========================================================================== */

.woocommerce-product-gallery__image {
	cursor: zoom-in;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

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

.flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.flex-control-thumbs li {
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.flex-control-thumbs li img {
	width: 100%;
	height: auto;
	display: block;
	border: 2px solid transparent;
	border-radius: 6px;
	transition: all 0.2s ease;
	opacity: 0.7;
	background: #fff;
}

.flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: #1FA8DC;
}

.flex-control-thumbs li img.flex-active {
	opacity: 1;
	border-color: #1FA8DC;
	box-shadow: 0 2px 8px rgba(31, 168, 220, 0.2);
}

/* Loupe zoom (PhotoSwipe trigger WC) */
.woocommerce-product-gallery {
	position: relative;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 99;
	width: 40px;
	height: 40px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	color: transparent;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.woocommerce-product-gallery__trigger::before {
	content: '';
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FA8DC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>") no-repeat center / contain;
	display: block;
}

.woocommerce-product-gallery__trigger:hover {
	background: #1FA8DC;
	border-color: #1FA8DC;
	transform: scale(1.05);
}

.woocommerce-product-gallery__trigger:hover::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>");
}

/* ==========================================================================
   PhotoSwipe (lightbox WC) — image plein écran
   ========================================================================== */

.pswp__bg {
	background: rgba(0, 0, 0, 0.92);
}

/* Forcer l'image à occuper l'espace disponible (95vw × 90vh max) */
.pswp__img {
	max-width: 95vw !important;
	max-height: 90vh !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

/* Centrer l'image dans le wrap */
.pswp__zoom-wrap {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
}

.pswp__caption__center {
	font-family: 'Helvetica Neue', sans-serif;
	font-size: 14px;
}