/*
 * PoliMercado
 * Tipos: Space Grotesk (títulos y precios) e Inter (texto, menú, botones).
 * Verde del logosímbolo: #00B884. Hover #007359. Tinta #0F172A.
 */

body.et_divi_theme,
body.et_divi_theme p,
body.et_divi_theme li,
body.et_divi_theme input,
body.et_divi_theme select,
body.et_divi_theme textarea,
body.et_divi_theme button,
body.et_divi_theme .et_pb_text,
body.et_divi_theme .woocommerce,
body.et_divi_theme .et_pb_menu ul.et-menu a {
	font-family: Inter, sans-serif !important;
}

body.et_divi_theme h1,
body.et_divi_theme h2,
body.et_divi_theme h3,
body.et_divi_theme h4,
body.et_divi_theme h5,
body.et_divi_theme h6,
body.et_divi_theme .product_title,
body.et_divi_theme .price,
body.et_divi_theme .woocommerce-loop-product__title {
	font-family: "Space Grotesk", Inter, sans-serif !important;
	letter-spacing: -0.03em;
	color: #0F172A;
}

#main-content .et_pb_text a:not(.poli-btn):not(.poli-card),
.entry-content a:not(.button):not(.wc-block-components-button):not(.wc-block-cart__submit-button),
.woocommerce-breadcrumb a,
.product_meta a,
.woocommerce-Tabs-panel a,
#tab-description a,
.woocommerce-product-details__short-description a,
.woocommerce-info a:not(.button),
.woocommerce-message a:not(.button),
.woocommerce-error a:not(.button) {
	color: #00B884;
	text-decoration: none;
}

#main-content .et_pb_text a:not(.poli-btn):not(.poli-card):hover,
.entry-content a:not(.button):not(.wc-block-components-button):not(.wc-block-cart__submit-button):hover,
.woocommerce-breadcrumb a:hover,
.product_meta a:hover,
.woocommerce-Tabs-panel a:hover,
#tab-description a:hover,
.woocommerce-product-details__short-description a:hover,
.woocommerce-info a:not(.button):hover,
.woocommerce-message a:not(.button):hover,
.woocommerce-error a:not(.button):hover {
	color: #007359;
}

.et-l--footer a,
#main-footer a {
	color: #12E0A0;
}

.et-l--footer a:hover,
#main-footer a:hover {
	color: #00B884;
}

.et_pb_menu ul.et-menu > li.current-menu-item > a,
.et_pb_menu ul.et-menu > li.current_page_item > a,
.et_pb_menu ul.et-menu > li > a:hover {
	color: #00B884;
}

body.single-product,
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
	background: #F8FAFC;
}

body.single-product #sidebar,
body.post-type-archive-product #sidebar,
body.tax-product_cat #sidebar,
body.tax-product_tag #sidebar,
body.woocommerce-cart #sidebar,
body.woocommerce-checkout #sidebar,
body.woocommerce-account #sidebar {
	display: none !important;
}

body.single-product #left-area,
body.post-type-archive-product #left-area,
body.tax-product_cat #left-area,
body.tax-product_tag #left-area,
body.woocommerce-cart #left-area,
body.woocommerce-checkout #left-area,
body.woocommerce-account #left-area {
	width: 100% !important;
	float: none !important;
	padding-right: 0 !important;
}

body.single-product #main-content .container::before,
body.post-type-archive-product #main-content .container::before,
body.tax-product_cat #main-content .container::before,
body.tax-product_tag #main-content .container::before,
body.woocommerce-cart #main-content .container::before,
body.woocommerce-checkout #main-content .container::before,
body.woocommerce-account #main-content .container::before {
	display: none !important;
	content: none !important;
}

body.single-product #main-content .container,
body.post-type-archive-product #main-content .container,
body.tax-product_cat #main-content .container,
body.tax-product_tag #main-content .container {
	width: 92%;
	max-width: 1180px;
	padding-top: 28px;
	padding-bottom: 72px;
}

body.single-product .woocommerce-breadcrumb {
	margin: 0 0 28px;
	color: #64748B;
	font-size: 14px;
}

body.single-product div.product > .clearfix {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 48px;
	align-items: start;
}

