/* General Styles */
:root {
    /* Brand Colors (Green Light Theme) */
    --primary-color: #4CAF50;
    /* Fresh Green */
    --primary-light: #66bb6a;
    /* Lighter Green for hover */
    --secondary-color: #009688;
    /* Teal as a secondary accent */
    --accent-color: #ff9800;
    /* Orange for highlights/warnings */

    /* Neutrals for Light Mode */
    --background-light: #f4f7f6;
    /* Very light gray-green background */
    --surface-light: #ffffff;
    /* White for main container & cards */
    --text-dark: #2c3e50;
    /* Dark blue-gray for text */
    --text-muted: #8492a6;
    /* Muted gray for secondary text */
    --border-light: #e0e0e0;
    /* Light gray border color */
    --input-bg-light: #f8f9fa;
    /* Light gray for input background */
    --focus-ring: rgba(76, 175, 80, 0.4);
    /* Primary color with transparency */

    /* Status Colors */
    --status-available: #4CAF50;
    /* Green */
    --status-unavailable: #F44336;
    /* Red */
    --status-pending: #FFC107;
    /* Amber */
    --status-shipping: #2196F3;
    /* Blue */
    --status-completed: #607D8B;
    /* Blue Grey */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    padding: 1rem;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    background-color: var(--surface-light);
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--surface-light);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-currency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 45px;
    /* Sesuaikan ukurannya jika perlu */
    height: 45px;
    /* Sesuaikan ukurannya jika perlu */
    object-fit: contain;
    /* Memastikan logo tidak gepeng */
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: -0.2rem;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.auth-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-role {
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    color: #fff;
}

.user-role.admin {
    background-color: var(--primary-color);
}

.user-role.user {
    background-color: var(--secondary-color);
}

.user-role.vendor {
    background-color: var(--accent-color);
}


/* === STYLING UNTUK DROPDOWN PROFIL BARU === */

.profile-dropdown {
    position: relative;
    /* Penting untuk posisi dropdown */
    display: inline-block;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Membuat gambar menjadi bulat */
    object-fit: cover;
    /* Memastikan gambar tidak gepeng */
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: transform 0.2s ease;
}

.profile-picture:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--focus-ring);
}

.dropdown-balance {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    /* Warna latar sedikit beda */
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.dropdown-balance i {
    color: var(--text-muted);
}

.dropdown-balance span {
    font-weight: 600;
    color: var(--text-dark);
}

.dropdown-menu {
    display: none;
    /* Sembunyikan secara default */
    position: absolute;
    top: 120%;
    /* Posisi sedikit di bawah gambar profil */
    right: 0;
    background-color: var(--surface-light);
    min-width: 200px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1001;
    border: 1px solid var(--border-light);
    overflow: hidden;
    /* Agar border-radius bekerja dengan baik */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.3;
}

.dropdown-header strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
}

.dropdown-header span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--background-light);
}

.dropdown-item i {
    width: 16px;
    /* Memberi ruang agar ikon dan teks sejajar */
    color: var(--text-muted);
}

.settings-info {
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-item strong {
    font-weight: 500;
    text-transform: capitalize;
}

.settings-info .form-group-inline {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-top: 0;
}

/* Menyamakan gaya label dengan teks statis lainnya */
.settings-info .form-group-inline label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0;
}

#settings-email,
#settings-no-telp {
    background-color: transparent;
    border: none;
    padding: 0;
    text-align: right;
    /* Membuat teks input rata kanan */
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    box-shadow: none;
    /* Menghilangkan box-shadow saat focus */
    border-radius: 0;
}

/* Memberi efek visual saat input di-klik/focus */
.settings-info .form-group-inline input:focus {
    outline: none;
    border-bottom: 2px solid var(--primary-color);
}

