/*
 Theme Name:   Blocksy Child - Mundo Gastronómico
 Theme URI:    https://mundogastronomico.cl
 Description:  Child theme for Blocksy – Mundo Gastronómico redesign
 Author:       Mundo Gastronómico
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

/* ==========================================================================
   Global: Brand colors for buttons, links, accents
   ========================================================================== */
:root {
    /* ── Brand Manual V.1 — Paleta completa ── */
    /* Principales */
    --mg-purple:       #490D78;
    --mg-white:        #FFFFFF;
    --mg-gold:         #F5CD46;
    --mg-magenta:      #892075;
    /* Secundarios */
    --mg-sky:          #7DE7FB;
    --mg-mint:         #9DFCDF;
    --mg-purple-mid:   #531078;

    /* ── Theme tokens (usados en el sitio) ── */
    --theme-palette-color-1: #52047D;
    --theme-palette-color-2: #3d0360;
    --theme-palette-color-3: #d69942;
    --theme-button-background-initial-color: #52047D;
    --theme-button-background-hover-color: #3d0360;
    --theme-button-text-initial-color: #ffffff;
    --theme-button-text-hover-color: #ffffff;
    --theme-link-initial-color: #52047D;
    --theme-link-hover-color: #3d0360;
}

/* Global Typography: Poppins (matches production BeTheme site) */
body,
.site-header,
.entry-content,
h1, h2, h3, h4, h5, h6,
.woocommerce div.product .product_title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
button, input, select, textarea {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Homepage: grey background for MeLi-style sections */
body.home .site-main,
body.home .entry-content {
    background: #f5f5f5;
}

/* Keep hero and pills above the grey background.
   z-index must be high enough so the live-search dropdown
   (position:absolute inside the hero) stays above sibling sections. */
body.home .mg-hero-compact {
    position: relative;
    z-index: 100;
}

/* WooCommerce buttons: purple primary, gold secondary */
.single_add_to_cart_button,
.single_add_to_cart_button.button,
.woocommerce .button.alt,
.woocommerce .button.alt:not(.checkout-button),
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.ct-cart-content .woocommerce-mini-cart__buttons .button:last-child {
    background-color: #52047D !important;
    color: #fff !important;
    border: none !important;
}

.single_add_to_cart_button:hover,
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background-color: #3d0360 !important;
}

/* "Comprar ahora" / secondary buttons */
.mg-buy-now-btn,
.button.checkout,
.checkout-button,
.ct-cart-content .woocommerce-mini-cart__buttons .button:first-child {
    background-color: #d69942 !important;
    color: #fff !important;
    border: none !important;
}

.mg-buy-now-btn:hover,
.button.checkout:hover,
.checkout-button:hover {
    background-color: #c18835 !important;
}

/* Generic WP/WC buttons */
.wp-element-button,
.woocommerce .button,
.woocommerce a.button,
.wc-block-components-button {
    background-color: #52047D !important;
    color: #fff !important;
}

.wp-element-button:hover,
.woocommerce .button:hover,
.woocommerce a.button:hover {
    background-color: #3d0360 !important;
}

/* Front page: hide hero/page-title section completely */
.home .hero-section {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
.home .entry-header {
    display: none !important;
}

/* Front page: hide comments section */
.home .ct-comments-container,
.home #comments,
.home #respond {
    display: none !important;
}

/* ==========================================================================
   Product Cards: Unified Styling for Home & Shop
   ========================================================================== */

/* Target both Gutenberg blocks and standard WooCommerce archives */
.home .wc-block-grid__product,
.archive.post-type-archive-product .product,
.archive.tax-product_cat .product,
.related.products .product,
.upsells.products .product {
    padding: 15px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-align: center !important;
}

.home .wc-block-grid__product:hover,
.archive.post-type-archive-product .product:hover,
.archive.tax-product_cat .product:hover,
.related.products .product:hover,
.upsells.products .product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(82, 4, 125, 0.08) !important;
    border-color: rgba(82, 4, 125, 0.1) !important;
}

/* Ensure consistent image styling */
.home .wc-block-grid__product-image,
.archive .product-inner .ct-media-container,
.related .product-inner .ct-media-container {
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
}

/* Product Titles */
.home .wc-block-grid__product-title,
.archive .product .woocommerce-loop-product__title,
.related .product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    color: var(--theme-palette-color-4, #1a1a2e) !important;
    min-height: 2.8em;
}

/* Price styling in loop */
.home .wc-block-grid__product-price,
.archive .product .price,
.related .product .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--theme-palette-color-1, #52047D) !important;
    margin-top: auto !important;
    margin-bottom: 12px !important;
}

.home .wc-block-grid__product-price del,
.archive .product .price del,
.related .product .price del {
    font-size: 14px !important;
    color: #999 !important;
    margin-right: 6px !important;
}

/* Sale Badge — unified red pill */
.home .wc-block-grid__product-onsale,
.archive .onsale,
.related .onsale,
.upsells .onsale,
[data-products] .onsale,
.single-product .onsale {
    background: #e53e3e !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    z-index: 2 !important;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3) !important;
}

/* Push add-to-cart to bottom of card */
.home .wc-block-grid__product-add-to-cart,
.archive .product .ct-woo-card-extra,
.related .product .ct-woo-card-extra,
.upsells .product .ct-woo-card-extra,
[data-products] .product .ct-woo-card-extra {
    margin-top: auto !important;
}

/* Buttons in Loop */
.home .wc-block-grid__product-add-to-cart .wp-block-button__link,
.archive .product .button,
.related .product .button {
    width: 100% !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
}


/* Product grid: 2 columns on mobile */
@media (max-width: 768px) {
    .home .wc-block-grid.has-4-columns .wc-block-grid__product {
        flex: 1 0 50% !important;
        max-width: 50% !important;
    }
}

/* ==========================================================================
   Trust bar: value proposition strip below header
   ========================================================================== */
/* 3) Slimmer trust bar */
.mg-trust-bar {
    background: #52047D;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 16px;
    line-height: 1.2;
    border-bottom: none;
}

.mg-trust-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.mg-trust-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    letter-spacing: 0.2px;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.mg-trust-bar__item:hover {
    opacity: 1;
}

.mg-trust-bar__item svg {
    flex-shrink: 0;
    opacity: 0.85;
    width: 14px;
    height: 14px;
    color: var(--theme-palette-color-3);
}

@media (max-width: 768px) {
    .mg-trust-bar {
        font-size: 10px;
        padding: 5px 10px;
    }
    .mg-trust-bar__inner {
        gap: 8px 16px;
        justify-content: center;
    }
    .mg-trust-bar__item svg {
        width: 12px;
        height: 12px;
    }
}

/* ==========================================================================
   Elementor icon guardrail
   Prevent oversized inline SVG icons (e.g. WhatsApp CTA icon in shop footer)
   ========================================================================== */
.elementor-button .elementor-button-icon .e-font-icon-svg {
    width: 1em !important;
    height: 1em !important;
    min-width: 1em;
    max-width: 1em;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   Shop archive native contact CTA (replaces Elementor section data-id=0be1edf)
   ========================================================================== */
body.post-type-archive-product .elementor-element[data-id="0be1edf"],
body.tax-product_cat .elementor-element[data-id="0be1edf"] {
    display: none !important;
}

.mg-shop-contact-native {
    margin-top: 24px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(120deg, #2f0a49 0%, #52047D 55%, #7931a9 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(50, 8, 78, 0.22);
}

.mg-shop-contact-native__content {
    padding: 30px 34px;
}

.mg-shop-contact-native__content h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
    color: #fff;
}

.mg-shop-contact-native__content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.92);
}

.mg-shop-contact-native__button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    background: #25d366;
    color: #0f301f;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
}

.mg-shop-contact-native__button:hover {
    background: #1db455;
    color: #082011;
}

.mg-shop-contact-native__media {
    align-self: stretch;
}

.mg-shop-contact-native__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
}

@media (max-width: 1024px) {
    .mg-shop-contact-native {
        display: none;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.mg-footer {
    background: #1a1a2e;
    color: #d1d1d6;
    padding: 60px 24px 0;
    font-size: 14px;
    line-height: 1.7;
}
.mg-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.mg-footer__logo {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}
.mg-footer__site-name {
    font-size: 18px;
    color: #fff;
}
.mg-footer__logo-wrap {
    margin-bottom: 12px;
}
.mg-footer__brand {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}
.mg-footer__desc {
    color: #a0a0aa;
    margin: 0 0 16px;
    font-size: 13px;
}
.mg-footer__social {
    display: flex;
    gap: 12px;
}
.mg-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #d1d1d6;
    transition: background 0.2s, color 0.2s;
}
.mg-footer__social a:hover {
    background: #52047D;
    color: #fff;
}
.mg-footer__heading {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mg-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mg-footer__links li {
    margin-bottom: 8px;
}
.mg-footer__links a {
    color: #a0a0aa;
    text-decoration: none;
    transition: color 0.2s;
}
.mg-footer__links a:hover {
    color: #d69942;
}
.mg-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mg-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    color: #a0a0aa;
}
.mg-footer__contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d69942;
}
.mg-footer__contact a {
    color: #a0a0aa;
    text-decoration: none;
}
.mg-footer__contact a:hover {
    color: #d69942;
}
.mg-footer__payment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.mg-footer__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: #d1d1d6;
    font-size: 12px;
    font-weight: 600;
}
.mg-footer__badge--webpay {
    background: #fff;
    padding: 4px 10px;
}
.mg-footer__badge--webpay img {
    height: 22px;
    width: auto;
    display: block;
}
.mg-footer__badge--retail {
    background: #fff;
    padding: 4px 10px;
}
.mg-footer__badge--retail img {
    height: 20px;
    width: auto;
    display: block;
}
.mg-footer__secure {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8bc34a;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 16px;
}
.mg-footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}
.mg-footer__bottom-links {
    display: flex;
    gap: 20px;
}
.mg-footer__bottom-links a {
    color: #888;
    text-decoration: none;
}
.mg-footer__bottom-links a:hover {
    color: #d69942;
}

