/* =========================================================
   Ficha de producto - Metas Golf Academy
   Se apoya en las variables y tarjetas de tienda.css
   (el contenedor lleva tambien la clase .mt-shop).
   ========================================================= */

.mt-pdp-wrap { padding-bottom: 8px; }

.mt-pdp {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-top: 48px;
}

/* ---------- Galeria ---------- */
.mt-gallery__main {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 18px;
	background: var(--mt-sand);
}
.mt-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-gallery__main svg { width: 64px; height: 64px; stroke: var(--mt-muted); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.mt-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.mt-thumb {
	appearance: none;
	cursor: pointer;
	width: 70px;
	height: 70px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 12px;
	background: var(--mt-sand);
	transition: border-color 0.2s ease;
}
.mt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-thumb:hover { border-color: var(--mt-muted); }
.mt-thumb[aria-current="true"] { border-color: var(--mt-ink); }

/* ---------- Resumen ---------- */
.mt-buy__brand { display: block; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mt-muted); margin-bottom: 8px; }
.mt-buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12px; margin-bottom: 14px; }
.mt-stars { color: #E8B800; letter-spacing: 2px; font-size: 12px; }
.mt-buy__reviews { color: var(--mt-muted); }
.mt-stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #2e7d32; }
.mt-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mt-stock--out { color: #b3261e; }
.mt-buy__price { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.mt-buy__price del { font-size: 18px; font-weight: 400; color: var(--mt-muted); margin-right: 8px; }
.mt-buy__price ins { text-decoration: none; background: none; }
.mt-buy__tax { margin-left: 6px; font-size: 11px; font-weight: 400; color: var(--mt-muted); letter-spacing: 0; }
.mt-buy__short { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--mt-muted); max-width: 520px; }
.mt-buy__short p { margin: 0; }

/* Formulario de compra de WooCommerce */
.mt-buy__form { margin-top: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--mt-line); }
.mt-buy__form form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.mt-buy__form form.cart .quantity { display: inline-flex; align-items: center; border: 1px solid var(--mt-line); border-radius: 100px; background: #fff; padding: 4px; }
.mt-buy__form .quantity input.qty { width: 40px; border: 0; background: transparent; text-align: center; font: inherit; font-size: 14px; font-weight: 600; padding: 0; height: 36px; -moz-appearance: textfield; appearance: textfield; }
.mt-buy__form .quantity input.qty::-webkit-outer-spin-button,
.mt-buy__form .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mt-qty-btn { appearance: none; border: 0; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; background: transparent; font-size: 17px; line-height: 1; color: var(--mt-ink); }
.mt-qty-btn:hover { background: var(--mt-sand); }
.mt-buy__form form.cart .single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 48px;
	border: 0;
	border-radius: 100px;
	background: var(--mt-yellow);
	color: var(--mt-ink);
	font-size: 14px;
	font-weight: 700;
	padding: 15px 24px;
	transition: background-color 0.25s ease, color 0.25s ease;
}
.mt-buy__form form.cart .single_add_to_cart_button:hover { background: var(--mt-ink); color: #fff; }
.mt-buy__form .stock { display: none; }

.mt-perks-list { display: grid; gap: 10px; margin-top: 22px; font-size: 13px; }
.mt-perks-list li { position: relative; padding-left: 24px; }
.mt-perks-list li::before { content: ""; position: absolute; left: 3px; top: 3px; width: 6px; height: 11px; border: solid #C9A800; border-width: 0 2px 2px 0; transform: rotate(40deg); }
.mt-buy__ids { margin-top: 20px; font-size: 11px; color: var(--mt-muted); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mt-buy__ids a { color: inherit; text-decoration: underline; }

/* ---------- Pestanas ---------- */
.mt-tabs { margin-top: 56px; }
.mt-tabs__nav { display: flex; flex-wrap: wrap; gap: 28px; border-bottom: 1px solid var(--mt-line); }
.mt-tab {
	appearance: none;
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0 0 14px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--mt-muted);
}
.mt-tab[aria-selected="true"] { color: var(--mt-ink); border-bottom-color: var(--mt-yellow); }
.mt-panel { padding-top: 28px; max-width: 760px; }
.mt-panel[hidden] { display: none; }
.mt-panel__title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.mt-panel__text { font-size: 14px; line-height: 1.7; color: var(--mt-muted); }
.mt-panel__text p { margin: 0 0 12px; }
.mt-specs { width: 100%; margin-top: 20px; border-collapse: collapse; }
.mt-specs th, .mt-specs td { padding: 12px 0; border-bottom: 1px solid var(--mt-line); font-size: 12px; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.mt-specs th { font-weight: 400; color: var(--mt-muted); }
.mt-specs td { text-align: right; font-weight: 700; }

/* ---------- Relacionados ---------- */
.mt-related { padding: 64px 0 0; }
.mt-related .mt-h2 { margin-bottom: 22px; }
.mt-shop .mt-related .mt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
	.mt-pdp { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
	.mt-shop .mt-related .mt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
	.mt-buy__price { font-size: 28px; }
	.mt-tabs__nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.mt-thumb, .mt-tab, .mt-buy__form form.cart .single_add_to_cart_button { transition: none; }
}

/* El tema pinta de amarillo todos los botones: se neutralizan los del selector de cantidad y las pestanas */
.mt-shop .mt-buy__form .mt-qty-btn { background: transparent !important; color: var(--mt-ink) !important; padding: 0 !important; min-height: 0 !important; width: 36px; height: 36px; border-radius: 50% !important; }
.mt-shop .mt-buy__form .mt-qty-btn:hover { background: var(--mt-sand) !important; }
.mt-shop .mt-tab { background: none !important; padding: 0 0 14px !important; border-radius: 0 !important; color: var(--mt-muted) !important; }
.mt-shop .mt-tab[aria-selected="true"] { color: var(--mt-ink) !important; }
.mt-shop .mt-thumb { background: var(--mt-sand) !important; padding: 0 !important; border-radius: 12px !important; }

/* El tema fija un tamano grande en h2: se ajusta al de la maqueta */
.mt-shop.mt-pdp-wrap .mt-panel__title { font-size: 15px !important; line-height: 1.3 !important; margin: 0 0 10px !important; }
.mt-shop.mt-pdp-wrap .mt-h2 { font-size: 22px !important; line-height: 1.2 !important; }

/* Avisos de WooCommerce (producto quitado del carrito, etc.) dentro del contenedor y con el estilo de la tienda */
.mt-pdp-wrap .woocommerce-notices-wrapper { padding-top: 28px; }
.mt-pdp-wrap .woocommerce-message,
.mt-pdp-wrap .woocommerce-info,
.mt-pdp-wrap .woocommerce-error {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px !important;
	padding: 14px 18px !important;
	border: 1px solid var(--mt-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	font-size: 14px;
	color: var(--mt-ink);
	list-style: none;
}
.mt-pdp-wrap .woocommerce-message a { font-weight: 700; text-decoration: underline; color: var(--mt-ink); }
.mt-pdp-wrap .woocommerce-message .button { margin-left: auto; order: 2; }
