/* ===================================================================
   STYLE.CSS FINAL & BERSIH - REMPAH DJAYA
   =================================================================== */
/* Variabel & Reset */
:root { --primary-green: #2d6a4f; --secondary-green: #40916c; --light-green: #eafaf1; --text-dark: #1b4332; --text-light: #ffffff; --bg-light: #f8f9fa; --border-color: #e9ecef; }
body { font-family: 'Poppins', sans-serif; margin: 0; background-color: white; color: var(--text-dark); }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
main { padding: 2rem 0; }

/* Header & Navigasi */
header { background-color: white; padding: 1rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-green); text-decoration: none; }
/* ... (CSS header lain tetap sama) ... */

/* Banner Carousel */
.main-banner { width: 100%; height: 400px; border-radius: 12px; overflow: hidden; margin-bottom: 3rem; }
.main-banner .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Layout Atas: Kategori & Produk Terlaris */
.top-layout-wrapper { display: flex; gap: 2rem; align-items: flex-start; }
.sidebar { flex-basis: 240px; flex-shrink: 0; }
.featured-listing { flex-grow: 1; }
.sidebar h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin: 0 0 1rem 0; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li a { display: block; padding: 0.75rem 1rem; text-decoration: none; color: var(--text-dark); border-radius: 8px; font-weight: 600; margin-bottom: 0.5rem; border: 1px solid transparent; }
.category-list li a:hover { background-color: var(--light-green); border-color: var(--secondary-green); color: var(--primary-green); }
.featured-title { font-size: 2rem; font-weight: 700; margin: 0 0 1.5rem 0; }

/* Section Semua Produk */
.all-products-section { margin-top: 4rem; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 2rem; }

