/* ==========================================================================
   WPSHOP - Estilos WooCommerce (tarjetas de producto, ficha, paginacion)
   ========================================================================== */

/* Anular clearfix legacy de WooCommerce para evitar que ::before/::after ocupen columnas en CSS Grid */
ul.products::before,
ul.products::after,
.products::before,
.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none !important;
	display: none !important;
}

ul.products,
ul.wc-block-grid__products,
ul.wpshop-carousel,
ul.wpshop-grid {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

ul.products li,
.products li,
.wc-block-grid__products li,
ul.products li.product,
.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	float: none !important;
	flex: 1 1 100% !important;
	box-sizing: border-box !important;
}

ul.products li.product::before,
.products li.product::before,
.wc-block-grid__products li::before {
	content: none !important;
	display: none !important;
}

ul.products li.product,
.products li.product,
.woocommerce ul.products li.product {
	background: #fff;
	border-radius: var(--wpshop-radius);
	box-shadow: var(--wpshop-shadow);
	overflow: hidden;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
}

ul.products li.product:hover,
.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: var(--wpshop-shadow-hover);
}

ul.products li.product .woocommerce-loop-product__link,
.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
	text-decoration: none;
	padding-bottom: 8px;
}

ul.products li.product img,
.products li.product img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	display: block;
	background: #f8fafc;
	margin: 0;
	padding: 12px;
}

ul.products li.product .woocommerce-loop-product__link h2.woocommerce-loop-product__title,
.products li.product .woocommerce-loop-product__link h2.woocommerce-loop-product__title {
	font-family: var(--wpshop-heading-font);
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0;
	padding: 10px 12px 4px;
	color: var(--wpshop-text);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}

ul.products li.product .price,
.products li.product .price,
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.wc-block-grid__product .price,
.wc-block-grid__product-price,
.wpshop-carousel li.product .price,
.wpshop-grid li.product .price {
	display: block !important;
	color: var(--wpshop-accent, #0077ff) !important;
	font-size: 1.25rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	margin: 4px 0 8px !important;
	padding: 4px 12px 8px !important;
}

ul.products li.product .price span.amount,
.products li.product .price span.amount,
.woocommerce ul.products li.product .price span.amount,
.woocommerce-page ul.products li.product .price span.amount,
ul.products li.product .price bdi,
.products li.product .price bdi,
.woocommerce ul.products li.product .price bdi,
.woocommerce-page ul.products li.product .price bdi,
.wc-block-grid__product-price span.amount,
.wc-block-grid__product-price bdi {
	color: var(--wpshop-accent, #0077ff) !important;
	font-size: 1.25rem !important;
	font-weight: 800 !important;
}

ul.products li.product .price del,
.products li.product .price del,
.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del,
ul.products li.product .price del .amount,
.products li.product .price del .amount,
ul.products li.product .price del bdi,
.products li.product .price del bdi {
	color: #94a3b8 !important;
	font-weight: 500 !important;
	font-size: 0.9rem !important;
	margin-right: 6px !important;
	display: inline-block !important;
	text-decoration: line-through !important;
}

ul.products li.product .price ins,
.products li.product .price ins,
.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins,
ul.products li.product .price ins .amount,
.products li.product .price ins .amount,
ul.products li.product .price ins bdi,
.products li.product .price ins bdi {
	background: none !important;
	text-decoration: none !important;
	color: var(--wpshop-accent, #0077ff) !important;
	font-size: 1.25rem !important;
	font-weight: 800 !important;
}

ul.products li.product .wpshop-card-footer,
.products li.product .wpshop-card-footer {
	margin-top: auto !important;
	padding: 0 10px 12px !important;
}

ul.products li.product .button,
.products li.product .button,
ul.products li.product a.button,
.products li.product a.button,
ul.products li.product button.button,
.products li.product button.button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: var(--wpshop-header-bg) !important;
	color: #fff !important;
	padding: 8px 10px !important;
	border-radius: 8px !important;
	font-size: 0.84rem !important;
	font-weight: 700 !important;
	font-family: var(--wpshop-body-font) !important;
	transition: background 0.2s ease, filter 0.2s ease, transform 0.2s ease !important;
	width: 100% !important;
	border: 0 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	line-height: 1.2 !important;
	min-height: 36px !important;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1) !important;
}

ul.products li.product .button:hover,
.products li.product .button:hover,
ul.products li.product a.button:hover,
.products li.product a.button:hover {
	background: var(--wpshop-accent) !important;
	color: #fff !important;
	transform: translateY(-1px) !important;
}

ul.products li.product .added_to_cart,
.products li.product .added_to_cart {
	display: block;
	text-align: center;
	margin-top: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wpshop-primary);
}

