/* ============================================================
   Enow Unico – Header & Global Styles v6

   Desktop  (≥1024px): Logo|Search|Location|Account|Cart  →  ☰ Menú|Links  →  Promo
   Tablet   (768–1023): ☰|Logo|Search|Account|Cart  →  Promo
   Mobile   (<768px):   ☰|Logo|Account|Cart  →  Search(full)  →  Promo

   Labels:
   .enow-action-label          → desktop only (ENVÍO, MY CART text)
   .enow-action-label-persist  → all breakpoints (customer name, cart total)
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ── */
:root {
    --primary: #ffc91d;
    --enow-header-bg: #2c2d43;
    --enow-header-text: #ffffff;
    --enow-header-height: 64px;
    --enow-navbar-bg: #1a1a1a;
    --enow-navbar-text: #ffffff;
    --enow-navbar-height: 44px;
    --enow-promo-bg: #111111;
    --enow-promo-text: #ffffff;
    --enow-promo-height: 36px;
    --enow-icon-size: 22px;
    --enow-accent: #209ee7;
    --enow-red: #fa3b4d;
    --enow-max-width: 1680px;
    --enow-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --enow-font: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── 2. GLOBAL ── */
body { font-family: var(--enow-font); }
*, *::before, *::after { box-sizing: border-box; }

.marker {
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(40%, #ffe066), color-stop(5%, rgba(0, 0, 0, 0)));
    background-image: linear-gradient(0deg, #ffe066 30%, rgba(0, 0, 0, 0) 0);
}

.breadcrumbs {
    margin-top: 10px;
}

/* Global page width — match header */
.page-wrapper .page-main,
.page-wrapper .breadcrumbs,
.page-wrapper .page-title-wrapper,
.footer.content,
.page-wrapper .columns {
    max-width: var(--enow-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.page-title-wrapper.product{
    padding-left: 0px!important;
}
/* ============================================================
   3. KILL BLANK THEME DEFAULTS
   ============================================================ */
.panel.wrapper { display: none !important; }
.nav-toggle { display: none !important; }
.nav-sections { display: none !important; }
.nav-sections-item-title { display: none !important; }

html.nav-open .page-wrapper,
html.nav-before-open .page-wrapper {
    left: auto !important;
    transform: none !important;
}

/* Force search ALWAYS visible */
.block-search {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.block-search .form.minisearch {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.block-search .field.search {
    display: block !important;
    visibility: visible !important;
}

.block-search input#search,
.block-search input[id^="minisearch-input"] {
    display: block !important;
    visibility: visible !important;
    position: static !important;
}

.block-search .label {
    display: none !important;
}

.block-search .nested {
    display: none !important;
}

/* ============================================================
   4. PAGE HEADER
   ============================================================ */
.page-header {
    background-color: var(--enow-header-bg);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
}

/* Ensure wrapper doesn't constrain */
.page-header .header-wrapper {
    width: 100%;
}

/* ============================================================
   5. HEADER ROW (flexbox)
   Higher specificity: .page-header .header.content beats Blank's .header.content
   ============================================================ */
.page-header .header.content {
    display: flex !important;
    align-items: center;
    gap: 16px;
    max-width: var(--enow-max-width) !important;
    margin: 0 auto;
    padding: 12px 100px 12px 48px !important;
    min-height: var(--enow-header-height);
    position: relative;
    box-sizing: border-box;
    z-index: 200;
}

/* ============================================================
   6. LOGO
   ============================================================ */
.header.content .logo {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    flex-shrink: 0;
    order: 1;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    float: none !important;
    position: static !important;
    z-index: 1;
}

.header.content .logo a {
    display: flex !important;
    align-items: center;
    color: var(--enow-header-text);
    text-decoration: none;
}

.header.content .logo img {
    max-height: 40px;
    width: auto;
    display: block !important;
    visibility: visible !important;
}

/* ============================================================
   7. MOBILE HAMBURGER
   ============================================================ */
.enow-hamburger-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--enow-header-text);
    flex-shrink: 0;
    order: 0;
    border-radius: 8px;
    transition: background-color var(--enow-transition);
}

.enow-hamburger-mobile:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.enow-hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 22px;
}

.enow-hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.enow-hamburger-mobile.is-active .enow-hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.enow-hamburger-mobile.is-active .enow-hamburger-icon span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
.enow-hamburger-mobile.is-active .enow-hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   8. SEARCH
   ============================================================ */
.header.content .block-search {
    flex: 1;
    min-width: 0;
    max-width: 600px;
    order: 2;
    margin: 0 auto !important;  /* centers search in available space */
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    overflow: visible !important;
}

.header.content .block-search .form.minisearch {
    position: relative !important;
    display: block !important;
    margin: 0;
    padding: 0;
    overflow: visible !important;
}

.header.content .block-search .field.search {
    margin: 0;
    padding: 0;
    float: none;
    overflow: visible !important;
}

.header.content .block-search .control {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    position: relative;
    overflow: visible !important;
}

.header.content .block-search input#search,
.header.content .block-search input[id^="minisearch-input"] {
    width: 100%;
    height: 40px;
    padding: 0 44px 0 16px !important;
    border: 2px solid #000 !important;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    font-size: 14px;
    font-family: var(--enow-font);
    transition: border-color var(--enow-transition);
    margin: 0;
}

.header.content .block-search input#search::placeholder,
.header.content .block-search input[id^="minisearch-input"]::placeholder { color: #999; }
.header.content .block-search input#search:focus,
.header.content .block-search input[id^="minisearch-input"]:focus {
    outline: none;
    border-color: var(--enow-accent) !important;
}

/* Search button: absolute inside form */
.header.content .block-search .form.minisearch .actions {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5;
    margin: 0 !important;
    padding: 0 !important;
}

.header.content .block-search .action.search {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    opacity: 1 !important;
}

.header.content .block-search .action.search > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    font-size: 0 !important;
}

.header.content .block-search .action.search::before {
    -webkit-font-smoothing: antialiased;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #666 !important;
    content: '\e615' !important;
    font-family: 'icons-blank-theme' !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    speak: none;
}

.header.content .block-search .action.search:hover::before {
    color: #333 !important;
}

.header.content .block-search .search-autocomplete {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

/* Autocomplete list items */
.header.content .block-search .search-autocomplete ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header.content .block-search .search-autocomplete ul li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--enow-font);
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.header.content .block-search .search-autocomplete ul li:last-child {
    border-bottom: none;
}

.header.content .block-search .search-autocomplete ul li:hover,
.header.content .block-search .search-autocomplete ul li.selected {
    background-color: #f5f5f5;
}

.header.content .block-search .search-autocomplete ul li .amount {
    color: #999;
    font-size: 12px;
    float: right;
}
/* ═══════════════════════════════════════════
   Mageplaza Social Login integration
   Hidden links used as popup triggers.
   Visually hidden but accessible to Mageplaza JS.
   ═══════════════════════════════════════════ */
.enow-mp-social-links {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================================
   9. HEADER ACTION ICONS
   ============================================================ */
.enow-header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 8px;
    color: var(--enow-header-text);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color var(--enow-transition);
    white-space: nowrap;
}

.enow-header-action:visited { color: var(--enow-header-text); }
.enow-header-action:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--enow-header-text);
    text-decoration: none;
}

.enow-header-action svg {
    width: var(--enow-icon-size);
    height: var(--enow-icon-size);
    flex-shrink: 0;
}

/* ── Label system ──
   .enow-action-label          = desktop only (hidden on tablet/mobile)
   .enow-action-label-persist  = always visible (customer name, cart total) */
.enow-action-label,
.enow-action-label-persist {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
    color: var(--enow-header-text);
}

.enow-location-btn {
    order: 3;
    flex-shrink: 0;
    margin-left: auto;  /* pushes location + account + cart to the right edge */
}

/* ============================================================
   9b. ACCOUNT ICON + DROPDOWN
   ============================================================ */
.enow-account-icon {
    order: 4;
    flex-shrink: 0;
    position: relative;  /* anchor for dropdown */
}

/* Dropdown: hidden by default */
.enow-account-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    z-index: 300;
    padding: 6px 0;
    margin-top: 4px;
}

/* Open state */
.enow-account-dropdown.is-open {
    display: block;
}

/* Dropdown items */
.enow-account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.enow-account-dropdown-item:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.enow-account-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #666;
}

