/*
 * Ficha de producto (Figma 211:320 escritorio, 211:515 movil).
 * Usa las variables y tarjetas de tienda.css.
 */

.cgc-prod .cgc-shop-in { gap: 64px; }
.cgc-prod .cgc-shop-sec__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cgc-prod .cgc-shop-h2 { font-size: 52px; line-height: .95; }

.cgc-prod-crumb {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-top: 32px;
	margin-bottom: -32px;
	font-size: 13px;
	color: var(--cgc-muted);
}

.cgc-prod-crumb a { color: inherit; text-decoration: none; }
.cgc-prod-crumb a:hover { color: var(--cgc-ink); }

.cgc-prod-main {
	display: grid;
	grid-template-columns: minmax(0, 640fr) minmax(0, 512fr);
	gap: 48px;
	align-items: start;
}

/* Galeria */
.cgc-prod-gallery__main {
	aspect-ratio: 640 / 480;
	border-radius: 12px;
	overflow: hidden;
	background: #1a1a1a;
}

.cgc-prod-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cgc-prod-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.cgc-prod .cgc-prod-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: #1a1a1a;
	aspect-ratio: 150 / 110;
	cursor: pointer;
}

.cgc-prod .cgc-prod-thumb.is-on { border-color: var(--cgc-red); }

.cgc-prod-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Datos */
.cgc-prod-info {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cgc-prod-info .cgc-shop-eyebrow { margin-bottom: 10px !important; }

.cgc-prod-title {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 64px;
	line-height: .95;
	text-transform: uppercase;
	color: var(--cgc-ink);
}

.cgc-prod-price {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 48px;
	line-height: 1;
	margin-top: 24px !important;
	white-space: nowrap;
}

.cgc-prod-price small {
	font-family: var(--cgc-text);
	font-weight: 400;
	font-size: 16px;
	color: var(--cgc-muted);
	margin-left: 6px;
}

.cgc-prod-desc {
	margin-top: 28px;
	font-size: 17px;
	line-height: 1.35;
}

.cgc-prod-desc p + p { margin-top: 10px; }

.cgc-shop .cgc-prod-checks {
	list-style: none;
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cgc-prod-checks li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
}

.cgc-prod-checks svg { color: var(--cgc-red); flex: none; }

/* Formulario de compra (el de WooCommerce) */
.cgc-prod-buy { margin-top: 28px; }

.cgc-prod-buy form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.cgc-prod-buy .cgc-gift-amount-field {
	flex: 1 1 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #fff;
	border-radius: 12px;
	padding: 16px;
}

.cgc-prod-buy .cgc-gift-amount-field label { font-weight: 700; font-size: 15px; }
.cgc-prod-buy .cgc-gift-amount-field input {
	height: 48px;
	border: 1.5px solid #c9c9c9;
	border-radius: 10px;
	padding: 0 14px;
	font: 600 17px var(--cgc-text);
}
.cgc-prod-buy .cgc-gift-hint { font-size: 13px; color: var(--cgc-muted); }

.cgc-prod-buy .quantity {
	display: flex;
	align-items: center;
	height: 52px;
	border: 1.5px solid var(--cgc-ink);
	border-radius: 99px;
	padding: 0 6px;
	flex: none;
}

.cgc-prod-buy .quantity input.qty {
	width: 32px;
	border: 0;
	background: transparent;
	text-align: center;
	font: 700 16px var(--cgc-text);
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
}

.cgc-prod-buy .quantity input.qty::-webkit-outer-spin-button,
.cgc-prod-buy .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cgc-prod .cgc-prod-step {
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	font: 400 22px/1 var(--cgc-text);
	color: var(--cgc-ink);
	cursor: pointer;
	padding: 0;
}

/* Cantidad fija (regalos): WooCommerce pinta un input oculto. */
.cgc-prod-buy .quantity:has(input[type="hidden"]) { display: none; }

.cgc-prod .cgc-prod-buy .single_add_to_cart_button {
	flex: 1 1 auto;
	height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 99px;
	background: var(--cgc-red);
	color: #fff;
	font: 700 17px var(--cgc-text);
	white-space: nowrap;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.cgc-prod .cgc-prod-buy .single_add_to_cart_button::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cgc-prod .cgc-prod-buy .single_add_to_cart_button:hover { filter: brightness(.92); }

.cgc-prod-safe {
	margin-top: 16px !important;
	font-size: 13px;
	color: var(--cgc-muted);
}

/* Preguntas */
.cgc-prod-faq .cgc-shop-h2 { font-size: 40px; margin-bottom: 20px !important; }

.cgc-prod-faq__item { border-bottom: 1px solid #c9c9c9; }

.cgc-prod-faq__item summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 18px 0;
	font-weight: 600;
	font-size: 17px;
	cursor: pointer;
}

.cgc-prod-faq__item summary::-webkit-details-marker { display: none; }

.cgc-prod-faq__item summary span {
	position: relative;
	width: 14px;
	height: 14px;
	flex: none;
}

.cgc-prod-faq__item summary span::before,
.cgc-prod-faq__item summary span::after {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 14px;
	height: 2px;
	background: currentColor;
}

.cgc-prod-faq__item summary span::after { transform: rotate(90deg); }
.cgc-prod-faq__item[open] summary span::after { display: none; }

.cgc-prod-faq__item p {
	margin: -8px 0 18px !important;
	font-size: 15px;
	color: var(--cgc-muted);
}

.cgc-prod-all {
	font-weight: 700;
	font-size: 14px;
	color: var(--cgc-red);
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 1023px) {
	.cgc-prod-main { grid-template-columns: 1fr; gap: 32px; }
	.cgc-prod-title { font-size: 52px; }
}

@media (max-width: 767px) {
	.cgc-prod .cgc-shop-in { gap: 48px; }
	.cgc-prod-crumb { padding-top: 16px; margin-bottom: -28px; }
	.cgc-prod-title { font-size: 44px; }
	.cgc-prod-price { font-size: 40px; }
	.cgc-prod-thumbs { gap: 8px; }
	.cgc-prod-faq .cgc-shop-h2 { font-size: 34px; }
	.cgc-prod .cgc-shop-sec__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.cgc-prod .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
