/* ============================================
   TOKO BOLOIN - Main Stylesheet
   E-Commerce B2C | Skripsi Fuad Hasan
   ============================================ */

:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --secondary: #4361ee;
    --accent: #06d6a0;
    --danger: #ef233c;
    --warning: #ffd166;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-light: #f8faff;
    --border: #e5e7f0;
    --shadow: 0 4px 24px rgba(26,35,126,0.10);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(26,35,126,0.3);
}
.navbar .container {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 66px;
    flex-wrap: nowrap;
    overflow: hidden;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    flex-shrink: 0;
}
.brand-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.brand-name { display: block; font-size: 18px; font-weight: 700; line-height: 1.1; }
.brand-sub { display: block; font-size: 10px; opacity: 0.7; }

.nav-search {
    flex: 1;
    max-width: 460px;
}
.nav-search form {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}
.nav-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 9px 14px;
    color: white;
    font-size: 14px;
    outline: none;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.6); }
.nav-search button {
    background: var(--accent);
    border: none;
    padding: 9px 14px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}
.nav-search button:hover { background: #04b888; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    color: rgba(255,255,255,0.85);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 5px;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.15); color: white; }
.nav-cart { position: relative; font-size: 18px; }
.cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.nav-user {
    display: flex;
    gap: 4px;
}
.nav-user a {
    color: rgba(255,255,255,0.85);
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 13px;
    display: flex; align-items: center; gap: 5px;
    transition: all 0.2s;
}
.nav-user a:hover { background: rgba(255,255,255,0.15); color: white; }
.btn-login, .btn-register {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.btn-login { color: white; border: 1px solid rgba(255,255,255,0.4); }
.btn-login:hover { background: rgba(255,255,255,0.15); }
.btn-register { background: var(--accent); color: var(--primary); }
.btn-register:hover { background: #04b888; }
.nav-toggle { display: none; background: transparent; border: none; color: white; font-size: 20px; cursor: pointer; }

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 480px;
    overflow: hidden;
}
.slider-container { height: 100%; }
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s;
    padding: 0 40px;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content {
    max-width: 620px;
    color: white;
}
.slide-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 18px;
}
.slide-content h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}
.slide-content h1 span { color: var(--accent); }
.slide-content p { font-size: 17px; opacity: 0.85; margin-bottom: 28px; }
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--accent);
    color: var(--primary);
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s;
}
.btn-hero-primary:hover { background: #04b888; transform: translateY(-2px); }
.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); }
.slider-prev, .slider-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,0.4); }
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
    z-index: 10;
}
.slider-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}
.slider-dots .dot.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ===== FEATURES BAR ===== */
.features-bar {
    background: white;
    box-shadow: var(--shadow);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-item {
    display: flex; align-items: center; gap: 14px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.feature-item:hover { background: var(--bg-light); }
.feature-item i {
    font-size: 28px;
    color: var(--secondary);
    flex-shrink: 0;
}
.feature-item strong { display: block; font-size: 14px; font-weight: 700; }
.feature-item span { font-size: 12px; color: var(--text-muted); }

/* ===== SECTION ===== */
.section { padding: 60px 0; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}
.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    position: relative;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 40px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-header p { color: var(--text-muted); margin-top: 8px; }
.lihat-semua {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    display: flex; align-items: center; gap: 5px;
    transition: gap 0.2s;
}
.lihat-semua:hover { gap: 10px; }

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.category-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.category-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 24px rgba(67,97,238,0.15);
    transform: translateY(-4px);
}
.cat-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    transition: transform 0.2s;
}
.category-card:hover .cat-icon { transform: scale(1.1); }

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 12px 32px rgba(67,97,238,0.15);
    transform: translateY(-5px);
}
.badge-kondisi {
    position: absolute;
    top: 10px; left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}
