/*
 * Hogarazo Shop V2 — Theme 4.3.0
 * Estilos exclusivos del catálogo de WooCommerce.
 */

body.hogarazo-catalog {
	--hz-shop-surface: #ffffff;
	--hz-shop-soft: #f3f7f4;
	--hz-shop-ink: #18221d;
	--hz-shop-muted: #68766e;
	--hz-shop-border: #dfe8e2;
	--hz-shop-green: #084c2e;
	--hz-shop-red: #df1515;
	--hz-shop-yellow: #ffc400;
	background: #fff;
	color: var(--hz-shop-ink);
}

/* ---------------------------------------------------------
   Hero único de Blocksy: compacto, cálido y premium
   --------------------------------------------------------- */
body.hogarazo-catalog .hero-section {
	position: relative;
	isolation: isolate;
	min-height: 238px;
	overflow: hidden;
	border: 1px solid rgba(8, 76, 46, .08);
	border-radius: 0 0 28px 28px;
	background:
		radial-gradient(circle at 78% 25%, rgba(255, 196, 0, .34), transparent 24%),
		radial-gradient(circle at 92% 80%, rgba(8, 76, 46, .18), transparent 30%),
		linear-gradient(120deg, #f8f4e8 0%, #f2f8f2 48%, #fff2bf 100%) !important;
}

body.hogarazo-catalog .hero-section::before,
body.hogarazo-catalog .hero-section::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

body.hogarazo-catalog .hero-section::before {
	width: 290px;
	height: 290px;
	right: -72px;
	top: -118px;
	border: 38px solid rgba(255, 255, 255, .48);
	border-radius: 50%;
}

body.hogarazo-catalog .hero-section::after {
	width: 170px;
	height: 108px;
	right: 10%;
	bottom: -38px;
	border-radius: 80px 80px 16px 16px;
	background: rgba(8, 76, 46, .10);
	box-shadow:
		-150px 25px 0 -18px rgba(223, 21, 21, .07),
		80px -45px 0 -34px rgba(255, 196, 0, .45);
	transform: rotate(-4deg);
}

body.hogarazo-catalog .hero-section > [class*="ct-container"],
body.hogarazo-catalog .hero-section > .ct-container {
	min-height: 238px;
	padding-top: 32px !important;
	padding-bottom: 32px !important;
}

body.hogarazo-catalog .hero-section .page-title,
body.hogarazo-catalog .hero-section h1,
body.hogarazo-catalog .hero-section [class*="page-title"] {
	margin: 0;
	color: #102019 !important;
	font-size: clamp(2.8rem, 6vw, 5rem) !important;
	font-weight: 950 !important;
	letter-spacing: -.055em !important;
	line-height: .95 !important;
	text-shadow: 0 2px 0 rgba(255, 255, 255, .7);
}

/* Reduce el gran espacio entre el hero y el catálogo. */
body.hogarazo-catalog #main > .ct-container,
body.hogarazo-catalog #main .ct-container[data-vertical-spacing] {
	padding-top: 26px !important;
	padding-bottom: 68px !important;
}

body.hogarazo-catalog .hz-shop-content {
	width: 100%;
	margin: 0;
}

/* Evita cualquier encabezado antiguo que haya quedado de otra plantilla. */
body.hogarazo-catalog .hz-shop-hero,
body.hogarazo-catalog .woocommerce-products-header {
	display: none !important;
}

/* ---------------------------------------------------------
   Notificaciones y barra del catálogo
   --------------------------------------------------------- */
body.hogarazo-catalog .woocommerce-notices-wrapper {
	margin-bottom: 18px;
}

body.hogarazo-catalog .woocommerce-message,
body.hogarazo-catalog .woocommerce-info,
body.hogarazo-catalog .woocommerce-error {
	border: 1px solid var(--hz-shop-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(3, 47, 29, .06);
}

body.hogarazo-catalog .hz-shop-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	margin: 0 0 28px;
	padding: 20px 22px;
	border: 1px solid var(--hz-shop-border);
	border-radius: 18px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 14px 38px rgba(3, 47, 29, .07);
}

body.hogarazo-catalog .hz-shop-toolbar__title {
	margin: 0;
	color: var(--hz-shop-ink);
	font-size: 1.08rem;
	font-weight: 950;
}