/* Logout item: subtle red */
.enow-account-dropdown-item.enow-account-logout:hover {
    color: #d32f2f;
}
.enow-account-dropdown-item.enow-account-logout:hover svg {
    color: #d32f2f;
}

/* ============================================================
   10. CART WRAPPER + TOTAL
   ============================================================ */
.header.content .enow-cart-wrapper {
    order: 5;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header.content .enow-cart-wrapper .minicart-wrapper {
    order: 0;
    margin: 0 !important;
    float: none !important;
}

/* Fallback: minicart not yet inside wrapper */
.header.content > .minicart-wrapper {
    order: 5;
    flex-shrink: 0;
    margin: 0 !important;
    float: none !important;
}

.header.content .minicart-wrapper .action.showcart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    color: var(--enow-header-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color var(--enow-transition);
}

.header.content .minicart-wrapper .action.showcart:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header.content .minicart-wrapper .action.showcart::before {
    color: var(--enow-header-text);
    font-size: var(--enow-icon-size);
    margin: 0;
    line-height: 1;
}

.header.content .minicart-wrapper .counter.qty {
    position: absolute; top: -2px; right: -2px;
    min-width: 18px; height: 18px; padding: 0 4px;
    background-color: var(--enow-red); color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}

.header.content .minicart-wrapper .counter.qty.empty { display: none; }

/* "MY CART" text label — uses desktop-only class */
.header.content .minicart-wrapper .text {
    font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
    text-transform: uppercase; color: var(--enow-header-text);
    clip: auto; width: auto; height: auto; position: static; overflow: visible;
}

.minicart-wrapper .block-minicart {
    right: 0; width: 360px; max-width: 90vw;
}

/* Cart subtotal */
.enow-cart-total {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--enow-header-text);
    white-space: nowrap;
    line-height: 1;
    margin-top: -2px;
}

