/*** Site Header (navbar + account menu) ***/
.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: 'Rubik', 'Open Sans', sans-serif;
    z-index: 1030;
}

.site-header-main {
    display: flex;
    flex-direction: column;
}

.site-header-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 1.15rem;
    padding: 0.55rem 2.5rem 0.45rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-height: 99px;
    padding: 0.5rem 2.5rem;
}

.site-header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.site-header-brand:hover {
    color: inherit;
    opacity: 0.92;
}

.site-header-brand img {
    display: block;
    height: 101px;
    width: auto;
    max-width: 390px;
    object-fit: contain;
}

.site-header-quicklink {
    color: #222;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-header-quicklink:hover,
.site-header-quicklink.is-active {
    color: var(--primary);
}

.site-header-quicksep {
    width: 1px;
    height: 18px;
    background: var(--primary);
    flex-shrink: 0;
}

.site-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.site-header-cta:hover {
    color: #fff;
    background: #e6530f;
}

.site-header-categories {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    min-width: 0;
    overflow: visible;
}

.site-header-category {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.site-header-category > .site-header-category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0;
    color: #1a1a1a;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-header-category > .site-header-category-link::after {
    display: inline-block;
    margin-left: 0.15rem;
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--primary);
    opacity: 0.9;
}

.site-header-category-link:hover,
.site-header-category-link.active {
    color: var(--primary);
}

.site-header-utils {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 1.35rem;
    margin-left: auto;
}

