* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --primary: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.1);
    --card-bg: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body.dark {
    --bg: #111827;
    --surface: #1f2937;
    --text: #f3f4f6;
    --text-light: #9ca3af;
    --primary: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --border: #374151;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.4);
    --card-bg: #1f2937;
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding-top: 80px;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 1000;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.theme-toggle:hover { transform: rotate(30deg); }

.menu-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.menu-btn:hover { transform: rotate(90deg); }

.sidebar {
    position: fixed;
    top: 80px;
    left: -300px;
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--surface);
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    padding: 25px;
    z-index: 999;
}
.sidebar.active { left: 0; }
.sidebar h3 { color: var(--primary); margin-bottom: 20px; }
.menu-items { list-style: none; }
.menu-items li { margin-bottom: 8px; }
.menu-items button {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.menu-items button:hover { background: rgba(37,99,235,0.1); color: var(--primary); }
.menu-items button.active { background: var(--primary-gradient); color: white; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.hero-home { text-align: center; margin-bottom: 40px; }
.hero-home .logo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-hover);
    margin-bottom: 20px;
}
.hero-home h1 { font-size: 2.8rem; font-weight: 700; }
.hero-home h1 span { color: var(--primary); }
.hero-home .badge {
    display: inline-block;
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin: 15px 0 10px;
}
.hero-home .description { max-width: 600px; margin: 0 auto; color: var(--text-light); }

.view-all-btn-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px;
}

.separator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 40px;
    color: var(--text-light);
}
.separator .line { flex: 1; height: 1px; background: var(--border); }
.separator i { color: var(--primary); }

.alasan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.alasan-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
}
.alasan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.alasan-icon {
    width: 60px;
    height: 60px;
    background: rgba(37,99,235,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 1.8rem;
}
.alasan-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.alasan-card p { color: var(--text-light); font-size: 0.95rem; }

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.products-count {
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
}
.carousel-container { position: relative; margin: 0 -10px; }
.products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
}
.products-carousel::-webkit-scrollbar { height: 6px; }
.products-carousel::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow);
    color: var(--primary);
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}
.carousel-btn:hover { background: var(--primary-gradient); color: white; }
.carousel-btn.prev { left: -15px; }
.carousel-btn.next { right: -15px; }

.product-card {
    flex: 0 0 260px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: 0.3s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.product-card.sold-out { opacity: 0.7; }
.sold-out-badge, .rekomendasi-badge {
    position: absolute;
    top: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    z-index: 2;
}
.sold-out-badge { right: 12px; background: var(--danger); color: white; }
.rekomendasi-badge {
    left: 12px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--border);
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.product-card:hover .product-image { transform: scale(1.05); }
.product-info { padding: 16px; }
.product-name {
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 45px;
}
.product-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.product-actions { display: flex; gap: 8px; }
.view-btn, .buy-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.view-btn {
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    flex: 1;
}
.view-btn:hover { background: rgba(37,99,235,0.2); }
.buy-btn {
    background: var(--primary-gradient);
    color: white;
    flex: 2;
}
.buy-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.buy-btn:disabled { background: var(--text-light); cursor: not-allowed; }

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.testimonials-count {
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
}
.testimonials-carousel-container {
    position: relative;
    margin: 0 -10px;
}
.testimonials-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
}
.testimonials-carousel::-webkit-scrollbar { height: 6px; }
.testimonials-carousel::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.testimonial-card {
    flex: 0 0 400px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.testimonial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-btn.testimonial-prev { left: -15px; }
.carousel-btn.testimonial-next { right: -15px; }

.feedback-form, .admin-form {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-weight: 500; }
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
    transition: 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); outline: none; }

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-gradient { background: var(--primary-gradient); color: white; }
.btn-secondary { background: rgba(37,99,235,0.1); color: var(--primary); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.upload-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.upload-group input[type="file"] { display: none; }
.upload-btn {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}
.upload-status {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.admin-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
}
.admin-scroll::-webkit-scrollbar { height: 6px; }
.admin-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.admin-card {
    flex: 0 0 280px;
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.admin-card .card-header { display: flex; gap: 12px; margin-bottom: 15px; }
.admin-card .card-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}
.admin-card .card-info { flex: 1; }
.admin-card .card-name { font-weight: 600; }
.admin-card .card-price { color: var(--primary); font-weight: 600; }
.admin-card .card-actions { display: flex; gap: 8px; }
.admin-btn {
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: 0.2s;
    flex: 1;
}
.admin-btn.toggle { background: rgba(245,158,11,0.1); color: var(--warning); }
.admin-btn.toggle.active { background: rgba(16,185,129,0.1); color: var(--success); }
.admin-btn.edit { background: rgba(37,99,235,0.1); color: var(--primary); }
.admin-btn.delete { background: rgba(239,68,68,0.1); color: var(--danger); }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    animation: fadeModal 0.3s ease;
}
.modal.active { display: flex; }
@keyframes fadeModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-content {
    background: var(--surface);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-header {
    padding: 16px 20px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}
.modal-body { padding: 20px; overflow-y: auto; }
.modal-body img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}
.detail-description {
    background: var(--bg);
    padding: 20px;
    border-radius: 10px;
    line-height: 1.8;
    max-height: 300px;
    overflow-y: auto;
}
.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}
.payment-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}
.payment-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.payment-card.selected {
    border-color: var(--primary);
    background: rgba(37,99,235,0.05);
}
.payment-icon {
    width: 50px;
    height: 50px;
    background: rgba(37,99,235,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}
.payment-info { flex: 1; }
.payment-name { font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.payment-desc { color: var(--text-light); font-size: 0.85rem; }
.payment-detail {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--border);
}
.payment-detail-title { font-weight: 600; margin-bottom: 15px; color: var(--primary); }
.payment-number {
    background: var(--surface);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: monospace;
    font-size: 1.1rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.copy-btn {
    background: rgba(37,99,235,0.1);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
}
.instruction-list { margin: 15px 0; padding-left: 20px; color: var(--text-light); }
.instruction-list li { margin-bottom: 8px; }
.qr-image {
    width: 200px;
    height: 200px;
    margin: 15px auto;
    display: block;
    border-radius: 16px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}
.qr-image:hover { transform: scale(1.05); box-shadow: var(--shadow); }
.note {
    margin-top: 15px;
    padding: 12px;
    background: rgba(239,68,68,0.1);
    border-radius: 12px;
    color: var(--danger);
    font-size: 0.9rem;
    border-left: 4px solid var(--danger);
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    transform: translateX(400px);
    opacity: 0;
    transition: 0.3s;
    z-index: 1200;
}
.notification.active { transform: translateX(0); opacity: 1; }
.notification.error { background: var(--danger); }
.notification.success { background: var(--success); }

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.social-media { display: flex; justify-content: center; gap: 12px; margin: 20px 0; }
.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(37,99,235,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}
.social-icon:hover { background: var(--primary-gradient); color: white; transform: translateY(-3px); }

@media (max-width: 640px) {
    .alasan-grid { grid-template-columns: 1fr; }
    .upload-group { flex-direction: column; align-items: stretch; }
    .upload-btn { text-align: center; }
    .testimonial-card { flex: 0 0 280px; height: 210px; }
}