.enow-cart-total-empty {
    opacity: 0.7;
}

/* ============================================================
   11. ENOW NAVBAR (aligned with header via matching padding)
   ============================================================ */
.page-header .enow-navbar {
    background-color: var(--enow-navbar-bg);
    width: 100%;
}

.page-header .enow-navbar-inner {
    max-width: var(--enow-max-width);
    margin: 0 auto;
    min-height: var(--enow-navbar-height);
    /* Same horizontal padding as .header.content → auto-aligns at ALL widths */
    padding-left: 48px;
    padding-right: 24px;
}

.page-header .enow-hamburger-btn {
    color: var(--enow-navbar-text); font-weight: 700;
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}

.page-header .enow-navbar-link {
    color: var(--enow-navbar-text); font-size: 13px; font-weight: 600;
}

/* ============================================================
   12. PROMO BAR
   ============================================================ */
.enow-promo-bar {
    background-color: var(--enow-promo-bg);
    color: var(--enow-promo-text);
    min-height: var(--enow-promo-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.enow-promo-bar .block { width: 100%; }
.enow-promo-bar:empty,
.enow-promo-bar .block:empty { display: none; }

.enow-promo-bar ul,
.enow-promo-bar .promo-links,
.enow-promo-bar p {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; list-style: none; margin: 0; padding: 8px 16px;
    max-width: var(--enow-max-width); flex-wrap: wrap;
}

.enow-promo-bar li { list-style: none; }

.enow-promo-bar a {
    color: var(--enow-promo-text); text-decoration: underline;
    font-size: 13px; font-weight: 600;
    transition: opacity var(--enow-transition); white-space: nowrap;
}

.enow-promo-bar a:hover {
    opacity: 0.8; color: var(--enow-promo-text);
}

/* ============================================================
   13. DESKTOP (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {
    .header.content {
        gap: 20px;
        padding: 12px 24px !important;
    }

    .enow-hamburger-mobile { display: none !important; }
    .enow-location-btn { display: block; }

    /* Both label types visible */
    .enow-action-label { display: block; }
    .enow-action-label-persist { display: block; }

    .page-header .enow-navbar { display: block; }

    .header.content .logo img { max-height: 40px; }

    /* Account dropdown position */
    .enow-account-dropdown {
        right: 0;
        left: auto;
    }
}

/* ============================================================
   14. TABLET (768–1023px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .header.content {
        gap: 12px;
        padding: 10px 16px !important;
        min-height: 56px;
    }

    .enow-hamburger-mobile { display: flex !important; order: 0; }
    .header.content .logo { order: 1; }
    .header.content .logo img { max-height: 32px; }

    .header.content .block-search {
        order: 2; flex: 1; max-width: none; margin: 0 !important;
    }
    .header.content .block-search input#search,
    .header.content .block-search input[id^="minisearch-input"] {
        height: 36px; font-size: 13px;
    }
    .header.content .block-search .form.minisearch .actions {
        height: 36px !important;
    }
    .header.content .block-search .action.search {
        width: 36px !important; height: 36px !important;
    }

    .enow-location-btn { display: none !important; }
    .enow-account-icon { margin-left: auto; } /* takes over right-push role */

    /* Desktop-only labels: HIDDEN */
    .enow-action-label { display: none; }
    /* Persistent labels (name, total): VISIBLE */
    .enow-action-label-persist { display: block; }

    /* MY CART text: hidden (it's not using our label classes) */
    .header.content .minicart-wrapper .text {
        clip: rect(0,0,0,0); width: 1px; height: 1px;
        position: absolute; overflow: hidden;
    }

    /* Cart wrapper */
    .header.content > .minicart-wrapper { order: 5; }
    .header.content .enow-cart-wrapper { order: 5; }

    .page-header .enow-navbar { display: none !important; }

    /* Account dropdown */
    .enow-account-dropdown {
        right: -8px;
    }
}

