        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #c93333 0%, #3fac005c 100%);
            min-height: 100vh;
        }
        
        img#detailImage {
            object-fit: cover !important;
            aspect-ratio: 1;
            max-width: 100%; /* default penuh */
        }

        /* Mobile (≤ 576px misalnya bootstrap sm) */
        @media (max-width: 600px) {
            img#detailImage {
            max-width: 40% !important;
            }
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* Login Page */
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }
        
        .login-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 400px;
            text-align: center;
        }
        
        .logo {
            font-size: 2.5em;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 10px;
        }

        img.logo-img {
            width: 250px;
        }
        img.logo-nav {
            width: 145px;
        }
        .subtitle {
            color: #000000;
            margin-bottom: 10px;
        }
        
        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 500;
        }

        .modal-dialog.modal-lg.modal-dialog-scrollable {
            align-content: center;
        }
        
        .form-group input {
            width: 100%;
            padding: 12px;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .login-btn {
            width: 100%;
            padding: 12px;
            background: #c93333;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s ease;
        }
        
        .login-btn:hover {
            transform: translateY(-2px);
        }
        
        /* Dashboard Styles */
        .dashboard {
            display: none;
            background: #f8f9fa;
            min-height: 100vh;
        }
        
        .navbar {
            background: #ffffffe8;
            background-color: #ffffffe8;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
        .nav-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: between;
            align-items: center;
            padding: 0 20px;
        }
        
        .nav-brand {
            font-size: 1.8em;
            font-weight: bold;
            color: #667eea;
            text-decoration: none;
        }
        
        .nav-actions {
            display: flex;
            gap: 15px;
            margin-left: auto;
        }
        /* hide harga grosir di seluruh halaman saat toggle aktif */
        .hide-wholesale .wholesale-row { 
            display: none !important; 
        }

        /* kecilkan teks brand */
        .product-brand { 
            color:#6b7280; 
            display:block; 
            margin-top:2px; }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: #667eea;
            color: white;
            text-decoration: none;
        }
        
        .btn-primary:hover {
            background: #5a6fd8;
        }
        
        .btn-secondary {
            background: #6c757d;
            color: white;
        }
        a.btn.btn-ghost {
            border: 1px solid;
            text-decoration: none;
            padding: 10px 15px;
            color: #333;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            text-align: center;
        }
        
        .stat-number {
            font-size: 2.5em;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 5px;
        }
        
        .stat-label {
            color: #666;
            font-size: 1.1em;
        }
        
        .products-section {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .section-title {
            font-size: 1.8em;
            color: #333;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }
        
        .product-card {
            border: 2px solid #e9ecef;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            background: white;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .product-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(45deg, #f8f9fa, #e9ecef);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 3em;
        }
        
        .product-info {
            padding: 20px;
        }
        
        .product-name {
            font-size: 1.2em;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
        }
        
        .product-prices {
            margin-bottom: 15px;
        }
        
        .price-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .price-label {
            color: #666;
            font-size: 0.9em;
        }
        
        .price-value {
            font-weight: 600;
            color: #667eea;
        }
        
        .product-actions {
            display: flex;
            gap: 10px;
        }
        
        .btn-sm {
            padding: 6px 12px;
            font-size: 0.9em;
            flex: 1;
        }
        
        .btn-edit {
            background: #28a745;
            color: white;
        }
        
        .btn-delete {
            background: #dc3545;
            color: white;
        }
           
        
        .modal-title {
            font-size: 1.5em;
            color: #333;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 1.5em;
            color: #666;
            cursor: pointer;
            padding: 5px;
        }
        
        .upload-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .form-row {
            display: flex;
            gap: 15px;
        }
        
        .form-row .form-group {
            flex: 1;
        }
        
        .file-upload {
            border: 2px dashed #667eea;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            background: #f8f9ff;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .file-upload:hover {
            background: #f0f2ff;
        }
        
        .file-upload input[type="file"] {
            display: none;
        }
        
        .file-icon {
            font-size: 3em;
            color: #667eea;
            margin-bottom: 10px;
        }
        
        .file-text {
            color: #667eea;
            font-weight: 500;
        }
        
        .page {
            display: none;
        }
        
        .page.active {
            display: block;
        }
        .filter-row {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }
        .filter-row input {
            /* width: 100%; */
            padding: 12px;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
         .filter-row select {
            /* width: 100%; */
            padding: 12px;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        
        @media (max-width: 768px) {
            .nav-content {
                flex-direction: column;
                gap: 15px;
            }
            
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            }
            
            .products-grid {
                grid-template-columns: 1fr;
            }
            
            .form-row {
                flex-direction: column;
            }
        }
                        .modal-lg .modal-content { max-width: 960px; }
                .detail-grid {
                display: grid; gap: 1rem;
                grid-template-columns: 360px 1fr;
                }
                .detail-image { background: #fafafa; border-radius: 12px; overflow: hidden; }
                .detail-info .kv { display: grid; grid-template-columns: 180px 1fr; gap: .25rem .75rem; margin: .35rem 0; }
                .detail-info .k { color: #666; }
                .detail-info .v { font-weight: 600; }
                .detail-info .desc .k { margin-top: .5rem; color:#666; }
                .detail-actions { margin-top: 1rem; display: flex; gap: .5rem; }
                @media (max-width: 800px) {
                .detail-grid { grid-template-columns: 1fr; }
                }
        /* Visually hidden (screen-reader only) */
                .sr-only{
                position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
                clip:rect(0,0,0,0); white-space:nowrap; border:0;
                }

                /* FILTER: mobile-first */
                .filter-row{
                display:grid;
                grid-template-columns: 1fr;       /* tumpuk vertikal di mobile */
                gap:.5rem;
                align-items: center;
                }

                /* input/select full width & nyaman disentuh */
                .filter-row input[type="search"],
                .filter-row select{
                width:100%;
                min-height:44px;                   /* nyaman jempol */
                font-size:16px;                    /* hindari auto-zoom iOS */
                padding:.5rem .75rem;
                }

                /* aksi tetap sejajar */
                .filter-actions{
                display:flex;
                gap:.5rem;
                justify-content:flex-start;        /* mobile: kiri */
                }

                /* Tablet (>= 640px) — 2 kolom */
                @media (min-width:640px){
                .filter-row{
                    grid-template-columns: 1fr 1fr;  /* q | cat */
                }
                .filter-actions{
                    justify-content:flex-start;
                }
                }

                /* Desktop (>= 992px) — 4 kolom: q | cat | brand | actions */
                @media (min-width:992px){
                .filter-row{
                    grid-template-columns: 2fr 1fr 1fr auto;
                    align-items: end;                /* tombol rata bawah */
                    column-gap:.75rem;
                }
                .filter-actions{
                    justify-content:flex-end;        /* kanan di desktop */
                }
                }
                
