:root {
    --primary: #4A4A4A;
    --primary-dark: #202020;
    --primary-light: #7A7A7A;
    --bg-main: #F4F5F7;
    --text-main: #2D2D2D;
    --text-muted: #888888;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
}

/* 1. Top Mini Nav Bar */
.top-nav {
    background-color: var(--primary-dark);
    padding: 8px 0;
    font-size: 12px;
    color: #e0e0e0;
    display: block; /* Ditampilkan di semua device */
}

.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; padding: 0 15px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 20px;}
.nav-container::-webkit-scrollbar { display: none; }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: #e0e0e0; text-decoration: none; margin-right: 18px; transition: opacity 0.2s;}
.nav-links a:last-child { margin-right: 0; }
.nav-links a:hover { opacity: 0.7; }

/* 2. Main Large Header Search */
.header {
    background: var(--primary); /* Dark grey header */
    padding: 16px 0 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 0 15px; gap: 30px; }
.header-logo { color: white; display: flex; align-items: center; gap: 10px; font-size: 1.8rem; font-weight: 800; cursor: pointer; letter-spacing:-0.5px;}
.header-search { flex: 1; }
.search-box { display: flex; background: white; padding: 3px; border-radius: 6px; }
.search-box input { flex:1; border:none; padding: 10px 15px; outline:none; font-family: inherit; font-size: 14px; border-radius: 6px 0 0 6px;}
.search-btn { background: var(--primary-dark); border: none; color: white; padding: 0 24px; border-radius: 4px; cursor: pointer; transition: background 0.2s;}
.search-btn:hover { background: black; }
.search-tags { display: flex; gap: 15px; margin-top: 8px; font-size: 12px; }
.search-tags a { color: #d0d0d0; text-decoration: none; }
.search-tags a:hover { color: white; }
.header-cart { color: white; font-size: 1.6rem; position: relative; cursor: pointer; padding: 0 15px 0 20px; transition: transform 0.2s;}
.header-cart:hover { transform: scale(1.05); }
.cart-badge { position: absolute; top: -5px; right: 8px; background: white; color: var(--primary-dark); font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.2);}

/* 3. Main Center Content Box */
.main-body { max-width: 1200px; margin: 25px auto; padding: 0 10px; }