/* ============================================================
   15. MOBILE (<768px)
   ============================================================ */
@media (max-width: 767px) {
    .header.content {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px !important;
        min-height: auto;
    }
    .page-header{
        .header.content{
            padding: 12px 24px 12px 24px !important;
            gap: 0px;
        }
    }

    .enow-hamburger-mobile {
        display: flex !important; order: 0; width: 40px; height: 40px;
    }

    .header.content .logo { order: 1; flex: 1; }
    .header.content .logo img { max-height: 28px; }

    .enow-location-btn { display: none !important; }
    .enow-account-icon { order: 3; margin-left: auto; } /* right-push */

    /* Desktop-only labels: HIDDEN */
    .enow-action-label { display: none; }
    /* Persistent labels (name, total): VISIBLE */
    .enow-action-label-persist { display: block; }

    /* MY CART text: hidden */
    .header.content .minicart-wrapper .text {
        clip: rect(0,0,0,0); width: 1px; height: 1px;
        position: absolute; overflow: hidden;
    }

    /* Cart wrapper */
    .header.content > .minicart-wrapper { order: 4; }
    .header.content .enow-cart-wrapper { order: 4; }

    /* Search: full width new row */
    .header.content .block-search {
        order: 10;
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 15px 0 0 0 !important;
    }

    .header.content .block-search .control {
        border: none !important;
        margin: 0 -15px -1px !important;
        padding: 0 15px !important;
        clear: none !important;
    }

    .header.content .block-search input#search,
    .header.content .block-search input[id^="minisearch-input"] {
        height: 40px; font-size: 14px; border-radius: 8px;
    }

    .header.content .block-search .form.minisearch .actions {
        height: 40px !important;
        right: 15px !important;
    }
    .header.content .block-search .action.search {
        width: 40px !important; height: 40px !important;
    }

    .page-header .enow-navbar { display: none !important; }

    .enow-promo-bar ul,
    .enow-promo-bar .promo-links,
    .enow-promo-bar p {
        gap: 16px; padding: 6px 12px;
    }
    .enow-promo-bar a { font-size: 12px; }

    .minicart-wrapper .block-minicart { width: 100vw; right: -12px; }

    /* Account dropdown: full width on mobile */
    .enow-account-dropdown {
        position: fixed;
        top: auto;
        right: 8px;
        left: auto;
        min-width: 200px;
    }

    /* Smaller persistent label on mobile */
    .enow-action-label-persist {
        font-size: 9px;
    }
    .page-main {
        width: 100%;
    }
}