body.single-product div.product > .clearfix::before,
body.single-product div.product > .clearfix::after {
	content: none;
	display: none;
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

body.single-product .woocommerce-product-gallery {
	opacity: 1 !important;
	overflow: hidden;
	border: 1px solid #E2E8F0;
	border-radius: 24px;
	background: #F8FAFC;
}

body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image {
	height: auto !important;
}

body.single-product .woocommerce-product-gallery img {
	display: block;
	width: 100%;
	height: auto !important;
	object-fit: contain;
}

body.single-product .product_title {
	margin: 0 0 12px;
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.02;
}

body.single-product .summary .price,
body.single-product .summary .price .amount,
body.single-product .summary .price ins {
	color: #0F172A !important;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

body.single-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-product-details__short-description p {
	margin: 8px 0 0;
	color: #64748B;
	font-size: 16px;
	line-height: 1.55;
}

body.single-product .stock,
.woocommerce div.product p.stock,
.woocommerce div.product p.stock.in-stock {
	margin-top: 16px;
	color: #00B884 !important;
	font-size: 14px;
	font-weight: 600;
}

body.single-product .stock.out-of-stock,
.woocommerce div.product p.stock.out-of-stock {
	color: #64748B !important;
}

body.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

body.single-product form.cart .quantity input.qty {
	width: 72px;
	height: 46px;
	border: 1px solid #E2E8F0;
	border-radius: 999px;
	background: #FFFFFF;
	color: #0F172A;
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 600;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
body.single-product .single_add_to_cart_button {
	border: 0 !important;
	border-radius: 999px !important;
	background: #00B884 !important;
	color: #FFFFFF !important;
	font-family: Inter, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1 !important;
	text-transform: none !important;
	padding: 15px 26px !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
body.single-product .single_add_to_cart_button:hover,
body.single-product .single_add_to_cart_button:focus,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce .woocommerce-message a.button,
.woocommerce .woocommerce-message a.button:hover,
.woocommerce .woocommerce-message a.button:focus,
.wc-block-cart__submit-button,
.wc-block-cart__submit-button:hover,
.wc-block-cart__submit-button:focus,
.wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button:hover,
a.checkout-button,
a.checkout-button:hover {
	background: #007359 !important;
	background-color: #007359 !important;
	color: #FFFFFF !important;
	opacity: 1 !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce .woocommerce-message a.button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
a.checkout-button {
	border: 0 !important;
	border-radius: 999px !important;
	background: #00B884 !important;
	background-color: #00B884 !important;
	color: #FFFFFF !important;
	font-family: Inter, sans-serif !important;
	font-weight: 600 !important;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.wc-block-components-notice-banner {
	background: #0F172A !important;
	color: #F8FAFC !important;
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: none !important;
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
	color: #12E0A0 !important;
}

.poli-orden {
	margin-top: 16px;
}

.poli-orden-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none !important;
}

.poli-orden-chips li {
	list-style: none !important;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: #F8FAFC;
	color: #0F172A;
	font-family: Inter, sans-serif;
	font-size: 13px;
	font-weight: 600;
	box-shadow: inset 0 0 0 1px #E2E8F0;
}

.poli-orden-chips li::before,
.poli-orden-chips li::marker {
	content: none !important;
	display: none !important;
}

.poli-orden-nota {
	margin: 10px 0 0;
	max-width: 28rem;
	color: #64748B;
	font-size: 13px;
	line-height: 1.45;
}

.poli-pedido {
	max-width: 640px;
	margin: 24px auto 48px;
	padding: 28px;
	border: 1px solid #E2E8F0;
	border-radius: 20px;
	background: #FFFFFF;
}

.poli-pedido h2 {
	margin: 0 0 12px;
	font-size: 36px;
}

.poli-pedido ul {
	margin: 0 0 22px;
	padding-left: 18px;
}

.poli-pedido li {
	margin: 0 0 8px;
}

body.single-product .product_meta {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #E2E8F0;
	color: #64748B;
	font-size: 14px;
}

body.single-product .woocommerce-tabs {
	margin-top: 56px;
	clear: both;
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 16px !important;
	padding: 0 !important;
	overflow: visible;
	border-bottom: 1px solid #E2E8F0;
	background: transparent;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 12px 16px !important;
	color: #64748B !important;
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 600;
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 2px solid #00B884 !important;
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: #0F172A !important;
}

body.single-product .woocommerce-tabs .panel {
	margin: 0;
	padding: 24px;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	background: #FFFFFF;
	color: #0F172A;
	box-shadow: none;
}

body.single-product .woocommerce-tabs .panel p {
	color: #334155;
	font-size: 16px;
	line-height: 1.6;
}

body.single-product .related.products {
	clear: both;
	width: 100%;
	margin-top: 64px;
}

body.single-product .related.products > h2 {
	margin: 0 0 18px;
	font-size: 32px;
	font-weight: 700;
}

body.single-product .related ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0 !important;
}

body.single-product .related ul.products::before,
body.single-product .related ul.products::after,
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after {
	display: none;
}

body.single-product .related ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 12px;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

body.single-product .related ul.products li.product img,
body.post-type-archive-product ul.products li.product img,
body.tax-product_cat ul.products li.product img {
	border-radius: 12px;
	background: #F1F5F9;
}

body.single-product .related ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
	padding: 12px 4px 0;
	font-size: 18px;
}

.woocommerce span.onsale,
.woocommerce-page span.onsale {
	top: 12px !important;
	right: auto !important;
	left: 12px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 4px 10px !important;
	border-radius: 999px !important;
	background: #6366F1 !important;
	color: #FFFFFF !important;
	font-family: Inter, sans-serif !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.04em;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	color: #0F172A !important;
	font-family: "Space Grotesk", Inter, sans-serif;
	font-weight: 700;
}

@media (max-width: 980px) {
	body.single-product div.product > .clearfix,
	body.single-product .related ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	body.single-product div.product > .clearfix,
	body.single-product .related ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products {
		grid-template-columns: 1fr;
	}
}
