/**
Theme Name: Foto Alta Calidad
Author: Taiko Solutions
Author URI: http://wpastra.com/about/
Description: Astra child theme para Foto Alta Calidad.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ==================================================
   GALERÍA PRINCIPAL DEL PRODUCTO
   ================================================== */

.single-product .woocommerce-product-gallery__image a {
	pointer-events: none !important;
}


/* ==================================================
   PRODUCTOS RELACIONADOS
   ================================================== */

.related.products span.price,
.related.products p.price,
.related.products .woocommerce-Price-amount,
.related.products .onsale,
.elementor-widget-woocommerce-product-related span.price,
.elementor-widget-woocommerce-product-related .woocommerce-Price-amount,
.elementor-widget-woocommerce-product-related .onsale,
section.related.products .astra-shop-summary-wrap > .price,
section.related.products .ast-onsale-card {
	display: none !important;
}


/* ==================================================
   PRODUCTOS SIN STOCK EN LISTADOS
   ================================================== */

.e-loop-item.outofstock .quantity,
.e-loop-item:has(.outofstock) .quantity,
li.product.outofstock .quantity,
.product.outofstock form.cart .quantity {
	display: none !important;
}


/* ==================================================
   PIES DE FOTO
   ================================================== */

figure figcaption,
.wp-caption .wp-caption-text {
	display: block;
	width: 100%;
	font-size: 12px;
	font-style: italic;
	text-align: right !important;
}


/* ==================================================
   LÍNEAS HORIZONTALES DEL PRODUCTO
   ================================================== */

body.single-product .elementor-widget-woocommerce-product-content > hr,
body.single-product .elementor-widget-woocommerce-product-content .fac-vc-separator {
	display: block !important;
	visibility: visible !important;
	clear: both !important;
	width: 100% !important;
	height: 1px !important;
	margin: 28px 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background-color: #cccccc !important;
	opacity: 1 !important;
}


/* ==================================================
   SELECTOR DE VARIACIONES
   ================================================== */

body.single-product table.variations,
body.single-product table.variations tbody,
body.single-product table.variations tr,
body.single-product table.variations th,
body.single-product table.variations td {
	border: 0 !important;
	box-shadow: none !important;
}

/* ==================================================
   GALERÍAS VC EN PRODUCTOS Y ENTRADAS
   ================================================== */

.fac-vc-gallery {
	display: grid !important;
	grid-template-columns: repeat(var(--fac-vc-columns, 3), minmax(0, 1fr)) !important;
	gap: 20px !important;
	width: 100% !important;
	margin: 30px 0 !important;
	padding: 0 !important;
	clear: both !important;
}

.fac-vc-gallery__item {
	display: block !important;
	min-width: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.fac-vc-gallery__link {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden;
	background: transparent !important;
}

.fac-vc-gallery__image {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	object-fit: contain !important;
}

/* Tablet: máximo dos fotografías por fila */
@media (max-width: 900px) {
	.fac-vc-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 15px !important;
	}
}

/* Móvil: una fotografía por fila */
@media (max-width: 600px) {
	.fac-vc-gallery {
		grid-template-columns: 1fr !important;
		gap: 15px !important;
		margin: 25px 0 !important;
	}
}
/* Ocultar imagen destacada dentro de entradas de Multimedia */
.single-post.fac-categoria-multimedia .post-thumb-img-content {
	display: none !important;
}