/* ==========================================================
   Mascotas Club — estilos (recreación del diseño original)
   ========================================================== */

:root {
	--background: 40 25% 97%;
	--foreground: 45 7% 16%;
	--primary: 75 17% 33%;
	--primary-foreground: 40 25% 97%;
	--muted: 40 17% 92%;
	--muted-foreground: 40 6% 43%;
	--border: 40 12% 83%;
	--destructive: 0 65% 40%;
	--radius: .25rem;
	--serif: 'Cormorant Garamond', serif;
	--sans: Manrope, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body {
	margin: 0;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--sans);
	font-size: 14px;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button, a, input, textarea { transition: background .2s, color .2s, transform .2s; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:active, .button:active { transform: scale(.98); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: 52px; margin: 14px 0 25px; }
h3 { font-weight: 500; }
p { line-height: 1.8; }
button, input, textarea, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid hsl(var(--primary));
	outline-offset: 5px;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 50; background: hsl(var(--foreground)); color: hsl(var(--background)); padding: 12px 18px; }
.skip-link:focus { left: 12px; top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Encabezado ---------- */
.site-header {
	height: 112px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 5%;
	border-bottom: 1px solid hsl(var(--border));
	gap: 20px;
}
.brand { font-weight: 700; font-size: 26px; letter-spacing: -1px; display: flex; align-items: center; gap: 10px; line-height: 1; }
.brand svg { color: hsl(var(--primary)); flex: none; }
.brand-light { font-weight: 400; }
.brand small { display: block; font-size: 8px; letter-spacing: 2.5px; font-weight: 500; margin-top: 5px; }
.custom-logo-link img { max-height: 60px; width: auto; }
.site-nav { display: flex; gap: 36px; font-size: 12px; }
.site-header a:hover, .text-link:hover { color: hsl(var(--primary)); }
.site-nav a[aria-current="page"] { color: hsl(var(--primary)); }
.cart-link { display: flex; gap: 10px; align-items: center; font-size: 12px; }

/* ---------- Portada ---------- */
.hero { margin: 0 5%; }
.hero-title { padding: 54px 0 34px; }
.eyebrow { font-size: 10px; letter-spacing: 2.3px; font-weight: 600; display: inline-block; }
.hero h1 { font-size: clamp(60px, 7vw, 105px); margin: 25px 0 18px; }
.hero h1 em { font-weight: 400; color: hsl(var(--primary)); }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero-bottom p { color: hsl(var(--muted-foreground)); font-size: 13px; margin: 0; }
.hero-photo { position: relative; height: 440px; overflow: hidden; background: hsl(var(--muted)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.photo-note { position: absolute; bottom: 23px; left: 25px; background: hsl(var(--background)); padding: 13px 18px; font-size: 9px; letter-spacing: 1.5px; }
.caption { display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid hsl(var(--border)); font-size: 9px; letter-spacing: 1.4px; }
.caption span:last-child { font-family: var(--serif); font-size: 14px; font-style: italic; letter-spacing: 0; }

/* ---------- Botones y enlaces ---------- */
.button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wp-element-button, .wc-block-components-button:not(.is-link) {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	padding: 19px 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
	border: 0;
	border-radius: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}
.button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wp-element-button:hover, .wc-block-components-button:not(.is-link):hover {
	background: hsl(var(--foreground));
	color: hsl(var(--primary-foreground));
}
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled { background: hsl(var(--primary)); }
.text-link { font-size: 12px; border-bottom: 1px solid; padding-bottom: 6px; background: none; display: inline-block; }

/* ---------- Secciones ---------- */
.section { padding: 90px 5%; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.category-links { display: flex; flex-wrap: wrap; gap: 25px; margin: 15px 0 35px; }
.category-links a, .category-links button { font-size: 12px; padding-bottom: 10px; border-bottom: 1px solid hsl(var(--border)); background: none; border-top: 0; border-left: 0; border-right: 0; }
.category-links a:hover, .category-links a[aria-current="page"] { color: hsl(var(--primary)); border-color: currentColor; }

/* ---------- Tarjetas de producto ---------- */
.product-grid,
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	padding: 0;
	text-align: left;
}
.product-card { display: block; }
.product-photo { aspect-ratio: 1 / 1.12; position: relative; background: hsl(var(--muted)); overflow: hidden; }
.product-photo img { height: 100% !important; width: 100% !important; object-fit: cover; transition: transform .3s; display: block; margin: 0 !important; }
.product-card:hover img { transform: scale(1.04); }
.product-number { position: absolute; top: 15px; left: 15px; font-size: 10px; }
.product-sale { position: absolute; top: 12px; right: 12px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: 9px; letter-spacing: 1.4px; padding: 6px 10px; text-transform: uppercase; }
.product-arrow { position: absolute; bottom: 12px; right: 12px; background: hsl(var(--background)); padding: 10px; display: flex; }
.product-label { display: flex; justify-content: space-between; gap: 12px; align-items: start; padding-top: 15px; }
.product-label h3 { font-size: 13px; margin: 0; font-family: var(--sans); line-height: 1.5; }
.product-label span { font-size: 11px; color: hsl(var(--muted-foreground)); white-space: nowrap; text-align: right; }
.product-label del { opacity: .6; display: block; }
.product-label ins { text-decoration: none; }

/* ---------- Contacto ---------- */
.contact { background: hsl(var(--muted)); display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.contact p { color: hsl(var(--muted-foreground)); }
form label { display: block; font-size: 11px; margin-bottom: 20px; }
input, textarea, select {
	display: block;
	width: 100%;
	margin-top: 9px;
	padding: 12px;
	border: 1px solid hsl(var(--border));
	background: transparent;
	border-radius: 0;
	color: inherit;
}
input[type="checkbox"], input[type="radio"] { display: inline-block; width: auto; margin: 0 8px 0 0; }
textarea { resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.contact [role="status"] { color: hsl(var(--primary)); }
.contact [role="alert"] { color: hsl(var(--destructive)); }

/* ---------- Pie ---------- */
.footer { padding: 50px 5%; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; font-size: 11px; }
.footer p { color: hsl(var(--muted-foreground)); font-size: 12px; margin: 10px 0 0; }
.footer .brand { font-size: 22px; }
.footer-nav, .footer-nav ul { display: flex; flex-wrap: wrap; gap: 32px; list-style: none; margin: 0; padding: 0; }
.footer-nav a:hover { color: hsl(var(--primary)); }

/* ---------- Tienda ---------- */
.page-title { font-size: 66px; margin: 20px 0 35px; }
.search { display: flex; align-items: flex-end; gap: 20px; max-width: 650px; margin-bottom: 10px; }
.search label { margin-bottom: 0; }
.search .button { padding-top: 14px; padding-bottom: 14px; }
.search label { flex: 1; }
.term-description { color: hsl(var(--muted-foreground)); max-width: 650px; }
.woocommerce .woocommerce-ordering { margin: 0 0 25px; float: none; }
.woocommerce .woocommerce-ordering select { width: auto; margin: 0; font-size: 12px; padding: 10px 12px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; margin-top: 45px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { padding: 10px 14px; border-bottom: 1px solid hsl(var(--border)); font-size: 12px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: none; color: hsl(var(--primary)); border-color: currentColor; }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	border-top: 0 !important;
	border-left: 2px solid hsl(var(--primary)) !important;
	background: hsl(var(--muted)) !important;
	color: hsl(var(--foreground)) !important;
	font-size: 13px;
	padding: 18px 22px 18px 50px !important;
}
.woocommerce-info::before, .woocommerce-message::before { color: hsl(var(--primary)) !important; }
.woocommerce-error { border-left-color: hsl(var(--destructive)) !important; }
.woocommerce-message .button, .woocommerce-info .button { padding: 12px 18px !important; float: right; }

/* ---------- Ficha de producto ---------- */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 70px !important; float: none; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { background: hsl(var(--background)); border-radius: 0; }
.woocommerce div.product .product_title { font-size: 66px; margin: 20px 0 35px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: hsl(var(--foreground)); font-size: 22px; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { margin: 30px 0; color: hsl(var(--muted-foreground)); line-height: 1.8; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 30px 0; }
.woocommerce div.product form.cart div.quantity { margin: 0; }
.woocommerce .quantity .qty { width: 80px; margin: 0; height: 100%; text-align: center; }
.woocommerce div.product form.cart .variations { margin-bottom: 15px; width: 100%; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; text-align: left; padding: 0 0 6px; font-size: 11px; }
.woocommerce div.product form.cart .variations select { min-width: 220px; }
.woocommerce div.product form.cart .single_variation_wrap { width: 100%; }
.woocommerce div.product .product_meta { font-size: 11px; color: hsl(var(--muted-foreground)); border-top: 1px solid hsl(var(--border)); padding-top: 20px; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 6px; }
.woocommerce span.onsale { background: hsl(var(--primary)); border-radius: 0; min-height: 0; min-width: 0; line-height: 1; padding: 8px 12px; font-size: 10px; letter-spacing: 1.4px; font-weight: 500; top: 12px; left: 12px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs { border-top: 1px solid hsl(var(--border)); padding-top: 25px; margin-top: 30px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 25px; display: flex; gap: 25px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; border-bottom: 1px solid hsl(var(--border)) !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 12px; font-weight: 500 !important; padding: 0 0 10px !important; color: hsl(var(--foreground)) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-color: hsl(var(--primary)) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: hsl(var(--primary)) !important; }
.woocommerce div.product .woocommerce-tabs .panel { color: hsl(var(--muted-foreground)); max-width: 820px; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 34px; color: hsl(var(--foreground)); }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 52px; margin: 70px 0 30px; }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: hsl(var(--primary)); }
.woocommerce #reviews #comments ol.commentlist li .comment-text { border-radius: 0; border-color: hsl(var(--border)); }

/* ---------- Carrito / checkout (clásico y por bloques) ---------- */
.page-content .entry-content > * { max-width: 100%; }
.woocommerce table.shop_table { border-radius: 0; border-color: hsl(var(--border)); border-left: 0; border-right: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: hsl(var(--border)); padding: 18px 12px; }
.woocommerce table.shop_table img { width: 80px; }
.woocommerce a.remove { color: hsl(var(--foreground)) !important; }
.woocommerce a.remove:hover { background: hsl(var(--foreground)); color: hsl(var(--background)) !important; }
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-billing-fields > h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields > h3, #order_review_heading { font-family: var(--serif); font-size: 34px; font-weight: 500; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: 12px; border: 1px solid hsl(var(--border)); border-radius: 0; }
.woocommerce form .form-row label { font-size: 11px; }
.woocommerce-checkout #payment { background: hsl(var(--muted)); border-radius: 0; }
.woocommerce-checkout #payment div.payment_box { background: hsl(var(--background)); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: hsl(var(--background)); }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control input, .wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea {
	border-radius: 0 !important;
	border-color: hsl(var(--border)) !important;
	background: transparent !important;
}
.wc-block-components-title.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -.02em; }
.wc-block-components-product-name { font-weight: 500; }
.wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button { width: 100%; }
.wc-block-components-notice-banner { border-radius: 0 !important; }

/* ---------- Blog ---------- */
.narrow { max-width: 820px; }
.entry-content { line-height: 1.8; }
.entry-content h2 { font-size: 40px; }
.entry-thumb img { width: 100%; margin-bottom: 30px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card h3 { font-size: 20px; font-family: var(--serif); margin: 8px 0; }
.post-card .product-photo { aspect-ratio: 4 / 3; margin-bottom: 15px; }
.post-card p { color: hsl(var(--muted-foreground)); margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 24px #25241d33;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
	.site-header { height: 90px; }
	.site-nav { gap: 15px; }
	.brand { font-size: 21px; }
	.cart-text { display: none; }
	.hero-title { padding-top: 36px; }
	.hero h1 { font-size: 66px; }
	.hero-photo { height: 340px; }
	.product-grid, .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); }
	.section { padding-top: 65px; padding-bottom: 65px; }
	.product-label { flex-direction: column; gap: 7px; }
	.product-label span { text-align: left; }
	.section-heading { align-items: start; }
	.contact { gap: 40px; }
	.woocommerce div.product { gap: 30px; }
	.page-title, .woocommerce div.product .product_title { font-size: 50px; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.site-header { flex-wrap: wrap; height: auto; padding: 20px 0; gap: 18px; }
	.site-nav { order: 3; width: 100%; justify-content: center; }
	.hero h1 { font-size: 59px; }
	.hero-bottom { align-items: start; flex-direction: column; }
	.hero-photo { height: 285px; }
	.caption span:first-child { max-width: 55%; font-size: 8px; }
	.hero-title { padding-bottom: 25px; }
	.section-heading { display: block; }
	h2 { font-size: 43px; }
	.section-heading .text-link { display: inline-block; margin-bottom: 20px; }
	.category-links { gap: 18px; }
	.product-grid, .woocommerce ul.products, .woocommerce-page ul.products { gap: 18px 12px; }
	.contact, .woocommerce div.product { grid-template-columns: 1fr; }
	.footer { gap: 25px; }
	.footer > div { width: 100%; }
	.search { align-items: end; }
	.search .button { margin-bottom: 20px; padding: 16px; }
	.photo-note { left: 15px; bottom: 15px; font-size: 8px; }
	.page-title, .woocommerce div.product .product_title { font-size: 44px; }
	.woocommerce div.product .related > h2 { font-size: 40px; }
	.post-grid { grid-template-columns: 1fr; }
	.wa-float { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.wc-block-components-product-name { font-size: 14px !important; line-height: 1.4 !important; font-family: var(--sans); }
