/*
Theme Name:   Pez y Cortes
Description:  Child theme de Astra para el portal Pez y Cortes.
Author:       Utopicos Studios
Template:     astra
Version:      1.1.0
Text Domain:  pez-y-cortes
*/

:root {
	--pyc-teal: #287090;
	--pyc-teal-dark: #123642;
	--pyc-orange: #F09848;
	--pyc-orange-dark: #D67D2E;
	--pyc-bg-light: #FBF8F3;
	--pyc-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--pyc-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
	background-color: var(--pyc-bg-light);
	font-family: var(--pyc-font-body);
}

h1, h2, h3, h4,
.site-title,
.entry-title,
.woocommerce-Tabs-panel h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--pyc-font-heading);
	color: var(--pyc-teal-dark);
}

a {
	color: var(--pyc-teal);
}

a:hover {
	color: var(--pyc-orange-dark);
}

/* Header */
.ast-primary-header,
.main-header-bar {
	background-color: #fff;
	border-bottom: 3px solid var(--pyc-orange);
}

.ast-header-woo-cart .cart-container .amount {
	color: var(--pyc-teal-dark);
	font-weight: 600;
}

.site-header .custom-logo-link img,
.ast-site-identity img {
	max-height: 64px;
	width: auto;
}

.site-branding .site-title {
	display: none !important;
}

.home .entry-header {
	display: none !important;
}

.home .entry-content {
	margin-top: 0;
}

.main-header-menu .menu-item > .menu-link {
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--pyc-teal-dark);
}

.main-header-menu .menu-item > .menu-link:hover {
	color: var(--pyc-orange);
}

/* Logo centrado arriba y menu (o boton de menu en movil) debajo, a todo el
   ancho, tipo mega menu. Igual en movil y escritorio. */
.ast-builder-grid-row-has-sides {
	flex-direction: column;
	align-items: center;
}

.site-header-primary-section-left {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 14px 0 10px;
	order: 1;
}

.site-header-primary-section-right {
	width: 100%;
	display: flex;
	justify-content: center;
	border-top: 1px solid #f0e9dd;
	padding: 10px 0;
	order: 2;
}

.main-header-bar-navigation {
	flex: 0 0 auto !important;
}

.main-header-menu {
	justify-content: center;
}

.main-header-menu .menu-item > .menu-link {
	padding: 8px 22px;
}

/* Botones y elementos de WooCommerce */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
button.single_add_to_cart_button,
#place_order {
	background-color: var(--pyc-orange) !important;
	border-color: var(--pyc-orange) !important;
	color: #fff !important;
	border-radius: 999px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 12px 28px !important;
	transition: transform 0.15s ease, background 0.15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
button.single_add_to_cart_button:hover,
#place_order:hover {
	background-color: var(--pyc-orange-dark) !important;
	border-color: var(--pyc-orange-dark) !important;
	transform: translateY(-1px);
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--pyc-teal) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--pyc-teal) !important;
}

/* Grid de catalogo */
ul.products li.product {
	background: #fff;
	border-radius: 12px;
	padding: 14px !important;
	box-shadow: 0 2px 10px rgba(18, 54, 66, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(18, 54, 66, 0.14);
}

ul.products li.product img {
	border-radius: 8px;
}

ul.products li.product .price {
	color: var(--pyc-teal-dark);
	font-weight: 700;
	font-size: 1.15rem;
}

ul.products li.product .price ins {
	color: var(--pyc-orange-dark);
}

.ast-woo-product-category {
	display: none !important;
}

ul.products li.product .onsale {
	background: var(--pyc-orange) !important;
	border-radius: 6px;
	font-weight: 600;
	top: 10px;
	left: 10px;
}

/* Seccion "Nuestro catalogo" en portada */
.pyc-catalogo-heading {
	text-align: center;
	max-width: 640px;
	margin: 56px auto 8px;
}

.pyc-catalogo-heading .pyc-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--pyc-orange-dark);
	margin-bottom: 10px;
}

.pyc-catalogo-heading h2 {
	margin: 0 0 10px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.pyc-catalogo-heading p {
	color: #555;
	margin: 0;
}

/* Footer */
.site-footer,
.ast-small-footer {
	background-color: var(--pyc-teal-dark) !important;
	color: #e9f1f4;
}

.ast-small-footer a {
	color: #fff;
}

@media (max-width: 600px) {
	.site-header .custom-logo-link img,
	.ast-site-identity img {
		max-height: 48px;
	}
}