/* Desain Kartu Produk Baru */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; }
.product-card { background-color: white; border-radius: 12px; overflow: hidden; transition: all 0.3s; border: 1px solid var(--border-color); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.product-image-container { width: 100%; height: 160px; }
.product-image-container img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 0.75rem; }
.product-title { font-size: 1rem; font-weight: 600; margin: 0 0 0.25rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dark); }
.product-category { font-size: 0.8rem; color: #aaa; margin: 0; }
.product-price-action { display: flex; justify-content: space-between; align-items: center; padding: 0 0.75rem 0.75rem; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--primary-green); margin: 0; }
.btn-add-to-cart { background-color: var(--primary-green); color: white; border: none; width: 36px; height: 36px; border-radius: 8px; font-size: 1.8rem; cursor: pointer; display: flex; justify-content: center; align-items: center; line-height: 1; transition: background-color 0.3s; }
.btn-add-to-cart:hover { background-color: var(--secondary-green); }
/* Variabel Warna */
:root {
    --primary-green: #2d6a4f;
    --secondary-green: #40916c;
    --light-green: #b7e4c7;
    --text-dark: #1b4332;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

/* ----------------------------------------- */
/* ==   RESET & PENGATURAN DASAR          == */
/* ----------------------------------------- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
h1, h2, h3 { color: var(--primary-green); font-weight: 600; }
main { padding: 2rem 0; }
hr { border: 0; border-top: 1px solid #f0f0f0; margin: 1.5rem 0; }

/* ----------------------------------------- */
/* ==   HEADER & NAVIGASI                 == */
/* ----------------------------------------- */
header {
    background-color: #ffffff;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 700; color: var(--primary-green); text-decoration: none; }

/* Search Bar */
.search-bar { flex-grow: 1; margin: 0 2rem; min-width: 200px; }
.search-bar form { display: flex; width: 100%; max-width: 500px; margin: 0 auto; }
.search-bar input { width: 100%; padding: 0.6rem 1rem; border: 1px solid var(--border-color); border-radius: 5px 0 0 5px; border-right: none; font-family: 'Poppins', sans-serif; }
.search-bar button { padding: 0.6rem 1rem; border: none; background-color: var(--secondary-green); color: white; border-radius: 0 5px 5px 0; cursor: pointer; }

/* Navigasi Utama */
/* File: assets/css/style.css (TAMBAHKAN/MODIFIKASI) */

/* Ganti .main-nav yang lama dengan ini */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem; /* Jarak antar grup ikon */
    flex-shrink: 0;
}

/* Tambahkan ini untuk menata link teks */
.nav-text-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-text-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}
.nav-text-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}
.nav-text-links a:hover {
    color: var(--primary-green);
}
.nav-text-links a:hover::after {
    transform: scaleX(1);
}
.main-nav { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-icons { display: flex; align-items: center; gap: 1.5rem; }
.nav-icon-link { font-size: 1.3rem; color: var(--text-dark); text-decoration: none; position: relative; transition: color 0.3s; }
.nav-icon-link:hover { color: var(--primary-green); }
.nav-login-link { font-weight: 600; color: var(--primary-green); text-decoration: none; padding: 0.5rem 1rem; border: 2px solid var(--light-green); border-radius: 2rem; transition: all 0.3s; }
.nav-login-link:hover { background-color: var(--primary-green); color: white; border-color: var(--primary-green); }

/* Notifikasi Lonceng */
.nav-icon-link.has-notification .fa-bell {
    color: #002b0dd7; /* Warna merah, sama seperti cart-count */
}

/* Foto Profil di Navbar */
.profile-picture { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; box-shadow: 0 0 5px rgba(0,0,0,0.1); transition: transform 0.3s; cursor: pointer; }
.profile-link:hover .profile-picture { transform: scale(1.1); }

/* Cart Count */
.cart-count { position: absolute; top: -5px; right: -10px; background-color: #ff4d4d; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 0.75rem; display: flex; justify-content: center; align-items: center; font-weight: 600; border: 2px solid white; }

/* Pemilih Bahasa */
.language-switcher { display: flex; align-items: center; gap: 0.3rem; border-left: 1px solid #e0e0e0; padding-left: 1rem; }
.language-switcher a { text-decoration: none; color: #aaa; font-weight: 600; font-size: 0.9rem; }
.language-switcher a:hover { color: var(--text-dark); }
.language-switcher a.active { color: var(--primary-green); }
.language-switcher span { color: #e0e0e0; }

/* ----------------------------------------- */
/* ==   DROPDOWN NAVBAR                   == */
/* ----------------------------------------- */
.nav-item { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px); /* Posisi tepat di bawah ikon + 10px jarak */
    right: 0; /* Tetap di kanan agar tidak keluar layar */
    min-width: 300px; /* Lebar minimal agar tidak terlalu sempit */
    width: auto; /* Lebar menyesuaikan konten */
    max-width: 380px; /* Batas lebar maksimal */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border: 1px solid #f0f0f0;
    z-index: 1100;
    color: var(--text-dark);
    border-top: 3px solid var(--primary-green);
    padding-top: 0.5rem; /* Menambah jarak di dalam kotak atas */
}
.dropdown-header { padding: 1rem; font-weight: 600; border-bottom: 1px solid #f0f0f0; }
.dropdown-body { padding: 0.5rem; max-height: 400px; overflow-y: auto; }
.dropdown-footer { padding: 1rem; border-top: 1px solid #f0f0f0; text-align: center; }
p.empty-text { color: #888; text-align: center; padding: 2rem 0; }

/* Dropdown Keranjang */
.cart-dropdown { width: 350px; }
.mini-cart-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-bottom: 1px solid #f0f0f0; }
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }

/* Dropdown Notifikasi */
.purchase-section { display: flex; justify-content: space-between; align-items: center; padding: 0 0.5rem; }
.purchase-section a.view-all { font-size: 0.85rem; color: var(--secondary-green); font-weight: 600; text-decoration: none; }
.purchase-status { display: flex; justify-content: space-around; text-align: center; padding: 1rem 0.5rem; position: relative; }
.purchase-status::before { content: ''; position: absolute; top: 2.1rem; left: 15%; right: 15%; height: 4px; background-color: #e0e0e0; z-index: 1; }
.status-item { font-size: 0.75rem; color: #888; position: relative; z-index: 2; width: 60px; }
.status-item i { font-size: 1.5rem; display: flex; justify-content: center; align-items: center; margin: 0 auto 0.5rem; color: #ccc; background-color: white; width: 40px; height: 40px; border: 4px solid #e0e0e0; border-radius: 50%; transition: all 0.3s ease; }
.status-item span { font-weight: 500; }
.status-item.active i { color: var(--secondary-green); border-color: var(--secondary-green); }
.status-item.active span { color: var(--text-dark); font-weight: 600; }

/* Dropdown Profil */
.user-dropdown { width: 250px; }
.user-info { display: flex; flex-direction: column; line-height: 1.4; text-align: center; }
.user-info small { font-size: 0.8rem; color: #888; font-weight: 400; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem; /* Padding sedikit lebih besar */
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}
.dropdown-item:hover { background-color: var(--light-green); color: var(--primary-green); }
.dropdown-item i { width: 20px; text-align: center; color: #999; }
.dropdown-item:hover i { color: var(--primary-green); }
.dropdown-divider { height: 1px; margin: 0.5rem; background-color: #f0f0f0; border: 0; }

/* ----------------------------------------- */
/* ==   HALAMAN UTAMA (INDEX)             == */
/* ----------------------------------------- */
.main-banner { width: 100%; height: 400px; margin-bottom: 2rem; border-radius: 12px; overflow: hidden; }
.main-banner .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swiper-button-next, .swiper-button-prev { color: white !important; }
.swiper-pagination-bullet-active { background: white !important; }

.section-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 2rem; margin-top: 3rem; position: relative; color: var(--primary-green); }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background-color: var(--secondary-green); margin: 0.5rem auto 0; border-radius: 2px; }

.main-content-wrapper { display: flex; gap: 2rem; }
.sidebar { width: 220px; flex-shrink: 0; }
.product-listing { flex-grow: 1; }
.sidebar h3 { border-bottom: 2px solid var(--light-green); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li a { display: block; padding: 0.75rem; text-decoration: none; color: var(--text-dark); border-radius: 5px; font-weight: 500; }
.category-list li a:hover { background-color: var(--light-green); color: var(--primary-green); }

/* Kartu Produk */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.product-card { background-color: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; border: 1px solid #f0f0f0; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(45, 106, 79, 0.15); }
.product-image-container { width: 100%; height: 220px; overflow: hidden; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-in-out; }
.product-card:hover img { transform: scale(1.05); }
.product-info { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.product-category { font-size: 0.8rem; color: #999; margin: 0 0 0.5rem 0; text-transform: uppercase; letter-spacing: 1px; }
.product-title { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin: 0; line-height: 1.4; height: 45px; overflow: hidden; }
.product-info .price { font-size: 1.3rem; font-weight: 700; color: var(--secondary-green); margin: 1rem 0; }

/* ----------------------------------------- */
/* ==   TOMBOL & FORMULIR                 == */
/* ----------------------------------------- */
.btn { display: inline-block; background-color: var(--secondary-green); color: var(--text-light); padding: 0.75rem 1.5rem; border: none; border-radius: 5px; text-decoration: none; text-align: center; cursor: pointer; font-weight: 600; transition: background-color 0.3s; }
.btn:hover { background-color: var(--primary-green); }
.btn-danger { background-color: #e74c3c; }
.btn-danger:hover { background-color: #c0392b; }
.btn-add-to-cart {
    /* Menyamakan cara elemen diatur */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* PENTING: Menyamakan perhitungan ukuran */
    
    /* Properti yang sudah ada */
    width: auto;
    margin-top: 0;
    font-weight: 600;
    padding: 0.5rem 1rem;
    height: 38px; /* Menambahkan tinggi tetap untuk konsistensi */
}
.btn-add-to-cart:hover { transform: scale(1.02); }
.btn-add-to-cart .fa-cart-plus { margin-right: 0.5rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Form */
.form-container, .checkout-form { max-width: 500px; margin: 2rem auto; padding: 2.5rem; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.checkout-form { max-width: 800px; }
.form-container h2 { text-align: center; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control { width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 5px; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: var(--secondary-green); }
.form-text { text-align: center; margin-top: 1.5rem; }
.form-text a { color: var(--secondary-green); font-weight: 600; text-decoration: none; }
.address-display { background-color: #f8f9fa; border: 1px solid var(--border-color); border-radius: 5px; padding: 1rem; margin-bottom: 1rem; line-height: 1.7; }

/* Alert */
.alert { padding: 1rem; margin-bottom: 1.5rem; border-radius: 5px; border: 1px solid transparent; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }

/* ----------------------------------------- */
/* ==   HALAMAN LAINNYA                   == */
/* ----------------------------------------- */
/* Riwayat Pesanan */
.history-container { max-width: 900px; margin: 2rem auto; background-color: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.table-responsive { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #e0e0e0; }
.history-table th { font-weight: 600; font-size: 0.9rem; }
.btn-detail { background-color: var(--primary-green); color: white; padding: 0.5rem 1rem; border-radius: 5px; text-decoration: none; font-size: 0.9rem; }
.status { 
    padding: 0.3rem 0.8rem; /* Sedikit lebih lebar */
    border-radius: 15px; 
    font-size: 0.8rem; 
    color: white; 
    font-weight: 600;
    display: inline-block;
    text-align: center;
}
.status.menunggu-pembayaran { background-color: #f39c12; }
.status.diproses { background-color: #3498db; }
.status.dikirim { background-color: #27ae60; }
.status.selesai { background-color: #16a085; }
.status.dibatalkan { background-color: #c03b2b; }

/* Profil */
.profile-container { background-color: #fff; padding: 2.5rem; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); max-width: 960px; margin: 2rem auto; }
.profile-layout { display: flex; gap: 2.5rem; }
.profile-sidebar { flex-basis: 250px; flex-shrink: 0; text-align: center; }
.profile-content { flex-grow: 1; }
.profile-image { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 1rem; border: 5px solid white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); object-fit: cover; }
.profile-summary { margin-top: 1rem; word-wrap: break-word; }
.btn-logout { width: 100%; margin-top: 1.5rem; }
.upload-btn-wrapper { position: relative; overflow: hidden; display: inline-block; width: 100%; }
.btn-upload { border: 2px solid var(--border-color); color: var(--text-dark); background-color: white; padding: 8px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; width: 100%; }
.upload-btn-wrapper input[type=file] { font-size: 100px; position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer; }
.upload-form small { display: block; font-size: 0.8rem; color: #999; margin-top: 0.5rem; }

/* ----------------------------------------- */
/* ==   FOOTER & RESPONSIVE               == */
/* ----------------------------------------- */
footer { background-color: #e9e9e9; color: #555; text-align: center; padding: 1.5rem 0; margin-top: 2rem; }
@media (max-width: 992px) {
    .main-content-wrapper, .profile-layout { flex-direction: column; }
    .sidebar, .profile-sidebar { width: 100%; margin-bottom: 1.5rem; }
    header .container { flex-wrap: wrap; gap: 1rem; }
    .search-bar { order: 3; width: 100%; margin: 0; }
    .logo { order: 1; }
    .main-nav { order: 2; }
}
@media (max-width: 768px) {
    .main-banner { height: 250px; }
}

/* File: assets/css/style.css (TAMBAHKAN DI PALING BAWAH) */

/* ----------------------------------------- */
/* ==   FOOTER BARU                       == */
/* ----------------------------------------- */
footer {
    background-color: var(--primary-green);
    color: #e0e0e0;
    padding: 3rem 0 0 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    flex-wrap: wrap;
    text-align: left; /* Memastikan teks selalu rata kiri */
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

/* INI BAGIAN PENTING UNTUK GARIS */
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0; /* Membuat garis rata kiri */
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-green);
}

.footer-column p {
    line-height: 1.8;
}

.footer-column p i {
    margin-right: 0.75rem;
    color: var(--light-green);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #ccc;
}

.footer-bottom p {
    margin: 0;
}

/* File: assets/css/style.css (TAMBAHKAN DI PALING BAWAH) */

/* -- STYLING HALAMAN KERANJANG BARU -- */
.cart-page-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.cart-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.cart-items-list {
    flex: 2; /* Lebar 2/3 */
}

.order-summary {
    flex: 1; /* Lebar 1/3 */
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 110px; /* Jarak dari header */
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.cart-item-price {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
    color: var(--primary-green);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 1rem;
    padding: 0.5rem 0;
}
/* Menyembunyikan panah default di input number */
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input[type=number] { -moz-appearance: textfield; }


.cart-item-subtotal {
    text-align: right;
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: auto;
}
.subtotal-text {
    display: block;
    margin-bottom: 1.5rem;
}
.cart-item-remove {
    color: #e74c3c;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}
.cart-item-remove:hover { color: #c0392b; }

.order-summary h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 0.75rem;
}
.summary-row, .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.summary-total {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}
.btn-checkout {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    font-size: 1rem;
}

/* Tampilan Keranjang Kosong */
.empty-cart-container {
    text-align: center;
    padding: 4rem 2rem;
    background-color: white;
    border-radius: 8px;
}
.empty-cart-container i {
    font-size: 4rem;
    color: var(--light-green);
}

@media (max-width: 992px) {
    .cart-layout {
        flex-direction: column;
    }
    .order-summary {
        width: 100%;
        position: static;
        box-sizing: border-box;
    }
}

/* File: assets/css/style.css (TAMBAHKAN DI PALING BAWAH) */

/* -- STYLING HALAMAN DETAIL PRODUK -- */
.product-detail-layout { display: flex; gap: 3rem; margin-bottom: 3rem; }
.product-detail-image { flex: 1; }
.product-detail-image img { width: 100%; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.product-detail-info { flex: 1; }
.product-category-detail { font-size: 0.9rem; text-transform: uppercase; color: #888; letter-spacing: 1px; margin-bottom: 0.5rem; }
.product-detail-info h1 { margin-top: 0; font-size: 2.2rem; }
.price-detail { font-size: 2rem; font-weight: 700; color: var(--secondary-green); margin-bottom: 1.5rem; }
.product-meta { margin-bottom: 1.5rem; color: #555; }
.stok-aman { color: green; }
.stok-terbatas { color: orange; }
.product-description { line-height: 1.8; }
.btn-add-to-cart-detail { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-disabled { padding: 1rem 2rem; font-size: 1.1rem; background-color: #ccc; cursor: not-allowed; }

/* Wrapper untuk link di kartu produk */
a.product-link-wrapper { text-decoration: none; }
.product-card .product-info-bottom { padding: 0 1.25rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }

/* -- STYLING BAGIAN ULASAN -- */
.reviews-section { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.review-form-container { background-color: white; padding: 2rem; border-radius: 8px; margin-bottom: 2rem; }
.reviews-list { display: flex; flex-direction: column; gap: 1.5rem; }
.review-item { background-color: white; padding: 1.5rem; border-radius: 8px; border: 1px solid #f0f0f0; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.review-date { font-size: 0.85rem; color: #888; }
.review-rating .fa-star { color: #f39c12; }
.review-comment { margin-top: 0.75rem; color: #555; }

/* Star Rating Input */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input[type=radio] { display: none; }
.star-rating label { font-size: 2rem; color: #ddd; cursor: pointer; transition: color 0.2s; }
.star-rating input[type=radio]:checked ~ label,
.star-rating:not(:checked) > label:hover,
.star-rating:not(:checked) > label:hover ~ label { color: #f39c12; }

/* -- STYLING BAGIAN REKOMENDASI -- */
.recommendations-section { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }

/* File: assets/css/style.css (TAMBAHKAN DI BAWAH) */
/* -- DESAIN BARU HALAMAN CHECKOUT -- */
.checkout-container {
    max-width: 800px;
    margin: 2rem auto;
}
.checkout-container h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}
.checkout-steps {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}
.checkout-step {
    border-bottom: 1px solid var(--border-color);
}
.checkout-step:last-child {
    border-bottom: none;
}
.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-green);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}
.step-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.step-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-left: calc(30px + 1rem); /* Sejajar dengan teks judul */
    border-left: 2px solid var(--light-green);
    padding-left: 1.5rem;
}
.btn-checkout-final {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 2rem;
}
.review-notice {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* File: assets/css/style.css (TAMBAHKAN DI BAWAH) */
/* -- STYLING HALAMAN INSTRUKSI PEMBAYARAN -- */
.payment-instruction-container { background-color: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); max-width: 700px; margin: 2rem auto; overflow: hidden; }
.payment-header { text-align: center; padding: 2rem; background-color: var(--light-green); color: var(--text-dark); }
.payment-header .fa-circle-check { font-size: 3.5rem; color: var(--secondary-green); margin-bottom: 1rem; }
.payment-header h2 { margin: 0 0 0.5rem 0; font-size: 1.8rem; }
.payment-header p { margin: 0; color: #555; }
.payment-details { padding: 2rem; }
.payment-amount { font-size: 2rem; font-weight: 700; color: var(--primary-green); text-align: center; margin: 1rem 0 2rem 0; background-color: #f8f9fa; padding: 1rem; border-radius: 5px; }
.bank-account { display: flex; align-items: center; gap: 1.5rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 1rem; }
.bank-logo { font-weight: bold; background-color: #eee; padding: 1rem; border-radius: 5px; }
.qr-code { text-align: center; margin: 1.5rem 0; }
.qr-code img { max-width: 250px; width: 100%; border: 5px solid #eee; border-radius: 8px; }
.payment-note { font-size: 0.9rem; color: #888; text-align: center; margin-top: 2rem; }
.payment-footer { padding: 1.5rem; background-color: #f8f9fa; text-align: center; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-whatsapp { background-color: #25D366; color: white; padding: 0.75rem 1.5rem; border-radius: 5px; text-decoration: none; font-weight: 600; display: inline-block; }

/* File: assets/css/style.css (TAMBAHKAN DI BAWAH JIKA BELUM ADA) */

/* File: assets/css/style.css (GANTI BAGIAN PROFIL LAMA DENGAN INI) */

/* -- STYLING HALAMAN PROFIL (FINAL & BENAR) -- */
.profile-container {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    max-width: 960px;
    margin: 2rem auto;
}

.profile-layout {
    display: flex;
    gap: 2.5rem;
}

.profile-sidebar {
    flex-basis: 250px;
    flex-shrink: 0;
    text-align: center;
}

.profile-content {
    flex-grow: 1;
}

/* KUNCI PERBAIKAN FOTO PROFIL */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Membuat container menjadi lingkaran */
    margin: 0 auto 1rem;
    border: 5px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden; /* PENTING: Menyembunyikan bagian gambar yang keluar dari lingkaran */
}

.profile-picture-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* PENTING: Membuat gambar mengisi lingkaran tanpa distorsi */
}
/* AKHIR KUNCI PERBAIKAN */

.profile-summary {
    margin-top: 1rem;
    word-wrap: break-word;
}
.profile-summary h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.4rem;
}
.profile-summary p {
    margin: 0;
    color: #888;
}

.btn-logout {
    width: 100%;
    margin-top: 1.5rem;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.btn-upload {
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    background-color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.btn-upload:hover {
    background-color: var(--bg-light);
    border-color: #ccc;
}

.upload-btn-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-form small {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
    }
    .profile-sidebar {
        margin-bottom: 2rem;
    }
}

/* File: assets/css/style.css (TAMBAHKAN DI PALING BAWAH) */

/* -- Styling untuk Tombol "Lihat Detail" di Halaman Riwayat -- */
.btn-detail {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: white;
    background-color: var(--primary-green); /* Warna hijau gelap */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-detail:hover {
    background-color: var(--secondary-green); /* Warna hijau lebih terang saat disentuh */
}

/* Styling untuk gambar ikon kategori */
.category-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* File: assets/css/style.css (TAMBAHKAN DI PALING BAWAH) */

/* -- Perbaikan Ikon Kategori di Sidebar -- */
.sidebar .category-list a {
    display: flex;         /* Mengaktifkan flexbox */
    align-items: center;   /* Membuat ikon dan teks sejajar secara vertikal */
    gap: 10px;             /* Memberi jarak antara ikon dan teks */
}

.sidebar .category-list-icon {
    width: 24px;           /* Atur lebar ikon */
    height: 24px;          /* Atur tinggi ikon */
    object-fit: cover;
    flex-shrink: 0;        /* Mencegah ikon menyusut */
}

/* File: assets/css/style.css (GANTI BAGIAN YANG ERROR DENGAN INI) */

/* -- Styling Halaman Statis (Tentang, Galeri) -- */
.page-container {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 2rem auto;
}
.page-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.page-container p {
    line-height: 1.8;
}

/* -- Styling Galeri -- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.gallery-item.video-item {
    aspect-ratio: 16 / 9;
}
.gallery-item.video-item iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* -- Styling Mini Banner di Homepage -- */
.mini-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: -2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}
.mini-banner-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.mini-banner-item:hover {
    transform: translateY(-5px);
}
.mini-banner-item img {
    width: 100%;
    display: block;
}

/* -- Responsive untuk Mini Banner -- */
@media (max-width: 768px) {
    .mini-banners {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .mini-banners {
        grid-template-columns: 1fr;
    }
}

.mini-banners {
    margin-top: 20px; /* Ubah nilai 20px sesuai jarak yang Anda inginkan */
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 15px; /* Sesuaikan padding jika perlu */
}

.mini-banner-item {
    flex: 1;
    max-width: calc(25% - 10px); /* Untuk 4 banner dengan jarak 10px */
    overflow: hidden;
    border-radius: 5px;
}

.mini-banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* File: assets/css/style.css (TAMBAHKAN DI BAWAH) */

/* -- Styling Halaman Tentang Kami -- */
.about-page {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1000px;
}

.about-image {
    flex-basis: 40%; /* Lebar kolom gambar */
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content {
    flex-basis: 60%; /* Lebar kolom teks */
}

.about-content h2 {
    text-align: left;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .about-page {
        flex-direction: column;
    }
}

/* File: assets/css/style.css (TAMBAHKAN DI PALING BAWAH) */

/* ----------------------------------------- */
/* ==   PENGATURAN RESPONSIVE             == */
/* ----------------------------------------- */

/* Tombol Hamburger & Menu Mobile (Awalnya Tersembunyi) */
.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}
.mobile-nav-menu {
    display: none;
    background-color: white;
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav-menu a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav-menu a:last-child {
    border-bottom: none;
}
.mobile-nav-menu hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}


/* Tampilan Tablet (max 992px) */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Sembunyikan navigasi desktop */
    }
    .mobile-nav-toggle {
        display: block; /* Tampilkan tombol hamburger */
    }
    .search-bar {
        margin: 0 1rem; /* Kurangi margin search bar */
    }
}

/* Tampilan Mobile (max 768px) */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    .search-bar {
        order: 3; /* Pindahkan search bar ke baris bawah */
        width: 100%;
        margin: 1rem 0 0 0;
    }
    .top-layout-wrapper, .cart-layout, .profile-layout, .about-page {
        flex-direction: column; /* Ubah layout flex menjadi vertikal */
    }
    .sidebar, .order-summary, .profile-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }
    .mini-banners {
        grid-template-columns: repeat(2, 1fr); /* Banner kecil jadi 2 kolom */
    }
}

@media (max-width: 480px) {
    .mini-banners {
        grid-template-columns: 1fr; /* Banner kecil jadi 1 kolom */
    }
}

/* File: assets/css/style.css (TAMBAHKAN DI PALING BAWAH) */

/* ----------------------------------------- */
/* ==   PENGATURAN RESPONSIVE FINAL       == */
/* ----------------------------------------- */

/* Tombol Hamburger & Menu Mobile (Awalnya Tersembunyi di Desktop) */
.mobile-nav-toggle { display: none; }
.mobile-nav-menu { display: none; }

/* Tampilan Tablet (max 1024px) */
@media (max-width: 1024px) {
    .main-nav {
        display: none; /* Sembunyikan navigasi desktop */
    }
    .mobile-nav-toggle {
        display: block; /* Tampilkan tombol hamburger */
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-dark);
    }
    .mobile-nav-menu {
        background-color: white;
        padding: 1rem 5%;
        border-bottom: 1px solid var(--border-color);
    }
    .mobile-nav-menu a {
        display: block;
        padding: 0.75rem 0;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 600;
        border-bottom: 1px solid var(--border-color);
    }
    .mobile-nav-menu a:last-child { border-bottom: none; }
    .mobile-nav-menu hr { border: 0; border-top: 1px solid var(--border-color); margin: 0.5rem 0; }
}

/* Tampilan Mobile (max 768px) */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    .search-bar {
        order: 3; /* Pindahkan search bar ke baris bawah */
        width: 100%;
        margin: 1rem 0 0 0;
    }
    .main-banner {
        height: 250px; /* Perkecil tinggi carousel */
    }
    .mini-banners {
        grid-template-columns: repeat(2, 1fr); /* Banner kecil jadi 2 kolom */
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Produk jadi 2 kolom */
        gap: 1rem;
    }
    .top-layout-wrapper, .cart-layout, .profile-layout, .about-page {
        flex-direction: column; /* Ubah layout flex menjadi vertikal */
    }
    .sidebar, .order-summary, .profile-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }
}

/* ===== Sembunyikan harga di kartu produk (list & featured) ===== */
.product-card .price,
.product-info .price,
.product-price-action .price {
    display: none !important;
}

/* (Opsional) kalau mau sembunyikan juga di halaman detail produk */
.price-detail {
    display: none !important;
}

/* (Opsional) rapikan layout baris tombol saat harga disembunyikan */
.product-price-action {
    justify-content: flex-end; /* tombol ke kanan */
}

/* ==== NAVBAR MOBILE: LINK TURUN KE BARIS BAWAH SAAT TIDAK MUAT ==== */
@media (max-width: 768px) {
  /* Header boleh multi-baris */
  header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  /* Paksa main-nav jadi satu blok penuh, bisa pindah ke baris bawah */
  .main-nav {
    display: flex !important;
    order: 2;               /* tampil setelah logo; ubah ke 3 jika mau setelah search-bar */
    flex: 1 1 100%;         /* ambil lebar penuh; pindah baris sendiri */
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;    /* row-gap col-gap */
    margin-top: 0.25rem;
  }

  /* Grup link teks boleh membungkus ke beberapa baris */
  .nav-text-links {
    display: flex !important;
    flex: 1 1 100%;         /* kolom kiri: lebar penuh, bisa turun baris */
    flex-wrap: wrap;        /* KUNCI: biar turun ke baris 2, 3, dst */
    row-gap: 6px;           /* jarak vertikal antar baris */
    column-gap: 12px;       /* jarak horizontal antar link */
    overflow: visible;      /* jangan scroll ke kanan */
    white-space: normal;    /* pastikan bisa membungkus */
    justify-content: flex-start; /* rata kiri; bisa diganti center */
  }

  .nav-text-links a {
    font-size: 0.95rem;
    padding: 4px 0;
  }
  .nav-text-links a::after { display: none; } /* matikan garis hover biar rapi */

  /* Ikon di kanan tetap, tapi jangan meluber */
  .nav-icons {
    flex: 0 0 auto;      /* hanya selebar kontennya */
    display: flex;
    gap: 0.75rem;
  }

  /* Sembunyikan hamburger kalau masih ada */
  .mobile-nav-toggle,
  .mobile-nav-menu { display: none !important; }
}

/* ==== BANNER RESPONSIVE TANPA TERPOTONG DI MOBILE ==== */
@media (max-width: 768px) {
  /* Jangan kunci tinggi di mobile */
  .main-banner {
    height: auto !important;
  }

  /* Biarkan slide menyesuaikan tinggi konten */
  .main-banner .swiper-wrapper,
  .main-banner .swiper-slide {
    height: auto !important;
  }

  /* KUNCI: tampilkan seluruh gambar (no-crop) */
  .main-banner .swiper-slide img {
    width: 100%;
    height: auto;              /* biar proporsional */
    object-fit: contain !important; /* tampil utuh, tidak kepotong */
    object-position: center center;
    display: block;
  }

  /* Tambahkan latar belakang netral agar tidak “bolong” saat letterbox */
  .main-banner .swiper-slide {
    background: #f4f6f8; /* bebas ganti warna brand */
  }
}

/* Desktop tetap full-bleed dengan crop yang rapi */
@media (min-width: 769px) {
  .main-banner { height: 400px; } /* sesuai desain kamu */
  .main-banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* boleh crop di desktop */
    object-position: center;     /* fokus ke tengah */
  }
}
