/**
 * Theme Name:     Hello Elementor Child
 * Template:       hello-elementor
 * Author:         joseferran
 * Text Domain:    hello-elementor-child
 * Description:    Child theme de Hello Elementor para ecucu.es
 * Version:        2.0.0
 */

/* ═══════════════════════════════════════
   GLOBAL — Tipografía y colores base
   ═══════════════════════════════════════ */

body {
	font-family: "Poppins", sans-serif;
	color: #1a1a1a;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Poppins", sans-serif;
	color: #1a1a1a;
}

a {
	color: #1a1a1a;
}

a:hover {
	color: #e70072;
}

img {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
}

a:focus img,
a:hover img,
a:active img {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
	opacity: 1;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	border-bottom: 1px solid #eee;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1000;
}

.site-branding .custom-logo {
	max-height: 48px;
	width: auto;
}

.site-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.site-navigation .menu {
	display: flex;
	list-style: none;
	gap: 24px;
	margin: 0;
	padding: 0;
}

.site-navigation .menu a {
	text-decoration: none;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: color 0.2s;
}

.site-navigation .menu a:hover {
	color: #000;
}

/* Carrito en header */
.ecu-header-cart {
	position: relative;
}

.ecu-header-cart__link {
	display: flex;
	align-items: center;
	color: #333;
	text-decoration: none;
	transition: color 0.2s;
}

.ecu-header-cart__link:hover {
	color: #000;
}

.ecu-header-cart__count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #000;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.site-footer {
	border-top: 1px solid #eee;
	padding: 24px;
	text-align: center;
	font-size: 13px;
	color: #999;
}

.site-footer .menu {
	display: flex;
	justify-content: center;
	list-style: none;
	gap: 20px;
	margin: 0;
	padding: 0;
}

.site-footer .menu a {
	color: #666;
	text-decoration: none;
	font-size: 13px;
}

.site-footer .menu a:hover {
	color: #000;
}

/* ═══════════════════════════════════════
   WOOCOMMERCE — Producto individual
   Layout 68/32 como el tema original
   ═══════════════════════════════════════ */

.single-product .product {
	display: grid;
	grid-template-columns: 68% 32%;
	gap: 0;
	max-width: 1172px;
	margin: 0 auto;
	padding: 16px;
}

.single-product .product .woocommerce-product-gallery {
	grid-column: 1;
	grid-row: 1;
	padding-right: 24px;
}

.single-product .product .summary.entry-summary {
	grid-column: 2;
	grid-row: 1;
	padding: 16px;
}

.single-product .product .woocommerce-tabs,
.single-product .product .related.products,
.single-product .product .up-sells {
	grid-column: 1 / -1;
}

/* Product summary internals */
.single-product .product .summary .product_title {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 8px;
}

.single-product .product .summary .price {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 16px;
}

.single-product .product .summary .price del {
	opacity: 0.5;
	font-weight: 400;
}

.single-product .product .summary .price ins {
	text-decoration: none;
}

.single-product .product .summary .woocommerce-product-details__short-description {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	margin-bottom: 16px;
}

.single-product .product .summary .single_add_to_cart_button {
	background: #000;
	color: #fff;
	border: none;
	padding: 14px 32px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	transition: background 0.2s;
}

.single-product .product .summary .single_add_to_cart_button:hover {
	background: #333;
}

/* Star rating */
.single-product .product .summary .star-rating {
	margin-bottom: 12px;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
	max-width: 1172px;
	margin: 12px auto;
	padding: 0 16px;
	font-size: 13px;
	color: #999;
}

.woocommerce-breadcrumb a {
	color: #666;
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	color: #000;
}

/* Product gallery images */
.woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
}

/* Sale badge */
.single-product .product .onsale {
	background: #e70072;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 3px;
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
}

/* Variations */
.single-product .product .variations {
	width: 100%;
	margin-bottom: 16px;
}

.single-product .product .variations td {
	padding: 4px 0;
}

.single-product .product .variations select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Quantity */
.single-product .product .quantity .qty {
	width: 60px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
}

/* Related / upsells grid */
.related.products ul.products,
.up-sells ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	padding: 0;
}

.related.products ul.products li.product,
.up-sells ul.products li.product {
	text-align: center;
}

.related.products ul.products li.product img,
.up-sells ul.products li.product img {
	width: 100%;
	height: auto;
}

/* ═══════════════════════════════════════
   WOOCOMMERCE — Product cards (loop)
   ═══════════════════════════════════════ */

ul.products {
	list-style: none;
	padding: 0;
}

ul.products li.product a img {
	width: 100%;
	height: auto;
}

ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px;
	font-weight: 600;
}

ul.products li.product .price {
	font-size: 14px;
	font-weight: 700;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
	.single-product .product {
		grid-template-columns: 1fr;
	}

	.single-product .product .woocommerce-product-gallery {
		padding-right: 0;
		margin-bottom: 24px;
	}
}

@media (max-width: 768px) {
	.site-header {
		flex-wrap: wrap;
		gap: 8px;
		padding: 10px 16px;
	}

	.site-navigation {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		overflow-x: auto;
	}

	.site-navigation .menu {
		gap: 16px;
	}

	.site-navigation .menu a {
		font-size: 12px;
		white-space: nowrap;
	}

	.related.products ul.products,
	.up-sells ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.site-branding .custom-logo {
		max-height: 36px;
	}
}
