﻿/* ============================================================
   NAV.CSS
   Layout: [LOGO] [left icons] [—— menus centered flex:1 ——] [right icons]
   ============================================================ */

/* ── Spacer ── */
.spacer {
    height: 90px;
}

/* ── Fixed nav shell ── */
.nav {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: auto;
    z-index: 1000;
    display: flex;
    height: 90px;
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
}

/* ── Inner wrapper ── */
.navigation-wrap {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    padding: 0 24px;
    background-color: #fff;
}

/* ── Logo ── */
.logo-link,
.logo-link.w--current,
.logo-link.w-nav-brand,
.logo-link.w-nav-brand.w--current {
    opacity: 1 !important;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    margin-right: 8px;
    text-decoration: none;
    z-index: 1;
}

    .logo-link:hover,
    .logo-link.w--current:hover {
        opacity: 0.8 !important;
    }

    .logo-link:active {
        opacity: 0.7 !important;
    }

    .logo-link.footer {
        display: flex;
        padding-top: 0;
    }

.logo-link-copy {
    z-index: 1;
    text-decoration: none;
    flex-shrink: 0;
}

    .logo-link-copy:hover {
        opacity: 0.8;
    }

    .logo-link-copy:active {
        opacity: 0.7;
    }

    .logo-link-copy.w--current {
        margin-right: 8px;
    }

    .logo-link-copy.footer {
        display: flex;
        padding-top: 0;
    }

.logo-image {
    display: block;
    height: 40px;
    opacity: 1 !important;
}

/* ── Left icons: location + search ── */
.div-block-3 {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    margin-right: 32px;
}

/* ── All menus — centered, takes all remaining space ── */
.navigation-items {
    display: flex;
    flex: 1;
    height: 100%;
    justify-content: center;
    align-items: center;
    margin-left: 8px;
}

/* ── Left menu half ── */
.div-block-9 {
    display: flex;
    height: 100%;
    justify-content: flex-end;
    align-items: center;
}

/* ── Right menu half ── */
.div-block-10 {
    display: flex;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
}

/* ── Right icons ── */
.div-block-8 {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    margin-left: 8px;
}

.icon {
    display: block;
}

/* ── Plain nav link ── */
.navigation-item {
    position: relative;
    display: flex;
    height: 100%;
    padding: 0 14px;
    align-items: center;
    opacity: 0.6;
    color: #43464d;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 200ms ease;
}

    .navigation-item:hover {
        opacity: 0.9;
    }

    .navigation-item:active {
        opacity: 0.8;
    }

    .navigation-item.w--current {
        opacity: 1;
        color: #1a1b1f;
        font-weight: 600;
        border-bottom: 2px solid #1a1b1f;
    }