.site-header-util {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 54px;
    color: #333;
    font-size: 0.72rem;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-header-util:hover,
.site-header-util.is-active,
.site-header-util.show {
    color: var(--primary);
}

.site-header-util i {
    font-size: 1.5rem;
    line-height: 1;
    color: #222;
}

.site-header-util:hover i,
.site-header-util.is-active i {
    color: var(--primary);
}

.site-header-util--whatsapp i {
    color: #25d366;
}

.site-header-util--whatsapp:hover {
    color: #25d366;
}

.site-header-util--whatsapp:hover i {
    color: #1ebe57;
}

.site-header-util--account.dropdown-toggle::after {
    display: none;
}

.site-header-util--account .bi-chevron-up,
.site-header-util--account .bi-chevron-down {
    font-size: 0.6rem;
    color: var(--primary);
    line-height: 1;
}

.site-header-util--account.show .bi-chevron-down {
    display: none;
}

.site-header-util--account.show .bi-chevron-up.d-none {
    display: inline-block !important;
}

.site-header-util-badge {
    position: absolute;
    top: -4px;
    right: 4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.site-header-util--cart i {
    font-size: 1.55rem;
}

.site-header-account {
    position: relative;
}

.site-account-menu {
    width: 280px;
    padding: 1rem 0 0.5rem;
    border-radius: 10px;
    margin-top: 0.35rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.site-account-menu__intro {
    margin: 0 1rem 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #444;
    font-size: 0.88rem;
    line-height: 1.45;
}

.site-account-menu__intro a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.site-account-menu__intro a:hover {
    text-decoration: underline;
}

.site-account-menu__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    color: #333;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-account-menu__item i {
    width: 1.15rem;
    font-size: 1.05rem;
    color: #666;
    text-align: center;
}

.site-account-menu__item:hover,
.site-account-menu__item.is-active {
    background: rgba(255, 94, 20, 0.1);
    color: var(--primary);
}

.site-account-menu__item:hover i,
.site-account-menu__item.is-active i {
    color: var(--primary);
}

.site-account-menu__item--button {
    cursor: pointer;
}

/* Category dropdown panel */
.site-header-category.nav-tree-trigger {
    position: relative;
}

.site-header-category .nav-tree-panel {
    left: 0;
    top: 100%;
}

.site-header-mobile {
    display: none;
    background: #fff;
}

@media (max-width: 991.98px) {
    .site-header-main {
        display: none;
    }

    .site-header-mobile {
        display: block;
    }

    .site-header-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0.65rem;
        padding: 0.45rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .site-header-mobile-topbar::-webkit-scrollbar {
        display: none;
    }

    .site-header-mobile-quicklink {
        color: #222;
        font-size: 0.82rem;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.2s ease;
    }

    .site-header-mobile-quicklink:hover,
    .site-header-mobile-quicklink.is-active {
        color: var(--primary);
    }

    .site-header-mobile-quicksep {
        width: 1px;
        height: 14px;
        background: var(--primary);
        flex-shrink: 0;
    }

    .site-header-mobile-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.75rem;
        background: var(--primary);
        color: #fff;
        font-size: 0.78rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .site-header-mobile-cta:hover {
        color: #fff;
        background: #e6530f;
    }

    .site-header-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.55rem 1rem 0.65rem;
    }

    .site-header-mobile-brand {
        display: flex;
        align-items: center;
        flex-shrink: 1;
        min-width: 0;
        text-decoration: none;
    }

    .site-header-mobile-brand img {
        display: block;
        height: 65px;
        width: auto;
        max-width: min(234px, 48vw);
        object-fit: contain;
    }

    .site-header-mobile-actions {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .site-header-mobile-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 50%;
        color: #222;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .site-header-mobile-icon:hover,
    .site-header-mobile-icon.is-active {
        color: var(--primary);
        background: rgba(255, 94, 20, 0.08);
    }

    .site-header-mobile-icon i {
        font-size: 1.25rem;
        line-height: 1;
    }

    .site-header-mobile-icon--whatsapp i {
        color: #25d366;
    }

    .site-header-mobile-icon-badge {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #dc3545;
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
    }

    .site-header-mobile-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 2.35rem;
        height: 2.35rem;
        padding: 0;
        border: none;
        border-radius: 8px;
        background: rgba(255, 94, 20, 0.1);
        cursor: pointer;
    }

    .site-header-mobile-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: var(--primary);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .site-header-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .site-header-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header-mobile-menu {
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        background: #fafbfc;
    }

    .site-header-mobile-menu-inner {
        padding: 0.85rem 1rem 1.15rem;
        max-height: min(70vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-header-mobile-menu-label {
        margin: 0 0 0.45rem;
        padding: 0 0.15rem;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .site-header-mobile-menu-label:not(:first-child) {
        margin-top: 1rem;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .site-header-mobile-nav {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .site-header-mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.72rem 0.85rem;
        border: none;
        border-radius: 8px;
        background: #fff;
        color: #1a1a1a;
        font-size: 0.92rem;
        font-weight: 600;
        text-decoration: none;
        text-align: left;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .site-header-mobile-nav-link + .site-header-mobile-nav-link,
    .site-header-mobile-nav li + li {
        margin-top: 0.35rem;
    }

    .site-header-mobile-nav-link:hover,
    .site-header-mobile-nav-link.is-active {
        color: var(--primary);
        background: rgba(255, 94, 20, 0.08);
    }

    .site-header-mobile-nav-link i {
        color: #94a3b8;
        font-size: 0.85rem;
    }

    .site-header-mobile-nav-link--button {
        cursor: pointer;
    }

    .site-header-mobile-user {
        display: block;
        padding: 0.55rem 0.85rem 0.15rem;
        color: #475569;
        font-size: 0.88rem;
        font-weight: 600;
    }
}

@media (max-width: 1199.98px) {
    .site-header-topbar {
        padding: 0.5rem 1.25rem 0.4rem;
        gap: 0.9rem;
    }

    .site-header-inner {
        gap: 1.15rem;
        min-height: 88px;
        padding: 0.45rem 1.25rem;
    }

    .site-header-brand img {
        height: 88px;
        max-width: 338px;
    }

    .site-header-category > .site-header-category-link {
        font-size: 0.95rem;
    }

    .site-header-utils {
        gap: 0.85rem;
    }

    .site-header-util {
        min-width: 46px;
        font-size: 0.68rem;
    }
}
