/* Premium boutique two-level header — homev1 */

:root {
    --boutique-accent: #E78CA8;
    --boutique-text: #222;
    --boutique-muted: #666;
    --boutique-border: #eee;
    --boutique-top-bg: #fafafa;
    --boutique-bar-height: 76px;
    --boutique-top-height: 38px;
    --boutique-max-width: 1280px;
    --boutique-pad-x: 32px;
}

body.tenant-storefront {
    padding-top: calc(var(--boutique-top-height) + var(--boutique-bar-height));
}

#header-v1.tenant-header-boutique {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--boutique-border);
}

#header-v1.tenant-header-boutique.is-scrolled .tenant-header-boutique__main {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#header-v1.tenant-header-boutique .tenant-header-boutique__inner {
    max-width: var(--boutique-max-width);
    margin: 0 auto;
    padding: 0 var(--boutique-pad-x);
    width: 100%;
    box-sizing: border-box;
}

/* Top bar */
#header-v1.tenant-header-boutique .tenant-header-boutique__top {
    height: var(--boutique-top-height);
    background: var(--boutique-top-bg);
    border-bottom: 1px solid var(--boutique-border);
}

#header-v1.tenant-header-boutique .tenant-header-boutique__inner--top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__top-start {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--boutique-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__top-link:hover,
#header-v1.tenant-header-boutique .tenant-header-boutique__top-link:focus {
    color: var(--boutique-text);
    text-decoration: none;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__top-whatsapp i {
    color: #25d366;
    font-size: 14px;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__top-delivery {
    margin: 0;
    flex: 1;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: var(--boutique-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__top-locale {
    flex-shrink: 0;
}

/* Main bar */
#header-v1.tenant-header-boutique .tenant-header-boutique__main {
    height: var(--boutique-bar-height);
    background: #fff;
    transition: box-shadow 0.2s ease;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__main > .tenant-header-boutique__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    height: var(--boutique-bar-height);
    gap: 16px;
    position: relative;
}

#header-v1.tenant-header-boutique nav ul,
#header-v1.tenant-header-boutique nav ul li {
    float: none !important;
    padding-right: 0 !important;
    margin: 0;
    list-style: none;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__nav-list,
#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item {
    display: flex;
    align-items: center;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item {
    flex-shrink: 0;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__menu-toggle-wrap {
    display: none;
    margin: 0;
    padding: 0;
    float: none !important;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--boutique-text);
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__menu-toggle:hover {
    background: #f5f5f5;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__brand {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
}

#header-v1.tenant-header-boutique .tenant-header-brand__link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--boutique-text);
    transition: opacity 0.2s ease;
}

#header-v1.tenant-header-boutique .tenant-header-brand__link:hover {
    opacity: 0.85;
    text-decoration: none;
    color: var(--boutique-text);
}

#header-v1.tenant-header-boutique .tenant-header-brand__logo {
    display: block;
    max-height: 40px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#header-v1.tenant-header-boutique .tenant-header-brand__name {
    font-family: 'Abril Fatface', Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__nav {
    grid-column: 2;
    justify-self: center;
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
    width: auto;
    max-width: 100%;
    min-width: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item > a {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--boutique-text);
    text-decoration: none;
    background: transparent !important;
    transition: color 0.2s ease;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--boutique-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item:hover > a,
#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item:focus-within > a {
    color: var(--boutique-muted);
    text-decoration: none;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item:hover > a::after,
#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item:focus-within > a::after,
#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item.is-active > a::after {
    transform: scaleX(1);
}

#header-v1.tenant-header-boutique .tenant-header-boutique__nav-item.is-active > a {
    color: var(--boutique-text);
}

/* Actions */
#header-v1.tenant-header-boutique .tenant-header-boutique__actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--boutique-text);
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__icon-btn:hover,
#header-v1.tenant-header-boutique .tenant-header-boutique__icon-btn:focus {
    background: #f5f5f5;
    color: var(--boutique-text);
    text-decoration: none;
    transform: scale(1.02);
    outline: none;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__cart {
    position: relative;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__cart[data-cart-count]:not([data-cart-count="0"])::after {
    content: attr(data-cart-count);
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    background: var(--boutique-accent);
    color: #fff;
    border-radius: 999px;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__cart-menu {
    right: 0;
    left: auto;
    margin-top: 8px;
    border: 1px solid var(--boutique-border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    min-width: 280px;
}

/* Locale dropdown */
#header-v1.tenant-header-boutique .tenant-locale-dropdown {
    position: relative;
}

#header-v1.tenant-header-boutique .tenant-locale-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--boutique-muted) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease;
}

#header-v1.tenant-header-boutique .tenant-locale-dropdown__toggle:hover,
#header-v1.tenant-header-boutique .tenant-locale-dropdown__toggle:focus {
    color: var(--boutique-text) !important;
    background: transparent !important;
    text-decoration: none !important;
}