/* ── Search / account / cart icons ── */
.link-search {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.search {
    width: 22px;
    display: block;
}

.link-account {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.image-4 {
    width: 22px;
    display: block;
}

.image-5 {
    width: 22px;
}

.link-carrito {
    position: relative;
    display: flex;
    align-items: center;
    color: #222;
    text-decoration: none;
}

.text-block-3 {
    position: absolute;
    left: 51%;
    top: -30%;
    border: 1px solid #333;
    border-radius: 20px;
    background-color: #fff;
    font-family: Montserrat, sans-serif;
    color: #000;
    font-size: 10px;
    line-height: 15px;
    font-weight: 400;
    padding: 0 3px;
}

.cart-button {
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.cart {
    margin-left: 4px;
}

/* ── Hamburger ── */
.menu-button {
    display: none;
    padding: 0;
    background-color: transparent;
    border: none;
}

    .menu-button.w--open {
        background-color: transparent;
    }

/* ── Standard Webflow dropdown ── */
.dropdown {
    position: relative;
    height: 100%;
    padding: 0 14px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.dropdown-2 {
    position: relative;
    height: 100%;
    padding: 0 14px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.dropdown-toggle {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #43464d;
    opacity: 0.6;
    transition: opacity 200ms ease;
    text-decoration: none;
}

    .dropdown-toggle:hover {
        opacity: 1;
    }

.dropdown-toggle-2 {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #43464d;
    opacity: 0.6;
    transition: opacity 200ms ease;
    text-decoration: none;
}

    .dropdown-toggle-2:hover {
        opacity: 1;
    }

    .dropdown-toggle-2.w--open {
        opacity: 1;
    }

.icon-4 {
    margin-right: 0;
    font-size: 10px;
}

.icon-5 {
    position: relative;
    color: #43464d;
    font-size: 10px;
}

/* Standard small dropdown panel */
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-width: 180px;
    display: none;
    z-index: 999;
    padding: 8px 0;
}

    .dropdown-list.w--open {
        display: block;
    }

    .dropdown-list a {
        display: block;
        padding: 8px 20px;
        font-size: 12px;
        color: #43464d;
        text-decoration: none;
        letter-spacing: 0.5px;
        opacity: 0.7;
        transition: opacity 150ms;
    }

        .dropdown-list a:hover {
            opacity: 1;
        }

/* ============================================================
   MEGA MENU
   Outer .mega-menu  → display toggled by JS rules at bottom
   Styles the raw iPOS structure: ul.mega-menu > li > a + ul > li > a
   AND the enhanced .mega-col structure if templates are applied.
   ============================================================ */

/* Panel */
.mega-menu {
    position: fixed;
    left: 0;
    top: 90px;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    z-index: 999;
    padding: 28px 0 32px;
    animation: megaFadeIn 180ms ease;
    /* reset inherited list styles */
    list-style: none;
    margin: 0;
}

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RAW iPOS structure: ul.mega-menu ──
   ul.mega-menu > li            = column
   ul.mega-menu > li > a        = category heading
   ul.mega-menu > li > ul       = sub-list
   ul.mega-menu > li > ul > li  = sub-item
   ul.mega-menu > li > ul > li > a = sub-link
*/
ul.mega-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 48px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 60px;
    justify-content: flex-start;
    align-items: flex-start;
    list-style: none;
}

    /* column */
    ul.mega-menu > li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 110px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

        /* category heading */
        ul.mega-menu > li > a {
            display: block;
            font-family: Montserrat, sans-serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #1a1b1f;
            text-decoration: none;
            margin-bottom: 12px;
            opacity: 1;
            transition: opacity 200ms ease;
        }

            ul.mega-menu > li > a:hover {
                opacity: 0.55;
            }

        /* sub-list */
        ul.mega-menu > li > ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

            /* sub-item */
            ul.mega-menu > li > ul > li {
                list-style: none;
                margin: 0;
                padding: 0;
            }

                /* sub-link */
                ul.mega-menu > li > ul > li > a {
                    display: block;
                    font-family: Montserrat, sans-serif;
                    font-size: 13px;
                    font-weight: 400;
                    color: #43464d;
                    text-decoration: none;
                    opacity: 0.6;
                    transition: opacity 150ms ease;
                }

                    ul.mega-menu > li > ul > li > a:hover {
                        opacity: 1;
                        text-decoration: underline;
                    }

/* ── Enhanced structure (mega-col classes, if templates applied) ── */
.mega-menu-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 48px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 60px;
    justify-content: flex-start;
    align-items: flex-start;
    list-style: none;
}

.mega-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 110px;
}

.mega-col-title {
    display: block;
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1b1f;
    text-decoration: none;
    margin-bottom: 12px;
    opacity: 1;
    transition: opacity 200ms ease;
}

    .mega-col-title:hover {
        opacity: 0.55;
    }

.mega-col-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .mega-col-links li {
        margin: 0;
        list-style: none;
    }

    .mega-col-links a {
        display: block;
        font-family: Montserrat, sans-serif;
        font-size: 13px;
        font-weight: 400;
        color: #43464d;
        text-decoration: none;
        opacity: 0.6;
        transition: opacity 150ms ease;
    }

        .mega-col-links a:hover {
            opacity: 1;
            text-decoration: underline;
        }

/* ── Search overlay ── */
.searchwrapper {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.7);
}