span.onsale.wpshop-onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 4;
	background: var(--wpshop-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	min-height: 0;
	min-width: 0;
	line-height: 1.4;
}

/* Cabecera de lista (orden y recuento) */
.woocommerce-products-header {
	margin-bottom: 20px;
}

.woocommerce-products-header h1.page-title,
.woocommerce-products-header h1.woocommerce-products-header__title {
	font-family: var(--wpshop-heading-font);
	font-size: 2.2rem;
	font-weight: 800;
	margin-bottom: 8px;
	color: var(--wpshop-text);
	line-height: 1.2;
}

.woocommerce-products-header .term-description {
	color: #64748b;
	font-size: 0.95rem;
	margin-top: 6px;
}

.woocommerce-result-count {
	color: #64748b;
	font-size: 0.85rem;
}

.woocommerce-ordering select {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 0.85rem;
	outline: none;
	cursor: pointer;
}

.woocommerce-before-shop-loop {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

/* Paginacion */
.woocommerce-pagination {
	margin-top: 24px;
}

.woocommerce-pagination ul.page-numbers {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.woocommerce-pagination ul.page-numbers li .page-numbers {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #334155;
	font-weight: 600;
	transition: all 0.2s ease;
}

.woocommerce-pagination ul.page-numbers li .page-numbers:hover,
.woocommerce-pagination ul.page-numbers li .page-numbers.current {
	background: var(--wpshop-primary);
	border-color: var(--wpshop-primary);
	color: #fff;
}

/* ------------------------------ FICHA PRODUCTO ---------------------------- */

div.product {
	background: #fff;
	border-radius: var(--wpshop-radius);
	box-shadow: var(--wpshop-shadow);
	padding: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: start;
}

div.product .product_title {
	font-family: var(--wpshop-heading-font);
	font-size: 1.8rem;
	font-weight: 800;
	margin-bottom: 6px;
	line-height: 1.25;
}

div.product .woocommerce-product-rating {
	font-size: 0.85rem;
	color: #f59e0b;
	margin-bottom: 12px;
}

div.product .price,
div.product p.price,
div.product .summary .price {
	display: flex !important;
	align-items: baseline !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	margin: 12px 0 18px !important;
	font-size: 2.2rem !important;
	font-weight: 800 !important;
	color: var(--wpshop-accent, #0077ff) !important;
	line-height: 1.1 !important;
}

/* Precio actual o rebajado */
div.product .price > .amount,
div.product p.price > .amount,
div.product .summary .price > .amount,
div.product .summary .price ins,
div.product .summary .price ins .amount,
div.product .summary .price ins bdi {
	font-size: 2.2rem !important;
	font-weight: 800 !important;
	color: var(--wpshop-accent, #0077ff) !important;
	text-decoration: none !important;
	background: transparent !important;
	line-height: 1.1 !important;
}

/* Precio original tachado (en oferta): gris suave, tamano proporcionado y sin azul */
div.product .price del,
div.product p.price del,
div.product .summary .price del,
div.product .summary .price del .amount,
div.product .summary .price del bdi {
	font-size: 1.25rem !important;
	font-weight: 500 !important;
	color: #94a3b8 !important;
	text-decoration: line-through !important;
	opacity: 0.85 !important;
	margin-right: 4px !important;
	background: transparent !important;
	line-height: 1.1 !important;
}

div.product div.images,
div.product .woocommerce-product-gallery {
	flex: 1 1 340px;
	max-width: 480px;
	width: 100%;
	float: none;
	margin-bottom: 0;
	opacity: 1 !important;
	position: relative;
}

div.product div.summary {
	flex: 1 1 360px;
	width: 100%;
	float: none;
}

div.product div.images img,
.woocommerce-product-gallery img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: contain;
	border-radius: var(--wpshop-radius);
	background: #f8fafc;
	display: block;
}

div.product div.images .flex-control-thumbs {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

div.product div.images .flex-control-thumbs li {
	width: 64px;
}

div.product div.images .flex-control-thumbs img {
	cursor: pointer;
	opacity: 0.65;
	border-radius: 8px;
}

div.product div.images .flex-control-thumbs img.flex-active,
div.product div.images .flex-control-thumbs img:hover {
	opacity: 1;
}

div.product .summary .button.add_to_cart_button,
div.product .summary .single_add_to_cart_button {
	background: var(--wpshop-accent);
	color: #fff;
	padding: 14px 28px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 1rem;
	border: 0;
	cursor: pointer;
	transition: filter 0.2s ease;
}

div.product .summary .button:hover {
	filter: brightness(1.08);
	color: #fff;
}

div.product .stock {
	color: #16a34a;
	font-weight: 700;
	margin-bottom: 8px;
}

div.product .product_meta {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px dashed #e2e8f0;
	font-size: 0.92rem;
	color: #64748b;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

div.product .product_meta > span {
	display: block !important;
}

div.product .product_meta span.sku,
div.product .product_meta a {
	display: inline !important;
	color: var(--wpshop-primary);
	font-weight: 600;
}

div.product .quantity .qty {
	width: 60px;
	height: 48px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-align: center;
	font-size: 1rem;
}

/* Pestanas y Comentarios/Valoraciones */
div.product .woocommerce-tabs {
	flex: 1 1 100%;
	width: 100%;
	clear: both;
	padding-top: 24px;
	border-top: 1px solid #f1f5f9;
	margin-top: 24px;
}

div.product .woocommerce-tabs ul.tabs {
	list-style: none;
	display: flex;
	gap: 4px;
	margin: 0 0 16px;
	padding: 0;
	overflow: hidden;
	border-bottom: 2px solid #e2e8f0;
}

div.product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	margin: 0;
	padding: 0;
}

div.product .woocommerce-tabs ul.tabs li::before,
div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 18px;
	font-weight: 700;
	color: #64748b;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s ease;
}

div.product .woocommerce-tabs ul.tabs li.active a,
div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--wpshop-text);
	border-bottom-color: var(--wpshop-accent);
}

div.product .woocommerce-tabs .panel {
	padding-top: 8px;
	font-size: 0.95rem;
	color: #475569;
}

/* Formulario de valoraciones */
#review_form_wrapper #reply-title {
	font-family: var(--wpshop-heading-font);
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--wpshop-text);
	display: block;
}

