.header-top{
    align-items: center;
    display: flex;
    height: var(--header-h);
    justify-content: space-between;
    padding: 0 20px;
}

/* Branch */
.branch {
    display: block;
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    margin-right: 12px;
}
.branch a {
    display: block;
    height: 100%;
    position: relative;
    width: 110.38px;
}
.branch img {
    display: block;
    height: 90%;
    inset: 0;
    padding: 5% 0 0 0;
    position: absolute;
    transition: opacity .5s ease;
    width: auto;
}



/* Menu */
.menu-desktop {
    width: 100%
}
nav.menu-desktop {
    background-color: var(--color-lilac);
    display: flex;
    height: var(--menu-h);
    position: relative;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}
nav.menu-desktop a {
    align-items: center;
    color: black;
    display: flex;
    font-size: larger;
    height: 100%;
    justify-content: center;
    line-height: 1.2;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}
nav.menu-desktop a, nav.menu-desktop a:link, nav.menu-desktop a:visited{
    background: transparent !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-size: 0 0 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}
.menu-desktop li{
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    }
.menu-desktop ul {
    align-items: center;
    display: flex;
    gap: 10%;
    height: 100%;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.navigation-menu a.active{
    -webkit-text-stroke: 0.8px currentColor;
}
.navigation-menu a.active::after{
    background: var(--color-lilac);
    bottom:-4px;
    content:"";
    height:2px;
    left:0;
    position:absolute;
    width:100%;
    }



/* Finder */
.finder-div {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    height: 90%;
    justify-content: end;
    padding: 10px;
    position: relative;
    width: 35%;
    margin: 0 auto;
    margin-right: 200px;
}
.finder-tool {
    align-items: center;
    display: flex;
    height: 70%;
    gap: 4px;
    justify-content: center;
    margin-top: 5px;
    max-width: 360px;
    width: 100%;
}
.label-finder {
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    height: 38px;
    outline: none;
    opacity: 0;
    padding: 0;
    transition: width .3s ease, opacity .2s ease, padding .3s ease, border .3s ease;
    width: 0;
}
.button-finder {
    align-items: center;
    background: var(--color-white);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex: 0 0 40px;
    justify-content: center;
    height: 40px;
    padding: 0;
    width: 40px;
}
.spyglass {
    object-fit: contain;
    filter: invert(1);
    height: 80%;
    width: 80%;
}



/* Profile info */
.profile-info {
    align-items: center;
    display: flex;
    height: 100%;
    width: auto;
    overflow: visible;
}
.icon-box{
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: visible;
    flex: 0 0 auto;
}
.icons {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: filter .3s ease;
}

.profile-icon {
    filter: invert(1);
}
.cart-box {
    margin-left: 2px;
}

.profile-icon,
.shoppingbag-icon {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 42px;
    height: 42px;
}

.profile-info {
    display: flex;
    align-items: center;
    height: 100%;
    width: auto;
    overflow: visible;
}

/* Dropdown */
.profile-menu {
    background: var(--color-white);
    border: 1px solid var(--color-black);
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
    list-style: none;
    width: 380px;
    max-width: 380px;
    margin: 0;
    padding: 10px;
    position: absolute;
    top: calc(100% + 18px);
    right: 530%;
    transform: translateX(50%);
    z-index: 999;
    overflow: visible;
}

.profile-menu[hidden] {
    display: none !important;
}

.profile-menu::before {
    content: "";
    position: absolute;
    top: -9px;
    right: 26px;
    width: 16px;
    height: 16px;
    background: var(--color-white);
    border-top: 1px solid var(--color-black);
    border-left: 1px solid var(--color-black);
    transform: rotate(45deg);
}

.profile-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-menu a{
    color: var(--color-black);
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    white-space: nowrap;
}
.profile-menu a:hover {
    background: rgba(0,0,0,.05);
}

/* Panel login */
.profile-login-panel {
    padding: 16px;
}

.profile-login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-login-form label {
    color: var(--color-black);
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
}

.profile-login-form input {
    width: 100%;
    border: 1px solid var(--color-black);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
}

.profile-login-form input:focus {
    border-color: #999;
}

.profile-login-btn {
    background: linear-gradient(90deg, #f7c6de, #f3eaa1, #bcefdc, #d8c6ff);
    border: none;
    border-radius: 10px;
    color: var(--color-black);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    padding: 12px 14px;
    width: 100%;
}

.profile-login-btn:hover {
    opacity: .92;
    background: var(--color-black);
    color: var(--color-white);
}

.profile-create-account {
    color: #555;
    font-size: 13px;
    margin: 6px 0 0;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
}

.profile-create-account a {
    display: inline;
    padding: 0;
    text-decoration: underline;
    white-space: normal;
}

.profile-create-account a:hover {
    background: none;
}

/* Opciones de usuario logueado */
.profile-menu .user-only a {
    padding: 10px 14px;
}

/* Shopping cart dropdown */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
}

.cart-overlay[hidden],
.cart-drawer[hidden] {
  display: none !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: #fff;
  z-index: 9999;
  box-shadow: -10px 0 30px rgba(0,0,0,.18);
  padding: 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
}

#cartCloseBtn {
  border: none;
  background: none;
  font-size: 32px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 22px 0;
}