.form-block-2 {
    position: relative;
    z-index: 10;
}

.form-4 {
    display: flex;
    width: 400px;
    margin: 0 auto;
    align-items: center;
}

.searchfield {
    height: 45px;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    font-size: 16px;
    flex: 1;
}

.submit-button-2 {
    height: 45px;
    border: none;
    border-radius: 0;
    background-color: #d4d4d4;
    color: #43464d;
    cursor: pointer;
}

.cerrar-search {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    width: 40px;
    height: 40px;
    margin-top: 30px;
    margin-right: 30px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.div-cerrar-search {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.linea-x-search {
    height: 2px;
    width: 20px;
    border-radius: 1px;
    background-color: #fff;
    transform: rotate(45deg);
}

    .linea-x-search._1 {
        margin-top: -2px;
        transform: rotate(-45deg);
    }

.icon-cerrar-search {
    width: 30px;
    padding: 8px 0;
    float: right;
}

/* ── Breadcrumbs ── */
.section-5 {
    display: flex;
    max-width: 1040px;
    margin: 0 auto;
    color: #d4d4d4;
}

.breadcrumbs {
    margin-left: 20px;
    padding: 5px 0;
    color: #43464d;
    font-size: 12px;
}

.div-block-62 {
    display: flex;
    margin: 0 5px;
    color: #a1a1a1;
    text-decoration: none;
}

.div-block-63 {
    display: flex;
    margin-left: 40px;
    align-items: center;
}

/* ── Footer search ── */
.div-block-61 {
    display: flex;
    padding: 20px 0;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.form-5 {
    display: flex;
}

.text-field-2 {
    height: 35px;
    margin-bottom: 0;
}

.submit-button-3 {
    height: 35px;
    padding: 4px 12px;
    border: none;
    background-color: #d4d4d4;
    color: #43464d;
    cursor: pointer;
}

.form-block-3 {
    margin-bottom: 0;
}

.heading-7 {
    margin: 0;
    color: #646464;
    font-size: 30px;
    line-height: 30px;
    font-weight: 300;
}

.div-block-59 {
    display: flex;
    float: right;
    justify-content: flex-start;
    align-self: stretch;
}

.div-block-60 {
    width: 20%;
    max-width: 250px;
}

/* Mobile logo fallback */
.link-block {
    display: none;
}

/* ============================================================
   RESPONSIVE — Tablet ≤ 991px
   ============================================================ */
@media screen and (max-width: 991px) {
    .navigation-wrap {
        padding: 0 16px;
    }

    .navigation-items {
        display: none;
    }

    .div-block-3 {
        margin-right: 16px;
    }

    .menu-button {
        display: flex;
    }

    .link-block {
        display: flex;
    }

    ul.mega-menu,
    .mega-menu-inner {
        gap: 28px;
        padding: 0 24px;
    }

    .section-5, .div-block-63 {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE — Mobile ≤ 767px
   ============================================================ */
@media screen and (max-width: 767px) {
    .link-search {
        display: none;
    }

    .mega-menu {
        padding: 20px 0;
    }

    ul.mega-menu,
    .mega-menu-inner {
        gap: 20px;
        padding: 0 16px;
    }

    .form-block-3 {
        display: none;
    }

    .section-5 {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE — Small ≤ 479px
   ============================================================ */
@media screen and (max-width: 479px) {
    .link-search, .link-account {
        display: none;
    }

    ul.mega-menu,
    .mega-menu-inner {
        flex-direction: column;
        gap: 16px;
    }
}

/* ── iPOS mega menu toggle — DO NOT MODIFY THESE TWO RULES ── */
.w-dropdown .mega-menu {
    display: none;
}

.w-dropdown.w--open .mega-menu {
    display: block;
}