/* Membuat modal ubah password muncul di atas modal settings */
#change-password-modal {
    z-index: 1001;
    /* Lebih tinggi dari z-index modal biasa (1000) */
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.tab-btn {
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* Main Content */
main {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
}

/* Forms */
.form-group {
    flex: 1 1 calc(50% - 1rem);
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: var(--input-bg-light);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.form-static-text {
    padding: 0.8rem 1rem;
    background-color: #e9ecef;
    /* Warna abu-abu seperti input disabled */
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--surface-light);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: #f1f3f5;
    border-color: #ced4da;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-danger {
    background-color: var(--status-unavailable);
    color: #fff;
}

.btn-danger:hover {
    background-color: #e53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Filter Section */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    padding: 1rem;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.search-box {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 200px;
}

.search-box i {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.search-box input {
    flex-grow: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: var(--input-bg-light);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: var(--input-bg-light);
    color: var(--text-dark);
    font-size: 0.95rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238492a6'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

/* Grid & Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background-color: var(--surface-light);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card p strong {
    color: var(--text-dark);
    font-weight: 500;
}

.card-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-tersedia {
    background-color: rgba(76, 175, 80, 0.15);
    color: var(--status-available);
}

.status-habis {
    background-color: rgba(244, 67, 54, 0.15);
    color: var(--status-unavailable);
}

.status-belum-dibayar {
    background-color: rgba(255, 152, 0, 0.15);
    color: #FF9800;
}

.status-sedang-disiapkan {
    background-color: rgba(33, 150, 243, 0.15);
    color: #2196F3;
}

.status-siap-diambil {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.status-selesai {
    background-color: rgba(96, 125, 139, 0.15);
    color: var(--status-completed);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--surface-light);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.auth-modal {
    max-width: 400px;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--text-dark);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: slideIn 0.3s ease-out forwards;
}

.notification-success {
    background-color: #4CAF50;
}

.notification-error {
    background-color: #F44336;
}

.notification-info {
    background-color: #2196F3;
}

.notification-warning {
    background-color: #FFC107;
    color: #333;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Utility / Loading */
.loading {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2rem;
}

.login-terms {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
    margin: 1rem 0;
    line-height: 1.5;
}

.login-terms a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-terms a:hover {
    text-decoration: underline;
}

.policy-content {
    max-height: 60vh;
    /* Batasi tinggi, 60% dari tinggi viewport */
    overflow-y: auto;
    /* Tambahkan scrollbar jika konten panjang */
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
    background-color: var(--background-light);
    /* Latar sedikit berbeda */
    border-radius: 8px;
}

.policy-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.policy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.showcase-section {
    margin-bottom: 3rem;
    padding: 0 1.5rem;
    /* Tambahkan padding agar tidak terlalu mepet */
}

.showcase-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.showcase-section .section-header h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
}

.view-all-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--accent-color);
}

/* Placeholder card styles */
.product-card.placeholder {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    /* Tinggi minimum agar placeholder terlihat */
    background-color: var(--card-bg);
    /* Warna background sama seperti card */
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    /* Untuk animasi shimmer */
}

.placeholder-image {
    width: 100%;
    height: 150px;
    /* Tinggi gambar placeholder */
    background-color: var(--bg-light);
    /* Warna abu-abu */
}

.placeholder-text {
    width: 80%;
    height: 1.2em;
    background-color: var(--bg-light);
    /* Warna abu-abu */
    margin: 0.5rem 1rem;
    border-radius: 4px;
}

.placeholder-text.short {
    width: 50%;
    height: 1em;
    margin-bottom: 1rem;
}

/* Shimmer animation */
.shimmer {
    background: linear-gradient(to right, #f6f7f8 0%, #edeef0 20%, #f6f7f8 40%);
    background-size: 800px 104px;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

/* Mengatur grid untuk produk */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .showcase-section {
        padding: 0 1rem;
    }
}

/* Desain Ulang Kartu Keranjang */
.cart-item-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    position: relative;
}

.cart-item-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
}

.cart-item-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.cart-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.cart-item-subtotal {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-remove-btn:hover {
    color: var(--status-unavailable);
}

/* Kontainer utama untuk ringkasan keranjang */
#cart-summary {
    margin-top: 2rem;
    background-color: #fafafa;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    /* Membuat elemen di dalamnya tersusun ke bawah */
    gap: 1.5rem;
    /* Memberi jarak antar bagian */
}