.badge-kondisi.second { background: #fff3cd; color: #856404; }
.badge-kondisi.digital { background: #d1e7dd; color: #0f5132; }
.badge-kondisi.baru { background: #cfe2ff; color: #084298; }

.product-img {
    height: 180px;
    background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.img-placeholder {
    width: 80px; height: 80px;
    background: var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    color: var(--text-muted);
}
.product-info { padding: 14px 14px 6px; }
.product-category { font-size: 11px; color: var(--secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.product-info h4 { font-size: 14px; font-weight: 700; margin: 4px 0 8px; line-height: 1.4; color: var(--text); }
.product-price { font-size: 17px; font-weight: 800; color: var(--secondary); margin-bottom: 4px; }
.product-stock { font-size: 12px; }
.stok-ok { color: #198754; }
.stok-habis { color: var(--danger); }
.product-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px 14px;
}
.btn-detail {
    flex: 1;
    text-align: center;
    padding: 9px;
    background: var(--secondary);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-detail:hover { background: var(--primary); }
.btn-cart {
    width: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: var(--primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-cart:hover { background: #04b888; }

/* ===== BANNER SERVIS ===== */
.banner-servis {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 50px 0;
}
.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.banner-text h2 { color: white; font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.banner-text p { color: rgba(255,255,255,0.8); font-size: 15px; max-width: 500px; margin-bottom: 24px; }
.banner-actions { display: flex; gap: 14px; }
.btn-servis {
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}
.btn-servis:hover { background: var(--bg-light); transform: translateY(-2px); }
.btn-wa {
    background: #25d366;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s;
}
.btn-wa:hover { background: #1da851; transform: translateY(-2px); }
.banner-icon { font-size: 100px; color: rgba(255,255,255,0.1); flex-shrink: 0; }

/* ===== REVIEWS ===== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.review-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.25s;
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.review-stars { display: flex; gap: 3px; margin-bottom: 12px; }
.review-stars .fa-star { color: var(--border); font-size: 14px; }
.review-stars .fa-star.filled { color: var(--warning); }
.review-card p { color: var(--text); font-size: 14px; line-height: 1.6; margin-bottom: 16px; font-style: italic; }
.review-footer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
    width: 36px; height: 36px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    flex-shrink: 0;
}
.review-footer strong { display: block; font-size: 14px; font-weight: 700; }
.review-footer span { font-size: 12px; color: var(--text-muted); }

/* ===== INFO GRID ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.info-card {
    padding: 28px 22px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.25s;
}
.info-card:hover { border-color: var(--secondary); box-shadow: var(--shadow); }
.info-card i { font-size: 32px; color: var(--secondary); margin-bottom: 14px; }
.info-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.info-card a { color: var(--secondary); display: flex; align-items: center; justify-content: center; gap: 6px; }
.info-card a:hover { color: var(--primary); }

/* ===== FOOTER ===== */
.footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 50px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand { font-size: 20px; font-weight: 800; color: white; margin-bottom: 14px; }
.footer p { font-size: 13px; line-height: 1.8; }
.footer h4 { color: white; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.footer ul a:hover { color: var(--accent); }
.footer-sosmed { display: flex; gap: 10px; margin-top: 16px; }
.footer-sosmed a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: white;
    transition: all 0.2s;
}
.footer-sosmed a:hover { background: var(--accent); color: var(--primary); }
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-icons span {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ===== AUTH FORMS ===== */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-box {
    background: white;
    border-radius: 20px;
    padding: 42px 38px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo i { font-size: 40px; color: var(--secondary); }
.auth-logo h2 { font-size: 24px; font-weight: 800; color: var(--primary); margin-top: 8px; }
.auth-logo p { color: var(--text-muted); font-size: 14px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s;
    background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.btn-primary {
    width: 100%;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    display: flex; align-items: center; gap: 8px;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== PRODUK PAGE ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px 0;
}
.page-hero h1 { font-size: 28px; font-weight: 800; }
.page-hero p { opacity: 0.8; margin-top: 6px; }

.produk-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    padding: 40px 0;
}
.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}
.sidebar-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}
.sidebar-card h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1.5px solid var(--border); }
.filter-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: var(--text);
}
.filter-item:hover { background: var(--bg-light); }
.filter-item.active { background: #dbeafe; color: var(--secondary); font-weight: 600; }
.filter-item i { width: 18px; text-align: center; }

/* ===== DETAIL PRODUK ===== */
.detail-container { padding: 40px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.detail-img-main {
    aspect-ratio: 1;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.detail-img-main img { width: 100%; height: 100%; object-fit: contain; }
.detail-img-placeholder { font-size: 80px; color: var(--border); }
.detail-info h1 { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.detail-price { font-size: 30px; font-weight: 800; color: var(--secondary); margin: 16px 0; }
.detail-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-keranjang {
    flex: 1;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s;
}
.btn-keranjang:hover { background: var(--primary); }
.btn-wa-detail {
    flex: 1;
    background: #25d366;
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s;
}
.btn-wa-detail:hover { background: #1da851; }

/* ===== KERANJANG ===== */
.keranjang-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.keranjang-table thead th { background: var(--primary); color: white; padding: 14px 18px; text-align: left; font-size: 14px; }
.keranjang-table thead th:first-child { border-radius: 10px 0 0 10px; }
.keranjang-table thead th:last-child { border-radius: 0 10px 10px 0; }
.keranjang-table tbody tr { background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.keranjang-table tbody td { padding: 16px 18px; border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); }
.keranjang-table tbody td:first-child { border-left: 1.5px solid var(--border); border-radius: 10px 0 0 10px; }
.keranjang-table tbody td:last-child { border-right: 1.5px solid var(--border); border-radius: 0 10px 10px 0; }

/* ===== ADMIN ===== */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px;
    background: var(--primary);
    flex-shrink: 0;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-logo span { font-size: 18px; font-weight: 800; color: white; display: block; }
.admin-logo small { color: rgba(255,255,255,0.5); font-size: 12px; }
.admin-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,0.1); border-color: var(--accent); }
.admin-nav a i { width: 18px; text-align: center; }
.admin-main { margin-left: 250px; flex: 1; background: var(--bg-light); }
.admin-topbar {
    background: white;
    padding: 16px 30px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1.5px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 20px; font-weight: 800; color: var(--primary); }
.admin-content { padding: 30px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1.5px solid var(--border);
}
.stat-info strong { display: block; font-size: 26px; font-weight: 800; }
.stat-info span { font-size: 13px; color: var(--text-muted); }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }

.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.admin-table thead { background: var(--primary); }
.admin-table th { color: white; padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 600; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-light); }

.badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}
.badge-warning { background: #fff3cd; color: #856404; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #f3f4f6; color: #374151; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-search { display: none; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 66px;
        left: 0; right: 0;
        background: var(--primary);
        padding: 12px 16px;
        z-index: 999;
        gap: 4px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        width: 100%;
    }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: block; }
    .navbar .container { position: relative; }
    .hero-slider { height: 280px; }
    .slide { padding: 0 20px; }
    .slide-content h1 { font-size: 24px; }
    .slide-content p { font-size: 14px; }
    .btn-hero-primary, .btn-hero-secondary { padding: 10px 16px; font-size: 13px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .produk-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .banner-content { flex-direction: column; }
    .banner-icon { display: none; }
    .admin-sidebar { width: 200px; }
    .admin-main { margin-left: 200px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-bar .container { flex-wrap: wrap; }
    .feature-item { width: 50%; }
}
@media (max-width: 576px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .slide-content h1 { font-size: 20px; }
    .slide-content p { display: none; }
    .hero-slider { height: 240px; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .detail-actions { flex-direction: column; }
}

/* ===== MOBILE MENU TOGGLE ===== */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}