@media (max-width: 768px) {
    .mg-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }
    /* Brand (col 1) and Payment (col 4) span full width */
    .mg-footer__col:first-child,
    .mg-footer__col:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    /* Nav and Contact: left-aligned side by side */
    .mg-footer__col:nth-child(2),
    .mg-footer__col:nth-child(3) {
        text-align: left;
    }
    .mg-footer__contact li {
        justify-content: flex-start;
    }
    .mg-footer__payment {
        justify-content: center;
    }
    .mg-footer__secure {
        justify-content: center;
    }
    .mg-footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-bottom: 80px;
    }
    .mg-footer__bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }
}
@media (max-width: 480px) {
    .mg-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }
    .mg-footer__heading {
        font-size: 13px;
    }
    .mg-footer__links a,
    .mg-footer__contact li {
        font-size: 12px;
    }
}

/* ==========================================================================
   Single Product Page Enhancements
   ========================================================================== */

/* Price Stack & Badges — MeLi-inspired clean hierarchy */
.mg-price-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0 8px;
}
.mg-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.mg-price-row--top {
    gap: 8px;
    align-items: center;
}
.mg-price-badge {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.mg-price-badge--savings {
    color: #00a650;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
}
.mg-price-regular {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}
.mg-price-current {
    font-size: 2em;
    font-weight: 400;
    color: #333;
}
.mg-price-current .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.mg-price-badge--iva {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    background: none;
    padding: 0;
}

/* Single product summary layout */
.single-product div.product .summary {
    padding-left: 20px;
}

@media (max-width: 768px) {
    .single-product div.product .summary {
        padding-left: 0;
        margin-top: 20px;
    }
}

/* Share buttons refinement */
.mg-share {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 16px;
    margin-top: 20px;
}
.mg-share__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}
.mg-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f3f8;
    color: #52047D;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}
.mg-share__btn svg {
    width: 16px;
    height: 16px;
}
.mg-share__btn:hover {
    background: #52047D;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 4, 125, 0.25);
}
.mg-share__btn--copy.copied {
    background: #00a650;
    color: #fff;
}

/* ==========================================================================
   Micro-interactions & General Refinements
   ========================================================================== */

/* Button hover effects */
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease !important;
}

.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 4, 125, 0.2) !important;
}

/* Smooth scroll for the whole page */
html {
    scroll-behavior: smooth;
}

/* Breadcrumbs styling */
.woocommerce-breadcrumb {
    font-size: 13px;
    margin-bottom: 20px;
    color: #888;
}
.woocommerce-breadcrumb a {
    color: var(--theme-palette-color-1);
    text-decoration: none;
    transition: color 0.2s;
}
.woocommerce-breadcrumb a:hover {
    color: var(--theme-palette-color-3);
}

/* Forms refinement */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 44px !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--theme-palette-color-1) !important;
    box-shadow: 0 0 0 3px rgba(82, 4, 125, 0.1) !important;
    outline: none !important;
}

/* ==========================================================================
   Pagination & Empty States
   ========================================================================== */

/* WooCommerce Pagination */
.woocommerce-pagination {
    margin: 40px 0 !important;
}
.woocommerce-pagination ul {
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
}
.woocommerce-pagination ul li {
    border: none !important;
    margin: 0 !important;
}
.woocommerce-pagination ul li .page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: #f8f6fb !important;
    color: var(--theme-palette-color-1) !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    border: 1px solid rgba(82, 4, 125, 0.05) !important;
}
.woocommerce-pagination ul li .page-numbers:hover {
    background: var(--theme-palette-color-1) !important;
    color: #fff !important;
}
.woocommerce-pagination ul li .page-numbers.current {
    background: var(--theme-palette-color-1) !important;
    color: #fff !important;
}

/* Empty State / Info messages */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    border: none !important;
    border-left: 3px solid var(--theme-palette-color-1) !important;
    background: #f8f6fb !important;
    border-radius: 8px !important;
    padding: 16px 20px 16px 50px !important;
    color: var(--theme-palette-color-4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    font-size: 14px !important;
}
.woocommerce-error {
    border-left-color: #dc3545 !important;
    background: #fff5f5 !important;
}

.woocommerce-info::before {
    color: var(--theme-palette-color-1) !important;
}

/* ==========================================================================
   Premium UI Enhancements (Modern & "Alive" Feel)
   ========================================================================== */

/* 1. Global Branding Details */
::selection {
    background: var(--theme-palette-color-1);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-palette-color-1);
}

/* 2. "Alive" Category Cards (Home) */
.home .wp-block-group[style*="border-radius"] {
    overflow: hidden !important; 
    position: relative;
    display: block;
}

/* Add a subtle gradient overlay for text legibility */
.home .wp-block-group[style*="border-radius"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.home .wp-block-group[style*="border-radius"] img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    width: 100%;
}

.home .wp-block-group[style*="border-radius"]:hover img {
    transform: scale(1.12);
}

.home .wp-block-group[style*="border-radius"] .wp-block-heading {
    position: relative;
    z-index: 2; /* Sit above the gradient */
}

.home .wp-block-group[style*="border-radius"] .wp-block-heading a {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.home .wp-block-group[style*="border-radius"]:hover .wp-block-heading a {
    transform: translateY(-5px);
}

/* 3. Modern Product Tabs (Pill Style) */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 30px !important;
    border: none !important;
    background: transparent !important;
    display: flex;
    gap: 10px;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    row-gap: 8px !important;
    overflow-x: auto; /* Scroll on mobile */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li a::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li a::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: #f5f5f7 !important;
    border: none !important;
    border-radius: 999px !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 10px 20px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    text-decoration: none !important;
    border: 0 !important;
    font-weight: 600 !important;
    color: #666 !important;
    font-size: 14px !important;
    -webkit-text-fill-color: currentColor !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #52047D !important;
    box-shadow: 0 4px 12px rgba(82, 4, 125, 0.2);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #fff !important;
    -webkit-text-fill-color: currentColor !important;
}

/* 4. Integrated Quantity & Add to Cart */
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.woocommerce div.product form.cart .quantity {
    margin: 0 !important;
    float: none !important;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 4px;
    overflow: hidden;
    background: #fff;
    width: auto;
    min-width: 100px;
    height: 40px;
}

