@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('../fonts/montserrat/Montserrat-latin.woff2') format('woff2');
}
/* Buyer navigation only; admin navigation and checkout calculations are untouched. */
:root:has(.buyer-promo-banner) { --buyer-promo-height: 44px; }
.teks-atas.buyer-promo-banner {
    display: flex;
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: auto !important;
    min-height: 30px;
    padding: calc(6px + env(safe-area-inset-top)) 16px 6px;
    font-size: 12px;
    line-height: 1.4;
    z-index: 12;
}
.buyer-promo-banner p { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.teks-atas.buyer-promo-banner--mobile { display: none; }
.buyer-nav-icon { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
.buyer-action-icon { display: block; width: 23px; height: 23px; flex: 0 0 auto; }
#buyer-account-menu[hidden] { display: none !important; }
#buyer-mobile-search[hidden] { display: none !important; }
#buyer-account-menu {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, .4);
    overflow-y: auto;
    overscroll-behavior: contain;
}
#buyer-account-menu .buyer-account-panel {
    width: min(100%, 380px);
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
}
.buyer-account-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.buyer-account-panel__heading h5 { margin: 0; }
.buyer-account-close { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: var(--hijaumuda, #f1f5f9); color: var(--hijau); }
.buyer-account-links { display: grid; gap: 8px; }
.buyer-account-links a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border-radius: 12px; color: #374151; text-decoration: none; overflow-wrap: anywhere; }
.buyer-account-links a:hover, .buyer-account-links a[aria-current='page'] { background: var(--hijaumuda, #f1f5f9); color: var(--hijau); }
.buyer-account-links .material-icons { flex: 0 0 24px; }
html.buyer-menu-open, html.buyer-menu-open body { overflow: hidden; overscroll-behavior: none; }
.buyer-mobile-header :focus-visible, #buyer-account-menu :focus-visible, .account-mobile-tabs a:focus-visible { outline: 2px solid var(--hijau); outline-offset: 3px; }
.buyer-desktop-spacer { height: var(--buyer-header-bottom, 107px) !important; }
.buyer-desktop-header { width: 100%; left: 0; top: var(--buyer-promo-height, 0px) !important; }
body:has(.buyer-mobile-header) .container-kategori-sticky { top: var(--buyer-header-bottom, 116px) !important; }
body:has(.buyer-mobile-header) .account-side-card { top: var(--buyer-header-bottom, 86px); }
.kategori-dropdown-menu { max-width: calc(100vw - 24px); overscroll-behavior: contain; }

@media (max-width: 991.98px) {
    .teks-atas.buyer-promo-banner--desktop { display: none; }
    .teks-atas.buyer-promo-banner--mobile { display: flex; }
    .buyer-desktop-header, .buyer-desktop-spacer { display: none !important; }
    .buyer-mobile-header {
        display: block !important;
        position: fixed;
        top: var(--buyer-promo-height, 0px) !important;
        left: 0;
        width: 100%;
        padding: 8px 0 !important;
        background: rgba(255, 255, 255, .98) !important;
        border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
        z-index: 11;
    }
    /* Consistent mobile page gutters; Bootstrap containers keep their own
       gutters, so the small outer inset also protects full-width content. */
    .buyer-layout > .buyer-page-content > .konten { padding-inline: 8px; }
    .buyer-mobile-header > .container { max-width: 100%; padding-inline: 20px; }
    .buyer-mobile-header .mobile-navbar-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
    .buyer-mobile-header .mobile-navbar-brand { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; flex: 0 1 auto; margin: 0; padding: 0; color: var(--theme-primary, #2f2d20); text-decoration: none; -webkit-tap-highlight-color: transparent; }
    .buyer-mobile-header.navbar .mobile-navbar-brand .mobile-navbar-logo { display: block; width: clamp(112px, 32vw, 128px); max-width: 100%; height: auto !important; object-fit: contain; }
    .buyer-mobile-header .mobile-navbar-brand:focus-visible { outline: 2px solid var(--theme-primary, #2f2d20); outline-offset: 2px; border-radius: 4px; }
    .buyer-mobile-header .mobile-navbar-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; margin-left: auto; }
    .buyer-mobile-header .btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px !important; min-height: 44px !important; padding: 0 !important; border-radius: 14px; color: var(--hijau) !important; background: var(--hijaumuda, #f1f5f9) !important; }
    .buyer-mobile-header .mobile-navbar-actions > .btn { background: transparent !important; border: 0 !important; border-radius: 0; box-shadow: none !important; }
    .buyer-mobile-header .material-icons { font-size: 22px; color: currentColor !important; }
    .buyer-mobile-header .mobile-search-container { display: block; margin-top: 8px; animation: buyer-search-in .16s ease-out; }
    .buyer-mobile-header .search-box .input-group { min-width: 0; min-height: 44px; overflow: hidden; border-radius: 14px; }
    .buyer-mobile-header .search-input { min-width: 0; min-height: 44px; font-size: 16px; }
    .buyer-mobile-header .search-box .btn { width: 48px; flex: 0 0 48px; background: var(--hijau) !important; color: #fff !important; border-radius: 0; }
    .mobile-navbar-spacer.hide-ke-show-block { display: block !important; height: var(--buyer-header-bottom, 116px); }
    .mobile-bottom-nav.hide-ke-show-flex { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 14; align-items: center; justify-content: space-between; gap: 6px; padding: 6px; min-height: 68px; border: 1px solid rgba(47,45,32,.12); border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: 0 8px 26px rgba(47,45,32,.12), inset 0 1px 0 rgba(255,255,255,.9); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
    .mobile-bottom-nav__item { display: flex; flex: 1 1 0; min-width: 0; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 3px 4px; text-align: center; text-decoration: none; border-radius: 15px; font-size: 11px; font-weight: 500; line-height: 1.3; color: #77746d; transition: color .18s ease, background-color .18s ease, transform .14s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
    .mobile-bottom-nav__icon { display: grid; place-items: center; width: 36px; height: 29px; border-radius: 10px; color: currentColor; transition: background-color .18s ease, color .18s ease, transform .18s cubic-bezier(.2,.8,.2,1); }
    .mobile-bottom-nav__icon .buyer-nav-icon { width: 22px; height: 22px; }
    .mobile-bottom-nav__item.active { color: var(--theme-primary, #2f2d20); font-weight: 600; }
    .mobile-bottom-nav__item.active .mobile-bottom-nav__icon { background: var(--theme-soft, #f4eee8); color: var(--theme-primary, #2f2d20); transform: translateY(-1px); }
    .mobile-bottom-nav__item:active { transform: scale(.96); }
    .mobile-bottom-nav__item:focus-visible { outline: 2px solid var(--theme-primary, #2f2d20); outline-offset: 1px; }
    /* Reserve space at the end of the document, not before the page content. */
    .mobile-bottom-nav-spacer.hide-ke-show-block { display: none !important; }
    body:has(.mobile-bottom-nav) { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .account-shell .account-layout { min-width: 0; grid-template-columns: minmax(0, 1fr); }
    .account-shell .account-mobile-tabs { grid-column: 1 / -1; min-width: 0; max-width: 100%; scrollbar-width: thin; overscroll-behavior-x: contain; scroll-padding-inline: 8px; }
    .account-shell .account-mobile-tabs::-webkit-scrollbar { display: block; height: 4px; }
    .account-shell .account-mobile-tabs a { min-height: 44px; }
    .account-shell .account-content-card { grid-column: 1 / -1; }
    .container-kategori .kategori-arrow { width: 44px; height: 44px; right: 0; top: 32px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (hover: hover) and (max-width: 991.98px) {
    .mobile-bottom-nav__item:hover { background: rgba(199,167,138,.12); color: var(--theme-primary, #2f2d20); }
}
@keyframes buyer-search-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .buyer-mobile-header *, .mobile-bottom-nav *, #buyer-account-menu * { transition: none !important; animation: none !important; }
}

/* Compact desktop storefront header, isolated from mobile and admin navigation. */
@media (min-width: 992px) {
    .buyer-desktop-header.navbar { min-height: 72px; padding-block: 10px; margin-bottom: 0 !important; background: var(--theme-background, #fff); border-bottom: 1px solid var(--theme-soft-2, #e5e7eb); box-shadow: none; backdrop-filter: none; }
    .buyer-desktop-header.navbar > .container { flex-wrap: nowrap; align-items: center; gap: 28px; }
    .buyer-desktop-brand-cluster { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 16px; min-width: 0; }
    .buyer-desktop-header.navbar .buyer-desktop-brand { flex: 0 0 auto; min-height: 44px; margin: 0; padding: 0; }
    .buyer-desktop-header.navbar .buyer-desktop-logo { display: block; width: 180px; max-width: 100%; height: auto; object-fit: contain; }
    .buyer-brand-partnership { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
    .buyer-brand-partnership__divider { display: block; width: 1px; height: 22px; background: var(--theme-soft-2, #d8d6d0); }
    .buyer-brand-partnership__label { color: #696963; font-size: .625rem; line-height: 1; }
    .buyer-brand-partnership__logo { display: block; width: auto; height: 12px; max-width: 88px; object-fit: contain; }
    .buyer-desktop-header .navbar-collapse { flex: 1 1 auto; min-width: 0; gap: 20px; align-items: center; }
    .buyer-desktop-header.navbar .navbar-nav { flex: 1 1 auto; justify-content: center; align-items: center; gap: 6px; margin: 0 !important; }
    .buyer-desktop-header.navbar .nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 10px !important; font-size: .75rem; font-weight: 500; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; color: var(--theme-primary); }
    .buyer-desktop-header.navbar .nav-link::after { left: 10px; right: 10px; height: 1px; }
    .buyer-desktop-header.navbar .search-box { flex: 0 1 280px; width: clamp(180px, 20vw, 280px); min-width: 160px; margin-left: auto; }
    .buyer-desktop-header .search-box .input-group { flex-wrap: nowrap; min-height: 44px; border: 1px solid var(--theme-soft-2); border-radius: 6px; background: var(--theme-soft); box-shadow: none; overflow: hidden; }
    .buyer-desktop-header .search-box .search-input { min-width: 0; height: 44px; padding-inline: 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: .8125rem; color: var(--theme-primary); }
    .buyer-desktop-header .search-box .search-input::placeholder { color: #737373; }
    .buyer-desktop-header .search-box .input-group:focus-within { outline: 2px solid var(--theme-primary); outline-offset: 2px; }
    .buyer-desktop-header .buyer-desktop-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; margin-left: auto; }
    .buyer-desktop-header .search-box + .buyer-desktop-actions { margin-left: 0; }
    .buyer-desktop-header.navbar :is(.buyer-desktop-actions,.search-box) .btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--theme-primary); box-shadow: none; }
    .buyer-desktop-header.navbar :is(.buyer-desktop-actions,.search-box) .btn:hover { color: var(--theme-primary-hover); background: transparent; }
    .buyer-desktop-header .buyer-action-icon { width: 21px; height: 21px; }
    .buyer-desktop-header :is(a,button):focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 3px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .buyer-desktop-header.navbar > .container { gap: 20px; }
    .buyer-desktop-header .navbar-collapse { gap: 12px; }
    .buyer-desktop-brand-cluster { gap: 10px; }
    .buyer-desktop-header.navbar .buyer-desktop-logo { width: 145px; }
    .buyer-brand-partnership { gap: 7px; }
    .buyer-brand-partnership__label { display: none; }
    .buyer-brand-partnership__divider { height: 20px; }
    .buyer-brand-partnership__logo { height: 11px; max-width: 76px; }
    .buyer-desktop-header.navbar .nav-link { padding-inline: 8px !important; }
}

/* Shared buyer logout confirmation, outside fixed navigation containers. */
.buyer-logout-dialog {
    width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
    margin: auto; padding: 28px; border: 1px solid var(--theme-soft, #e8e5de);
    border-radius: 18px; background: var(--theme-background, #fff); color: var(--theme-primary, #2f2d20);
    box-shadow: 0 20px 70px rgb(0 0 0 / 16%);
}
.buyer-logout-dialog::backdrop { background: rgb(0 0 0 / 42%); }
.buyer-logout-dialog h2 { margin: 0 0 12px; font-family: inherit; font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
.buyer-logout-dialog p { margin: 0; font-size: .875rem; line-height: 1.65; }
.buyer-logout-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.buyer-logout-actions button { min-width: 96px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--theme-primary, #2f2d20); border-radius: 9px; background: transparent; color: inherit; font: inherit; font-size: .875rem; cursor: pointer; }
.buyer-logout-actions [data-logout-confirm] { background: var(--theme-primary, #2f2d20); color: #fff; }
.buyer-logout-actions button:focus-visible { outline: 2px solid var(--theme-primary, #2f2d20); outline-offset: 3px; }
.buyer-logout-actions button:disabled { opacity: .6; cursor: wait; }