.cart-empty {
  text-align: center;
  padding: 40px 10px;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding-top: 18px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-checkout-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f7c6de, #f3eaa1, #bcefdc, #d8c6ff);
  color: #000;
  text-decoration: none;
}



/* Branch */
.img-hover { opacity: 0;}
.branch a:hover .img-hover { opacity: 1; transform: scale(1.08); }
.branch a:hover .img-normal{ opacity: 0; }

/* Profile */
.profile-icon:hover { transform: scale(1.05); }
.shoppingbag-icon:hover { transform: scale(1.05); }
.icon-box.active .profile-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.profile-menu a:hover{ background: rgba(0,0,0,.06); }

/* Finder */
.button-finder:hover { background: linear-gradient(135deg, var(--color-pink), var(--color-cream), var(--color-aqua)); box-shadow: 0 6px 14px rgba(0,0,0,.3); transform: scale(1.2); }
.finder-div.active .label-finder { width: clamp(160px, 20vw, 280px); opacity: 1; padding: 0 10px; border: 1px solid var(--color-lightgray); }

@media (max-width: 600px) {
    .header-top{
        align-items: center;
        display: flex;
        height: var(--header-h);
        justify-content: space-between;
        padding: 0 24px;
        position: relative;
        width: 100%;
    }
    .container{
        width: min(92%, 1200px);
        margin: 0 auto;
    }
    .burger-menu{
        background: none;
        border: none;
        color: black;
        display: grid;
        font-size: 28px;
        height: 44px;
        line-height: 44px;
        place-items: center;
        width: 44px;
    }
    #menu-slot{
        align-items: center;
        display: flex;
        flex: 0 0 44px;
        height: 100%;
        position: relative;
    }
    #menu-slot:empty{
        visibility: hidden;
    }
    .branch{
        align-items: center;
        display: flex;
        height: 100%;
        justify-content: center;
        left: 50%;
        position: absolute;
        transform: translateX(-50%);
        z-index: 5;
    }
    .branch a{
        display: block;
        height: 100%;
        position: relative;
        width: 85px;
    }
    .branch img{
        display: block;
        height: 80%;
        inset: 0;
        padding: 10% 0 0 5%;
        position: absolute;
        transition: opacity .5s ease;
        width: auto;
    }
    .mobile-drawer{
        background: var(--color-white);
        border: 1px solid rgba(0,0,0,.12);
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0,0,0,.18);
        left: 0;
        position: absolute;
        top: calc(100% - 10px);
        width: 240px;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity .18s ease, transform .18s ease;
        padding: 10px 0;
    }
    .mobile-drawer a{
        border-top: 1px solid rgba(0,0,0,.06);
        display: block;
        padding: 12px;
        text-decoration: none;
        width: 100%;
    }
    .mobile-nav,
    .submenu-panel {
        margin: 0;
        padding: 0;
    }
    .mobile-nav[hidden],
    .submenu-panel[hidden] {
        display: none !important;
    }
    .mobile-nav[hidden] {
        display: none !important;
    }
    .submenu-back {
        font-weight: bold;
        background: #fafafa;
    }
    .mobile-drawer a:first-child{
        border-top: 0;
    }
    .mobile-drawer a:active{
        background: rgba(0,0,0,.06);
    }
    .mobile-drawer[hidden]{
        display: none !important;
    }
    .mobile-drawer:not([hidden]){
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    #nav-slot{
        position: relative;
        width: 100%;
        z-index: 999;
    }
    #nav-slot:empty{
        display: none;
    }
    .finder-div{
        display: none;
    }
    .profile-info{
        align-items: center;
        display: flex;
        flex: 0 0 44px;
        justify-content: flex-end;
        z-index: 6;
    }
    .icon-box{
        align-items: center;
        display: flex;
        flex: 1;
        justify-content: center;
        position: relative;
    }
    .icons{
        flex: 1;
        height: 50%;
        object-fit: fill;
        transition: filter .3s ease;
        width: 100%;
    }
    .profile-icon{
        display: none;
    }
    .shoppingbag-icon{
        background: none;
        border: none;
        cursor: pointer;
        display: block;
        height: 80%;
        object-fit: fill;
    }

    .profile-menu{
        background: var(--color-white);
        border: 1px solid var(--color-black);
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,.15);
        list-style: none;
        min-width: 180px;
        opacity: 0;
        padding: 10px 0;
        pointer-events: none;
        position: absolute;
        top: 75px;
        transform: translateY(10px);
        transition: opacity .2s ease, transform .2s ease;
        z-index: 999;
    }

    .profile-menu a{
        color: var(--color-black);
        padding: 3px 10%;
        text-decoration: none;
    }



    /* Animations */
    .profile-icon:hover{
        transform: scale(1.05);
    }

    .shoppingbag-icon:hover{
        transform: scale(1.05);
    }

    .icon-box.active .profile-menu{
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .profile-menu a:hover{
        background: rgba(0,0,0,.06);
    }

    .img-hover{
        opacity: 0;
    }

    .branch a:hover .img-hover{
        opacity: 1;
        transform: scale(1.08);
    }

    .branch a:hover .img-normal{
        opacity: 0;
    }
}



@media (min-width: 601px) and (max-width: 991px) {
    header {
        height: 8em;
        width: 100%;
    }
}