.woocommerce div.product form.cart .quantity .minus,
.woocommerce div.product form.cart .quantity .plus {
    background: transparent !important;
    border: none !important;
    color: var(--theme-palette-color-4) !important;
    font-size: 16px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.woocommerce div.product form.cart .quantity .minus:hover,
.woocommerce div.product form.cart .quantity .plus:hover {
    background: #f0f0f5 !important;
    color: var(--theme-palette-color-1) !important;
}

.woocommerce div.product form.cart .quantity input.qty {
    width: 36px !important;
    border: none !important;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    height: 100%;
    padding: 0 !important;
    background: transparent !important;
    color: var(--theme-palette-color-4);
    margin: 0 !important;
    appearance: textfield;
}

.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* The button itself — override Blocksy --theme-button-min-height: 55px */
.woocommerce div.product form.cart .button {
    border-radius: 10px !important;
    padding: 10px 20px !important;
    height: 42px !important;
    min-height: 42px !important;
    --theme-button-min-height: 42px !important;
    flex-grow: 1;
    max-width: 240px;
    font-size: 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.entry-summary-items > .ct-product-add-to-cart > .cart {
    --theme-button-min-height: 42px !important;
}

/* Tighten product summary spacing: variations → price → buttons */
.single-product .entry-summary .variations {
    margin-bottom: 8px !important;
}
.single-product .entry-summary .woocommerce-variation-price {
    margin-bottom: 8px !important;
}
.single-product .entry-summary .single_variation_wrap {
    margin-top: 0 !important;
}
.single-product .entry-summary table.variations td,
.single-product .entry-summary table.variations th {
    padding: 8px 4px 8px 0 !important;
}
.single-product .entry-summary table.variations label {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Gallery: click anywhere on main image to open lightbox */
.woocommerce-product-gallery .ct-media-container,
.woocommerce-product-gallery__image img,
.ct-product-gallery-container img {
    cursor: zoom-in;
}

/* 4.1 Product Gallery Polish */
.woocommerce-product-gallery .flex-control-thumbs {
    margin-top: 15px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    float: none !important;
    width: 100% !important;
}

.woocommerce-product-gallery .flex-control-thumbs img {
    border-radius: 8px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover {
    border-color: var(--theme-palette-color-1) !important;
    box-shadow: 0 6px 15px rgba(82, 4, 125, 0.15);
}

/* 5. Trust Bar Polish (consolidated into main .mg-trust-bar block above) */

/* 6. Footer Newsletter / Input Polish */
.mg-footer input[type="email"] {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

.mg-footer input[type="email"]:focus {
    background: rgba(255,255,255,0.1) !important;
    border-color: var(--theme-palette-color-3) !important;
}

/* ==========================================================================
   Business Badges (Ideal for...) & Trust Signals
   ========================================================================== */

.mg-business-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 15px 0 20px;
    font-size: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mg-business-tags__label {
    color: var(--theme-palette-color-4);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.mg-business-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f6fb;
    color: var(--theme-palette-color-1);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(82, 4, 125, 0.08);
}

.mg-business-tag:hover {
    background: var(--theme-palette-color-1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 4, 125, 0.15);
}

.mg-business-tag svg {
    opacity: 0.8;
}

/* Home: Equipa tu Negocio Section */
.mg-equipa-negocio {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.mg-equipa-negocio__title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--theme-palette-color-4);
}

.mg-equipa-negocio__subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.mg-equipa-negocio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.mg-equipa-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mg-equipa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(82, 4, 125, 0.1);
    border-color: var(--theme-palette-color-1);
}

.mg-equipa-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    background: #f8f6fb;
    color: var(--theme-palette-color-1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mg-equipa-card:hover .mg-equipa-card__icon {
    background: var(--theme-palette-color-1);
    color: #fff;
    transform: rotate(5deg) scale(1.1);
}

.mg-equipa-card__name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--theme-palette-color-4);
    margin-bottom: 5px;
}

.mg-equipa-card__count {
    font-size: 13px;
    color: #888;
}

@media (max-width: 768px) {
    .mg-equipa-negocio { margin: 50px auto; }
    .mg-equipa-negocio__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .mg-equipa-card { padding: 20px 10px; }
}

/* ==========================================================================
   End of Premium Enhancements
   ========================================================================== */

/* ==========================================================================
   Homepage Redesign: Layout Overrides
   Kill Blocksy's 60px content-vertical-spacing on the homepage
   and remove WP block content-spacing between homepage sections
   ========================================================================== */
.home .ct-container-full {
    --theme-content-vertical-spacing: 0px;
}

.home .entry-content.is-layout-constrained > * {
    margin-block-start: 0;
}

/* Make wp:html blocks (pills, trust strip, WhatsApp CTA) full-width */
.home .entry-content.is-layout-constrained > .mg-cat-pills,
.home .entry-content.is-layout-constrained > .mg-trust-strip,
.home .entry-content.is-layout-constrained > .mg-whatsapp-cta {
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw;
}

/* ==========================================================================
   Homepage Redesign: Compact Hero
   ========================================================================== */
.mg-hero-compact {
    text-align: center;
    padding-top: 24px !important;
    padding-bottom: 28px !important;
}

.mg-hero-compact .mg-hero-title {
    font-size: clamp(18px, 1rem + 0.5vw, 24px) !important;
    margin-bottom: 4px !important;
}

.mg-hero-compact .mg-hero-sub {
    margin-bottom: 16px !important;
    font-size: clamp(13px, 0.8rem + ((1vw - 3.2px) * 0.125), 15px) !important;
    opacity: 0.85;
}

.mg-hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid rgba(82, 4, 125, 0.1);
}
/* Keep pill shape without overflow:hidden — clip corners on input/button directly */
.mg-hero-search input[type="search"] {
    flex: 1;
    border: none !important;
    padding: 16px 25px !important;
    font-size: 16px !important;
    border-radius: 999px 0 0 999px !important;
    background: #fff !important;
    color: #333;
    outline: none;
    box-shadow: none !important;
}

.mg-hero-search input[type="search"]::placeholder {
    color: #a0a0a0;
}

.mg-hero-search button {
    background: var(--theme-palette-color-1, #52047D);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 0 999px 999px 0 !important;
}

.mg-hero-search button:hover {
    background: var(--theme-palette-color-2, #3d0360);
    padding-right: 30px; /* Slight expansion effect */
}

@media (max-width: 768px) {
    .mg-hero-compact {
        padding: 20px 15px !important;
    }
    .mg-hero-compact .mg-hero-title {
        font-size: 22px !important;
        font-weight: 800;
    }
    .mg-hero-search {
        max-width: 100%;
        height: 54px;
    }
    .mg-hero-search input[type="search"] {
        font-size: 15px !important;
        padding: 12px 20px !important;
    }
}

/* ==========================================================================
   Homepage Redesign: Category Pills
   ========================================================================== */
.mg-cat-pills {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 12px 0;
}

.mg-cat-pills__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 4px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mg-cat-pills__inner::-webkit-scrollbar {
    display: none;
}

.mg-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid rgba(82, 4, 125, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.mg-pill:hover {
    background: var(--theme-palette-color-1, #52047D);
    color: #fff;
    border-color: var(--theme-palette-color-1, #52047D);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 4, 125, 0.2);
}

.mg-pill--shop {
    background: var(--theme-palette-color-1, #52047D) !important;
    color: #fff !important;
    border-color: var(--theme-palette-color-1, #52047D) !important;
}

.mg-pill--shop:hover {
    background: var(--theme-palette-color-2, #3d0360) !important;
    border-color: var(--theme-palette-color-2, #3d0360) !important;
}

@media (max-width: 768px) {
    .mg-cat-pills__inner {
        justify-content: flex-start;
        gap: 8px;
        padding: 0 12px;
    }
    .mg-pill {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   Homepage Redesign: Section Headers
   ========================================================================== */
.mg-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 16px;
}

.mg-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-palette-color-4, #1a1a2e);
    margin: 0;
}

.mg-section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-palette-color-1, #52047D);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.mg-section-link:hover {
    color: var(--theme-palette-color-3, #d69942);
}

@media (max-width: 768px) {
    .mg-section-title {
        font-size: 18px;
    }
    .mg-section-link {
        font-size: 13px;
    }
}

/* ==========================================================================
   Homepage Redesign: Trust Strip (compact)
   ========================================================================== */
.mg-trust-strip {
    background: #faf8fc;
    padding: 24px 16px;
    border-top: 1px solid rgba(82, 4, 125, 0.06);
    border-bottom: 1px solid rgba(82, 4, 125, 0.06);
}

.mg-trust-strip__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mg-trust-strip__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
}

.mg-trust-strip__icon {
    font-size: 22px;
}

@media (max-width: 768px) {
    .mg-trust-strip__inner {
        gap: 16px 24px;
        justify-content: center;
    }
    .mg-trust-strip__item {
        font-size: 13px;
    }
}

/* ==========================================================================
   Homepage Redesign: WhatsApp CTA
   ========================================================================== */
.mg-whatsapp-cta {
    background: linear-gradient(120deg, #2f0a49 0%, #52047D 55%, #7931a9 100%);
    color: #fff;
    padding: 32px 16px;
}

.mg-whatsapp-cta__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    flex-wrap: wrap;
}

.mg-whatsapp-cta__text {
    font-size: 16px;
    line-height: 1.5;
}

.mg-whatsapp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border-radius: 999px;
    background: #25d366;
    color: #0f301f;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.mg-whatsapp-cta__btn:hover {
    background: #1db455;
    transform: translateY(-2px);
    color: #082011;
}

/* ==========================================================================
   Shop Archive: Blocksy-native product grid & FILTERS
   ========================================================================== */

/* Force 4 columns on desktop (override Blocksy default of 3) */
[data-products] {
    --shop-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

@media (max-width: 1200px) {
    [data-products] { --shop-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 768px) {
    [data-products] { 
        --shop-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 12px !important;
    }
}

/* --- SHOP FILTERS OVERHAUL (YITH & Blocksy) --- */
.ct-sidebar, .yith-wcan-filters {
    background: #fff !important;
    border-radius: 12px !important;
}

/* Filter Widget Titles */
.ct-sidebar .widget-title, 
.yith-wcan-filters .filter-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--theme-palette-color-4) !important;
    border-bottom: 2px solid var(--theme-palette-color-1) !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
    display: block !important;
}

/* Filter Lists (Checkboxes/Labels) */
.ct-sidebar ul, .yith-wcan-filters ul {
    list-style: none !important;
    padding: 0 !important;
}

.ct-sidebar ul li, .yith-wcan-filters ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #555 !important;
    transition: all 0.2s ease !important;
}

.ct-sidebar ul li:hover, .yith-wcan-filters ul li:hover {
    padding-left: 5px !important;
    color: var(--theme-palette-color-1) !important;
}

/* Custom Checkbox Style (CSS only) */
.yith-wcan-filters li a::before, 
.widget_rating_filter li a::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.yith-wcan-filters li.chosen a::before {
    background: var(--theme-palette-color-1);
    border-color: var(--theme-palette-color-1);
    box-shadow: inset 0 0 0 3px #fff;
}

/* Range Filter */
.widget_price_filter .ui-slider-range {
    background-color: var(--theme-palette-color-1) !important;
}
.widget_price_filter .ui-slider-handle {
    background-color: #fff !important;
    border: 2px solid var(--theme-palette-color-1) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Off-canvas Filter (Mobile) */
.ct-offcanvas-content {
    padding: 30px 20px !important;
}

/* ==========================================================================
   Off-canvas Mobile Menu — left-side drawer (Ventus-style)
   ========================================================================== */
#offcanvas .ct-panel-inner {
    background-color: #fff !important;
}

/* Close button */
#offcanvas .ct-toggle-close {
    color: #333 !important;
    background: rgba(0,0,0,0.05) !important;
}
#offcanvas .ct-toggle-close:hover {
    background: rgba(0,0,0,0.1) !important;
}

/* Mobile menu items */
#offcanvas [data-id="mobile-menu"] {
    --theme-link-initial-color: #1a1a2e !important;
    --mobile-menu-divider: 1px solid #f0f0f0 !important;
}

#offcanvas [data-id="mobile-menu"] > ul > li > .ct-menu-link {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 14px 0 !important;
    color: #1a1a2e !important;
}

#offcanvas [data-id="mobile-menu"] > ul > li > .ct-menu-link:hover,
#offcanvas [data-id="mobile-menu"] > ul > li.current-menu-item > .ct-menu-link {
    color: #52047D !important;
}

/* Submenu arrow indicators */
#offcanvas [data-id="mobile-menu"] .ct-sub-menu-arrow,
#offcanvas [data-id="mobile-menu"] .ct-toggle-dropdown-desktop {
    color: #999 !important;
}

/* Submenu items */
#offcanvas [data-id="mobile-menu"] .sub-menu .ct-menu-link {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #555 !important;
    padding: 10px 0 10px 16px !important;
}

#offcanvas [data-id="mobile-menu"] .sub-menu .ct-menu-link:hover {
    color: #52047D !important;
}

/* Panel shadow for depth */
#offcanvas[data-behaviour="left-side"] .ct-panel-inner {
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.12) !important;
}

/* --- MOBILE GLOBAL RESETS --- */
@media (max-width: 768px) {
    /* Kill excessive vertical space */
    :root {
        --theme-content-vertical-spacing: 25px !important;
    }

    /* Standardize Container Padding */
    .ct-container, .entry-content > * {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Mobile Typography Fixes */
    h1 { font-size: 24px !important; line-height: 1.2 !important; font-weight: 800 !important; }
    h2 { font-size: 20px !important; line-height: 1.3 !important; font-weight: 700 !important; }
    h3 { font-size: 17px !important; }
    p { font-size: 14px !important; line-height: 1.6 !important; }

    /* Product Grid specifically for Shop */
    .archive .product-inner {
        padding: 8px !important;
        border-radius: 10px !important;
    }
    
    .archive .woocommerce-loop-product__title {
        font-size: 13px !important;
        min-height: 2.8em !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
    }

    .archive .price {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    .archive .product .button {
        padding: 8px 10px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }

    /* 5) Mobile header: compact, purple to match hero */
    .ct-header-mobile [data-row="middle"] {
        padding: 6px 0 !important;
        background-color: #52047D !important;
        --theme-text-color: #ffffff;
        --theme-link-initial-color: #ffffff;
        --theme-icon-color: #ffffff;
        box-shadow: none;
    }

    /* Hide site-title text on mobile too */
    .ct-header-mobile [data-id="logo"] .site-title {
        display: none !important;
    }

    .ct-header-mobile [data-id="logo"] img {
        max-height: 56px;
        width: auto;
    }

    /* Hide menu text labels on mobile header bar (hamburger icon is enough) */
    .ct-header-mobile [data-id="trigger"] .ct-label {
        display: none !important;
    }
    
    /* Footer Mobile: 2-column layout for nav+contact */
    .mg-footer {
        padding: 40px 15px 20px !important;
    }
    .mg-footer__inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px 16px !important;
    }
    /* Brand col spans full width */
    .mg-footer__col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    /* Nav (col 2) and Contact (col 3): left-aligned, side by side */
    .mg-footer__col:nth-child(2),
    .mg-footer__col:nth-child(3) {
        text-align: left;
    }
    /* Payment col spans full width */
    .mg-footer__col:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    .mg-footer__social {
        justify-content: center !important;
    }
    .mg-footer__contact li {
        justify-content: flex-start !important;
    }
    .mg-footer__payment {
        justify-content: center !important;
    }
    .mg-footer__secure {
        justify-content: center !important;
    }

    /* Floating Feel for Add to Cart on Mobile Product Page */
    .single-product .cart {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px !important;
        margin: 0 -15px -15px -15px !important;
        box-shadow: 0 -10px 25px rgba(0,0,0,0.08);
        z-index: 999;
        display: flex !important;
        gap: 10px !important;
    }
    
    .single-product .quantity {
        min-width: 100px !important;
        height: 44px !important;
    }
}

/* Category pills glassmorphism consolidated into main .mg-pill block above */
.mg-cat-pills {
    padding: 15px 0 !important;
}

/* --- SHOP PAGE TITLE & SORTING BAR --- */
.woocommerce-products-header {
    margin-bottom: 30px !important;
    padding: 40px 0 !important;
    background: #f8f6fb !important;
    text-align: center !important;
    border-radius: 0 0 30px 30px !important;
}

.woo-listing-top {
    background: #fff !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    margin-bottom: 25px !important;
}

.woocommerce-result-count {
    font-size: 14px !important;
    color: #888 !important;
}

.woocommerce-ordering select {
    border: none !important;
    font-weight: 600 !important;
    background: #f8f6fb !important;
    padding: 8px 15px !important;
}

/* ==========================================================================
   Live Search Dropdown
   ========================================================================== */
.mg-ls-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    margin-top: 6px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.mg-ls-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mg-ls-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mg-ls-item:last-child {
    border-bottom: none;
}

.mg-ls-item__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.mg-ls-item__link:hover {
    background: #faf8fc;
}

.mg-ls-item__img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f7;
}

.mg-ls-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mg-ls-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mg-ls-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-palette-color-4, #1a1a2e);
    line-height: 1.3;
}

.mg-ls-item__meta {
    font-size: 12px;
    color: #888;
}

.mg-ls-item__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-palette-color-1, #52047D);
}

.mg-ls-item__price del {
    opacity: 0.5;
    font-weight: 400;
}

.mg-ls-item__price ins {
    text-decoration: none;
}

/* Category pills in dropdown */
.mg-ls-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
    align-items: center;
}

.mg-ls-cats:empty {
    display: none;
}

.mg-ls-cats__heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.04em;
    margin-right: 4px;
}

.mg-ls-cats__pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5f3f8;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s;
}

.mg-ls-cats__pill:hover {
    background: var(--theme-palette-color-1, #52047D);
    color: #fff;
}

/* Empty state */
.mg-ls-empty {
    padding: 20px 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* "Ver todos" link */
.mg-ls-all {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-palette-color-1, #52047D);
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s;
}

.mg-ls-all:hover {
    background: #faf8fc;
}

/* Loading state on search input */
.mg-ls-loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23ccc' stroke-width='2' fill='none' stroke-dasharray='31.4' stroke-dashoffset='10'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='.6s' from='0 12 12' to='360 12 12' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
}

/* Blocksy search modal: position dropdown correctly */
#search-modal .mg-ls-dropdown {
    position: fixed;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000000;
}
/* Ensure Blocksy modal search form has position context */
#search-modal .ct-search-form {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .mg-ls-dropdown {
        border-radius: 0 0 12px 12px;
        margin-top: 0;
        max-height: 320px;
    }
    .mg-ls-item__img {
        width: 40px;
        height: 40px;
    }
    .mg-ls-item__title {
        font-size: 13px;
    }
}

/* ==========================================================================
   Header: White background override
   Blocksy inline CSS sets background-color:var(--theme-palette-color-8)
   (#18181b) on the middle row. Override to white with dark text.
   ========================================================================== */
[data-header*="type-1"] .ct-header [data-row*="middle"] {
    background-color: #52047D !important;
    --height: 68px !important;
    --theme-text-color: #ffffff;
    --theme-link-initial-color: #ffffff;
    --theme-icon-color: #ffffff;
    --theme-border-bottom: none !important;
    box-shadow: none;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* 1) Compact logo: hide site-title text, show only logo image */
[data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
    display: none !important;
}

[data-header*="type-1"] .ct-header [data-id="logo"] img {
    max-height: 128px;
    width: auto;
    transition: max-height 0.3s ease;
}

/* Menu links: white text on dark header */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
    --theme-link-initial-color: #ffffff !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current-menu-item > a {
    color: #ffffff !important;
}

/* Dropdown submenu: white background, dark text */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu {
    --dropdown-divider: 1px solid rgba(0, 0, 0, 0.06) !important;
    background-color: #ffffff;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
    --theme-link-initial-color: #333333 !important;
}

/* 2) Sticky/shrinking header */
[data-header*="type-1"] .ct-header[data-sticky*="yes"] [data-row*="middle"] {
    background-color: #52047D !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-header*="type-1"] .ct-header[data-sticky*="yes"] [data-id="logo"] img {
    max-height: 64px;
}

/* 4) Search bar: wider and more prominent in header */
[data-header*="type-1"] .ct-header [data-id="search"] {
    flex: 1;
    max-width: 420px;
    margin: 0 20px;
}

[data-header*="type-1"] .ct-header [data-id="search"] input[type="search"],
[data-header*="type-1"] .ct-header [data-id="search"] .ct-search-form input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    width: 100% !important;
    color: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-header*="type-1"] .ct-header [data-id="search"] input[type="search"]::placeholder,
[data-header*="type-1"] .ct-header [data-id="search"] .ct-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-header*="type-1"] .ct-header [data-id="search"] input[type="search"]:focus,
[data-header*="type-1"] .ct-header [data-id="search"] .ct-search-form input:focus {
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   Single Product Page: Fix gold/wrong font colors
   Ensure product text uses proper dark/purple colors, not gold
   ========================================================================== */

/* Product title: dark, not gold */
.single-product .entry-summary .entry-title {
    color: var(--theme-palette-color-4, #1a1a2e) !important;
}

/* Product price: dark like MeLi, not purple */
.single-product .entry-summary .price,
.single-product .entry-summary .price .woocommerce-Price-amount {
    color: #333 !important;
}

/* Price del (was) in grey */
.single-product .entry-summary .price del,
.single-product .entry-summary .price del .woocommerce-Price-amount {
    color: #999 !important;
    font-weight: 400 !important;
}

/* Price ins (current) in dark, no underline */
.single-product .entry-summary .price ins {
    text-decoration: none;
    color: #333 !important;
}

/* SKU, category, tag, brand: compact horizontal strip */
.single-product .entry-summary .product_meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 12px !important;
    color: #888 !important;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 16px;
}
.single-product .entry-summary .product_meta > span {
    display: inline-flex !important;
    gap: 4px;
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Hide the tags row entirely — too many tags clutters the layout */
.single-product .entry-summary .product_meta .tagged_as {
    display: none !important;
}
.single-product .entry-summary .product_meta a {
    color: var(--theme-palette-color-1, #52047D) !important;
    text-decoration: none !important;
    font-size: 13px !important;
}
.single-product .entry-summary .product_meta a:hover {
    text-decoration: underline !important;
}

/* Short description: normal dark text */
.single-product .entry-summary .woocommerce-product-details__short-description,
.single-product .entry-summary .woocommerce-product-details__short-description p {
    color: #444 !important;
    font-size: 15px;
    line-height: 1.7;
}

/* Tabs content: dark text */
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel li,
.woocommerce div.product .woocommerce-tabs .panel td,
.woocommerce div.product .woocommerce-tabs .panel th {
    color: #333 !important;
}

/* Tabs table headers */
.woocommerce div.product .woocommerce-tabs .panel table th {
    color: var(--theme-palette-color-4, #1a1a2e) !important;
    font-weight: 600;
    background: #faf8fc;
}

/* Related/upsell product titles: dark */
.related.products h2,
.up-sells h2,
.related .ct-module-title,
.up-sells .ct-module-title {
    color: var(--theme-palette-color-4, #1a1a2e) !important;
}

/* Star ratings: gold is OK for stars */
.single-product .star-rating span::before {
    color: #f0ad4e !important;
}

/* Quantity input: dark text */
.single-product .quantity input.qty {
    color: #333 !important;
}

/* Breadcrumbs on product page: grey with purple links */
.single-product .woocommerce-breadcrumb {
    color: #888 !important;
}
.single-product .woocommerce-breadcrumb a {
    color: var(--theme-palette-color-1, #52047D) !important;
}

/* Out-of-stock badge */
.single-product .out-of-stock {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Payment methods icons: neutral */
.single-product .ct-payment-methods {
    --theme-icon-color: #666 !important;
}

/* ==========================================================================
   Product Page Bottom Section — Reviews, Related, Recently Viewed
   ========================================================================== */

/* ── Reviews section cleanup ── */
.woocommerce #reviews #comments {
    max-width: 800px;
}

.woocommerce #reviews .woocommerce-Reviews-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin-bottom: 20px !important;
}

.woocommerce #review_form #respond .comment-form-rating {
    margin-bottom: 16px;
}

.woocommerce #reviews .commentlist .comment_container {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce #reviews .comment-text .description p {
    color: #444 !important;
    font-size: 14px;
    line-height: 1.6;
}

/* ── Related / Upsell / Recently Viewed section ── */
.related.products,
.up-sells.upsells,
section[class*="recently"] {
    margin-top: 40px !important;
    padding-top: 32px !important;
    border-top: 1px solid #eee;
}

.related.products > h2,
.up-sells.upsells > h2,
section[class*="recently"] > h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin-bottom: 24px !important;
}

/* Hide "Comprar Ahora" (Buy Now) in loop/related product cards — too cluttered */
.related .product .wpcbn-btn,
.up-sells .product .wpcbn-btn,
[data-products] .product .wpcbn-btn,
.archive .product .wpcbn-btn {
    display: none !important;
}

/* Related product cards: cleaner image aspect ratio */
.related .product-inner .ct-media-container img,
.up-sells .product-inner .ct-media-container img {
    aspect-ratio: 1;
    object-fit: contain;
    padding: 8px;
    background: #fff;
}

/* Related product card buttons: single clean button */
.related .product .button,
.up-sells .product .button {
    background: #52047D !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 8px !important;
}

.related .product .button:hover,
.up-sells .product .button:hover {
    background: #3d0360 !important;
}

/* Category text in cards: subtle */
.related .product .ct-woo-card-extra .ct-woo-categories,
.up-sells .product .ct-woo-card-extra .ct-woo-categories {
    font-size: 12px !important;
    color: #888 !important;
    margin-bottom: 4px !important;
}

/* Related products grid: consistent gap */
.related.products ul.products,
.up-sells.upsells ul.products {
    gap: 20px !important;
}

/* ── Tabs panel spacing ── */
.woocommerce div.product .woocommerce-tabs .panel {
    padding: 24px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Keep Gutenberg constrained blocks centered inside product tabs */
.woocommerce div.product .woocommerce-tabs .panel.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    width: min(100%, var(--wp--style--global--content-size, 1296px)) !important;
    max-width: min(100%, var(--wp--style--global--content-size, 1296px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.woocommerce div.product .woocommerce-tabs .panel.is-layout-constrained > .alignwide {
    max-width: min(100%, var(--wp--style--global--wide-size, 1400px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Ensure tabs container doesn't overflow */
.woocommerce div.product .woocommerce-tabs {
    overflow: hidden;
    max-width: 100%;
}

/* Section headings inside tab content */
.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h3,
.woocommerce div.product .woocommerce-tabs .panel h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 20px 0 12px !important;
    padding: 0;
    border: none;
}
.woocommerce div.product .woocommerce-tabs .panel h2:first-child,
.woocommerce div.product .woocommerce-tabs .panel h3:first-child,
.woocommerce div.product .woocommerce-tabs .panel h4:first-child {
    margin-top: 0 !important;
}

/* Paragraphs */
.woocommerce div.product .woocommerce-tabs .panel p {
    margin: 0 0 12px !important;
    line-height: 1.7 !important;
    font-size: 14px !important;
    color: #444 !important;
}

/* Bold labels inline — no forced min-width (was causing misalignment) */
.woocommerce div.product .woocommerce-tabs .panel p strong,
.woocommerce div.product .woocommerce-tabs .panel li strong {
    color: #1a1a2e;
    font-weight: 600;
}

/* Lists: keep default bullets, clean spacing */
.woocommerce div.product .woocommerce-tabs .panel ul {
    margin: 0 0 16px !important;
    padding-left: 20px !important;
    list-style: disc !important;
}
.woocommerce div.product .woocommerce-tabs .panel ol {
    margin: 0 0 16px !important;
    padding-left: 20px !important;
    list-style: decimal !important;
}
.woocommerce div.product .woocommerce-tabs .panel li {
    margin-bottom: 6px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 0;
    color: #444;
    border-bottom: none;
}

/* Emoji-prefixed lists: hide bullet when line starts with emoji */
.woocommerce div.product .woocommerce-tabs .panel ul li:has(> :first-child:is(img, svg)) {
    list-style: none !important;
}

/* Tables inside tabs (e.g. "Ficha técnica") */
.woocommerce div.product .woocommerce-tabs .panel table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.woocommerce div.product .woocommerce-tabs .panel table th,
.woocommerce div.product .woocommerce-tabs .panel table td {
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

/* Horizontal rules: subtle section divider */
.woocommerce div.product .woocommerce-tabs .panel hr {
    border: none !important;
    height: 1px !important;
    background: #eee !important;
    margin: 20px 0 !important;
}

/* ── Hide duplicate "X disponibles" (urgency badge is enough) ── */
.single-product .woocommerce-variation-availability .stock.in-stock {
    display: none !important;
}

/* ==========================================================================
   Contact Page (page-id-219) — Professional Redesign
   ========================================================================== */

/* Clean up the form section — remove garish purple gradient */
.page-id-219 .elementor-section:first-of-type .elementor-column:first-child .elementor-widget-wrap {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 40px 36px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
}

/* Remove background image/overlay on the section */
.page-id-219 .elementor-section:first-of-type > .elementor-background-overlay {
    opacity: 0.04 !important;
}
.page-id-219 .elementor-section:first-of-type {
    background: #f9f9fb !important;
    padding: 60px 0 !important;
}

/* "Contáctanos" heading — clean, no yellow pill */
.page-id-219 .elementor-widget-heading .elementor-heading-title {
    background: none !important;
    color: #1a1a2e !important;
    padding: 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    border-radius: 0 !important;
}

/* Subtitle */
.page-id-219 .elementor-widget-heading + .elementor-widget-heading .elementor-heading-title,
.page-id-219 h5.elementor-heading-title {
    color: #666 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* Form fields — clean, modern */
.page-id-219 .elementor-field-group input,
.page-id-219 .elementor-field-group textarea {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    background: #fafafa !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.page-id-219 .elementor-field-group input:focus,
.page-id-219 .elementor-field-group textarea:focus {
    border-color: #52047D !important;
    box-shadow: 0 0 0 3px rgba(82, 4, 125, 0.08) !important;
    background: #fff !important;
}

/* Submit button — purple, not gold */
.page-id-219 .elementor-button[type="submit"],
.page-id-219 .e-form__buttons__wrapper button {
    background: #52047D !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    transition: background 0.2s, transform 0.2s !important;
}
.page-id-219 .elementor-button[type="submit"]:hover,
.page-id-219 .e-form__buttons__wrapper button:hover {
    background: #3d0360 !important;
    transform: translateY(-1px) !important;
}

/* Contact info card */
.page-id-219 .elementor-section:first-of-type .elementor-column:last-child .elementor-widget-wrap {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 32px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
}

/* Contact info buttons */
.page-id-219 .elementor-button-wrapper .elementor-button {
    border-radius: 10px !important;
    font-size: 13px !important;
    padding: 10px 20px !important;
}

/* Map section */
.page-id-219 iframe {
    border-radius: 12px !important;
    border: 1px solid #f0f0f0 !important;
}

@media (max-width: 768px) {
    .page-id-219 .elementor-section:first-of-type .elementor-column .elementor-widget-wrap {
        padding: 28px 20px !important;
    }
    .page-id-219 .elementor-widget-heading .elementor-heading-title {
        font-size: 24px !important;
    }
}

/* Hide comment form on contact page (fallback) */
.page-id-219 #respond,
.page-id-219 .comment-respond,
.page-id-219 .comments-area {
    display: none !important;
}

/* Hero compact styles consolidated into main block above (line ~1308) */

/* ==========================================================================
   Search Dropdown — fix overlap with page content
   ========================================================================== */
.mg-hero-search {
    z-index: 100;
}
.mg-hero-search .mg-ls-dropdown {
    z-index: 9999;
    max-height: 380px;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Login / My Account Page — Professional Styling
   ========================================================================== */
.woocommerce-account .ct-container {
    max-width: 480px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Login form card */
.ct-login-form,
.ct-register-form {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* Form labels */
.ct-login-form label,
.ct-register-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* Form inputs */
.ct-login-form .input,
.ct-register-form .input,
.woocommerce-form-login .input,
.woocommerce-form-register .input {
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    background: #fafafa !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
}
.ct-login-form .input:focus,
.ct-register-form .input:focus,
.woocommerce-form-login .input:focus,
.woocommerce-form-register .input:focus {
    border-color: #52047D !important;
    box-shadow: 0 0 0 3px rgba(82, 4, 125, 0.08) !important;
    background: #fff !important;
    outline: none !important;
}

/* Login/Register submit button */
.ct-account-login-submit,
.ct-login-form .button,
.ct-register-form .button,
.woocommerce-form-login .button,
.woocommerce-form-register .button {
    width: 100% !important;
    background: #52047D !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.2s !important;
    margin-top: 8px !important;
}
.ct-account-login-submit:hover,
.ct-login-form .button:hover,
.ct-register-form .button:hover,
.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    background: #3d0360 !important;
    transform: translateY(-1px) !important;
}

/* Remember me row */
.login-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin: 12px 0;
}
.login-remember label {
    font-weight: 400 !important;
    font-size: 13px !important;
}

/* Forgot password link */
.ct-forgot-password {
    color: #52047D !important;
    font-size: 13px;
    text-decoration: none;
}
.ct-forgot-password:hover {
    text-decoration: underline;
}

/* Google login button */
.mg-google-login {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px !important;
    margin-top: 12px !important;
}

/* Register form spacing */
.ct-register-form p {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .woocommerce-account .ct-container {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .ct-login-form,
    .ct-register-form {
        padding: 28px 20px !important;
    }
}

/* ==========================================================================
   Header Refresh (staging) — clearer branding, tighter hierarchy, better sticky
   ========================================================================== */
[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-row="middle"] {
    --height: 68px !important;
    min-height: 68px !important;
    background: #490d78 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-row="middle"] .ct-container {
    width: min(1360px, 100%) !important;
    padding-left: clamp(18px, 2.2vw, 34px) !important;
    padding-right: clamp(18px, 2.2vw, 34px) !important;
    align-items: center;
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="logo"] .site-logo-container {
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="logo"] img.default-logo {
    width: auto !important;
    height: auto !important;
    max-height: 58px !important;
    filter: none !important;
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="menu"] > ul {
    gap: clamp(8px, 1.1vw, 18px);
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="menu"] > ul > li > a {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: clamp(13px, 0.82vw, 15px) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="menu"] > ul > li:first-child > a {
    color: #ffffff !important;
    font-weight: 700 !important;
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-column="end"] [data-items="primary"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="account"] .ct-account-item,
[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="cart"] .ct-cart-item {
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="account"] .ct-account-item:hover,
[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="cart"] .ct-cart-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="cart"] .ct-label {
    font-size: 17px;
    font-weight: 700;
}

[data-header*="type-1"] .ct-header > [data-device="desktop"] [data-id="cart"] .ct-dynamic-count-cart {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f5cd46;
    color: #2f0a49;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    box-shadow: 0 2px 8px rgba(245, 205, 70, 0.4);
}

[data-header*="type-1"] .ct-header[data-sticky*="yes"] > [data-device="desktop"] [data-row="middle"] {
    --height: 68px !important;
    min-height: 68px !important;
    background: rgba(73, 13, 120, 0.96) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 26px rgba(20, 6, 35, 0.22);
}

[data-header*="type-1"] .ct-header[data-sticky*="yes"] > [data-device="desktop"] [data-id="logo"] img.default-logo {
    max-height: 48px !important;
}

body.home .mg-trust-bar {
    background: #490d78 !important;
    padding: 1px 12px !important;
}

body.home .mg-hero-compact {
    padding-top: 14px !important;
    padding-bottom: 22px !important;
}

body.home .mg-hero-compact .mg-hero-title {
    font-size: clamp(30px, 2.2vw, 36px) !important;
    line-height: 1.14 !important;
}

body.home .mg-hero-compact .mg-hero-sub {
    font-size: clamp(15px, 1.02vw, 18px) !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
}

body.home .mg-hero-search {
    max-width: min(620px, 92vw) !important;
}

body.home .mg-hero-search input[type="search"] {
    font-size: 15px !important;
    padding: 11px 18px !important;
}

body.home .mg-hero-search button {
    padding: 0 18px !important;
}

body.home .mg-hero-search button:hover {
    padding-right: 20px !important;
}

.mg-header-search-strip {
    background: #490d78 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 12px 10px !important;
}

.mg-header-search-strip__inner {
    max-width: 1360px;
    margin: 0 auto;
}

.mg-header-search-form {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #fff;
    box-shadow: 0 6px 18px rgba(24, 8, 39, 0.22);
    position: relative;
}

.mg-header-search-form button {
    border-radius: 0 999px 999px 0;
}

.mg-header-search-form input[type="search"] {
    flex: 1 1 auto;
    height: 42px;
    border: 0 !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    color: #2f0a49 !important;
    background: #fff !important;
    box-shadow: none !important;
    border-radius: 999px 0 0 999px;
}

.mg-header-search-form input[type="search"]::placeholder {
    color: #8b8b97 !important;
}

.mg-header-search-form button {
    width: 44px;
    height: 42px;
    border: 0;
    border-left: 1px solid rgba(73, 13, 120, 0.2);
    background: #fff;
    color: #490d78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mg-header-search-form button:hover {
    background: #f6f0fb;
}

/* Header strip search: render live-search panel in-flow (no overlap over page content) */
.mg-header-search-form {
    flex-wrap: wrap;
}

.mg-header-search-form .mg-ls-dropdown {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-top: 8px;
    border-radius: 14px;
}

@media (max-width: 768px) {
    [data-header*="type-1"] .ct-header > [data-device="mobile"] [data-row="middle"] {
        min-height: 56px !important;
        --height: 56px !important;
        padding: 3px 0 !important;
        background: #490d78 !important;
    }

    [data-header*="type-1"] .ct-header > [data-device="mobile"] [data-id="logo"] img.default-logo {
        width: auto !important;
        height: auto !important;
        max-height: 34px !important;
    }

    [data-header*="type-1"] .ct-header > [data-device="mobile"] [data-id="account"] .ct-account-item,
    [data-header*="type-1"] .ct-header > [data-device="mobile"] [data-id="cart"] .ct-cart-item {
        padding: 5px 7px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
    }

    [data-header*="type-1"] .ct-header > [data-device="mobile"] [data-id="cart"] .ct-dynamic-count-cart {
        background: #f5cd46;
        color: #2f0a49;
        font-weight: 800;
    }

    [data-header*="type-1"] .ct-header[data-sticky*="yes"] > [data-device="mobile"] [data-row="middle"] {
        min-height: 56px !important;
        --height: 56px !important;
    }

    body.home .mg-hero-compact {
        padding-top: 8px !important;
        padding-bottom: 16px !important;
    }

    body.home .mg-hero-compact .mg-hero-title {
        font-size: 20px !important;
    }

    body.home .mg-hero-compact .mg-hero-sub {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    body.home .mg-hero-search {
        max-width: 100% !important;
        min-height: 46px !important;
        height: 46px !important;
    }

    body.home .mg-hero-search input[type="search"] {
        font-size: 14px !important;
        padding: 8px 14px !important;
    }

    body.home .mg-hero-search button {
        padding: 0 14px !important;
    }

    body.home .mg-hero-search button:hover {
        padding-right: 14px !important;
    }

    .mg-header-search-strip {
        padding: 6px 10px 8px !important;
    }

    .mg-header-search-form {
        max-width: 100%;
    }

    .mg-header-search-form input[type="search"] {
        height: 40px;
        font-size: 13px !important;
        padding: 0 12px !important;
    }

    .mg-header-search-form button {
        width: 40px;
        height: 40px;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li,
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        min-height: 38px !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 9px 16px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================================
   Checkout Page Styling
   ========================================================================== */

/* --- Checkout notice boxes (login, coupon, shipping) --- */
.woocommerce-checkout .woocommerce-info {
    --background-color: #f8f6fb !important;
    border: none !important;
    border-left: 3px solid var(--theme-palette-color-1) !important;
    background: #f8f6fb !important;
    border-radius: 8px !important;
    padding: 14px 18px 14px 48px !important;
    font-size: 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

/* --- Login / Coupon toggle links in notices --- */
.woocommerce-checkout .woocommerce-info .showlogin,
.woocommerce-checkout .woocommerce-info .showcoupon {
    background: var(--theme-palette-color-1) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}
.woocommerce-checkout .woocommerce-info .showlogin:hover,
.woocommerce-checkout .woocommerce-info .showcoupon:hover {
    background: #3d0360 !important;
}

/* --- Checkout form layout --- */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout h3#ship-to-different-address {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--theme-palette-color-4) !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #eee !important;
}

/* --- Checkout input fields --- */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background: #fff !important;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: var(--theme-palette-color-1) !important;
    box-shadow: 0 0 0 2px rgba(82, 4, 125, 0.1) !important;
    outline: none !important;
}

/* --- Override Blocksy CSS variables for checkout borders --- */
.woocommerce-checkout .ct-order-review {
    --order-review-border: 1px solid #e8e0f0 !important;
    --order-review-padding: 28px !important;
}
.ct-woocommerce-cart-form .cart_totals {
    --cart-totals-border: 1px solid #e8e0f0 !important;
    --cart-totals-padding: 24px !important;
}

/* --- Order review box --- */
.woocommerce-checkout .ct-order-review,
.woocommerce-checkout #order_review {
    border: 1px solid #e8e0f0 !important;
    border-radius: 12px !important;
    padding: 28px !important;
    background: #faf9fc !important;
}
.woocommerce-checkout #order_review_heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--theme-palette-color-4) !important;
    margin-bottom: 16px !important;
}

/* --- Order review table --- */
.woocommerce-checkout .shop_table {
    border: none !important;
    border-collapse: collapse !important;
}
.woocommerce-checkout .shop_table th,
.woocommerce-checkout .shop_table td {
    border: none !important;
    border-bottom: 1px solid #eee !important;
    padding: 12px 8px !important;
    font-size: 14px !important;
}
.woocommerce-checkout .shop_table tfoot th {
    font-weight: 600 !important;
}
.woocommerce-checkout .shop_table .order-total th,
.woocommerce-checkout .shop_table .order-total td {
    font-size: 16px !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    padding-top: 16px !important;
    color: var(--theme-palette-color-4) !important;
}

/* --- Payment methods section --- */
.woocommerce-checkout #payment {
    background: #faf9fc !important;
    border: 1px solid #e8e0f0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
}
.woocommerce-checkout #payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
}
.woocommerce-checkout #payment ul.payment_methods li {
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    margin-bottom: 8px !important;
    background: #fff !important;
    transition: border-color 0.2s !important;
}
.woocommerce-checkout #payment ul.payment_methods li:hover,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked + label {
    border-color: var(--theme-palette-color-1) !important;
}
.woocommerce-checkout #payment .payment_box {
    background: #f8f6fb !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #555 !important;
}
.woocommerce-checkout #payment .payment_box::before {
    display: none !important;
}

/* --- Place order button --- */
.woocommerce-checkout #place_order {
    background: var(--theme-palette-color-1) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    text-transform: none !important;
}
.woocommerce-checkout #place_order:hover {
    background: #3d0360 !important;
    transform: translateY(-1px) !important;
}

/* --- Shipping notice inside checkout --- */
.woocommerce-checkout .woocommerce-shipping-totals .shipping-notice,
.woocommerce-checkout .woocommerce-no-shipping-available-html {
    font-size: 13px !important;
    color: #666 !important;
    padding: 8px 12px !important;
    background: #fff8e1 !important;
    border-radius: 6px !important;
    border: none !important;
    border-left: 3px solid #f0ad4e !important;
}

/* --- Privacy policy text --- */
.woocommerce-checkout .woocommerce-privacy-policy-text p {
    font-size: 12px !important;
    color: #888 !important;
    line-height: 1.5 !important;
}

/* --- Checkout terms checkbox --- */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-top: 12px !important;
    font-size: 13px !important;
}

/* --- Cart page: totals box --- */
.woocommerce-cart .cart_totals {
    border: 1px solid #e8e0f0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    background: #faf9fc !important;
}
.woocommerce-cart .cart_totals h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    background: var(--theme-palette-color-1) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    width: 100% !important;
    transition: background 0.2s, transform 0.15s !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background: #3d0360 !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   Search Results Page — hide duplicate WC header & empty grey block
   ========================================================================== */

/* Empty WC products header creates a grey block — collapse it */
body.search .woocommerce-products-header {
    display: none !important;
}

/* ==========================================================================
   Shop Archive Refresh — Visual hierarchy, filters, cards, mobile UX
   ========================================================================== */

/* 1) Header compacto + remoción de placeholders vacíos */
body.post-type-archive-product .hero-section[data-type="type-2"],
body.tax-product_cat .hero-section[data-type="type-2"],
body.tax-product_tag .hero-section[data-type="type-2"] {
    --container-padding: clamp(20px, 4vw, 36px) 0 !important;
    background: linear-gradient(180deg, #f3eef9 0%, #f8f6fb 100%) !important;
    border-bottom: 1px solid rgba(82, 4, 125, 0.08) !important;
}

body.post-type-archive-product .hero-section .page-title,
body.tax-product_cat .hero-section .page-title,
body.tax-product_tag .hero-section .page-title {
    font-size: clamp(36px, 3vw, 48px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
}

body.post-type-archive-product .woocommerce-products-header:empty,
body.tax-product_cat .woocommerce-products-header:empty,
body.tax-product_tag .woocommerce-products-header:empty {
    display: none !important;
}

/* 2) Jerarquía limpia: breadcrumb + título + barra de resultados */
body.post-type-archive-product .ct-container[data-sidebar="left"] > section,
body.tax-product_cat .ct-container[data-sidebar="left"] > section,
body.tax-product_tag .ct-container[data-sidebar="left"] > section {
    max-width: 100%;
}

body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_tag .woocommerce-breadcrumb {
    margin: 4px 0 10px !important;
    font-size: 12px !important;
    color: #6f6680 !important;
}

body.post-type-archive-product .woo-listing-top,
body.tax-product_cat .woo-listing-top,
body.tax-product_tag .woo-listing-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    border: 1px solid #eee7f7 !important;
    box-shadow: 0 10px 24px rgba(32, 10, 52, 0.05) !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
}

body.post-type-archive-product .woo-listing-top .woocommerce-result-count,
body.tax-product_cat .woo-listing-top .woocommerce-result-count,
body.tax-product_tag .woo-listing-top .woocommerce-result-count {
    margin: 0 !important;
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    color: #5d4b76 !important;
}

body.post-type-archive-product .woo-listing-top .woocommerce-ordering,
body.tax-product_cat .woo-listing-top .woocommerce-ordering,
body.tax-product_tag .woo-listing-top .woocommerce-ordering {
    margin: 0 !important;
}

body.post-type-archive-product .woo-listing-top .woocommerce-ordering select,
body.tax-product_cat .woo-listing-top .woocommerce-ordering select,
body.tax-product_tag .woo-listing-top .woocommerce-ordering select {
    border: 1px solid #e6def1 !important;
    border-radius: 8px !important;
    background: #f7f3fc !important;
    color: #39224f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    min-width: 236px !important;
}

/* 3) Chips de filtros activos */
.mg-shop-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.mg-shop-active-filters[hidden] {
    display: none;
}

.mg-shop-active-filters__label {
    font-size: 12px;
    font-weight: 700;
    color: #4f3b66;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mg-active-filter-chip,
.mg-active-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dfd2ef;
    border-radius: 999px;
    background: #fff;
    color: #4f3b66;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
}

.mg-active-filter-chip:hover,
.mg-active-filter-clear:hover {
    color: #2f1846;
    border-color: #c6b1e0;
    background: #fbf9fe;
}

.mg-active-filter-clear {
    margin-left: 2px;
    background: #f2ecfa;
    border-color: #d9caec;
}

/* 4) Sidebar filtros: mejor densidad + sticky + acordeones */
body.post-type-archive-product #sidebar .ct-sidebar,
body.tax-product_cat #sidebar .ct-sidebar,
body.tax-product_tag #sidebar .ct-sidebar {
    position: sticky;
    top: 112px;
    border: 1px solid #efe8f8;
    box-shadow: 0 12px 24px rgba(33, 13, 53, 0.04);
    border-radius: 14px !important;
    padding: 14px 14px 8px;
}

body.post-type-archive-product #sidebar .widget-title,
body.tax-product_cat #sidebar .widget-title,
body.tax-product_tag #sidebar .widget-title {
    margin-bottom: 12px !important;
    font-size: 16px !important;
}

.yith-wcan-filters .yith-wcan-filter {
    border-bottom: 1px solid #f0eaf8;
    padding: 4px 0 10px;
}

.yith-wcan-filters .yith-wcan-filter:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.yith-wcan-filters .filter-content {
    padding: 2px 2px 0;
}

.yith-wcan-filters .filter-item {
    line-height: 1.45 !important;
}

.yith-wcan-filters .filter-item .term-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #4f4f5b !important;
}