/* ============================================================
   16. UTILITIES
   ============================================================ */
body.enow-menu-noscroll {
    overflow: hidden !important;
    position: fixed; width: 100%; height: 100%;
}

.enow-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

@media print {
    .page-header { position: static; box-shadow: none; }
    .enow-hamburger-mobile, .enow-navbar, .enow-promo-bar,
    .enow-location-btn, .minicart-wrapper { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ─── Product Grid: 4 columns on desktop ─── */
body.page-products .grid .item.product.product-item {
    border: solid 1px #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px;
}

body.page-products .grid .item.product.product-item  .product-item-name {
    min-height: 60px;
}

@media screen and (min-width: 1024px) {


    body.page-products .products-grid .product-items {
        margin: 0;
    }
    body.page-products .products-grid .product-item {
        margin-left: 2%;
        padding: 0;
        width: calc((100% - 6%) / 4);
    }
    body.page-products .products-grid .product-item:nth-child(3n+1) {
        margin-left: 2%;
    }
    body.page-products .products-grid .product-item:nth-child(4n+1) {
        margin-left: 0;
    }
}

/** CSS ElasticSuite **/
/* ═══════════════════════════════════════════════════
   ElectroNow – Layered Navigation / ElasticSuite Filters
   ═══════════════════════════════════════════════════ */

/* ─── Filter Block Container ─────────────────────── */
.block.filter {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* ─── Filter Title ("Shop By" / "Filtrar por") ───── */
.block.filter .block-title {
    background: #1a1a1a;
    padding: 14px 18px;
    margin: 0;
    border-bottom: 3px solid #f8d000;
}

.block.filter .block-title strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ─── Filter Subtitle ────────────────────────────── */
.block.filter .block-subtitle {
    display: none; /* ocultar "Shopping Options" redundante */
}

/* ─── Filter Options (Accordion Items) ───────────── */
.filter-options-item {
    border-bottom: 1px solid #f0f0f0;
}

.filter-options-item:last-child {
    border-bottom: none;
}

/* ─── Accordion Headers ──────────────────────────── */
.filter-options-title {
    padding: 13px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
    background: #fafafa;
    user-select: none;
}

.filter-options-title:hover {
    background: #f5f5f5;
    color: #000;
}

/* Flecha indicadora */
.filter-options-title::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease, border-color 0.2s ease;
}

.filter-options-item.active > .filter-options-title::after {
    transform: translateY(-30%) rotate(-135deg);
    border-color: #f8d000;
}

.filter-options-item.active > .filter-options-title {
    color: #000;
    background: #fff;
    border-left: 3px solid #f8d000;
    padding-left: 15px;
}

/* ─── Filter Content Area ────────────────────────── */
.filter-options-content {
    padding: 8px 18px 16px;
}

/* ─── Filter Items List ──────────────────────────── */
.filter-options-content ol.items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-options-content ol.items li.item {
    margin: 0;
    padding: 0;
}

/* ─── Filter Links (Category filters) ────────────── */
.filter-options-content ol.items li.item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease;
}

.filter-options-content ol.items li.item > a:hover {
    background: #fef9e0;
    color: #000;
}

/* Count badge */
.filter-options-content .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    background: #f0f0f0;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-left: 8px;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.filter-options-content ol.items li.item > a:hover .count {
    background: #f8d000;
    color: #000;
}

.filter-options-content .count .filter-count-label {
    display: none; /* ocultar "items" */
}

/* ─── Checkbox Filters (Manufacturer, Color, etc.) ── */
.filter-options-content ol.items li.item a input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.filter-options-content ol.items li.item a input[type="checkbox"]:hover {
    border-color: #f8d000;
}

