/* --- 1. SIDEBAR HEADER & LOGO --- */
.st-sidebar-header {
    padding: 20px;
    background: var(--bg-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.st-sidebar-header .st-brand-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-color);
    text-transform: uppercase;
}

.st-sidebar-header .st-brand-text span {
    color: var(--primary-color);
}

#mobile-sidebar-close {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-light);
    border: none; 
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- 2. MENU LIST (CLEAN & SNAPPY) --- */
.st-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.st-mobile-menu {
    list-style: none; padding: 0 16px; margin: 0;
}

.st-mobile-menu li {
    margin-bottom: 4px;
}

.st-mobile-menu li a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--border-radius); /* Akila: 16px | Luxury: 0px */
    text-transform: var(--btn-text-transform); /* Luxury: Uppercase */
    transition: all 0.2s ease;
}

.st-mobile-menu li a:active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* --- 3. FOOTER SIDEBAR (WhatsApp) --- */
.st-sidebar-footer {
    padding: 20px;
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: auto;
}

.st-btn-wa-sidebar {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; 
    background: #25D366; /* Tetap Hijau WA */
    color: #fff !important;
    padding: 16px; 
    border-radius: var(--border-radius);
    text-decoration: none; 
    font-weight: 700;
    font-family: var(--font-body);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* --- 4. MEDIA QUERIES (CORE LOGIC) --- */
@media (max-width: 991px) {
    .st-mobile-sidebar {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0; right: 0;
        width: 85%; max-width: 320px;
        height: 100dvh;
        background: var(--bg-color);
        z-index: 99999;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .st-mobile-sidebar.active { transform: translateX(0); }

    .st-body-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(4px);
        z-index: 99998;
        opacity: 0; visibility: hidden;
        transition: 0.3s ease;
    }
    .st-body-overlay.active { opacity: 1; visibility: visible; }
}

/* --- KATALOG BOTTOM SHEET (SKIN SYNCED) --- */
.st-katalog-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-color);
    z-index: 100001;
    /* SINKRON: Akila membulat, Luxury tajam */
    border-radius: var(--border-radius) var(--border-radius) 0 0; 
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.st-katalog-sheet.active {
    transform: translateY(0);
}

.st-sheet-handle {
    width: 40px; height: 4px;
    background: var(--border-color, rgba(0,0,0,0.1));
    margin: 12px auto;
    border-radius: 2px;
}

/* Header & Title */
.st-sheet-header {
    padding: 10px 20px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    position: relative;
}

.st-sheet-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.st-sheet-title h3 {
    margin: 0;
    font-family: var(--font-heading); /* SINKRON: Playfair vs Jakarta */
    font-size: 1.1rem;
    color: var(--text-color);
    text-transform: var(--btn-text-transform); /* SINKRON: Luxury jadi Uppercase */
}

/* Close Button */
.st-sheet-close {
    margin-left: auto;
    background: var(--bg-light);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-color);
    cursor: pointer;
}

.st-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 40px 20px;
}

/* Menu Grid/List */
.st-katalog-grid {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.st-katalog-grid > li {
    list-style: none !important;
    margin-bottom: 8px !important;
}

.st-katalog-grid > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius); /* SINKRON */
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(0,0,0,0.03);
    text-transform: var(--btn-text-transform); /* SINKRON */
    transition: 0.2s ease;
}

/* Indikator Panah */
.st-katalog-grid .menu-item-has-children > a::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.st-katalog-grid .menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Sub-Menu */
.st-katalog-grid .sub-menu {
    list-style: none !important;
    padding: 5px 0 10px 15px !important;
    margin: 0 !important;
    display: none;
    border-left: 2px solid var(--accent-hover); /* Memberi aksen garis di kiri */
    margin-left: 20px !important;
}

.st-katalog-grid .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.st-katalog-grid .sub-menu li a {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
}

/* State Aktif */
.st-katalog-grid li a:active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}