.yith-wcan-filters .filter-item .item-count {
    color: #9f95af !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.mg-filter-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    color: #2f2a38;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

.mg-filter-trigger__icon {
    width: 9px;
    height: 9px;
    border-right: 2px solid #81669f;
    border-bottom: 2px solid #81669f;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 2px;
    flex-shrink: 0;
}

.yith-wcan-filter.is-collapsed .mg-filter-trigger__icon {
    transform: rotate(-45deg) translate(-1px, 1px);
}

.yith-wcan-filter.is-collapsed .filter-content {
    display: none;
}

.mg-filter-search-wrap {
    margin: 0 0 8px;
}

.mg-filter-search {
    width: 100%;
    border: 1px solid #e2d7f1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    background: #fff;
    color: #3f3750;
}

.mg-filter-search:focus {
    outline: none;
    border-color: #9f7dc9;
    box-shadow: 0 0 0 3px rgba(82, 4, 125, 0.12);
}

/* 5) Tarjetas de producto consistentes */
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 {
    border: 1px solid #ece6f5 !important;
    border-radius: 14px !important;
    padding: 14px 14px 16px !important;
    background: #fff !important;
    box-shadow: 0 7px 20px rgba(26, 12, 38, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    gap: 0 !important;
}

body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {
    transform: translateY(-4px) !important;
    border-color: #dcc9ef !important;
    box-shadow: 0 16px 28px rgba(35, 10, 58, 0.1) !important;
}

body.post-type-archive-product ul.products li.product figure,
body.tax-product_cat ul.products li.product figure,
body.tax-product_tag ul.products li.product figure {
    min-height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px !important;
}

body.post-type-archive-product ul.products li.product .ct-media-container,
body.tax-product_cat ul.products li.product .ct-media-container,
body.tax-product_tag ul.products li.product .ct-media-container {
    width: 100%;
    min-height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbfbfd;
    border-radius: 10px;
    overflow: hidden;
}

body.post-type-archive-product ul.products li.product .ct-media-container img,
body.tax-product_cat ul.products li.product .ct-media-container img,
body.tax-product_tag ul.products li.product .ct-media-container img {
    width: 100% !important;
    max-height: 172px;
    object-fit: contain !important;
}

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,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
    margin: 0 0 10px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #201a2a !important;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
    margin: 0 0 8px !important;
    min-height: 48px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.15;
}

body.post-type-archive-product ul.products li.product .price .amount,
body.tax-product_cat ul.products li.product .price .amount,
body.tax-product_tag ul.products li.product .price .amount {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #2b1842 !important;
}

body.post-type-archive-product ul.products li.product .price del .amount,
body.tax-product_cat ul.products li.product .price del .amount,
body.tax-product_tag ul.products li.product .price del .amount {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #8b8498 !important;
}

body.post-type-archive-product ul.products li.product .entry-meta,
body.tax-product_cat ul.products li.product .entry-meta,
body.tax-product_tag ul.products li.product .entry-meta {
    margin: 0 0 10px !important;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.post-type-archive-product ul.products li.product .entry-meta a,
body.tax-product_cat ul.products li.product .entry-meta a,
body.tax-product_tag ul.products li.product .entry-meta a {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #786585 !important;
    line-height: 1.35 !important;
}

body.post-type-archive-product ul.products li.product .ct-woo-card-actions,
body.tax-product_cat ul.products li.product .ct-woo-card-actions,
body.tax-product_tag ul.products li.product .ct-woo-card-actions {
    margin-top: auto !important;
}

/* 6) Estados de botón más claros */
body.post-type-archive-product ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button {
    min-height: 44px !important;
    width: 100% !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 10px 12px !important;
}

body.post-type-archive-product ul.products li.product .button.product_type_simple,
body.tax-product_cat ul.products li.product .button.product_type_simple,
body.tax-product_tag ul.products li.product .button.product_type_simple {
    background: #52047D !important;
    color: #fff !important;
}

body.post-type-archive-product ul.products li.product .button.product_type_variable,
body.tax-product_cat ul.products li.product .button.product_type_variable,
body.tax-product_tag ul.products li.product .button.product_type_variable {
    background: #f4eefb !important;
    color: #3b2452 !important;
    border: 1px solid #d8cae8 !important;
}

body.post-type-archive-product ul.products li.product.outofstock .button,
body.tax-product_cat ul.products li.product.outofstock .button,
body.tax-product_tag ul.products li.product.outofstock .button {
    background: #bbb8c2 !important;
    color: #fff !important;
    border: 0 !important;
    pointer-events: none;
}

/* 7) Badge de oferta uniforme + descuento */
[data-products] .onsale {
    min-height: 26px;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 11px !important;
}

[data-products] .onsale .mg-sale-percent {
    font-size: 10px;
    font-weight: 800;
    opacity: 0.95;
}

/* 8) Paginación más visible */
body.post-type-archive-product .ct-pagination,
body.tax-product_cat .ct-pagination,
body.tax-product_tag .ct-pagination {
    margin-top: 28px !important;
    margin-bottom: 12px !important;
    padding: 10px 12px !important;
    border: 1px solid #e5dbf2 !important;
    border-radius: 12px !important;
    background: #fff !important;
}

body.post-type-archive-product .ct-pagination .page-numbers,
body.tax-product_cat .ct-pagination .page-numbers,
body.tax-product_tag .ct-pagination .page-numbers {
    min-width: 38px;
    min-height: 38px;
    border-radius: 8px !important;
    border: 1px solid transparent;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #4d3b67 !important;
}

body.post-type-archive-product .ct-pagination .page-numbers:hover,
body.tax-product_cat .ct-pagination .page-numbers:hover,
body.tax-product_tag .ct-pagination .page-numbers:hover {
    border-color: #d7cae8;
    background: #f8f4fd !important;
}

body.post-type-archive-product .ct-pagination .page-numbers.current,
body.tax-product_cat .ct-pagination .page-numbers.current,
body.tax-product_tag .ct-pagination .page-numbers.current {
    background: #52047D !important;
    color: #fff !important;
    border-color: #52047D !important;
}

/* 9) CTA final con más aire */
.mg-shop-contact-native {
    margin-top: 40px !important;
    margin-bottom: 28px !important;
}

/* 10) Móvil: barra sticky Filtros / Ordenar + drawer */
.mg-shop-mobile-actions,
.mg-shop-drawer {
    display: none;
}

@media (max-width: 999px) {
    body.post-type-archive-product .woo-listing-top,
    body.tax-product_cat .woo-listing-top,
    body.tax-product_tag .woo-listing-top {
        flex-wrap: wrap !important;
        padding: 12px !important;
    }

    body.post-type-archive-product .woo-listing-top .woocommerce-ordering,
    body.tax-product_cat .woo-listing-top .woocommerce-ordering,
    body.tax-product_tag .woo-listing-top .woocommerce-ordering {
        width: 100%;
    }

    body.post-type-archive-product .woo-listing-top .woocommerce-ordering select,
    body.tax-product_cat .woo-listing-top .woocommerce-ordering select,
    body.tax-product_tag .woo-listing-top .woocommerce-ordering select {
        width: 100%;
        min-width: 0 !important;
    }

    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 {
        padding: 10px 10px 12px !important;
    }

    body.post-type-archive-product ul.products li.product figure,
    body.tax-product_cat ul.products li.product figure,
    body.tax-product_tag ul.products li.product figure,
    body.post-type-archive-product ul.products li.product .ct-media-container,
    body.tax-product_cat ul.products li.product .ct-media-container,
    body.tax-product_tag ul.products li.product .ct-media-container {
        min-height: 130px;
    }

    body.post-type-archive-product ul.products li.product .ct-media-container img,
    body.tax-product_cat ul.products li.product .ct-media-container img,
    body.tax-product_tag ul.products li.product .ct-media-container img {
        max-height: 126px;
    }

    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,
    body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
        font-size: 15px !important;
        min-height: 2.6em;
    }

    body.post-type-archive-product ul.products li.product .price .amount,
    body.tax-product_cat ul.products li.product .price .amount,
    body.tax-product_tag ul.products li.product .price .amount {
        font-size: 18px !important;
    }

    body.post-type-archive-product .ct-container[data-sidebar="left"],
    body.tax-product_cat .ct-container[data-sidebar="left"],
    body.tax-product_tag .ct-container[data-sidebar="left"] {
        padding-bottom: 84px;
    }

    .mg-shop-mobile-actions {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 9999;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border: 1px solid #e6dff1;
        border-radius: 14px;
        box-shadow: 0 12px 24px rgba(34, 10, 55, 0.2);
        padding: 8px;
    }

    .mg-shop-mobile-actions__btn {
        min-height: 42px;
        border: 0;
        border-radius: 10px;
        background: #52047D;
        color: #fff;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .mg-shop-mobile-actions__btn:last-child {
        background: #f2ecfa;
        color: #41295b;
    }

    .mg-shop-drawer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        pointer-events: none;
    }

    .mg-shop-drawer__overlay {
        position: absolute;
        inset: 0;
        background: rgba(17, 8, 28, 0.45);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .mg-shop-drawer__panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 78vh;
        background: #fff;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
        transition: transform 0.24s ease;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mg-shop-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 14px 12px;
        border-bottom: 1px solid #efe8f8;
    }

    .mg-shop-drawer__title {
        margin: 0;
        font-size: 17px;
        font-weight: 800;
        color: #2d1c44;
    }

    .mg-shop-drawer__close {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: 0;
        background: #f4eefb;
        color: #2d1c44;
        font-size: 22px;
        line-height: 1;
    }

    .mg-shop-drawer__body {
        overflow-y: auto;
        padding: 8px 14px 14px;
    }

    .mg-shop-drawer.is-open {
        pointer-events: auto;
    }

    .mg-shop-drawer.is-open .mg-shop-drawer__overlay {
        opacity: 1;
    }

    .mg-shop-drawer.is-open .mg-shop-drawer__panel {
        transform: translateY(0);
    }

    .mg-shop-drawer-open {
        overflow: hidden;
    }

    .mg-mobile-clone-filters .yith-wcan-filter {
        padding: 2px 0 10px;
    }

    .mg-sort-options {
        display: grid;
        gap: 8px;
    }

    .mg-sort-option {
        border: 1px solid #e4dbf2;
        border-radius: 10px;
        background: #fff;
        color: #432c5f;
        font-size: 14px;
        font-weight: 700;
        text-align: left;
        padding: 11px 12px;
    }

    .mg-sort-option.is-selected {
        border-color: #52047D;
        background: #f3ebfe;
        color: #2b1941;
    }

    .mg-shop-drawer-empty {
        margin: 0;
        color: #6d6080;
        font-size: 14px;
    }
}