/* Bagian pemilihan metode pembayaran */
.payment-method-selection h4 {
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1rem;
}

.payment-options {
    display: flex;
    gap: 1rem;
}

.payment-options input[type="radio"] {
    display: none;
    /* Sembunyikan radio button asli */
}

.payment-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.payment-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.payment-option span {
    font-weight: 500;
}

/* Style saat radio button dipilih */
.payment-options input[type="radio"]:checked+.payment-option {
    border-color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.05);
}

.payment-options input[type="radio"]:checked+.payment-option i {
    color: var(--primary-color);
}

.delivery-method-selection {
    margin-top: 1.5rem;
    /* Jarak dari metode pembayaran */
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.delivery-method-selection h4 {
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1rem;
}

.delivery-options {
    display: flex;
    gap: 1rem;
}

.delivery-options input[type="radio"] {
    display: none;
    /* Sembunyikan radio button asli */
}

.delivery-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    /* Untuk posisi small */
}

.delivery-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.delivery-option span {
    font-weight: 500;
    margin-bottom: 0.25rem;
    /* Jarak ke teks biaya */
}

.delivery-option small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Style saat radio button dipilih */
.delivery-options input[type="radio"]:checked+.delivery-option {
    border-color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.05);
}

.delivery-options input[type="radio"]:checked+.delivery-option i {
    color: var(--primary-color);
}

.delivery-options input[type="radio"]:checked+.delivery-option small {
    color: var(--primary-color);
    /* Ubah warna biaya saat dipilih */
    font-weight: 500;
}

@media (max-width: 768px) {
    .delivery-option {
        padding: 0.8rem;
        /* Sedikit lebih kecil */
    }

    .delivery-option i {
        font-size: 1.5rem;
        /* Ikon lebih kecil */
    }

    .delivery-option span {
        font-size: 0.9rem;
    }

    .delivery-option small {
        font-size: 0.75rem;
    }
}

/* Aturan untuk baris terakhir (Total dan Tombol Checkout) */
.cart-summary-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Agar responsif di layar kecil */
    gap: 1rem;
}

/* Layout utama untuk Control Panel */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.admin-panel-section {
    background-color: #fafafa;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-panel-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.admin-form-row .form-group-full {
    grid-column: 1 / -1;
}

.admin-panel-section button {
    margin-top: 1rem;
}

.kpi-grid.admin-dashboard .kpi-card p {
    color: var(--primary-color);
    /* Warna hijau */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.admin-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Tambahan untuk Dashboard Vendor */
#vendor-dashboard .logo i {
    color: var(--accent-color);
    /* Warna ikon oranye untuk vendor */
}

#vendor-nav-tabs .tab-btn.active {
    background-color: var(--accent-color);
    /* Warna tab aktif oranye */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding: 0;
        /* Hapus padding agar container utama memenuhi layar */
    }

    .container {
        border-radius: 0;
        /* Hapus sudut melengkung di layar kecil */
        min-height: 100vh;
    }

    main {
        padding: 1rem;
        /* Beri sedikit ruang di konten utama */
    }

    /* Header */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    /* Navigasi */
    .nav-tabs {
        gap: 0.5rem;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid var(--border-light);
    }

    .tab-btn {
        flex-grow: 1;
        /* Biarkan tombol mengisi ruang yang tersedia */
        justify-content: center;
    }

    /* Section & Filter */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
        /* Buat semua item filter selebar kontainer */
        padding: 1rem 0.5rem;
    }

    /* Layout Grid menjadi 1 Kolom */
    .grid-container,
    .admin-grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    /* Kartu Pesanan menjadi 1 Kolom */
    .order-card-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .order-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .total-section {
        text-align: center;
    }

    /* Form menjadi 1 Kolom */
    .admin-form-row {
        grid-template-columns: 1fr;
    }

    /* Tombol menjadi lebar penuh di beberapa konteks */
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .card-actions .btn {
        width: 100%;
    }

    /* Penyesuaian lain */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .cart-item-card {
        flex-direction: column;
        align-items: center;
    }

    .cart-item-details {
        width: 100%;
        height: auto;
        text-align: center;
    }

    .cart-item-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-container {
        padding: 2rem 1rem;
    }

    .about-split-section {
        flex-direction: column !important;
    }
}

/* Styling untuk Kartu Pesanan Vendor */
.order-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vendor-order-card {
    background-color: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.vendor-order-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.order-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.order-card-header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-card-body {
    display: flex;
    /* Mengaktifkan Flexbox */
    justify-content: space-between;
    /* Mendorong item ke ujung kiri dan kanan */
    gap: 2rem;
    /* Memberi jarak minimal antar kolom jika layar sempit */
}

/* Memberi lebar pada kolom agar lebih seimbang */
.order-product-details {
    flex: 2;
    /* Kolom produk mengambil 2 bagian ruang */
}

.order-meta-details {
    flex: 1;
    /* Kolom info pembayaran mengambil 1 bagian ruang */
    text-align: right;
    /* Membuat teks di kolom kanan menjadi rata kanan */
}

/* Memberi jarak antar produk di dalam daftar */
.order-product-details .product-item:not(:last-child) {
    margin-bottom: 1rem;
    /* Menambah jarak bawah untuk setiap item kecuali yang terakhir */
}

/* Memberi jarak pada judul kolom */
.order-card-body h4 {
    margin-bottom: 1.2rem;
    /* Menambah jarak di bawah judul "Produk dalam Pesanan Ini" */
}

.order-card-body h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.order-customer-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
    /* Sedikit spasi di atas */
    line-height: 1.4;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.product-info p {
    margin: 0;
    font-weight: 500;
}

.product-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Dasar modal (overlay penuh layar) */
.modal {
    display: none;
    /* Sembunyikan secara default */
    position: fixed;
    /* Tetap di viewport */
    z-index: 1000;
    /* Di atas semua elemen lain */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Bisa di-scroll jika kontennya panjang */
    background-color: rgba(0, 0, 0, 0.6);
    /* Latar belakang gelap transparan */
    justify-content: center;
    /* Pusatkan konten modal secara horizontal */
    align-items: center;
    /* Pusatkan konten modal secara vertikal */
    padding: 1rem;
    /* Padding agar konten tidak menempel ke tepi */
}

/* Konten dalam modal */
.modal-content {
    background-color: var(--surface-light);
    margin: auto;
    /* Memusatkan di browser */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 600px;
    /* Lebar maksimum untuk desktop */
    width: 100%;
    /* Agar responsif */
    animation: fadeIn 0.3s ease-out;
    /* Animasi muncul */
}

/* Tombol tutup modal */
.close-button {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1001;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-dark);
}

/* Konten khusus modal detail produk */
#product-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-detail-modal-header img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-detail-modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-detail-modal-body .detail-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.product-detail-modal-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.product-detail-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    /* Izinkan wrap jika ruang sempit */
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.product-detail-actions .btn {
    flex-grow: 1;
    /* Biarkan tombol memenuhi ruang */
    min-width: 120px;
}

.product-detail-actions .quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-detail-actions .quantity-control input {
    width: 60px;
    text-align: center;
}

/* Animasi untuk modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Untuk membuka modal (dikontrol oleh JS) */
.modal.active {
    display: flex;
    /* Ganti dari 'block' ke 'flex' untuk centering */
}

.order-meta-details p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.payment-status-paid {
    color: var(--status-available);
    font-weight: 600;
}

.order-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-section span {
    font-size: 1rem;
    color: var(--text-muted);
}

.total-section strong {
    font-size: 1.3rem;
    font-weight: 600;
    margin-left: 0.5rem;
    color: var(--text-dark);
}

/* Gaya untuk Toggle Buka/Tutup Toko */
.store-status-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.store-status-toggle label:first-child {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Styling untuk Halaman History Toko */
.sub-nav-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.sub-tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.sub-tab-btn:hover {
    color: var(--text-dark);
}

.sub-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    font-weight: 600;
}

.history-content {
    display: none;
}

.history-content.active {
    display: block;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background-color: #fafafa;
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.kpi-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.kpi-card p {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
}

.report-section {
    margin-top: 2rem;
}

#report-produk-terlaris {
    list-style-type: none;
    padding-left: 0;
}

#report-produk-terlaris li {
    background-color: #f8f9fa;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

/* Timeline untuk Log Aktivitas */
.activity-log-container {
    border-left: 2px solid var(--border-light);
    padding-left: 1.5rem;
    max-width: 700px;
}

.log-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.log-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 2px solid var(--surface-light);
}

.log-item-time {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.log-item-desc {
    margin: 0;
    font-weight: 500;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.order-card-footer .form-group {
    margin-bottom: 0;
    flex-shrink: 0;
}

.order-card-footer select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    color: #6c757d;
}

#admin-store-filter-container select {
    min-width: 200px;
    /* Memberi lebar minimal agar tidak terlalu kecil */
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: var(--input-bg-light);
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;

    /* Bagian Kunci untuk Tampilan Kustom */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238492a6'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

#admin-store-filter-container select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.date-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    color: var(--text-muted);
}

.date-separator::before,
.date-separator::after {
    content: '';
    flex-grow: 1;
    border-bottom: 1px solid var(--border-light);
}

.date-separator span {
    padding: 0.25rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: var(--background-light);
    color: var(--text-muted);
    border-radius: 20px;
    margin: 0 1rem;
}

/* Sedikit penyesuaian untuk input tanggal */
#history-date-filter {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: var(--input-bg-light);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    margin-top: 2rem;
    grid-column: 1 / -1;
    /* Membuatnya memenuhi seluruh lebar grid */
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
}

/* ================================================================ */
/* =========== GAYA MOBILE BARU (INSPIRASI SHOPEE) ================ */
/* ================================================================ */

/* Mengubah header menjadi lebih ringkas */
.mobile-view .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.mobile-view .logo {
    gap: 0.5rem;
}

.mobile-view .logo i {
    font-size: 1.8rem;
}

.mobile-view .logo-text h1 {
    font-size: 1.2rem;
}

.mobile-view .logo-text p {
    display: block;
    /* Pastikan sub-judul "Teaching Factory" tetap terlihat */
    font-size: 0.75rem;
    /* Kita bisa kecilkan sedikit agar pas */
}

.mobile-view .header-actions .user-role {
    display: none;
    /* Sembunyikan juga badge role agar lebih ringkas */
}


.mobile-view .nav-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--surface-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-light);
    margin-top: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.mobile-view .tab-btn {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem;
    font-size: 0.7rem;
    /* Kecilkan teks ikon */
}

.mobile-view .tab-btn i {
    font-size: 1.3rem;
    /* Besarkan ikon */
}

.mobile-view .tab-btn.active {
    color: var(--primary-color);
    background: none;
}

/* Menyesuaikan layout utama untuk memberi ruang bagi bottom nav */
.mobile-view main {
    padding-bottom: 80px;
    /* Beri ruang di bagian bawah */
}