#header-v1.tenant-header-boutique .tenant-locale-dropdown__toggle .caret {
    border-top-color: var(--boutique-muted);
}

#header-v1.tenant-header-boutique .tenant-locale-dropdown .tenant-locale-dropdown__menu {
    display: none;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 100px;
    margin: 0;
    padding: 6px 0;
    border: 1px solid var(--boutique-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1200;
}

#header-v1.tenant-header-boutique .tenant-locale-dropdown.open .tenant-locale-dropdown__menu {
    display: block !important;
}

#header-v1.tenant-header-boutique .tenant-locale-dropdown__menu > li > a {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    padding: 8px 16px;
    color: var(--boutique-text);
    transition: background 0.2s ease;
}

#header-v1.tenant-header-boutique .tenant-locale-dropdown__menu > li.active > a,
#header-v1.tenant-header-boutique .tenant-locale-dropdown__menu > li > a:hover {
    background: #fdf2f6;
    color: var(--boutique-text);
}

#header-v1.tenant-header-boutique .tenant-locale-dropdown__toggle--drawer {
    border: 1px solid var(--boutique-border) !important;
    padding: 8px 12px !important;
    margin: 4px 0 8px;
    border-radius: 6px;
    color: var(--boutique-text) !important;
}

#header-v1.tenant-header-boutique .tenant-locale-switcher-menu .tenant-locale-dropdown__menu--drawer {
    position: static;
    display: none;
    box-shadow: none;
    margin-top: 0;
}

#header-v1.tenant-header-boutique .tenant-locale-switcher-menu.open .tenant-locale-dropdown__menu {
    display: block !important;
}

/* Mobile drawer */
#header-v1.tenant-header-boutique .tenant-header-boutique__drawer {
    display: block;
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    height: 100% !important;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border: 0;
    box-shadow: none;
    transition: left 0.3s ease;
    z-index: 1040;
    padding: 24px 20px 32px;
    float: none;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__drawer-close {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 24px;
    color: var(--boutique-text);
    cursor: pointer;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__drawer-search {
    margin-bottom: 16px;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__drawer-nav .tenant-header-boutique__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__drawer-nav .tenant-header-boutique__nav-item {
    width: 100%;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__drawer-nav .tenant-header-boutique__nav-item > a {
    display: block;
    width: 100%;
    padding: 14px 0;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__drawer-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--boutique-text);
    text-decoration: none;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__drawer-locale {
    margin-top: 16px;
}

#header-v1.tenant-header-boutique .tenant-header-boutique__drawer-contact {
    margin-top: 24px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    color: var(--boutique-muted);
}

#header-v1.tenant-header-boutique .tenant-header-boutique__drawer-contact p {
    margin: 0 0 8px;
}

@media (min-width: 768px) {
    #header-v1.tenant-header-boutique .tenant-header-boutique__menu-toggle-wrap {
        display: none !important;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__nav {
        display: flex !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --boutique-pad-x: 24px;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__top-delivery {
        display: none;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__nav-list {
        gap: 24px;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__nav-item > a {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    :root {
        --boutique-pad-x: 16px;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__main > .tenant-header-boutique__inner {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__menu-toggle-wrap {
        display: block;
        grid-column: 1;
        justify-self: start;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__nav {
        display: none !important;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__brand {
        grid-column: 2;
        justify-self: center;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__actions {
        grid-column: 3;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__account-btn {
        display: none;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__top-delivery,
    #header-v1.tenant-header-boutique .tenant-header-boutique__top-whatsapp {
        display: none;
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__top-start .tenant-header-boutique__top-phone span {
        display: none;
    }

    #header-v1.tenant-header-boutique #myNavbar.tenant-header-boutique__drawer.navbar-collapse.collapse {
        display: block !important;
        position: fixed !important;
        left: -260px !important;
        border-top: 0 !important;
        box-shadow: none !important;
    }

    #header-v1.tenant-header-boutique .mobile-menu {
        position: static !important;
        padding-top: 0 !important;
    }

    #header-v1.tenant-header-boutique .tenant-header-brand__logo {
        max-height: 36px;
        max-width: 140px;
    }

    #header-v1.tenant-header-boutique .tenant-header-brand__name {
        font-size: 1rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-width: calc(100vw - 140px);
    }

    #header-v1.tenant-header-boutique .tenant-header-boutique__icon-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}