body.hogarazo-catalog .hz-shop-toolbar__note {
	margin: 5px 0 0;
	color: var(--hz-shop-muted);
	font-size: .92rem;
	line-height: 1.45;
}

body.hogarazo-catalog .hz-shop-toolbar__controls {
	display: grid;
	grid-template-columns: auto minmax(210px, auto);
	align-items: center;
	gap: 16px;
}

body.hogarazo-catalog .woocommerce-result-count,
body.hogarazo-catalog .woocommerce-ordering {
	float: none !important;
	margin: 0 !important;
}

body.hogarazo-catalog .woocommerce-result-count {
	color: var(--hz-shop-muted);
	font-size: .78rem;
	font-weight: 850;
	letter-spacing: .045em;
	line-height: 1.35;
	text-transform: uppercase;
}

body.hogarazo-catalog .woocommerce-ordering select {
	width: 100%;
	min-height: 48px;
	padding: 0 44px 0 16px;
	border: 1px solid var(--hz-shop-border);
	border-radius: 12px;
	background-color: #fff;
	color: var(--hz-shop-ink);
	font-weight: 750;
	box-shadow: none;
}

/* ---------------------------------------------------------
   Grilla y tarjetas
   --------------------------------------------------------- */
body.hogarazo-catalog ul.products,
body.hogarazo-catalog .products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 24px !important;
	margin: 0 0 56px !important;
	padding: 0 !important;
}

body.hogarazo-catalog ul.products::before,
body.hogarazo-catalog ul.products::after {
	display: none !important;
}

body.hogarazo-catalog ul.products li.product,
body.hogarazo-catalog .products .product {
	position: relative;
	display: flex !important;
	flex-direction: column !important;
	width: auto !important;
	height: 100% !important;
	min-width: 0;
	margin: 0 !important;
	padding: 14px 14px 16px !important;
	overflow: hidden;
	border: 1px solid var(--hz-shop-border) !important;
	border-radius: 19px !important;
	background: var(--hz-shop-surface) !important;
	box-shadow: 0 8px 26px rgba(3, 47, 29, .055) !important;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.hogarazo-catalog ul.products li.product:hover {
	transform: translateY(-6px);
	border-color: rgba(8, 76, 46, .30) !important;
	box-shadow: 0 20px 48px rgba(3, 47, 29, .13) !important;
}

body.hogarazo-catalog ul.products li.product > a.woocommerce-LoopProduct-link,
body.hogarazo-catalog ul.products li.product > a.woocommerce-loop-product__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

body.hogarazo-catalog ul.products li.product .ct-image-container,
body.hogarazo-catalog ul.products li.product .woocommerce-loop-product__link > img,
body.hogarazo-catalog ul.products li.product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	margin: 0 0 16px !important;
	border-radius: 14px;
	background: linear-gradient(145deg, #f4f7f5, #fbfcfb);
}

body.hogarazo-catalog ul.products li.product img {
	transition: transform .32s ease;
}

body.hogarazo-catalog ul.products li.product:hover img {
	transform: scale(1.025);
}

body.hogarazo-catalog .hz-product-category {
	display: block;
	margin: 0 2px 7px;
	color: var(--hz-shop-green);
	font-size: .71rem;
	font-weight: 950;
	letter-spacing: .075em;
	line-height: 1.35;
	text-transform: uppercase;
}

body.hogarazo-catalog ul.products li.product .woocommerce-loop-product__title {
	min-height: 2.8em;
	margin: 0 2px 10px !important;
	padding: 0 !important;
	color: var(--hz-shop-ink) !important;
	font-size: 1rem !important;
	font-weight: 850 !important;
	line-height: 1.4;
}

body.hogarazo-catalog ul.products li.product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 7px;
	margin: auto 2px 7px !important;
	color: var(--hz-shop-green) !important;
	font-size: 1.16rem !important;
	font-weight: 950 !important;
}

body.hogarazo-catalog ul.products li.product .price del {
	color: #99a39d;
	font-size: .82em;
	font-weight: 650;
	opacity: 1;
}

body.hogarazo-catalog ul.products li.product .price ins {
	color: var(--hz-shop-red);
	text-decoration: none;
}

body.hogarazo-catalog .hz-stock {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 2px 2px 14px;
	color: var(--hz-shop-muted);
	font-size: .78rem;
	font-weight: 750;
}

body.hogarazo-catalog .hz-stock::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
	background: #98a29c;
	box-shadow: 0 0 0 4px rgba(152, 162, 156, .12);
}