/* Memperbaiki Notifikasi agar tidak menutupi header */
.mobile-view .notification {
    bottom: auto;
    /* Hapus posisi di bawah */
    top: 0;
    /* Pindahkan ke atas */
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    text-align: center;
    transform: translateY(-100%);
    /* Sembunyikan di atas */
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.mobile-view .notification.slideOut {
    animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

.mobile-view #products-section .grid-container,
.mobile-view #wishlist-section .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Styling Grid KHUSUS Mobile */
.mobile-view .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 kolom */
    gap: 0.8rem;
    /* Jarak antar kartu */
    padding: 0.5rem;
    /* Padding luar grid */
}

/* Styling Kartu KHUSUS Mobile */
.mobile-view .product-card-modern {
    background-color: var(--surface-light);
    border-radius: 6px;
    /* Sudut sedikit melengkung */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    /* Bayangan sangat lembut */
    overflow: hidden;
    transition: transform 0.2s ease-out;
    /* Transisi untuk tap */
    position: relative;
    /* Untuk overlay */
    /* HAPUS border */
}

/* Link pembungkus kartu */
.mobile-view .product-card-link {
    display: flex;
    /* Gunakan flex */
    flex-direction: column;
    /* Susun gambar di atas, info di bawah */
    text-decoration: none;
    color: inherit;
    height: 100%;
    /* Link mengisi tinggi kartu */
}

.mobile-view .product-image-wrapper {
    position: relative;
    width: 100%;
}

.mobile-view .product-card-modern img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Persegi */
    object-fit: cover;
    background-color: #eee;
    border-radius: 6px 6px 0 0;
    /* Sudut atas saja */
}

/* Overlay Interaktif (Muncul saat disentuh/hover) */
.mobile-view .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(76, 175, 80, 0.7);
    /* Hijau transparan */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease-out;
    pointer-events: none;
    border-radius: 6px 6px 0 0;
}

/* Tampilkan overlay saat link di-hover ATAU saat kartu ditekan */
.mobile-view .product-card-modern .product-card-link:hover .product-overlay,
.mobile-view .product-card-modern:active .product-overlay {
    opacity: 1;
}

.mobile-view .product-overlay i {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.mobile-view .product-overlay span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Info Produk (Nama & Harga) di Bawah Gambar */
.mobile-view .product-info {
    padding: 0.6rem 0.8rem;
    flex-grow: 1;
    /* Mengisi sisa ruang */
    display: flex;
    flex-direction: column;
}

.mobile-view .product-info h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(0.9rem * 1.4 * 2);
    /* Jaga tinggi */
}

.mobile-view .product-info .product-price {
    font-size: 1rem;
    /* Harga sedikit lebih besar */
    font-weight: 600;
    color: var(--accent-color);
    /* Oranye */
    margin-top: auto;
    /* Dorong ke bawah */
    padding-top: 0.3rem;
}

/* Efek Tap Sederhana */
.mobile-view .product-card-modern:active {
    transform: scale(0.98);
    /* Sedikit mengecil */
}

/* Sembunyikan kartu desktop default di mobile */
.mobile-view .card.product-card {
    display: none;
}

/* Tampilkan kartu modern hanya di mobile */
.product-card-modern {
    display: none;
    /* Sembunyikan default */
}

.mobile-view .product-card-modern {
    display: flex;
    /* Tampilkan di mobile */
}

.modal-admin-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    /* Tumpuk tombol secara vertikal di mobile */
    gap: 0.8rem;
}

.modal-admin-actions .btn {
    width: 100%;
    /* Buat tombol selebar modal */
}


/* ======================================= */
/* ====== HALAMAN TENTANG KAMI (ABOUT) ====== */
/* ======================================= */