/* 4. Top Banners Layout */
.hero-wrapper { display: flex; gap: 10px; margin-bottom: 25px; }
.hero-carousel { flex: 2; background: white; border-radius: 8px; overflow: hidden; height: 235px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.carousel-img { width: 100%; height: 100%; object-fit: cover; }
.hero-side { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hero-side img { width: 100%; height: calc(235px / 2 - 5px); object-fit: cover; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }

/* 5. dense Icon Menu */
.menu-grid { display: grid; grid-template-columns: repeat(10, 1fr); background: white; padding: 25px 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 25px; overflow-x: auto; scrollbar-width: none; }
.menu-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; cursor: pointer; min-width: 80px; transition: transform 0.2s;}
.menu-item:hover { transform: translateY(-3px); }
.menu-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background-color: #f7f7f7; color: var(--primary-dark); transition: background 0.2s;}
.menu-item:hover .menu-icon { background-color: var(--primary); color: white;}
.menu-item span { font-size: 12px; line-height: 1.3; font-weight: 500; color: #444;}

/* 6. Flash Sale Region */
.flash-sale-section { background: white; margin-bottom: 25px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); overflow: hidden; }
.fs-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; border-bottom: 1px solid #f0f0f0; }
.fs-title { display: flex; align-items: center; gap: 8px;}
.fs-timer { background: var(--primary-dark); color: white; padding: 4px 10px; border-radius: 4px; font-weight: bold; font-size: 12px; letter-spacing: 1px;}
.fs-more { color: var(--primary-light); font-size: 13px; font-weight: 600; cursor: pointer;}
.fs-items { display: flex; gap: 15px; padding: 20px; overflow-x: auto; scrollbar-width: none; }
.fs-item { min-width: 160px; cursor: pointer;}
.fs-item img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; background:#f2f2f2;}
.fs-price { color: var(--primary-dark); font-size: 18px; font-weight: 800; text-align: center; margin-top: 12px;}
.fs-bar { background: #e0e0e0; height: 18px; border-radius: 10px; margin-top: 8px; position: relative; overflow: hidden;}
.fs-bar-fill { background: var(--primary-dark); height: 100%; border-radius: 10px; position:absolute; top:0; left:0;}
.fs-bar-text { position: absolute; width: 100%; text-align: center; font-size: 10px; color: white; line-height: 18px; text-transform: uppercase; font-weight: bold; z-index: 2;}

/* 7. REKOMENDASI grid list */
.recommendation-header { background: white; padding: 18px 0; text-align: center; color: var(--primary-dark); border-bottom: 3px solid var(--primary-dark); box-shadow: 0 2px 8px rgba(0,0,0,.04); font-weight: 800; font-size: 1.1rem; border-radius: 8px 8px 0 0;}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.product-card { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); position: relative; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; overflow: hidden;}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,.1);}
.product-img { width: 100%; padding-bottom: 100%; position: relative;}
.product-img img { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; }
.badge-mall { position: absolute; top:0; left:0; background: var(--primary-dark); color: white; font-size: 10px; padding: 4px 8px; font-weight: bold; border-bottom-right-radius: 8px; z-index: 2;}
.product-info { padding: 12px; flex-grow: 1; display: flex; flex-direction: column;}
.product-title { font-size: 13px; line-height: 18px; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; color: #222; font-weight: 500;}
.product-bottom { margin-top: auto;}
.product-price { color: var(--primary-dark); font-size: 16px; font-weight: 800; }
.product-sold { font-size: 11px; color: var(--text-muted); margin-top: 5px;}
.btn-add { width: 100%; margin-top: 12px; padding: 8px; background: transparent; border: 1.5px solid var(--primary-dark); color: var(--primary-dark); cursor: pointer; border-radius: 4px; font-size: 13px; font-weight: 600; transition: background 0.2s;}
.btn-add:hover { background: var(--primary-dark); color: white; }

/* Modals - Glassmorphism & Animations */
.modal-overlay { position: fixed; top: 0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: rgba(255, 255, 255, 0.95); padding: 25px; width: 90%; max-width: 380px; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.5); transform: translateY(20px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease; opacity: 0; }
.modal-overlay.active .modal-content { transform: translateY(0); opacity: 1; }
.btn-wa { display: block; background: linear-gradient(135deg, #25D366, #1ebe5a); color: white; padding: 12px; text-decoration: none; text-align: center; border-radius: 8px; font-weight: bold; margin-bottom: 12px; margin-top: 20px; border:none; transition: 0.2s; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); }
.btn-close { display: block; width: 100%; background: #f0f0f0; border: none; padding: 12px; color: #333; cursor: pointer; border-radius: 8px; font-weight: bold; transition: 0.2s;}
.btn-close:hover { background: #e0e0e0; transform: translateY(-1px);}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e8e8e8;
    z-index: 500;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
.mobile-bottom-nav .bn-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.mobile-bottom-nav .bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    cursor: pointer;
    flex: 1;
    color: #777;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-bottom-nav .bn-item i { font-size: 1.25rem; }
.mobile-bottom-nav .bn-item.active,
.mobile-bottom-nav .bn-item:active { color: var(--primary-dark); }
.mobile-bottom-nav .bn-item.bn-sell {
    background: var(--primary-dark);
    color: white;
    border-radius: 16px;
    padding: 8px 14px;
    margin: 0 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== MOBILE RESPONSIVE ===== */
@media(max-width: 768px) {

    /* Hide top info nav on mobile */
    .top-nav { display: none; }

    /* 2. Header adjustments */
    .header { padding: 10px 0 8px 0; }
    .header-container {
        gap: 10px;
        padding: 0 10px;
        flex-wrap: nowrap;
    }
    .header-logo {
        font-size: 1.2rem;
        gap: 6px;
        flex-shrink: 0;
    }
    .header-logo .logo-text { display: none; } /* Only show icon on very small screens */
    .header-search { flex: 1; min-width: 0; }
    .search-box input {
        padding: 9px 10px;
        font-size: 13px;
    }
    .search-btn { padding: 0 14px; }
    .search-tags { display: none; }
    .header-cart { padding: 0 5px 0 10px; font-size: 1.4rem; }
    .cart-badge { right: 0; font-size: 10px; padding: 1px 5px; }

    /* 3. Main body padding */
    .main-body {
        margin: 12px auto;
        padding: 0 8px;
        /* Add bottom space for mobile nav bar */
        padding-bottom: 70px;
    }

    /* 4. Hero Banner */
    .hero-wrapper { margin-bottom: 12px; }
    .hero-side { display: none; }
    .hero-carousel { height: 160px; border-radius: 8px; }

    /* 5. Promo Banner Strip (inline) */
    .main-body > div[style*="linear-gradient"] {
        padding: 12px 15px;
        flex-direction: row;
        gap: 10px;
    }
    .main-body > div[style*="linear-gradient"] strong { font-size: 0.95rem; }
    .main-body > div[style*="linear-gradient"] span { font-size: 0.78rem; }
    .main-body > div[style*="linear-gradient"] button {
        padding: 8px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* 6. Menu Grid — 5 per row on mobile */
    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px 2px;
        padding: 15px 5px;
        margin-bottom: 12px;
    }
    .menu-item { min-width: 55px; gap: 6px; }
    .menu-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.1rem;
    }
    .menu-item span { font-size: 10px; line-height: 1.2; }

    /* 7. Flash Sale section */
    .flash-sale-section { margin-bottom: 12px; }
    .fs-header { padding: 12px 15px; }
    .fs-title span { font-size: 1.1rem !important; }
    .fs-timer { font-size: 11px; padding: 3px 8px; }
    .fs-items { gap: 10px; padding: 12px; }
    .fs-item { min-width: 120px; }
    .fs-item img { height: 120px; }
    .fs-price { font-size: 14px; margin-top: 8px; }
    .fs-bar { height: 14px; }

    /* 8. Recommendation / Product Grid — 2 col */
    .recommendation-header {
        font-size: 0.9rem;
        padding: 14px 0;
        letter-spacing: 0.5px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 8px;
    }
    .product-info { padding: 8px; }
    .product-title { font-size: 12px; height: 32px; line-height: 16px; }
    .product-price { font-size: 14px; }
    .product-sold { font-size: 10px; }
    .btn-add { padding: 7px; font-size: 11px; margin-top: 8px; }

    /* 9. Modals — full bottom sheet style on mobile */
    .modal-overlay { align-items: flex-end; }
    .modal-content {
        width: 100%;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0;
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)) 20px;
        transform: translateY(100%);
        max-height: 92vh;
        overflow-y: auto;
    }
    .modal-overlay.active .modal-content { transform: translateY(0); }

    /* 10. Mobile bottom nav visible */
    .mobile-bottom-nav { display: block; }

    /* 11. Admin panel */
    #admin-panel { padding: 0 8px; margin: 12px auto; }
    #admin-panel > div:first-child {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    #admin-panel > div:first-child h2 { font-size: 1rem; }

    /* 12. Toast - full width on mobile */
    .toast-container { top: auto; bottom: 75px; left: 10px; right: 10px; }
    .toast-msg { transform: translateY(120%); }
    .toast-msg.show { transform: translateY(0); }
}

/* Extra small screens (< 380px) */
@media(max-width: 380px) {
    .menu-grid { grid-template-columns: repeat(5, 1fr); gap: 8px 0; }
    .menu-icon { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
    .menu-item span { font-size: 9px; }
    .header-logo { font-size: 1rem; }
    .search-box input { font-size: 12px; padding: 8px; }
    .product-title { font-size: 11px; }
    .product-price { font-size: 13px; }
}

/* Global Loader System */
.global-loader { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.85); backdrop-filter: blur(4px); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.global-loader.active { opacity: 1; pointer-events: auto; }
.loader-spinner { width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-dark); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader-text { font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; letter-spacing: 0.5px; }

/* Toast Notifications */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast-msg { background: rgba(30, 30, 30, 0.95); color: white; padding: 12px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.2); backdrop-filter: blur(5px); transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 10px;}
.toast-msg.show { transform: translateX(0); }
.toast-success i { color: #4caf50; font-size: 16px; }
.toast-error i { color: #f44336; font-size: 16px; }
.toast-info i { color: #2196f3; font-size: 16px; }

/* ===== SELLER DASHBOARD ===== */
#seller-dashboard {
    max-width: 700px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f5f6fa;
    padding-bottom: 70px;
}
.db-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.db-back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 13px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    transition: 0.2s;
}
.db-back-btn:hover { background: rgba(255,255,255,0.3); }
.db-header-title { font-size: 1.05rem; font-weight: 800; }
.db-profile-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #555 100%);
    color: white;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.db-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    border: 3px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
    color: white;
    letter-spacing: -1px;
}
.db-profile-info h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 3px; }
.db-profile-info p { font-size: 12px; opacity: 0.82; margin-bottom: 2px; }
.db-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
}
.db-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 50px;
    z-index: 99;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    scrollbar-width: none;
}
.db-tabs::-webkit-scrollbar { display: none; }
.db-tab-btn {
    flex: 0 0 auto;
    background: none;
    border: none;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.db-tab-btn.active { color: var(--primary-dark); border-bottom: 3px solid var(--primary-dark); }
.db-tab-btn:hover { color: var(--primary-dark); }
.db-tab-content { padding: 16px; display: none; }
.db-tab-content.active { display: block; animation: dbFadeIn 0.25s ease; }
@keyframes dbFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.db-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.db-section-title { font-size: 14px; font-weight: 800; color: #333; }
.db-add-btn {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}
.db-add-btn:hover { opacity: 0.85; }
.db-product-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
}
.db-product-img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f0f0f0; }
.db-product-info { flex: 1; min-width: 0; }
.db-product-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; margin-bottom: 4px; }
.db-product-price { color: var(--primary-dark); font-weight: 800; font-size: 14px; margin-bottom: 3px; }
.db-delete-btn {
    background: #fff0f0;
    color: #dc3545;
    border: 1px solid #ffcccc;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: 0.2s;
    font-family: inherit;
}
.db-delete-btn:hover { background: #dc3545; color: white; border-color: #dc3545; }
.db-empty { text-align: center; padding: 40px 20px; color: #bbb; }
.db-empty i { font-size: 3rem; margin-bottom: 12px; display: block; }
.db-order-card { background: white; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 5px rgba(0,0,0,0.07); border-left: 4px solid var(--primary-dark); }
.db-order-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-process { background: #fff3cd; color: #856404; }
.status-confirm { background: #d1ecf1; color: #0c5460; }
.status-done { background: #d4edda; color: #155724; }
.db-rating-summary { background: linear-gradient(135deg, #fff8e1, #fff3cd); border-radius: 14px; padding: 22px; text-align: center; margin-bottom: 15px; border: 1px solid #ffd54f; }
.db-rating-big { font-size: 3.5rem; font-weight: 900; color: #FFA726; line-height: 1; }
.db-stars { color: #FFA726; font-size: 15px; }
.db-review-card { background: white; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 5px rgba(0,0,0,0.07); }
.db-notif-card { background: white; border-radius: 12px; padding: 14px; margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 1px 5px rgba(0,0,0,0.07); }
.db-notif-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-green { background: #d4edda; color: #25D366; }
.notif-blue { background: #d1ecf1; color: #20A0FF; }
.notif-orange { background: #fff3cd; color: #e68a00; }
.db-notif-text { font-size: 13px; color: #333; font-weight: 500; }
.db-notif-time { font-size: 11px; color: #aaa; margin-top: 3px; }
.db-faq-item { background: white; border-radius: 12px; margin-bottom: 9px; overflow: hidden; box-shadow: 0 1px 5px rgba(0,0,0,0.07); }
.db-faq-q { padding: 15px 16px; font-size: 13px; font-weight: 700; color: #333; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: background 0.2s; user-select: none; }
.db-faq-q:hover { background: #f9f9f9; }
.faq-icon { font-size: 1.3rem; font-weight: 300; color: var(--primary-dark); flex-shrink: 0; line-height: 1; }
.db-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s; font-size: 13px; color: #666; line-height: 1.7; padding: 0 16px; }
.db-faq-a.open { max-height: 220px; padding: 0 16px 16px; }
.db-cs-card { background: white; border-radius: 14px; padding: 22px 20px; text-align: center; box-shadow: 0 1px 5px rgba(0,0,0,0.07); margin-bottom: 12px; }
.db-cs-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #25D366, #128C7E); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto 12px; box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
.db-cs-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin: 8px 0 0; }
.cs-online { background: #d4edda; color: #155724; }
.cs-busy { background: #fff3cd; color: #856404; }
.cs-offline { background: #f8d7da; color: #721c24; }
.db-cs-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 800; border: none; cursor: pointer; margin-bottom: 10px; font-family: inherit; transition: 0.2s; }
.db-cs-btn-wa { background: linear-gradient(135deg, #25D366, #1ebe5a); color: white; box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
.db-cs-btn-tel { background: linear-gradient(135deg, #20A0FF, #0077cc); color: white; box-shadow: 0 4px 12px rgba(32,160,255,0.3); }
.db-cs-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.db-hours-card { background: #f8f9fa; border-radius: 12px; padding: 16px; font-size: 13px; color: #555; border: 1px solid #eee; }
.bn-badge { position: absolute; top: 4px; right: 12px; background: #dc3545; color: white; border-radius: 50%; width: 17px; height: 17px; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid white; }

/* Form Labels & Inputs (Seller Modal) */
.sell-label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 12px; color: #555; text-transform: uppercase; letter-spacing: 0.3px; }
.sell-input { width: 100%; padding: 11px 12px; margin-bottom: 14px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 13px; transition: border 0.2s; box-sizing: border-box; }
.sell-input:focus { outline: none; border-color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(32,32,32,0.08); }

/* Category badge on product cards */
.cat-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: #f0f0f0; color: #555; margin-bottom: 4px; }
.kondisi-baru { background: #e8f5e9; color: #2e7d32; }
.kondisi-bekas { background: #fff3e0; color: #e65100; }

/* Share buttons on product cards */
.share-btns { display: flex; gap: 5px; margin-top: 8px; }
.share-btn { flex: 1; padding: 5px; border: none; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; transition: 0.2s; font-family: inherit; }
.share-wa { background: #e8f5e3; color: #25D366; }
.share-fb { background: #e8edf5; color: #1877f2; }
.share-btn:hover { filter: brightness(0.92); transform: scale(0.97); }

/* Product detail info row */
.prod-detail-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.prod-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.tag-stok { background: #e3f2fd; color: #1565c0; }
.tag-min { background: #f3e5f5; color: #6a1b9a; }
.tag-grosir { background: #e8f5e9; color: #1b5e20; }

/* Admin System Settings Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.settings-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.settings-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-dark);
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-bg {
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    transition: background 0.3s;
}

.toggle-dot {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.toggle-input {
    display: none;
}

.toggle-input:checked + .toggle-bg {
    background: var(--primary-dark);
}

.toggle-input:checked + .toggle-bg .toggle-dot {
    left: 22px;
}

.settings-save-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.settings-save-btn:hover {
    background: #004494;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    background: #f0f0f0;
}

.status-online { background: #e8f5e9; color: #2e7d32; }
.status-offline { background: #ffebee; color: #c62828; }
.status-warn { background: #fff8e1; color: #f57c00; }