#commentform {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 600px;
	margin-top: 12px;
}

.comment-form-rating label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9rem;
}

.comment-form-rating select {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 0.9rem;
	font-family: var(--wpshop-body-font);
	outline: none;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.9rem;
	color: var(--wpshop-text);
}

.comment-form-comment textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 12px;
	font-size: 0.92rem;
	font-family: var(--wpshop-body-font);
	outline: none;
	min-height: 110px;
	resize: vertical;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus {
	border-color: var(--wpshop-primary);
	box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.15);
}

.comment-form-author input,
.comment-form-email input {
	width: 100%;
	max-width: 380px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.92rem;
	font-family: var(--wpshop-body-font);
	outline: none;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #64748b;
}

#commentform #submit {
	align-self: flex-start;
	background: var(--wpshop-primary);
	color: #fff;
	padding: 12px 28px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.95rem;
	border: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

#commentform #submit:hover {
	background: var(--wpshop-accent);
}

/* Productos relacionados y combinados */
div.product > .related.products,
div.product > .upsells.products,
section.related.products,
section.upsells.products,
.related.products,
.upsells.products {
	display: block !important;
	grid-template-columns: none !important;
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	clear: both !important;
	padding-top: 28px;
	margin-top: 24px;
	border-top: 1px solid #f1f5f9;
}

section.related.products > h2,
section.upsells.products > h2,
.related.products > h2,
.upsells.products > h2 {
	display: block !important;
	width: 100% !important;
	font-size: 1.2rem;
	position: relative;
	padding-left: 14px;
	margin-bottom: 20px !important;
	font-family: var(--wpshop-heading-font);
}

section.related.products > h2::before,
section.upsells.products > h2::before,
.related.products > h2::before,
.upsells.products > h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 22px;
	border-radius: 4px;
	background: var(--wpshop-accent);
}

section.related.products ul.products,
section.upsells.products ul.products,
.related.products ul.products,
.upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 16px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

/* Avisos */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-top: 3px solid var(--wpshop-primary);
	background: #eff6ff;
	border-radius: 8px;
	color: #1e3a8a;
	list-style: none;
	position: relative;
}

.woocommerce-message {
	border-top-color: #22c55e;
	background: #f0fdf4;
	color: #14532d;
}

.woocommerce-error {
	border-top-color: #ef4444;
	background: #fef2f2;
	color: #7f1d1d;
}

.woocommerce-info .button,
.woocommerce-message .button {
	margin-top: 0 !important;
}

/* Carrito y checkout: limita el ancho en pantallas grandes */
.woocommerce table.cart img,
.woocommerce-cart table img {
	width: 70px;
	border-radius: 8px;
}

#add_payment_method table.cart thead th,
.woocommerce-cart table.cart thead th,
.woocommerce-checkout table.shop_table thead th {
	padding: 12px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order,
.woocommerce #payment #place_order,
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-checkout__submit-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: var(--wpshop-header-bg) !important;
	color: #ffffff !important;
	padding: 12px 24px !important;
	border-radius: var(--wpshop-radius, 10px) !important;
	font-weight: 700 !important;
	font-family: var(--wpshop-body-font) !important;
	font-size: 0.95rem !important;
	border: 0 !important;
	outline: none !important;
	cursor: pointer !important;
	text-decoration: none !important;
	line-height: 1.3 !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order,
.woocommerce #payment #place_order,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background-color: var(--wpshop-accent) !important;
	color: #ffffff !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,
.woocommerce #respond input#submit.alt:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover,
.woocommerce #payment #place_order:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background-color: var(--wpshop-accent) !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 22px rgba(0, 119, 255, 0.35) !important;
	filter: brightness(1.1) !important;
}

/* --------------------------- BOTONES DE COMPARTIR -------------------------- */