/* 1. Hero Section */
.about-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: url('https://cdn.mataramteachingfactory.store/sekolah.jpg');
    /* Ganti dengan URL foto kampus */
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Overlay gelap agar teks terbaca */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.about-container {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* 2. Visi Misi & 4. Teaching Factory (Shared Styles) */
.about-split-section {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-split-section .split-image {
    flex: 1;
    text-align: center;
}

.about-split-section .split-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-split-section .split-text {
    flex: 1.5;
}

.about-split-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.mission-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.mission-list li i {
    color: var(--primary-color);
}

.icon-feature {
    font-size: 4rem;
    color: var(--secondary-color);
    margin: 0.5rem;
    opacity: 0.7;
}

/* Modifier untuk membalik urutan (gambar di kanan) */
.about-split-section.reverse {
    flex-direction: row-reverse;
}

/* 3. Kenapa Kami Hadir */
.about-features {
    text-align: center;
    margin-bottom: 4rem;
}

.about-features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* 5. Tim & Kolaborasi */
.about-team {
    text-align: center;
    margin-bottom: 4rem;
}

.about-team h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 6. Closing CTA */
.about-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.about-cta blockquote {
    font-size: 1.3rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    border: none;
    padding: 0;
}

/* ======================================= */
/* ====== KARTU INFO TAMBAHAN (ABOUT) ====== */
/* ======================================= */

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Membuat 2 kolom sejajar */
    gap: 2rem;
    /* Jarak antar kartu */
    margin: 4rem 0;
    /* Jarak dari seksi atas dan bawah */
    text-align: center;
}

.info-card {
    background-color: #f8f9fa;
    /* Warna latar yang lembut */
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    /* Warna hijau sesuai tema */
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Penyesuaian untuk Tampilan Mobile */
@media (max-width: 768px) {
    .about-info {
        grid-template-columns: 1fr;
        /* Kartu akan tersusun ke bawah di mobile */
    }
}

.about-contact {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem 1.5rem;
    background-color: #f8f9fa;
    /* Beri latar belakang pada seluruh seksi */
    border-radius: 12px;
}

.about-contact h2 {
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.contact-grid {
    display: grid;
    /* Membuat 3 kolom di desktop dan 1 di mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.contact-card {
    display: flex;
    /* Menggunakan Flexbox untuk menata ikon dan teks */
    align-items: center;
    /* Membuat ikon dan teks sejajar di tengah secara vertikal */
    gap: 1.5rem;
    /* Jarak antara ikon dan blok teks */
    background-color: var(--surface-light);
    /* Warna kartu lebih terang */
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.1);
    /* Latar ikon yang lembut */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Mencegah ikon menyusut */
}

.contact-card-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-card-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
}

/* ======================================================================= */
/* ====== PERBAIKAN TOTAL TAMPILAN MOBILE VENDOR (NAVBAR & WARNA) ====== */
/* ======================================================================= */

/* 1. Perbaikan Navigasi Bawah (Bottom Navbar) Vendor */
/* Aturan ini memiliki spesifisitas lebih tinggi untuk memastikan background dihilangkan 
   dan hanya teks yang berubah warna menjadi oranye saat aktif di mobile. */
.mobile-view #vendor-nav-tabs .tab-btn.active {
    background: none;
    color: var(--accent-color);
    font-weight: 600;
}


/* 2. Konsistensi Warna Tema Vendor (Oranye) di Seluruh Halaman */

/* -- A. Tombol Utama menjadi Oranye -- */
/* Mengubah semua tombol .btn-primary menjadi oranye di dalam semua seksi vendor */
.mobile-view #vendor-products-section .btn-primary,
.mobile-view #vendor-processing-section .btn-primary,
.mobile-view #vendor-completed-section .btn-primary,
.mobile-view #vendor-panel-section .btn-primary,
.mobile-view #vendor-history-section .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Efek hover untuk tombol oranye */
.mobile-view #vendor-products-section .btn-primary:hover,
.mobile-view #vendor-processing-section .btn-primary:hover,
.mobile-view #vendor-completed-section .btn-primary:hover,
.mobile-view #vendor-panel-section .btn-primary:hover,
.mobile-view #vendor-history-section .btn-primary:hover {
    background-color: #ffb74d;
    /* Oranye lebih muda */
    border-color: #ffb74d;
}

/* -- B. Aksen Lainnya (Judul Form & Focus Ring) -- */
/* Mengubah warna judul form tambah produk vendor */
.mobile-view #vendor-panel-section .admin-panel-section h3 {
    color: var(--accent-color);
}

/* Mengubah warna focus ring pada input form vendor agar konsisten */
.mobile-view #vendor-panel-section .form-group input:focus,
.mobile-view #vendor-panel-section .form-group textarea:focus,
.mobile-view #vendor-panel-section .form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.4);
}

/* -- C. Tata Letak (Layout) yang Sudah Diperbaiki dari Sebelumnya -- */
.mobile-view #vendor-products-section .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.mobile-view .vendor-order-card {
    padding: 1rem;
}

