/* --- DGITECH STORE: MODERN SUPERAPP THEME --- */

:root {
    --primary-blue: #0d6efd;
    --dark-blue: #0a58ca;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    /* padding-bottom: 80px; Jika menggunakan bottom nav, aktifkan ini */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* 1. APP HEADER & NAVIGATION */
.navbar-white {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

/* Fix Hamburger Menu agar tidak ada kotak border jelek */
.navbar-toggler {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Search Box Modern */
.search-box {
    background: #f1f3f5;
    border-radius: 50px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: 0.3s;
}
.search-box:focus-within {
    background: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Avatar User di Header */
.user-avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    padding: 1px;
    transition: 0.3s;
}
.user-avatar:hover {
    border-color: var(--primary-blue);
}

/* 2. MENU SLIDER (HORIZONTAL SCROLL SUPERAPP STYLE) */
/* Ini penting agar menu ikon bulat di index.php bisa digeser di HP */
.menu-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll di iOS */
    padding: 10px 5px;
    scrollbar-width: none; /* Firefox hide scrollbar */
}
.menu-slider::-webkit-scrollbar { 
    display: none; /* Chrome hide scrollbar */
}

.menu-item-nav {
    flex: 0 0 auto;
    transition: transform 0.2s;
    cursor: pointer;
}
.menu-item-nav:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 55px; height: 55px;
    border-radius: 18px; /* Squircle shape */
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Warna-warni Menu */
.bg-blue { background: linear-gradient(135deg, #4285F4, #0d6efd); }
.bg-green { background: linear-gradient(135deg, #34A853, #2ecc71); }
.bg-red { background: linear-gradient(135deg, #EA4335, #ff4757); }
.bg-yellow { background: linear-gradient(135deg, #F9CA24, #f0932b); }

/* 3. PRODUCT CARDS */
.card-product {
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    background: #fff;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    border-color: #e2e2e2;
}

.card-img-top {
    transition: transform 0.3s;
}
.card-product:hover .card-img-top {
    transform: scale(1.02);
}

.card-title {
    font-size: 13px;
    line-height: 1.4;
    height: 38px; /* Batasi 2 baris */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 4. UTILITIES & BADGES */
.rounded-4 { border-radius: 16px !important; }

/* Badge Status Pesanan */
.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.5em 0.8em;
}

/* Live Search Result Box */
#searchResult {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1060;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #f0f0f0;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: 0.2s;
    text-decoration: none;
    color: var(--text-dark);
}
.search-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-blue);
}
.search-item img {
    width: 40px; height: 40px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

/* 5. SIDEBAR ADMIN & PARTNER */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
    background-color: #e7f1ff;
    color: var(--primary-blue);
}
.sidebar-link i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

/* 6. MOBILE BOTTOM NAV (Opsional jika ingin dipakai) */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #eee;
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

/* SCROLLBAR CUSTOM */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #dcdcdc; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }