/* =========================================
   FAJAR INTERNATIONAL
   SHARED HEADER DESIGN
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #111111;
    border-bottom: 1px solid rgba(201, 164, 94, 0.45);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.header-inner {
    width: min(1240px, calc(100% - 48px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header-logo {
    display: block;
    width: 155px;
    max-width: 100%;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

/* Navigation */

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
}

.header-nav a {
    position: relative;
    padding: 10px 0;
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 0;
    height: 2px;
    background: #c9a45e;
    transition: width 0.25s ease;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
    color: #d9b66d;
}

.header-nav a:hover::after,
.header-nav a[aria-current="page"]::after {
    width: 100%;
}

/* Header actions */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.header-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #c9a45e;
    border-radius: 3px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.header-cart-link:hover {
    background: #c9a45e;
    color: #111111;
}

.header-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 50px;
    background: #c9a45e;
    color: #111111;
    font-size: 11px;
    font-weight: 700;
}

.header-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #c9a45e;
    border-radius: 3px;
    background: transparent;
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

/* Tablet and mobile */

@media (max-width: 1000px) {
    .header-inner {
        width: calc(100% - 32px);
        gap: 16px;
    }

    .header-logo {
        width: 130px;
    }

    .header-nav {
        gap: 17px;
    }

    .header-nav a {
        font-size: 13px;
    }

    .header-cart-link {
        padding: 0 11px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 72px;
        gap: 12px;
    }

    .header-logo {
        width: 125px;
        height: 48px;
    }

    .header-actions {
        margin-left: auto;
        gap: 9px;
    }

    .header-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 10px 24px 18px;
        background: #111111;
        border-top: 1px solid rgba(201, 164, 94, 0.25);
        border-bottom: 1px solid #c9a45e;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
    }

    .header-nav.is-open {
        display: flex;
    }

    .header-nav a {
        display: block;
        padding: 14px 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        font-size: 14px;
    }

    .header-nav a::after {
        display: none;
    }
}

@media (max-width: 380px) {
    .header-inner {
        width: calc(100% - 20px);
    }

    .header-logo {
        width: 105px;
    }

    .header-cart-link {
        gap: 6px;
        min-height: 38px;
        padding: 0 9px;
        font-size: 12px;
    }

    .header-menu-toggle {
        width: 38px;
        height: 38px;
    }
}