.mobile-view .vendor-order-card .order-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.mobile-view .vendor-order-card .order-card-body {
    flex-direction: column;
    gap: 1rem;
}

.mobile-view .vendor-order-card .order-meta-details {
    text-align: left;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.mobile-view .vendor-order-card .order-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.mobile-view .vendor-order-card .total-section {
    text-align: center;
}

.mobile-view #vendor-panel-section .admin-panel-section {
    padding: 1.5rem 1rem;
}

.mobile-view #vendor-history-section .kpi-grid {
    grid-template-columns: 1fr;
}

.mobile-view #vendor-history-section .sub-nav-tabs {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-view #vendor-history-section .sub-nav-tabs::-webkit-scrollbar {
    display: none;
}

/* 1. Sembunyikan tab "Tambah Produk" dari navigasi bawah di mobile */
.mobile-view #vendor-nav-tabs .tab-btn[onclick="showSection('vendor-panel')"] {
    display: none;
}

/* 2. Style untuk Tombol Apung (Floating Action Button - FAB) */
.fab {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 56px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease-out;
}

.fab:hover {
    transform: scale(1.05);
}

/* 3. Mengubah Panel Tambah Produk menjadi Modal di Mobile */
.mobile-view #vendor-panel-section.as-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Kotak putih modalnya sekarang menargetkan .admin-panel-section */
.mobile-view #vendor-panel-section.as-modal .admin-panel-section {
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.3s ease-out;
    position: relative;
    /* Penting untuk posisi tombol close */
    padding-top: 3.5rem;
    /* Beri ruang di atas untuk header */
}

/* Menata header di dalam modal */
.mobile-view #vendor-panel-section.as-modal .section-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin: 0;
}

.mobile-view #vendor-panel-section.as-modal .section-header h2 {
    font-size: 1.2rem;
    /* Perkecil font judul modal */
    margin: 0;
}

/* 4. Style untuk Tombol Tutup Modal (Kini akan muncul) */
.mobile-view #vendor-panel-section.as-modal .close-modal-btn {
    display: block;
    /* Tampilkan tombol close hanya saat jadi modal */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

/* Sembunyikan tombol close secara default saat bukan modal */
#vendor-panel-section .close-modal-btn {
    display: none;
}

/* ======================================= */
/* ====== DESAIN ULANG FOOTER BARU ======= */
/* ======================================= */

.site-footer {
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    background-color: #f8f9fa;
    /* Warna sedikit lebih gelap dari body */
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolom untuk desktop */
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-column h4 {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Garis aksen di bawah judul kolom */
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    margin: 0;
    line-height: 1.7;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    /* PENTING: Membuat setiap link jadi satu baris baru */
    padding: 0.25rem 0;
    /* Memberi sedikit ruang vertikal */
    margin-bottom: 0.25rem;
    transition: color 0.2s, transform 0.2s;
    /* Tambahkan transisi untuk transform */
}

/* Efek hover dengan sedikit pergerakan ke kanan */
.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Menambahkan ikon chevron (›) khusus sebelum link di kolom "Tautan Cepat" */
.footer-links a::before {
    content: '›';
    font-weight: bold;
    margin-right: 0.5rem;
    color: var(--primary-color);
    transition: margin-right 0.2s;
}

.footer-links a:hover::before {
    margin-right: 0.75rem;
    /* Ikon ikut bergerak saat di-hover */
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.footer-contact-item i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    margin: 0;
}

/* Penyesuaian Footer untuk Mobile */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        /* Kolom jadi 1 di mobile */
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        /* Pusatkan garis aksen di mobile */
        transform: translateX(-50%);
    }

    .footer-contact-item {
        justify-content: center;
        /* Pusatkan item kontak di mobile */
    }
}

.star-rating {
    display: flex;
    font-size: 2rem;
    color: #FFC107;
    cursor: pointer;
}

.star-rating i {
    margin-right: 0.5rem;
}

.reviews-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.review-item {
    margin-bottom: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-header .rating-display {
    margin-bottom: 0;
}

.review-comment {
    color: var(--text-dark);
}

.review-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}