body.hogarazo-catalog .hz-stock--in::before {
	background: #15945b;
	box-shadow: 0 0 0 4px rgba(21, 148, 91, .12);
}

body.hogarazo-catalog .hz-stock--low {
	color: #956300;
}

body.hogarazo-catalog .hz-stock--low::before {
	background: #f2a900;
	box-shadow: 0 0 0 4px rgba(242, 169, 0, .14);
}

body.hogarazo-catalog .hz-stock--out {
	color: #a33d3d;
}

body.hogarazo-catalog .hz-stock--out::before {
	background: #c94a4a;
	box-shadow: 0 0 0 4px rgba(201, 74, 74, .12);
}

body.hogarazo-catalog ul.products li.product .button,
body.hogarazo-catalog ul.products li.product .added_to_cart {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: var(--hz-shop-red) !important;
	color: #fff !important;
	font-size: .89rem !important;
	font-weight: 900 !important;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(223, 21, 21, .20);
	transition: transform .2s ease, filter .2s ease;
}

body.hogarazo-catalog ul.products li.product .button:hover,
body.hogarazo-catalog ul.products li.product .added_to_cart:hover {
	transform: translateY(-2px);
	filter: brightness(.94);
}

body.hogarazo-catalog ul.products li.product .added_to_cart {
	margin-top: 8px !important;
	background: var(--hz-shop-green) !important;
	box-shadow: 0 10px 22px rgba(8, 76, 46, .18);
}

body.hogarazo-catalog span.onsale {
	top: 24px !important;
	left: 24px !important;
	right: auto !important;
	z-index: 3;
	min-width: auto;
	min-height: auto;
	margin: 0 !important;
	padding: 8px 11px !important;
	border-radius: 999px !important;
	background: var(--hz-shop-red) !important;
	color: #fff !important;
	font-size: .72rem !important;
	font-weight: 950 !important;
	line-height: 1 !important;
	box-shadow: 0 8px 18px rgba(223, 21, 21, .25);
}

body.hogarazo-catalog .star-rating {
	color: var(--hz-shop-yellow);
}

/* ---------------------------------------------------------
   Paginación
   --------------------------------------------------------- */
body.hogarazo-catalog nav.woocommerce-pagination {
	margin: 10px 0 10px;
}

body.hogarazo-catalog nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	border: 0;
}

body.hogarazo-catalog nav.woocommerce-pagination ul li {
	border: 0;
}

body.hogarazo-catalog nav.woocommerce-pagination ul li a,
body.hogarazo-catalog nav.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--hz-shop-border);
	border-radius: 11px;
	background: #fff;
	color: var(--hz-shop-ink);
	font-weight: 850;
}

body.hogarazo-catalog nav.woocommerce-pagination ul li span.current,
body.hogarazo-catalog nav.woocommerce-pagination ul li a:hover {
	border-color: var(--hz-shop-green);
	background: var(--hz-shop-green);
	color: #fff;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1100px) {
	body.hogarazo-catalog ul.products,
	body.hogarazo-catalog .products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 820px) {
	body.hogarazo-catalog .hero-section,
	body.hogarazo-catalog .hero-section > [class*="ct-container"],
	body.hogarazo-catalog .hero-section > .ct-container {
		min-height: 190px;
	}

	body.hogarazo-catalog .hero-section .page-title,
	body.hogarazo-catalog .hero-section h1 {
		font-size: clamp(2.5rem, 13vw, 4rem) !important;
	}

	body.hogarazo-catalog #main > .ct-container,
	body.hogarazo-catalog #main .ct-container[data-vertical-spacing] {
		padding-top: 18px !important;
		padding-bottom: 48px !important;
	}

	body.hogarazo-catalog .hz-shop-toolbar {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 18px;
	}

	body.hogarazo-catalog .hz-shop-toolbar__controls {
		grid-template-columns: 1fr;
	}

	body.hogarazo-catalog .woocommerce-ordering,
	body.hogarazo-catalog .woocommerce-ordering select {
		width: 100%;
	}

	body.hogarazo-catalog ul.products,
	body.hogarazo-catalog .products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}

	body.hogarazo-catalog ul.products li.product,
	body.hogarazo-catalog .products .product {
		padding: 10px 10px 13px !important;
	}
}