.wpshop-single-share {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.wpshop-share-label {
	font-size: 0.88rem;
	font-weight: 700;
	color: #64748b;
}

.wpshop-share-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wpshop-share-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 6px 14px !important;
	border-radius: 20px !important;
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border: 1px solid #cbd5e1 !important;
	background: #f8fafc !important;
	color: #334155 !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

.wpshop-share-btn svg {
	flex-shrink: 0;
}

.wpshop-share-whatsapp:hover {
	background: #25d366 !important;
	border-color: #25d366 !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
}

.wpshop-share-facebook:hover {
	background: #1877f2 !important;
	border-color: #1877f2 !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
}

.wpshop-share-x:hover {
	background: #0f172a !important;
	border-color: #0f172a !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
}

.wpshop-share-copy:hover {
	background: var(--wpshop-accent, #0077ff) !important;
	border-color: var(--wpshop-accent, #0077ff) !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
}

.wpshop-share-copied-msg {
	font-size: 0.82rem;
	font-weight: 700;
	color: #10b981;
}

/* --------------------------- LISTA DE DESEOS (WISHLIST) -------------------------- */

.wpshop-card-wishlist-btn {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 6 !important;
	background: #ffffff !important;
	border: 0 !important;
	border-radius: 50% !important;
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	display: inline-grid !important;
	place-items: center !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
	cursor: pointer !important;
	color: #94a3b8 !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wpshop-card-wishlist-btn:hover,
.wpshop-card-wishlist-btn.is-active {
	color: var(--wpshop-accent, #0077ff) !important;
	transform: scale(1.1) !important;
	box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25) !important;
}

.wpshop-single-wishlist-wrap {
	margin-top: 14px;
	margin-bottom: 14px;
}

.wpshop-wishlist-single-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 9px 18px !important;
	border-radius: 20px !important;
	border: 1px solid #cbd5e1 !important;
	background: #ffffff !important;
	color: #334155 !important;
	font-weight: 600 !important;
	font-size: 0.88rem !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
}

.wpshop-wishlist-single-btn:hover,
.wpshop-wishlist-single-btn.is-active {
	border-color: var(--wpshop-accent, #0077ff) !important;
	color: var(--wpshop-accent, #0077ff) !important;
	background: #eff6ff !important;
}

.wpshop-wishlist-empty {
	text-align: center;
	padding: 40px 20px;
	background: #f8fafc;
	border-radius: var(--wpshop-radius, 10px);
	border: 1px dashed #cbd5e1;
	margin-top: 16px;
}

.wpshop-wishlist-empty p {
	font-size: 1rem;
	color: #64748b;
	margin-bottom: 16px;
}

/* Responsive del catalogo y ficha de producto */
@media (max-width: 1100px) {
	ul.products,
	.woocommerce ul.products {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 767px) {
	/* Grid de productos en movil */
	ul.products,
	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.related.products ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
	}

	ul.products li.product,
	.products li.product,
	.woocommerce ul.products li.product {
		padding: 0 !important;
		border-radius: 10px !important;
	}

	ul.products li.product img,
	.products li.product img {
		height: 135px !important;
		padding: 8px !important;
		object-fit: contain !important;
	}

	ul.products li.product .woocommerce-loop-product__link h2.woocommerce-loop-product__title,
	.products li.product .woocommerce-loop-product__link h2.woocommerce-loop-product__title {
		font-size: 0.82rem !important;
		padding: 6px 8px 2px !important;
		min-height: 2.3em !important;
		line-height: 1.25 !important;
	}

	ul.products li.product .price,
	.products li.product .price,
	.woocommerce ul.products li.product .price,
	.woocommerce-page ul.products li.product .price {
		font-size: 1.05rem !important;
		padding: 2px 8px 6px !important;
		margin: 2px 0 4px !important;
	}

	ul.products li.product .price span.amount,
	.products li.product .price span.amount,
	.woocommerce ul.products li.product .price span.amount,
	ul.products li.product .price ins .amount,
	.products li.product .price ins .amount {
		font-size: 1.05rem !important;
	}

	ul.products li.product .price del,
	.products li.product .price del,
	ul.products li.product .price del .amount {
		font-size: 0.78rem !important;
	}

	ul.products li.product .wpshop-card-footer,
	.products li.product .wpshop-card-footer {
		padding: 0 6px 8px !important;
	}

	ul.products li.product .button,
	.products li.product .button,
	ul.products li.product a.button,
	.products li.product a.button {
		padding: 7px 6px !important;
		font-size: 0.78rem !important;
		min-height: 32px !important;
	}

	/* Ficha de producto */
	div.product {
		padding: 14px !important;
		gap: 16px !important;
		border-radius: 10px !important;
	}

	div.product div.images,
	div.product div.summary {
		width: 100% !important;
		float: none !important;
	}

	div.product .product_title {
		font-size: 1.35rem !important;
	}

	div.product .price,
	div.product p.price,
	div.product .summary .price {
		font-size: 1.8rem !important;
		margin: 6px 0 12px !important;
	}

	.wpshop-woo-content > .woocommerce {
		padding: 10px 0 !important;
	}

	section.related.products {
		margin-top: 20px !important;
		padding-top: 16px !important;
		border-top: 1px solid #e2e8f0 !important;
		width: 100% !important;
	}

	section.related.products h2 {
		font-size: 1.15rem !important;
		margin-bottom: 12px !important;
	}
}

@media (max-width: 480px) {
	ul.products li.product .button,
	.products li.product .button,
	ul.products li.product a.button,
	.products li.product a.button {
		padding: 6px 4px !important;
		font-size: 0.75rem !important;
	}
}

/* --------------------------- INSIGNIAS / BADGES DE PRODUCTO -------------------------- */
ul.products li.product {
	position: relative !important;
}

.wpshop-product-badges {
	position: absolute !important;
	top: 10px !important;
	left: 10px !important;
	z-index: 6 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 5px !important;
	align-items: flex-start !important;
	pointer-events: none !important;
}

.wpshop-badge {
	display: inline-block !important;
	padding: 4px 9px !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	border-radius: 6px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.03em !important;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15) !important;
	color: #ffffff !important;
}

.wpshop-badge--sale {
	background-color: #ef4444 !important; /* Rojo ofertas */
}

.wpshop-badge--new {
	background-color: #10b981 !important; /* Verde esmeralda novedades */
}

.wpshop-badge--top {
	background-color: var(--wpshop-accent, #0077ff) !important; /* Azul de marca */
}

.wpshop-badge--out {
	background-color: #64748b !important; /* Gris agotado */
}

/* --------------------------- CARRITO FLOTANTE LATERAL (CART DRAWER) -------------------------- */
body.wpshop-cart-drawer-active {
	overflow: hidden !important;
}

.wpshop-cart-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	visibility: hidden;
	transition: visibility 0.3s ease;
}

.wpshop-cart-drawer.is-open {
	visibility: visible;
}

.wpshop-cart-drawer-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wpshop-cart-drawer.is-open .wpshop-cart-drawer-overlay {
	opacity: 1;
}

.wpshop-cart-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 420px;
	height: 100%;
	background: #ffffff;
	box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 2;
}

.wpshop-cart-drawer.is-open .wpshop-cart-drawer-panel {
	transform: translateX(0);
}

.wpshop-cart-drawer-header {
	padding: 18px 20px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
}

.wpshop-cart-drawer-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wpshop-cart-drawer-title svg {
	color: var(--wpshop-accent, #0077ff);
}

.wpshop-cart-drawer-close {
	background: transparent;
	border: 0;
	font-size: 1.8rem;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.2s ease;
}

.wpshop-cart-drawer-close:hover {
	color: #0f172a;
}

.wpshop-cart-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

/* Estilos de WooCommerce mini-cart dentro del Drawer */
.wpshop-cart-drawer-body .woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #f1f5f9;
	position: relative;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart-item a.remove {
	position: absolute;
	right: 0;
	top: 14px;
	font-size: 1.2rem !important;
	color: #ef4444 !important;
	background: transparent !important;
	width: auto !important;
	height: auto !important;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart-item img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: var(--wpshop-radius, 8px);
	border: 1px solid #e2e8f0;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart-item a:not(.remove) {
	font-weight: 600;
	color: #1e293b;
	font-size: 0.92rem;
	text-decoration: none;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart-item a:not(.remove):hover {
	color: var(--wpshop-accent, #0077ff);
}

.wpshop-cart-drawer-body .woocommerce-mini-cart__total {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 2px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart__buttons {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart__buttons a.button {
	display: block !important;
	text-align: center !important;
	width: 100% !important;
	padding: 12px 20px !important;
	border-radius: var(--wpshop-radius, 8px) !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	transition: all 0.2s ease !important;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart__buttons a.button:not(.checkout) {
	background: #f1f5f9 !important;
	color: #334155 !important;
	border: 1px solid #cbd5e1 !important;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart__buttons a.button:not(.checkout):hover {
	background: #e2e8f0 !important;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart__buttons a.button.checkout {
	background: var(--wpshop-accent, #0077ff) !important;
	color: #ffffff !important;
	border: 0 !important;
	box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25) !important;
}

.wpshop-cart-drawer-body .woocommerce-mini-cart__buttons a.button.checkout:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

.wpshop-cart-drawer-body .woocommerce-mini-cart__empty-message {
	text-align: center;
	padding: 40px 10px;
	color: #64748b;
	font-size: 0.95rem;
}