/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com/
Description: Tema hijo de GeneratePress
Author: BYTE FACTORY
Template: generatepress
Version: 1.0.0
*/

/* ==========================
   TOP HEADER
   ========================== */
/* =========================================
   TOP HEADER - CALZADOS MILANO
   ========================================= */

.milano-top-header {
    width: 100%;
    background: #222222;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    position: relative;
    z-index: 1000;
}

.milano-top-header-inner {
    position: relative;
    max-width: 1200px;
    min-height: 44px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.milano-top-left,
.milano-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.milano-top-header a {
    color: #ffffff;
    text-decoration: none;
}

.milano-top-header a:hover {
    color: #ffffff;
    opacity: 0.75;
}

.milano-top-header a:visited {
    color: #ffffff;
}
/* =========================================
   TOP BAR + HEADER STICKY
   ========================================= */

.milano-top-header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.site-header {
    position: sticky;
    top: 44px; /* altura de la top bar */
    z-index: 9998;
}

/* =========================================
   ICONOS SVG
   ========================================= */

.milano-top-header svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}


/* =========================================
   BUSCADOR
   ========================================= */

.milano-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.milano-search-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;
    color: #ffffff;

    cursor: pointer;
}

.milano-search-toggle:hover {
    background: transparent;
    color: #ffffff;
    opacity: 0.75;
}

.milano-search-form {
    display: none;

    position: absolute;
    top: calc(100% + 6px);
    left: 0;

    width: 320px;
    padding: 10px;

    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);

    z-index: 99999;

    box-sizing: border-box;
}

.milano-search-form.is-open {
    display: flex;
}

.milano-search-form input {
    flex: 1;
    min-width: 0;

    height: 42px;
    padding: 8px 12px;

    border: 1px solid #cccccc;
    border-radius: 0;

    background: #ffffff;
    color: #222222;

    font-size: 14px;

    box-sizing: border-box;
}

.milano-search-form input::placeholder {
    color: #666666;
    opacity: 1;
}

.milano-search-form button {
    height: 42px;
    padding: 0 16px;

    border: 0;
    border-radius: 0;

    background: #222222;
    color: #ffffff;

    font-size: 14px;

    cursor: pointer;
}

.milano-search-form button:hover {
    background: #3a3a3a;
    color: #ffffff;
}


/* =========================================
   POLYLANG
   ========================================= */

.milano-languages {
    display: flex;
    align-items: center;
}

.milano-languages ul {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}
li.lang-item.lang-item-6.lang-item-ca {
    padding-left: 10px !important;
}
.milano-languages li {
    margin: 0;
    padding: 0;

    line-height: 1;
}

.milano-languages li::before {
    display: none;
}

.milano-languages a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2px;

    line-height: 1;
}

.milano-languages img {
    display: block;

    width: 22px !important;
    height: 16px !important;

    max-width: none;

    object-fit: cover;

    border-radius: 2px;
}

/* idioma activo */

.milano-languages ul {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.milano-languages li {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.milano-languages li::before,
.milano-languages li::after {
    content: none !important;
    display: none !important;
}

.milano-languages a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
}

.milano-languages img {
    display: block;

    width: 22px !important;
    height: 16px !important;

    object-fit: cover;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}
.milano-languages .current-lang,
.milano-languages .current-lang a,
.milano-languages .current-lang img {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* =========================================
   DIRECCIÓN
   ========================================= */

.milano-address {
    display: flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
}

.milano-address span {
    display: inline-block;
}


/* =========================================
   TELÉFONO + EMAIL
   ========================================= */

.milano-icon-link {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


/* =========================================
   FOCO / ACCESIBILIDAD
   ========================================= */

.milano-top-header a:focus-visible,
.milano-top-header button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.milano-top-header input:focus-visible {
    outline: 2px solid #222222;
    outline-offset: 1px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .milano-top-header-inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .milano-top-left,
    .milano-top-right {
        gap: 12px;
    }

    .milano-address span {
        display: none;
    }

}


/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 600px) {

    .milano-top-header-inner {
        min-height: 42px;

        padding-left: 12px;
        padding-right: 12px;

        gap: 10px;
    }

    .milano-top-left,
    .milano-top-right {
        gap: 8px;
    }

    .milano-address {
        display: none;
    }

    .milano-languages ul {
        gap: 8px;
    }

    .milano-languages img {
        width: 20px !important;
        height: 14px !important;
    }

    .milano-search-form {
        position: fixed;

        top: 48px;
        left: 12px;
        right: 12px;

        width: auto;
    }

}


/* =========================================
   MÓVIL MUY PEQUEÑO
   ========================================= */

@media (max-width: 380px) {

    .milano-top-header-inner {
        padding-left: 8px;
        padding-right: 8px;
    }

    .milano-top-left,
    .milano-top-right {
        gap: 5px;
    }

    .milano-languages ul {
        gap: 5px;
    }

    .milano-icon-link {
        width: 26px;
        height: 26px;
    }

}