/* ═══════════════════════════════════════════════════
   Fiche du Vin - Chateau de Cheman
   Style: Luxe / Viticole / Elegant
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   PICTOS INLINE - dans le résumé produit (côté droit)
   Entre le bouton panier et les catégories
   ═══════════════════════════════════════════════════ */

.cdc-wine-pictos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.6rem;
	margin: 1.5rem 0;
	padding: 1.2rem 0;
	border-top: 1px solid rgba(139, 26, 43, 0.12);
	max-width: 100%;
	box-sizing: border-box;
}

.cdc-wine-pictos__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	background: linear-gradient(145deg, #fdfbf9, #f9f5f0);
	border: 1px solid rgba(139, 26, 43, 0.08);
	transition: all 0.25s ease;
	min-width: 0;
}

.cdc-wine-pictos__item:hover {
	border-color: rgba(139, 26, 43, 0.2);
	box-shadow: 0 4px 12px rgba(139, 26, 43, 0.08);
	transform: translateY(-1px);
}

/* Icone */
.cdc-wine-pictos__icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	color: #8b1a2b;
	transition: transform 0.25s ease;
}

.cdc-wine-pictos__icon svg {
	width: 100%;
	height: 100%;
}

.cdc-wine-pictos__item:hover .cdc-wine-pictos__icon {
	transform: scale(1.1);
}

/* Textes */
.cdc-wine-pictos__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cdc-wine-pictos__label {
	font-size: 0.6rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #8b1a2b;
	opacity: 0.75;
	line-height: 1.2;
}

.cdc-wine-pictos__value {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--theme-text-color, #3a3a3a);
	line-height: 1.3;
	word-break: break-word;
}

/* ═══════════════════════════════════════════════════
   DETAILS - Dégustation / Accords mets & vin
   Pleine largeur sous le résumé
   ═══════════════════════════════════════════════════ */

.cdc-wine-card {
	max-width: 1200px;
	margin: 3rem auto;
	padding: 0 1rem;
}

.cdc-wine-card__details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
}

.cdc-wine-card__detail {
	padding: 2rem;
	border-radius: 12px;
	background: linear-gradient(145deg, #fdfbf9, #f9f5f0);
	border: 1px solid rgba(139, 26, 43, 0.1);
	transition: box-shadow 0.3s ease;
}

.cdc-wine-card__detail:hover {
	box-shadow: 0 8px 24px rgba(139, 26, 43, 0.08);
}

.cdc-wine-card__detail-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(139, 26, 43, 0.1);
}

.cdc-wine-card__detail-header svg {
	width: 28px;
	height: 28px;
	color: #8b1a2b;
	flex-shrink: 0;
}

.cdc-wine-card__detail-header h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--theme-heading-color, #2c2c2c);
}

.cdc-wine-card__detail-content {
	font-size: 0.95rem;
	line-height: 1.75;
	color: var(--theme-text-color, #555);
}

.cdc-wine-card__detail-content p:last-child {
	margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════
   META PRODUCT - Catégories, Tags, SKU en mini-cards
   ═══════════════════════════════════════════════════ */

.cdc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem !important;
	padding: 0 !important;
	border: none !important;
}

.cdc-meta__group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.cdc-meta__card {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.7rem;
	border-radius: 8px;
	background: linear-gradient(145deg, #fdfbf9, #f9f5f0);
	border: 1px solid rgba(139, 26, 43, 0.1);
	text-decoration: none !important;
	transition: all 0.25s ease;
	cursor: pointer;
}

.cdc-meta__card:hover {
	border-color: rgba(139, 26, 43, 0.25);
	box-shadow: 0 3px 10px rgba(139, 26, 43, 0.1);
	transform: translateY(-1px);
	text-decoration: none !important;
}

.cdc-meta__card--tag {
	background: linear-gradient(145deg, #f9f5f0, #f4ede4);
}

.cdc-meta__card--sku {
	background: linear-gradient(145deg, #f5f5f5, #efefef);
	border-color: rgba(0, 0, 0, 0.08);
	cursor: default;
}

.cdc-meta__card--sku:hover {
	border-color: rgba(0, 0, 0, 0.15);
	box-shadow: none;
	transform: none;
}

.cdc-meta__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: #8b1a2b;
	transition: transform 0.25s ease;
}

.cdc-meta__icon svg {
	width: 100%;
	height: 100%;
}

.cdc-meta__card:hover .cdc-meta__icon {
	transform: scale(1.1);
}

.cdc-meta__card--sku .cdc-meta__icon {
	color: #888;
}

.cdc-meta__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.cdc-meta__label {
	font-size: 0.55rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #8b1a2b;
	opacity: 0.7;
	line-height: 1.2;
}

.cdc-meta__card--sku .cdc-meta__label {
	color: #888;
}

.cdc-meta__value {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--theme-text-color, #3a3a3a);
	line-height: 1.3;
}

/* Masquer l'ancien style par défaut de WooCommerce/Blocksy */
.product_meta .posted_in,
.product_meta .tagged_as,
.product_meta .sku_wrapper {
	display: none;
}

/* ═══════════════════════════════════════════════════
   Masquer les onglets WooCommerce vides
   ═══════════════════════════════════════════════════ */

.woocommerce-tabs.wc-tabs-wrapper:empty,
.woocommerce-tabs.wc-tabs-wrapper:has(.wc-tabs:empty) {
	display: none;
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
	.cdc-wine-pictos {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
		overflow: hidden;
	}

	/* Si nombre impair, la dernière card prend toute la largeur */
	.cdc-wine-pictos__item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.cdc-wine-card {
		margin: 2rem auto;
	}

	.cdc-wine-card__details {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.cdc-wine-pictos {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.4rem;
	}

	.cdc-wine-pictos__item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.cdc-wine-pictos__icon {
		width: 22px;
		height: 22px;
	}

	.cdc-wine-pictos__value {
		font-size: 0.78rem;
	}
}
