/*
	Theme Name: Hello Elementor Child
	Template: hello-elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.4.5
	Stable tag: 3.4.5
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/

/* Grid de productos tabs_products - 3 columnas */
.tabs-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
}

@media (max-width: 992px) {
	.tabs-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0;
	}
}

@media (max-width: 576px) {
	.tabs-products-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
	
	.tabs-product-item {
		flex-direction: column;
	}
	
	.tabs-product-img-wrap {
		width: 100%;
		min-width: 100%;
	}
}

.tabs-product-item {
	display: flex;
	flex-direction: row;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	align-items: center;
	padding: 15px;
}

/* Bordes para los primeros 3 productos (borde abajo) */
.tabs-product-item:nth-child(-n+3) {
	position: relative;
	margin-bottom: -1px;
}

.tabs-product-item:nth-child(-n+3)::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 20px;
	height: 2px;
	background-color: #ddd;
}

/* Ajustar el borde inferior para productos 1 y 2 (dejar espacio para el borde derecho) */
.tabs-product-item:nth-child(1)::after,
.tabs-product-item:nth-child(2)::after {
	right: 20px; /* Dejar 1px de espacio antes del borde derecho */
}

/* Borde inferior completo para producto 3 */
.tabs-product-item:nth-child(3)::after {
	right: 0;
}

/* Bordes para los primeros 2 productos de cada fila (borde derecho) */
.tabs-product-item:nth-child(1),
.tabs-product-item:nth-child(2),
.tabs-product-item:nth-child(4),
.tabs-product-item:nth-child(5) {
	position: relative;
	margin-right: -1px;
}

.tabs-product-item:nth-child(1)::before,
.tabs-product-item:nth-child(2)::before,
.tabs-product-item:nth-child(4)::before,
.tabs-product-item:nth-child(5)::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 2px;
	background-color: #ddd;
}

/* Ajustar el borde derecho para productos 1 y 2 (dejar espacio para el borde inferior) */
.tabs-product-item:nth-child(1)::before,
.tabs-product-item:nth-child(2)::before {
	bottom: 1px; /* Dejar 1px de espacio antes del borde inferior */
}

/* Borde derecho completo para productos 4 y 5 */
.tabs-product-item:nth-child(4)::before,
.tabs-product-item:nth-child(5)::before {
	bottom: 0;
}

.tabs-product-info {
	width: 55%;
	padding: 0 20px;
} 
.tabs-product-img-wrap {
	display: block;
	min-width: 45%;
	width: 45%;
	flex-shrink: 0;
	overflow: hidden;
	text-align: center;
}

.tabs-product-img {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.tabs-product-name {
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 12px 0;
	color: #333;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Estilos para las estrellas de WooCommerce */
.tabs-product-rating {
	margin-bottom: 12px;
	font-size: 1em;
	line-height: 1;
	display: block;
}

/* Estilos para star-rating - Compatible con WooCommerce */
.tabs-product-rating .star-rating,
.star-rating {
	font-family: star;
	font-size: 1em;
	height: 1em;
	line-height: 1;
	margin: 0;
	overflow: hidden;
	position: relative;
	width: 5.4em;
	display: inline-block;
	font-weight: 400;
	color: #ddd;
}

.tabs-product-rating .star-rating::before,
.star-rating::before {
	content: "\73\73\73\73\73";
	float: left;
	left: 0;
	position: absolute;
	top: 0;
	color: #ddd;
	font-size: 1em;
	letter-spacing: 0.1em;
	word-spacing: 0.1em;
}

.tabs-product-rating .star-rating span,
.star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
	height: 0;
}

.tabs-product-rating .star-rating span::before,
.star-rating span::before {
	content: "\53\53\53\53\53";
	color: #FDC702;
	font-size: 1em;
	letter-spacing: 0.1em;
	word-spacing: 0.1em;
	position: absolute;
	top: 0;
	left: 0;
	height: 1em;
	line-height: 1em;
}

/* Ocultar texto dentro del span */
.tabs-product-rating .star-rating span strong.rating,
.star-rating span strong.rating {
	position: absolute;
	left: -999em;
	width: 990px;
}

/* Asegurar que WooCommerce estilos de estrellas se apliquen */
.tabs-product-rating .woocommerce-product-rating {
	margin-bottom: 0;
}

.tabs-product-price {
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.tabs-product-price .woocommerce-Price-amount {
	font-weight: 600;
}

.cta-default-btn {
	display: inline-block;
	width: fit-content;
	background-color: #FDC702;
	color: #000;
	padding: 8px 24px;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	font-size: 14px;
	transition: background-color 0.3s ease;
	border-radius: 50px;
}


.tabs-no-products {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}