@media (max-width: 430px) {
	body.hogarazo-catalog .hero-section,
	body.hogarazo-catalog .hero-section > [class*="ct-container"],
	body.hogarazo-catalog .hero-section > .ct-container {
		min-height: 165px;
	}

	body.hogarazo-catalog ul.products,
	body.hogarazo-catalog .products {
		grid-template-columns: 1fr !important;
	}

	body.hogarazo-catalog ul.products li.product,
	body.hogarazo-catalog .products .product {
		padding: 14px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.hogarazo-catalog ul.products li.product,
	body.hogarazo-catalog ul.products li.product img,
	body.hogarazo-catalog ul.products li.product .button {
		transition: none !important;
	}
}


/* =========================================================
   Hogarazo Único 5.0 — hero propio y WooCommerce completo
   ========================================================= */
body.hogarazo-catalog .hero-section { display: none !important; }

.hz-shop-hero {
    position: relative;
    min-height: 285px;
    display: grid;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 72% 26%, rgba(255,196,0,.48), transparent 28%),
        linear-gradient(120deg, #f8fbf8 0%, #fff7cf 58%, #e7f0df 100%);
    border-bottom: 1px solid rgba(8,76,46,.08);
}
.hz-shop-hero::after {
    content: "";
    position: absolute;
    right: -55px;
    top: -145px;
    width: 300px;
    height: 300px;
    border: 40px solid rgba(255,255,255,.62);
    border-radius: 50%;
    z-index: -1;
}
.hz-shop-hero__inner { padding-block: 56px; }
.hz-shop-hero__eyebrow { margin: 0 0 8px; color: var(--hz-shop-green); font-size: .78rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.hz-shop-hero h1 { margin: 0; color: var(--hz-shop-ink); font-size: clamp(3.4rem, 8vw, 6rem); line-height: .92; letter-spacing: -.06em; }
.hz-shop-hero p:last-child { margin: 18px 0 0; color: var(--hz-shop-muted); font-size: 1.05rem; }
.hz-shop-hero__orb { position: absolute; border-radius: 50%; z-index: -1; }
.hz-shop-hero__orb--one { width: 210px; height: 210px; right: 9%; bottom: -105px; background: rgba(8,76,46,.16); }
.hz-shop-hero__orb--two { width: 96px; height: 96px; right: 25%; bottom: -28px; background: rgba(223,21,21,.14); }

/* Producto individual */
body.hogarazo-single-product .hero-section { display: none !important; }
body.hogarazo-single-product #main > .ct-container { padding-top: 52px !important; padding-bottom: 86px !important; }
body.hogarazo-single-product div.product { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: clamp(34px, 6vw, 76px); }
body.hogarazo-single-product div.product .woocommerce-product-gallery,
body.hogarazo-single-product div.product .summary { float: none !important; width: auto !important; }
body.hogarazo-single-product .woocommerce-product-gallery { padding: 18px; border: 1px solid var(--hz-shop-border); border-radius: 22px; background: #fff; box-shadow: 0 16px 42px rgba(3,47,29,.07); }
body.hogarazo-single-product .woocommerce-product-gallery__image img { border-radius: 16px; background: linear-gradient(145deg,#f4f7f5,#fff); }
body.hogarazo-single-product .summary { align-self: start; padding: clamp(24px,4vw,42px); border: 1px solid var(--hz-shop-border); border-radius: 22px; background: #fff; box-shadow: 0 16px 42px rgba(3,47,29,.07); }
body.hogarazo-single-product .product_title { margin-top: 0; color: var(--hz-shop-ink); font-size: clamp(2rem,4vw,3.5rem); line-height: 1.03; letter-spacing: -.045em; }
body.hogarazo-single-product .summary .price { color: var(--hz-shop-green) !important; font-size: clamp(1.6rem,3vw,2.2rem) !important; font-weight: 950; }
body.hogarazo-single-product .woocommerce-product-details__short-description { color: var(--hz-shop-muted); line-height: 1.7; }
body.hogarazo-single-product form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
body.hogarazo-single-product form.cart .quantity input { min-height: 52px; border-radius: 12px; }
body.hogarazo-single-product .single_add_to_cart_button { min-height: 52px !important; padding: 0 24px !important; border-radius: 12px !important; background: var(--hz-shop-red) !important; color: #fff !important; font-weight: 950 !important; box-shadow: 0 12px 26px rgba(223,21,21,.22); }
body.hogarazo-single-product .product_meta { padding-top: 22px; border-top: 1px solid var(--hz-shop-border); color: var(--hz-shop-muted); }
body.hogarazo-single-product .woocommerce-tabs,
body.hogarazo-single-product .related { grid-column: 1/-1; margin-top: 28px; padding: clamp(22px,4vw,38px); border: 1px solid var(--hz-shop-border); border-radius: 22px; background: #fff; box-shadow: 0 16px 42px rgba(3,47,29,.06); }
body.hogarazo-single-product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--hz-shop-border); }
body.hogarazo-single-product .woocommerce-tabs ul.tabs li a { font-weight: 850; }

/* Carrito, checkout y cuenta */
body.hogarazo-cart .hz-page-card,
body.hogarazo-checkout .hz-page-card,
body.hogarazo-account .hz-page-card { max-width: 1180px; }
body.hogarazo-unico .woocommerce-message,
body.hogarazo-unico .woocommerce-info,
body.hogarazo-unico .woocommerce-error { border: 1px solid var(--hz-shop-border); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(3,47,29,.06); }
body.hogarazo-unico .woocommerce-message { border-left: 5px solid #15945b; }
body.hogarazo-unico .woocommerce-info { border-left: 5px solid var(--hz-shop-yellow); }
body.hogarazo-unico .woocommerce-error { border-left: 5px solid var(--hz-shop-red); }
body.hogarazo-unico .woocommerce table.shop_table { overflow: hidden; border: 1px solid var(--hz-shop-border); border-radius: 16px; background: #fff; }
body.hogarazo-unico .woocommerce table.shop_table th { color: var(--hz-shop-ink); font-weight: 900; }
body.hogarazo-unico .woocommerce table.shop_table td { border-color: var(--hz-shop-border); }
body.hogarazo-unico .woocommerce a.remove { display: grid; place-items: center; color: var(--hz-shop-red) !important; }
body.hogarazo-unico .woocommerce a.remove:hover { background: var(--hz-shop-red); color: #fff !important; }
body.hogarazo-cart .cart_totals,
body.hogarazo-checkout .woocommerce-checkout-review-order,
body.hogarazo-checkout .woocommerce-billing-fields,
body.hogarazo-checkout .woocommerce-additional-fields,
body.hogarazo-account .woocommerce-MyAccount-navigation,
body.hogarazo-account .woocommerce-MyAccount-content { padding: 24px; border: 1px solid var(--hz-shop-border); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(3,47,29,.06); }
body.hogarazo-unico .woocommerce .button,
body.hogarazo-unico .woocommerce button.button,
body.hogarazo-unico .woocommerce input.button,
body.hogarazo-unico #place_order { min-height: 48px; padding: 0 20px; border-radius: 11px; background: var(--hz-shop-red); color: #fff; font-weight: 900; box-shadow: 0 10px 22px rgba(223,21,21,.18); }
body.hogarazo-unico .woocommerce .button:hover,
body.hogarazo-unico #place_order:hover { filter: brightness(.94); transform: translateY(-1px); }
body.hogarazo-unico .woocommerce form .form-row input.input-text,
body.hogarazo-unico .woocommerce form .form-row textarea,
body.hogarazo-unico .woocommerce form select,
body.hogarazo-unico .select2-container .select2-selection { min-height: 48px; border: 1px solid var(--hz-shop-border); border-radius: 11px; background: #fff; }
body.hogarazo-unico .woocommerce form .form-row textarea { min-height: 120px; padding: 14px; }
body.hogarazo-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
body.hogarazo-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 14px; border-radius: 9px; color: var(--hz-shop-ink); font-weight: 800; text-decoration: none; }
body.hogarazo-account .woocommerce-MyAccount-navigation li.is-active a,
body.hogarazo-account .woocommerce-MyAccount-navigation li a:hover { background: var(--hz-shop-green); color: #fff; }

@media (max-width: 900px) {
    body.hogarazo-single-product div.product { grid-template-columns: 1fr; }
    body.hogarazo-single-product .woocommerce-tabs,
    body.hogarazo-single-product .related { grid-column: auto; }
}
@media (max-width: 820px) {
    .hz-shop-hero { min-height: 215px; }
    .hz-shop-hero__inner { padding-block: 42px; }
    .hz-shop-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
}