.filter-options-content ol.items li.item a input[type="checkbox"]:checked {
    background: #f8d000;
    border-color: #f8d000;
}

.filter-options-content ol.items li.item a input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Checkbox label layout */
.filter-options-content ol.items li.item a label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding-left: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
}

.filter-options-content ol.items li.item a label span:first-child {
    flex: 1;
}

/* Checkbox row layout */
.filter-options-content ol.items li.item a[data-bind] {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.filter-options-content ol.items li.item a[data-bind]:hover {
    background: #fef9e0;
}

/* ─── Price Slider (ElasticSuite) ────────────────── */
.smile-es-range-slider {
    padding: 8px 4px 4px;
}

.smile-es-range-slider [data-role="from-label"],
.smile-es-range-slider [data-role="to-label"] {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.smile-es-range-slider [data-role="from-label"] {
    float: left;
}

.smile-es-range-slider [data-role="to-label"] {
    float: right;
}

/* Slider track */
.smile-es-range-slider .ui-slider {
    background: #e8e8e8;
    border: none;
    border-radius: 4px;
    height: 6px;
    margin: 12px 0;
    clear: both;
}

/* Slider active range */
.smile-es-range-slider .ui-slider .ui-slider-range {
    background: #f8d000;
    border-radius: 4px;
}

/* Slider handles */
.smile-es-range-slider .ui-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #f8d000;
    top: -7px;
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.smile-es-range-slider .ui-slider .ui-slider-handle:hover,
.smile-es-range-slider .ui-slider .ui-slider-handle:active {
    box-shadow: 0 2px 8px rgba(248,208,0,0.4);
    transform: scale(1.15);
}

/* Slider actions */
.smile-es-range-slider .actions-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.smile-es-range-slider [data-role="message-box"] {
    font-size: 12px;
    color: #888;
}

.smile-es-range-slider .action.primary.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8d000;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.smile-es-range-slider .action.primary.small:hover {
    background: #e6c400;
    box-shadow: 0 2px 8px rgba(248,208,0,0.35);
}

/* ─── Show More / Show Less ──────────────────────── */
.filter-options-content .actions .secondary a {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    padding: 6px 0;
    margin-top: 4px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.filter-options-content .actions .secondary a:hover {
    color: #000;
}

.filter-options-content .actions .secondary a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.filter-options-content .actions .secondary a.show-more::before {
    border-top: 5px solid #f8d000;
}

.filter-options-content .actions .secondary a.show-less::before {
    border-bottom: 5px solid #f8d000;
}

/* ─── Search Field dentro de filtros ─────────────── */
.filter-options-content .field.search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
    transition: border-color 0.15s ease;
}

.filter-options-content .field.search input:focus {
    outline: none;
    border-color: #f8d000;
    box-shadow: 0 0 0 2px rgba(248,208,0,0.2);
}

/* ─── No Results Message ─────────────────────────── */
.filter-options-content .no-results-message:not(.empty) {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* ─── Mobile adjustments ─────────────────────────── */
@media screen and (max-width: 767px) {
    .block.filter {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .filter-options-title {
        padding: 15px 18px;
        font-size: 14px;
    }

    .filter-options-content ol.items li.item > a,
    .filter-options-content ol.items li.item a[data-bind] {
        padding: 10px 10px;
    }
}
/** Fin CSS ElasticSuite **/

/* ============================================================
   FILA MARCA + ETIQUETA ENERGÉTICA — product-info-main
   ============================================================ */

.enow-product-brand-energy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    min-height: 48px;
}

/* Logo marca */
.enow-product-brand-logo img {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

/* Etiqueta energética */
.enow-product-energy-label img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

/* Si solo hay uno de los dos, lo empujamos a su lado */
.enow-product-brand-energy-row > *:only-child.enow-product-energy-label {
    margin-left: auto;
}


/**
 * Footer - Enow/Unico theme (Magento 2.4.8)
 * v2: SVG icons, mobile fixes, sizing improvements, single ekomi instance
 */

/* ==========================================================================
   1. Brand tokens (scoped al footer)
   ========================================================================== */

.footer-top,
.footer.footer-wrapper,
.footer-wrapper,
.footer.content {
    --enow-black: #000;
    --enow-white: #f6f6f6;
    --enow-gray-1: #b0b0b0;
    --enow-gray-2: #d4d4d4;
    --enow-yellow: #f8d000;
    --enow-yellow-hover: #e6c000;
    --enow-border: rgba(176, 176, 176, 0.25);

    --amarillo: var(--enow-yellow);
    --blanco: var(--enow-white);
    --gris1: var(--enow-gray-1);
    --gris2: var(--enow-gray-2);
}

/* ==========================================================================
   2. Footer top (newsletter)
   ========================================================================== */

.footer-top {
    background-image: url("../images/banner-newsletter.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 60px 20px;
    color: var(--enow-gray-2);
}

.footer-top .container.noticias {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.titulo-block {
    margin-bottom: 28px;
}

.titulo-block p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--enow-gray-2);
    line-height: 1.5;
}

.titulo-block p strong {
    display: block;
    margin: 0 0 12px;
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--enow-white);
    letter-spacing: 0.5px;
}

/* Newsletter form — wide, centered */
.block.newsletter {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.block.newsletter .form.subscribe {
    position: relative;
    width: 100%;
}

.block.newsletter .field {
    width: 100%;
}

.block.newsletter .field .control::before {
    display: none;
}

.block.newsletter .field input,
.field.newsletter input {
    width: 100%;
    height: 55px;
    padding: 0 180px 0 35px;
    color: var(--enow-black);
    background: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    text-align: left;
}

.block.newsletter .field input::placeholder,
.field.newsletter input::placeholder {
    color: #888;
    font-size: 0.95rem;
}

.block.newsletter .field input:focus,
.field.newsletter input:focus {
    outline: 2px solid var(--enow-yellow);
    outline-offset: 2px;
}

/* Botón dentro del input */
.block.newsletter .actions {
    position: absolute;
    top: 4px;
    right: 4px;
    height: 47px;
    margin: 0;
    padding: 0;
}

.block.newsletter button.subscribe,
button.subscribe {
    height: 47px;
    padding: 0 42px;
    background: var(--enow-yellow);
    color: var(--enow-black);
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.block.newsletter button.subscribe:hover,
button.subscribe:hover {
    background: var(--enow-yellow-hover);
}

/* ----- Mobile: input + botón apilados ----- */
@media (max-width: 600px) {
    .footer-top {
        padding: 40px 20px;
    }

    .titulo-block p strong {
        font-size: 1.6rem;
    }

    .titulo-block p {
        font-size: 1rem;
    }

    .block.newsletter .field input,
    .field.newsletter input {
        padding: 0 30px;
        height: 50px;
    }

    .block.newsletter .actions {
        position: static;
        margin-top: 12px;
        width: 100%;
        height: auto;
    }

    .block.newsletter button.subscribe,
    button.subscribe {
        width: 100%;
        height: 50px;
        border-radius: 50px;
    }
}

/* ==========================================================================
   2b. Consentimiento GDPR (Amasty) + texto legal
   Amasty GDPR inyecta el checkbox dentro del form; cubrimos sus clases
   habituales y el wrapper legacy ".legal-newsleter".
   ========================================================================== */

.amgdpr-checkbox-container,
.legal-newsleter {
    max-width: 900px;
    margin: 20px auto 0;
    color: var(--enow-gray-1);
    font-size: 1rem;
    text-align: center;
}

.amgdpr-checkbox-container .amgdpr-checkbox,
.amgdpr-checkbox-container label,
.legal-newsleter label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    line-height: 1.4;
}

.amgdpr-checkbox-container input[type="checkbox"],
.legal-newsleter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--enow-yellow);
    flex-shrink: 0;
}

.amgdpr-checkbox-container a,
.legal-newsleter a {
    color: var(--enow-yellow);
    text-decoration: none;
}

.amgdpr-checkbox-container a:hover,
.legal-newsleter a:hover {
    text-decoration: underline;
}

/* Texto legal completo bajo el checkbox */
.msg-gdpr-newssletter,
.amgdpr-text {
    max-width: 1100px;
    margin: 18px auto 0;
    font-size: 0.85rem;
    color: var(--enow-gray-1);
    line-height: 1.6;
    text-align: center;
}

.msg-gdpr-newssletter a,
.amgdpr-text a {
    color: var(--enow-gray-2);
    text-decoration: underline;
}

/* ==========================================================================
   2c. Override del layout "table" del módulo Newsletter de Blank theme
   ========================================================================== */

.block.newsletter .form.subscribe {
    display: block;
    position: relative;
    width: 100%;
}

.block.newsletter .fields {
    display: block;
    width: 100%;
}

.block.newsletter .field,
.block.newsletter .field.newsletter {
    display: block;
    width: 100%;
    max-width: 100% !important;     /* anula el 220px de Blank */
    margin: 0;
    vertical-align: baseline;
}

.block.newsletter .field .control {
    display: block;
    width: 100%;
}

.block.newsletter .actions {
    display: block;
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: auto;
    left: auto;
    width: auto;
    height: 47px;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

/* Blank theme aplana las esquinas izquierdas del botón y le pone margin-left:-1px
   porque asume layout "tabla". Lo reseteamos para que vuelva a ser un pill. */
.block.newsletter .action.subscribe,
.block.newsletter button.action.subscribe,
.block.newsletter button.subscribe {
    border-radius: 50px;
    margin-left: 0;
}

/* ==========================================================================
   3. Footer principal
   ========================================================================== */

.footer.footer-wrapper,
.footer-wrapper {
    background-color: var(--enow-black);
}

.footer.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px 20px;
    background-color: var(--enow-black);
    color: var(--enow-gray-1);
    border-top: none;
}

/* ==========================================================================
   4. Columnas de enlaces (CMS block: footer-links)
   ========================================================================== */

.footer.content .row.bloques {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--enow-border);
}

@media (min-width: 768px) {
    .footer.content .row.bloques {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px 40px;
    }
}

@media (min-width: 1024px) {
    .footer.content .row.bloques {
        grid-template-columns: 2fr 3fr 2fr 2.5fr;
    }
}

.footer.content .row.bloques > [class*="col-"] {
    width: 100%;
    padding: 0;
}

/* Listas de enlaces */
ul.enlaces {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

ul.enlaces li {
    margin: 0;
    padding-bottom: 12px;
    color: var(--enow-gray-1);
    font-size: 1.3rem;
    line-height: 1.5;
}

ul.enlaces li.h3 {
    padding-bottom: 22px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--enow-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

ul.enlaces a {
    color: var(--enow-gray-1);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

ul.enlaces a:hover {
    color: var(--enow-white);
    text-decoration: none;
}

/* Iconos sociales (block_id=43) - SVG inline */
.iconos-sociales {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.iconos-sociales a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--enow-white);
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, color 0.2s ease;
}

.iconos-sociales .icono {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

.iconos-sociales a:hover {
    background: var(--enow-yellow);
    color: var(--enow-black);
}

/* ==========================================================================
   5. Fila marca (logo, ekomi, SSL, pagos)
   ========================================================================== */

.footer.content .row.marca {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px 40px;
    padding: 30px 0;
}

.footer.content .row.marca > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer.content .row.marca img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo-footer img {
    max-height: 50px;
}

.ekomi-footer {
    min-width: 200px;
    display: flex;
    justify-content: center;
}

/* Mobile: apilar todo centrado */
@media (max-width: 767px) {
    .footer.content .row.marca {
        flex-direction: column;
        gap: 25px;
    }

    .footer.content .row.marca > [class*="col-"] {
        width: 100%;
    }
}

/* ==========================================================================
   6. Copyright
   ========================================================================== */

.copy {
    max-width: 1400px;
    margin: 30px auto 20px;
    padding: 20px 20px 0;
    text-align: center;
    color: var(--enow-gray-1);
    font-size: 1.3rem;
    line-height: 1.5;
    border-top: 1px solid var(--enow-border);
}

.copy span {
    display: inline-block;
}
