/* ---------------------------------------------------- */
/*                   ESTILOS BASE                       */
/* ---------------------------------------------------- */

.header {
    width: 100vw;
    margin: 0;
    padding: 0;
    position: fixed;
    z-index: 10;
    background-color: white;
}

/* Top strip */
.topStrip {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
    background-color: #D9D9D9;
    overflow: hidden;
    user-select: none;
    font-family: 'parrafo';
    overflow: hidden;
    height: 35px;
}

.scrollingContent {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    overflow: hidden;
    animation: scrollLeft 50s linear infinite;
    flex-shrink: 0;
}
/* .scrollingContent p {
    margin-right: 50px;
    white-space: nowrap;
} */

@keyframes scrollLeft {
    to {
        transform: translateX(-100%);
    }
    /* 0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } */
}

/* Main header */
.main_header {
    /* width: 100%; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid black;
    background-color: white;
    padding-inline: 10vw;
}

/* Logo */
.logo {
    width: auto;
}

/* Cart */
.shopIcon {
    cursor: pointer;
    width: auto;
    transition: transform .3s ease;
}
.shopIcon:hover { transform: scale(1.3); }

#items_num_header {
    position: absolute;
    background-color: #069fe6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Nav (desktop only) */
.navLinks {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}
.navLinks li a {
    font-family: 'parrafo';
    font-size: 18px;
    padding: 14px 16px;
    color: black;
    text-decoration: none;
    transition: transform .3s;
}
.navLinks li a:hover {
    transform: scale(1.2);
}

/* ---------------------------------------------------- */
/*               HAMBURGER MENU BASE                    */
/* ---------------------------------------------------- */

.visuallyHidden {
    display: none;
}

.hamburgerWrapper {
    cursor: pointer;
}

.hamburger {
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger .bar {
    width: 30px;
    height: 4px;
    background-color: rgb(70, 70, 70);
    border-radius: 4px;
    transition: 0.2s ease-in-out;
    position: absolute;
}

.bar1 { top: 0; }
.bar2,
.bar3 { top: 13.5px; }
.bar4 { bottom: 0; }

/* Origins para animación */
.hamburger3 .bar1 { transform-origin: 5%; }
.hamburger3 .bar4 { transform-origin: 5%; }

/* Animación checked */
.checkbox3:checked + label > .hamburger3 > .bar1 {
    transform: rotate(45deg);
    height: 3px;
    width: 42px;
}

.checkbox3:checked + label > .hamburger3 > .bar3 {
    transform: rotate(45deg);
    background-color: transparent;
    height: 3px;
}

.checkbox3:checked + label > .hamburger3 > .bar2 {
    transform: rotate(-45deg);
    background-color: transparent;
    height: 3px;
}

.checkbox3:checked + label > .hamburger3 > .bar4 {
    transform: rotate(-45deg);
    height: 3px;
    width: 42px;
}

/* ===================================================== */
/*              DROPDOWN MENU (MOBILE/TABLET)            */
/* ===================================================== */

.dropdown_menu {
    position: fixed;
    top: var(--headerHeight);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--headerHeight));
    background-color: white;
    transform: translateY(-100%);
    transition: transform 0.45s ease;
    z-index: 9; /* debajo del header */
    display: flex;
    /* justify-content: center; */
    align-items: flex-start;
    padding-top: 6vh;
}

/* Contenido del menú */
.dropdown_content ul {
    list-style: none;
    padding: 0;
    margin-left: 10px;
    /* text-align: center; */
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

.dropdown_content ul li a {
    text-decoration: none;
    font-family: 'parrafo';
    font-size: 24px;
    color: black;
    transition: transform 0.3s ease;
}

/* ACTIVACIÓN POR CHECKBOX */
#checkbox3:checked ~ .dropdown_menu {
    transform: translateY(0);
}

/* ---------------------------------------------------- */
/*                      MOBILE                          */
/* ---------------------------------------------------- */
@media (max-width: 576px){

    :root { --headerHeight: 90px; }

    .topStrip{
        font-size: 12px;
    }

    .main_header {
        padding-inline: 3vw;
        height: 55px;
    }

    .hamburgerWrapper {
        display: block;
    }

    .navLinks {
        display: none;
    }

    .logo {
        height: 40px;
    }

    .shopIcon {
        height: 38px;
    }

    #items_num_header {
        width: 14px;
        height: 14px;
        font-size: 10px;
        right: 3vw;
        top: 40px;
    }
}

/* ---------------------------------------------------- */
/*                      TABLET                          */
/* ---------------------------------------------------- */
@media (min-width: 577px) and (max-width: 1023px){

    :root { --headerHeight: 105px; }

    .main_header {
        padding-inline: 5vw;
        height: 70px;
    }

    .hamburgerWrapper {
        display: block;
    }

    .navLinks {
        display: none;
    }

    .logo {
        height: 45px;
    }

    .shopIcon {
        height: 42px;
    }

    #items_num_header {
        width: 18px;
        height: 18px;
        font-size: 12px;
        right: 5vw;
        top: 40px;
    }
}

/* ---------------------------------------------------- */
/*                      DESKTOP                         */
/* ---------------------------------------------------- */
@media (min-width: 1024px){

    :root { --headerHeight: 130px; }

    .main_header {
        padding-inline: 10vw;
        /* max-width: 1400px; */
        height: 95px;
    }

    #checkbox3 {
        display: none;
    }
    label{
        display: none;
    }

    .navLinks {
        display: flex;
        /* flex: 1; */
    }

    .logo {
        height: 55px;
    }

    .shopIcon {
        height: 55px;
    }

    #items_num_header {
        width: 20px;
        height: 20px;
        font-size: 14px;
        right: 10vw;
        top: 45px;
    }
}