/* Reset dasar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4; 
}

.container {
    max-width: 1080px; 
    margin: 0 auto;    
    padding: 0 15px;
}

/* 1. STYLING HEADER / NAVBAR */
.header {
    background-color: #ffffff;
    padding: 15px 0;
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 15px; 
}

.nav-logo img {
    display: block;
    height: 40px; /* Pastikan tinggi konsisten */
}

/* Menu Kanan (Desktop) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px; 
}

/* BARU: Ikon Kanan (Mobile) */
.nav-mobile-icons {
    display: none; /* Sembunyi di desktop */
    align-items: center;
    gap: 20px;
}

.mobile-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px; /* Ukuran ikon */
    color: #333;
}

/* Styling Tombol (Desktop & Mobile) */
.btn {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center; /* Menengahkan ikon+teks */
    gap: 8px; 
    white-space: nowrap; 
}

.btn-cart, .btn-login {
    background-color: #42a5f5; 
}

.btn:hover {
    filter: brightness(90%);
}

/* Styling Form Pencarian (Desktop & Mobile) */
.search-form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden; 
    background-color: #ffffff; 
}

.search-form input {
    border: none;
    padding: 10px;
    font-size: 14px;
    outline: none;
    width: 100%; /* Agar fleksibel */
}

.search-form button {
    border: none;
    background-color: #f0f0f0;
    padding: 0 12px;
    cursor: pointer;
    color: #555;
}

/* 2. STYLING HERO / CAROUSEL */
.hero-section {
    background-color: #ffffff;
    padding: 30px 0; 
    margin-top: 1px;
}

.hero-slider {
    max-width: 764px;
    width: 100%;
    aspect-ratio: 1 / 1; 
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;    
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* 3. BARU: STYLING MENU MODAL MOBILE */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Latar gelap transparan */
    z-index: 2000;
    
    /* Sembunyikan by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%; /* Lebar panel menu */
    max-width: 350px;
    height: 100%;
    background-color: #ffffff;
    
    /* Mulai dari luar layar */
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* State Aktif (Saat di-klik) */
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0); /* Geser masuk ke layar */
}

/* Styling isi modal */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.antam-logo {
    height: 80px; /* Sesuaikan ukuran logo antam */
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.mobile-menu-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Jarak antar item di modal */
}

/* 4. MEDIA QUERY (UNTUK RESPONSIVE) */
@media (max-width: 768px) {
    
    .navbar {
        /* Hapus garis bawah di navbar utama mobile */
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Sembunyikan menu desktop */
    .nav-menu {
        display: none;
    }

    /* Tampilkan ikon mobile */
    .nav-mobile-icons {
        display: flex;
    }
    
    .hero-section {
        padding: 15px 0; /* Kurangi padding di mobile */
    }
}
.cta-banner {
    /* 1. Ganti 'emas bg.jpg' jika nama file Anda berbeda */
    background-image: url('/assets/img/emasbg.jpg');
    background-size: cover;      /* Memastikan gambar menutupi area */
    background-position: center; /* Posisi gambar di tengah */
    
    /* 2. Padding ini mengatur 'ketinggian' banner */
    padding: 40px 15px; 
    
    /* 3. Menggunakan Flexbox untuk menengahkan tombol */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styling khusus untuk tombol pink */
.btn-cta {
    /* 2. Warna pink-kemerahan, icon, dan shape */
    background-color: #dc5058; 
    color: #ffffff;
    font-size: 14px;
    font-weight: 300; /* Sedikit bold, sesuai screenshot */
    padding: 12px 20px; /* Sedikit lebih besar dari tombol header */
    border-radius: 5px;
    text-transform: uppercase; /* Teks menjadi huruf besar */
    text-decoration: none;
    gap: 10px; /* Jarak antara ikon dan teks */
}

/* Efek hover untuk tombol CTA */
.btn-cta:hover {
    filter: brightness(90%); /* Sama seperti tombol lain */
}

/* 6. BARU: STYLING PRODUCT SECTION */

.product-section {
    padding: 40px 0;
    background-color: #ffffff; /* Latar belakang putih untuk section */
    border-top: 1px solid #f0f0f0; /* Garis pemisah tipis */
}

.product-grid {
    display: grid;
    /* Membuat 2 kolom di desktop */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; /* Jarak antar kartu */
}

.product-card {
    border: 1px solid #e0e0e0; /* Garis border kartu */
    background: #ffffff;
    /* position: relative PENTING untuk badge */
    position: relative; 
    overflow: hidden; /* Agar badge tidak keluar radius */
    display: flex;
    flex-direction: column; /* Konten tersusun vertikal */
}

/* Badge "Belum Tersedia" */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #ff9500; /* Oranye sesuai screenshot */
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
}

.product-image-link {
    display: block;
    background-color: #f9f9f9; /* Latar belakang gambar */
}

.product-image {
    width: 100%;
    height: auto;
    /* Ini akan menjaga rasio aspek gambar Anda (633.8 / 486) */
    aspect-ratio: 486 / 633.8; 
    object-fit: cover; /* Memastikan gambar pas */
    transition: transform 0.3s ease;
}


.product-info {
    padding: 15px;
    /* Mendorong tombol ke bawah */
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-price {
    font-size: 18px;
    font-weight: 300;
    color: #333;
    margin-bottom: 4px;
    text-align: left;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    color: #007bff; /* Warna biru link */
    text-decoration: none;
    margin-bottom: 8px;
}

.product-name:hover {
    text-decoration: underline; /* Underline saat hover */
}

.product-rating {
    font-size: 13px;
    color: #f9a825; /* Warna kuning bintang */
    margin-bottom: 15px;
    
    /* Mendorong tombol ke bawah */
    margin-top: auto; 
}

.product-rating span {
    color: #888; /* Warna abu-abu (jumlah review) */
    margin-left: 5px;
    font-size: 12px;
}

.btn-detail {
    text-decoration: none;
    color: #ffffff;
    background-color: #007bff; /* Biru muda */
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    align-self: flex-end; 
    transition: filter 0.2s;
    margin-top: 10px;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.btn-detail:hover {
    filter: brightness(90%);
}

/* Tombol "Lihat Lagi" */
.load-more-container {
    text-align: center;
    margin-top: 30px;
    display : flex;
    justify-content: center;

}

.btn-load-more {
    background-color: #ffffff;
    color: #007bff;
    border: 1px solid #007bff;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 300; /* <-- SUDAH DIGANTI */
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Responsive untuk Mobile */
@media (max-width: 768px) {
    
    /* Blok .product-grid sudah tidak ada di sini */
    
    .navbar {
        /* Hapus garis bawah di navbar utama mobile */
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Sembunyikan menu desktop */
    .nav-menu {
        display: none;
    }

    /* Tampilkan ikon mobile */
    .nav-mobile-icons {
        display: flex;
    }
    
    .hero-section {
        padding: 15px 0; /* Kurangi padding di mobile */
    }
}

/* 7. BARU: STYLING SERVICE SECTION */

.service-section {
    padding: 20px 0;
    background-color: #ffffff; /* Latar putih */
}

.service-title {
    /* Warna oranye (sesuai screenshot) */
    color: #f37021; 
    font-size: 18px; /* Ukuran judul */
    font-weight: 400; /* Font tipis */
    margin-bottom: 10px;
}

.service-description {
    font-size: 18px;
    color: #31373d; 
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-image-container {
    /* Menengahkan gambar */
    text-align: center; 
}

.service-image {
    /* Agar responsif dan tidak pernah lebih lebar dari parent-nya */
    max-width: 100%; 
    height: auto;
}

/* 8. BARU: STYLING BLOG SECTION */

.blog-section {
    /* Kembali ke latar abu-abu (sesuai screenshot) */
    background-color: #8b8a8a; 
    padding: 40px 0;
}

.blog-grid {
    display: grid;
    /* 2 kolom di desktop */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    overflow: hidden; /* Agar sudut gambar rapi */
}

.blog-image-link {
    display: block;
    text-decoration: none;
}

.blog-image {
    width: 100%;
    height: auto;
    display: block;
    /* Menjaga rasio 480x288 */
    aspect-ratio: 480 / 288; 
    object-fit: cover;
}

.blog-info {
    padding: 20px;
}

.blog-title {
    /* Warna kuning/gold (sesuai permintaan "kuning") */
    color: #f37021; 
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    text-decoration: none;
}

.blog-title:hover {
    text-decoration: underline; /* Underline saat hover */
}


/* PENYESUAIAN MEDIA QUERY (DI PALING BAWAH) */
@media (max-width: 768px) {
    
    /* ... (kode untuk .navbar, .nav-menu, dll. biarkan saja) ... */

    /* BARU: Atur grid blog jadi 1 kolom di mobile */
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* 9. BARU: STYLING GABUNGAN SECTION 'WHY' & 'FOOTER' */
.final-section-top {
    padding: 40px 0;
    background-color: #ffffff; /* Latar putih */
    max-width: 1024px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
}

.why-title {
    color: #fbc332; 
    font-size: 15px; 
    font-weight: 600;
    margin-bottom: 10px;
}

.why-description {
    font-size: 15px;
    color: #31373d; 
    line-height: 1.6;
    margin-bottom: 40px;
}

.why-description a {
    color: #fbc332;
    text-decoration: underline;
    font-weight: 600;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}

.reason-item {
    text-align: center;
}

.reason-icon {
    width: 80px; 
    height: 80px;
    margin-bottom: 15px;
}

.reason-title {
    font-size: 18px; 
    font-weight: 400; 
    color: #f37021; 
    margin-bottom: 10px;
}

.reason-description {
    font-size: 14px;
    color: #31373d;
    line-height: 1.5;
}

/* Wrapper untuk bagian abu-abu */
.final-section-bottom {
    flex: 1 1 0%;
    padding: 20px 0 60px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
    max-width: 1024px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        row-gap: 25px;
    }
}
.footer-title {
    font-size: 14px;
    color: #00356d;
    font-weight: 600;
    margin-bottom: 12px;
}

.subscribe-form-group {
    display: flex;
    flex-direction: column; /* Default: tumpuk di mobile */
    gap: 10px;
}

.subscribe-input {
    width: 100%; /* Lebar penuh */
    border: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 5px; /* Selalu radius penuh */
    outline: none;
    box-sizing: border-box; /* Pastikan padding tidak menambah lebar */
}

.subscribe-button {
    width: 100%; /* Lebar penuh */
    border: none;
    background-color: #f37021; /* Oranye */
    color: white;
    padding: 10px 20px;
    border-radius: 5px; /* Selalu radius penuh */
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    box-sizing: border-box;
}
.footer-address {
    font-size: 12px;
    color: #31373d;
    line-height: 1.7;
    padding-bottom: 18px;
}

.footer-address-wrapper {
    display: flex;
    /* Teks rata atas dengan ikon */
    align-items: flex-start; 
    /* Jarak antara ikon dan teks */
    gap: 10px; 
}

.footer-address-wrapper i {
    font-size: 16px;
    color: #31373d; /* Warna ikon samakan dengan teks */
    /* Beri sedikit jarak dari atas agar sejajar baris pertama */
    margin-top: 4px; 
}


/* 10. BARU: STYLING FOOTER UTAMA (BIRU) */

.main-footer {
    /* Warna biru/ungu dari screenshot */
    background-color: #6068a8; 
    padding: 30px 0;
    color: #ffffff;
}

.footer-logo-grid {
    display: grid;
    /* 2 kolom */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    align-items: center;
}

.footer-logo-title {
    /* Warna kuning/gold dari screenshot */
    color: #f3be18; 
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.logo-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Jarak antar logo */
    align-items: center;
}

.logo-group img {
    height: 35px; /* Sesuaikan tinggi logo */
    width: auto;
    /* PENTING: Membuat logo PNG Anda (yg mungkin hitam) menjadi PUTIH */
    filter: brightness(0) invert(1);
}

/* Kolom kanan (partner & copyright) */
.col-partners {
    text-align: center;
}

.logo-group-partners {
    justify-content: center;
    margin-bottom: 15px;
}

.logo-group-partners img {
    height: 40px; /* Logo partner sedikit lebih besar */
}

.footer-copyright {
    font-size: 13px;
    opacity: 0.9;
}


/* PENYESUAIAN MEDIA QUERY (DI PALING BAWAH) */
@media (max-width: 768px) {
    
    /* ... (kode untuk .navbar, .blog-grid, .reasons-grid, .footer-grid) ... */

    /* BARU: Tumpuk grid footer utama */
    .footer-logo-grid {
        grid-template-columns: 1fr; /* Tumpuk 1 kolom */
        text-align: center;
        gap: 30px;
    }

    .logo-group {
        justify-content: center; /* Tengahkan logo di mobile */
    }
}

/* 11. BARU: STYLING LOGIN PAGE (VERSI REVISI BUBBLE) */

.login-page {
    padding: 60px 0;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

.login-container {
    max-width: 400px; 
    
}

.login-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #333;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

/* BARU: Wrapper untuk form group */
.form-group {
    position: relative;
    margin-bottom: 15px; 
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: px;
    font-size: 14px;
    margin-bottom: 0; 
}

/* POIN 2: Styling Alert Password  */
.password-alert {
    display: none; 
    position: absolute;
    bottom: 100%; 
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    
    background-color: #ff635e; /* Merah */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 8px; 
}

.password-length-alert {
    display: none; 
    position: absolute;
    bottom: 100%; 
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    
    background-color: #ff635e; /* Merah */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 8px; 
}


.password-alert::after {
    content: '';
    position: absolute;
    top: 100%; 
    left: 30px; 
    border-width: 6px;
    border-style: solid;
    border-color: #ff635e transparent transparent transparent; 
}

.password-alert.visible {
    display: block;
}


.form-group.error label {
    color: #ff635e; 
}

.form-group.error input {
    border-color: #ff635e; 
}


/* POIN 3: Styling Tombol */
.login-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px; 
    margin-bottom: 20px;
}

.btn-login-submit,
.btn-login-register {
    flex: 1; 
    padding: 12px;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login-submit {
    background-color: #007bff;
    color: #ffffff;
    border: 1px solid #007bff;
}
.btn-login-submit:hover {
    filter: brightness(90%);
}

.btn-login-register {
    background-color: #ffffff;
    color: #007bff; 
    border: 1px solid #007bff; 
}
.btn-login-register:hover {
    background-color: #f4f8ff;
}

/* POIN 4: Styling Link Lupa Password */
.login-forgot-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.login-forgot-link:hover {
    text-decoration: underline;
}

/* BARU: Styling untuk Checkbox di Halaman Daftar */
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara checkbox dan label */
    margin-bottom: 20px; /* Jarak ke tombol */
}

.form-group-checkbox input[type="checkbox"] {
    /* Ukuran checkbox */
    width: 16px;
    height: 16px;
    margin: 0; /* Hapus margin default */
}

.form-group-checkbox label {
    /* Reset margin-bottom dari .login-form label */
    margin-bottom: 0; 
    font-weight: 400; /* Pastikan font-weight-nya 400 */
    color: #333; /* Warna teks biasa */
}

/* 12. BARU: STYLING NOTIFIKASI FORM */
.form-notification {
    /* Sembunyi by default */
    display: none; 
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Opsional: Style untuk notifikasi GAGAL (merah) */
.form-notification.error {
    background-color: #fdecea;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* Class 'visible' ini ditambahkan oleh JS/Backend */
.form-notification.visible {
    display: flex;
}


/* Tombol full-width untuk form 'Lupa Password' & 'Reset Password' */
.btn-full-width {
    width: 100%;
    box-sizing: border-box; /* Agar padding tidak merusak lebar */
    margin-top: 10px; /* Jarak dari form group */
}

/* 13. BARU: STYLING CATEGORY PAGE */

.category-page {
    padding-top: 6px;
     padding-bottom: 6px;
    background-color: #ffffff; /* Latar putih */
}

.category-header {
    text-align: center; /* Menengahkan semua isinya */
    margin-bottom: 30px; /* Jarak ke grid produk nanti */
}

.category-banner {
    /* Wrapper untuk menengahkan gambar */
    display: flex;
    justify-content: center;
}

.category-banner-image {
    width: 600px; 
    height: 97.5px;
    max-width: 100%; 
    object-fit: cover; 
}

.category-cta {
    margin-top: 25px; /* Jarak dari gambar */
    font-size: 15px; 
    font-weight: 400; /* Sesuai permintaan */
    color: #333;
    line-height: 1.6;
}

.cta-highlight {
    font-weight: 700; /* Bold */
    color: #f3be18; /* Warna kuning/gold */
}

/* 14. BARU: STYLING HALAMAN KATEGORI (SIDEBAR & GRID) */

/* Wrapper Utama (Sidebar + Konten) */
.category-content-wrapper {
    display: flex;
    flex-direction: column; /* Tumpuk di mobile by default */
    gap: 30px;
}

/* Sidebar Kategori (KIRI) */
.category-sidebar {
    width: 100%;
    flex-shrink: 0; /* Jangan menyusut */
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px ;
    margin-bottom: 2px;
}

.sidebar-nav {
    display: flex;
    /* BERUBAH DI MOBILE: Horizontal & Scroll */
    flex-direction: row; 
    overflow-x: auto; /* Bisa di-scroll horizontal */
    gap: 10px;
    padding-bottom: 10px; /* Jarak untuk scrollbar */
}

.sidebar-link {
    display: block;
    text-decoration: none;
    font-size: 14px;
    color: #555;
    
    /* BERUBAH DI MOBILE: Menjadi 'Box' */
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 20px; /* Radius bulat */
    padding: 8px 15px;
    white-space: nowrap; /* Teks tidak terpotong */
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Konten Utama (KANAN) */
.category-main-content {
    width: 100%;
}

/* Filter "Urutkan" */
.filter-bar {
    display: flex;
    justify-content: flex-end; /* Rata kanan */
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}


.category-controls-header {
    display: flex;
    justify-content: space-between; /* Judul kiri, filter kanan */
    align-items: center;
    margin-bottom: 15px; /* Jarak ke link kategori */
}

.filter-bar label {
    font-size: 14px;
    color: #555;
}

.sort-dropdown {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
}

/* Grid Produk (Style Baru) */
.category-product-grid {
    display: grid;
    /* BERUBAH: 2 kolom di mobile (sesuai permintaan) */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
}

/* Kartu Produk (Style Baru) */
.category-product-card {
    background: #ffffff;
    position: relative; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-product-card .product-image {
    aspect-ratio: 1 / 1; 
}

/* Badge "Belum Tersedia" (Style ini sudah ada, pastikan saja) */
.product-badge {
    position: absolute; top: 12px; right: 12px;
    background-color: #ff9500; 
    color: #ffffff;
    padding: 4px 8px;
    font-size: 11px; 
    font-weight: 600; 
    z-index: 10;
}

/* Info Produk (Style Baru: Center) */
.category-product-info {
    padding: 15px;
    text-align: left; /* Teks di tengah */
    flex-grow: 1; /* Mendorong tombol ke bawah */
    
}

.category-product-price {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 4px;
}

.category-product-name {
    font-size: 14px;
    font-weight: 400; /* Normal */
    color: #007bff;
    text-decoration: none;
    margin-bottom: 8px;
    display: block; /* Agar margin-bottom bekerja */
}
.category-product-name:hover {
    text-decoration: underline;
}

.category-product-rating {
    font-size: 13px; color: #f9a825;
    margin-top: auto;
}
.category-product-rating span {
    color: #888; margin-left: 5px; font-size: 12px;
}

/* Tombol Aksi (Style Baru: Baris Bawah) */
.category-product-actions {
    display: flex;
    margin-top: 15px;
}

.btn-share,
.category-product-actions .btn-detail {
    flex: 1; /* Bagi rata */
     padding: 3px 9px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    
}

.btn-share {
    background: none;
    border: none;
    border-right: 1px solid #f0f0f0; 
    color: #929292;
    font-size: 18px; /* Ukuran ikon */
    display: flex; /* Untuk menengahkan ikon */
    justify-content: center;
    align-items: center;
    font-size: 15px;
}
.btn-share:hover {
    background-color: #f9f9f9;
}

.category-product-actions .btn-detail {
    color: #ffffff;
    background-color: #007bff;
    border-radius: 5px; /* Hapus radius */
    
}
.category-product-actions .btn-detail:hover {
    filter: brightness(90%);
}

/* BARU: Popup Share Overlay (Latar Belakang Gelap) */
.share-popup-overlay {
    position: fixed; /* Menutupi seluruh viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Latar belakang gelap transparan */
    display: none; /* Sembunyi by default */
    justify-content: center; /* Tengahkan horizontal */
    align-items: center; /* Tengahkan vertikal */
    z-index: 1000; /* Pastikan di atas semua elemen lain */
}

.share-popup-overlay.visible {
    display: flex;
}

/* BARU: Kotak Popup Share di tengah */
.share-popup {
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* Border putih */
    border-radius: 8px;
    padding: 25px 30px; /* Padding lebih banyak */
    width: 280px; /* Lebar tetap sesuai screenshot */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Jarak antar elemen */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.share-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px; /* Jarak ke ikon */
}

.whatsapp-icon {
    font-size: 45px; /* Icon lebih besar */
    color: #25D366; 
    text-decoration: none;
}

.btn-share-kembali {
    background-color: #f0f0f0; /* Latar abu-abu terang */
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.btn-share-kembali:hover {
    background-color: #e0e0e0;
}


/* --- Media Query untuk Desktop --- */
@media (min-width: 769px) {
    .category-content-wrapper {
        flex-direction: row; /* Layout berdampingan */
    }

    .category-sidebar {
        width: 200px; /* Lebar tetap sidebar */
    }

    .sidebar-nav {
        flex-direction: column; /* Kembali jadi list vertikal */
        overflow-x: visible;
        gap: 0;
    }

    .sidebar-link {
        /* Kembali jadi teks biasa */
        background: none;
        border: none;
        border-radius: 0;
        padding: 8px 0;
        white-space: normal;
    }
    .sidebar-link:hover {
        background: none;
        color: #007bff;
    }

    /* Grid Produk (3 kolom di desktop) */
    .category-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* 16. BARU: STYLING HALAMAN DETAIL PRODUK */

.product-detail-page {
    padding: 30px 0;
    background-color: #ffffff;
}

/* Breadcrumbs (Semua Produk > Emas) */
.breadcrumbs {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}
.breadcrumbs a {
    text-decoration: none;
    color: #007bff;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs i {
    font-size: 10px;
    margin: 0 8px;
}

/* Layout Utama (Grid) */
.product-detail-layout {
    display: grid;
    /* 1 kolom di mobile (default) */
    grid-template-columns: 1fr; 
    gap: 30px;
}

.product-image-gallery img {
    width: 100%;
    /* Ukuran 512x512 = rasio 1:1 */
    aspect-ratio: 1 / 1; 
    max-width: 512px; /* Batas maksimum */
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.product-details-info {
    display: flex;
    flex-direction: column;
}

.product-main-name {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.product-preorder-badge {
    background-color: #f0f0f0;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    align-self: flex-start; /* Agar tidak full-width */
}

.product-rating-summary {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}
.product-rating-summary span:first-child {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}
.product-rating-summary i {
    color: #f9a825; /* Bintang kuning */
}

.product-main-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* Opsi Pembayaran (DP) */
.payment-options {
    display: flex;
    gap: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
.payment-option-item {
    flex: 1;
}
.payment-option-item span {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}
.payment-option-item strong {
    font-size: 15px;
    color: #333;
}

/* Pilihan Pembayaran */
.payment-selection {
    margin-bottom: 20px;
}
.payment-selection label {
    display: block;
    font-size: 14px;
    font-weight: 400; /* Sesuai login */
    color: #555;
    margin-bottom: 8px;
}
.btn-payment-option {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
}
.btn-payment-option.active {
    border-color: #007bff;
    background-color: #007bff;
    color: #fff;
}

/* Pilihan Jumlah */
.quantity-selection {
    margin-bottom: 15px;
}
.quantity-selection label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin-bottom: 8px;
}
.quantity-selector {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 120px; /* Lebar tetap */
}
.btn-quantity {
    width: 35px;
    border: none;
    background-color: #f0f0f0;
    font-size: 18px;
    cursor: pointer;
}
.btn-quantity.minus {
    border-radius: 5px 0 0 5px;
}
.btn-quantity.plus {
    border-radius: 0 5px 5px 0;
}
.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 15px;
}
/* Sembunyikan panah di input number */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-input[type=number] {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}


/* Status Stok */
.product-stock-status {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.product-stock-status.error {
    color: #d9534f; /* Merah */
}
.product-stock-status.success {
    color: #5cb85c; /* Hijau */
}

/* Tombol Aksi Utama */
.product-main-actions {
    display: flex;
    flex-direction: column; /* Tumpuk di mobile */
    gap: 10px;
}

.btn-buy-now,
.btn-add-to-cart {
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-buy-now {
    background-color: #d9534f; /* Merah */
    color: #fff;
}
.btn-add-to-cart {
    background-color: #5cb85c; /* Hijau */
    color: #fff;
}
.btn-buy-now:hover, .btn-add-to-cart:hover {
    filter: brightness(90%);
}

/* --- Media Query untuk Desktop --- */
@media (min-width: 769px) {
    .product-detail-layout {
        /* Layout 2 kolom di desktop */
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .product-main-actions {
        flex-direction: row; /* Berdampingan di desktop */
    }
    .btn-buy-now, .btn-add-to-cart {
        flex: 1; /* Lebar sama */
    }
}

/* 17. BARU: STYLING DESKRIPSI & ULASAN PRODUK */

/* Judul Section Umum */
.section-title {
    font-size: 20px;
    font-weight: 00;
    color: #333;
    margin-bottom: 20px;
}

/* Deskripsi Produk */
.product-description-section p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
    /* text-align: left; sudah default */
}

/* Ulasan & Rating */
.review-summary-grid {
    display: grid;
    grid-template-columns: 1fr; /* Tumpuk di mobile */
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

/* Kiri: Skor */
.review-score {
    text-align: center;
}
.score-number {
    font-size: 48px;
    font-weight: 600;
    color: #333;
}
.score-total {
    font-size: 20px;
    color: #888;
    margin-left: 5px;
}
.review-stars-large {
    font-size: 20px;
    color: #f9a825;
    margin-top: 5px;
}

/* Kanan: Bar Rating */
.review-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.review-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}
.review-bar-item i {
    color: #f9a825;
}
.bar-bg {
    flex-grow: 1;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background-color: #f9a825; /* Oranye/kuning */
    border-radius: 5px;
}
.review-bar-item span:last-child {
    color: #888;
}

/* Filter Bintang */
.review-filters {
    display: flex;
    flex-wrap: wrap; /* Agar rapi di mobile */
    gap: 10px;
    margin-bottom: 30px;
}
.btn-filter-review {
    padding: 8px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #555;
    border-radius: 5px;
    cursor: pointer;
}
.btn-filter-review.active,
.btn-filter-review:hover {
    border-color: #007bff;
    background-color: #f4f8ff; /* Biru muda */
    color: #007bff;
}
.btn-filter-review i {
    color: #f9a825;
}

/* List Ulasan */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.review-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
}
.review-author {
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}
.review-stars-small {
    font-size: 13px;
    color: #f9a825;
    margin-bottom: 8px;
}
.review-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}
.review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* --- Media Query untuk Desktop --- */
@media (min-width: 769px) {
    .review-summary-grid {
        /* Grid 2 kolom di desktop */
        grid-template-columns: 1fr 2fr; /* Kolom kiri lebih kecil */
        gap: 40px;
    }
    .review-score {
        text-align: left; /* Rata kiri di desktop */
    }
}
/* 18. BARU: STYLING PRODUK LAINNYA (DETAIL PAGE) */
\.related-products-grid {
    display: flex;
    flex-wrap: nowrap;      
    overflow-x: auto;     
    gap: 15px;
    padding-bottom: 20px; 
}

/* Tombol share full width (karena tidak ada 'Lihat Detil') */
.btn-share-full-width {
    flex: 1; /* Ambil semua ruang di .category-product-actions */
    border-right: none !important; /* Hapus pemisah jika ada */
}

/* 19. BARU: OVERRIDE STYLE KARTU PRODUK LAINNYA */

.related-product-card {
    /* Dimensi sesuai permintaan (150x301) */
    width: 150px; 
    flex-shrink: 0;
    /* Penting: Atur ulang flexbox agar konten menyesuaikan tinggi */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Konten atas, tombol bawah */
    
    /* Override padding jika perlu, agar lebih compact */
    padding: 0; 
    border: 1px solid #e0e0e0;
    border-radius: 5px; /* Radius lebih kecil dari sebelumnya */
    box-shadow: none; /* Hapus shadow */
}

.related-product-card .product-image-link {
    padding: 10px; /* Padding di sekitar gambar */
    display: block;
}

.related-product-card .product-image {
    width: 100%;
    /* Pastikan gambar 1:1 dan pas di dalam */
    aspect-ratio: 1 / 1; 
    object-fit: contain; /* Gambar tidak terpotong */
    border: none; /* Hapus border dari gambar */
    border-radius: 0;
}

.related-product-card .category-product-info {
    padding: 5px 10px 10px 10px; /* Padding lebih kecil */
    text-align: left; /* Teks rata kiri */
    flex-grow: 1; /* Agar info mengisi ruang sisa */
}

.related-product-card .category-product-price {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.related-product-card .category-product-name {
    font-size: 13px;
    margin-bottom: 5px;
    color: #007bff; /* Warna teks lebih gelap */
}

.related-product-card .category-product-rating {
    font-size: 11px; /* Ukuran bintang lebih kecil */
    margin-bottom: 5px;
}
.related-product-card .category-product-rating span {
    font-size: 10px; /* Ukuran angka rating lebih kecil */
}

.related-product-card .category-product-actions {
    display: flex;
    justify-content: flex-start; /* <-- BENAR: Rata Kiri */
    padding: 5px 0;
}

.related-product-card .btn-share {
    font-size: 13px; /* <-- Ukuran font normal */
    color: #929292;
    border-right: none !important; 
    padding: 5px 10px;
    
    /* BARU: Menambahkan spasi antara ikon dan teks */
    display: flex;
    align-items: center;
    gap: 5px; 
}
.related-product-card .btn-share:hover {
    background-color: #f0f0f0;
}

/* Override untuk grid agar tidak menyesuaikan lebar parent */
.related-products-grid {
    display: flex;
    flex-wrap: wrap; /* Pastikan bisa wrap di layar kecil */
    gap: 15px; /* Jarak antar kartu */
    justify-content: flex-start; /* Rata kiri */
}

/* 20. BARU: STYLING FOTO PADA ULASAN */

.review-photo-gallery {
    margin-top: 15px; /* Jarak dari teks ulasan */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-photo {
    width: 80px; /* Ukuran thumbnail */
    height: 80px;
    object-fit: cover; /* Memastikan gambar pas (tidak gepeng) */
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    cursor: pointer; /* Agar user tahu ini bisa diklik (untuk zoom nanti) */
}

/* 21. BARU: STYLING HALAMAN KERANJANG (CART) */

.cart-page {
    padding: 40px 0;
}

.cart-item {
    display: grid;
    /* Kolom 1: 80px (gambar), Kolom 2: sisa ruang */
    grid-template-columns: 80px 1fr; 
    /* Baris 1: detail, Baris 2: kontrol */
    grid-template-rows: auto auto;    
    column-gap: 15px; /* Jarak antara gambar dan konten */
    row-gap: 10px;    /* Jarak antara detail dan kontrol */
    padding: 20px 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #f0f0f0;
}

.cart-item-details {
    flex-grow: 1;
    margin-top: 15px; /* Jarak dari gambar di mobile */
    width: 100%;
}

.cart-item-name-group {
    display: flex;
    justify-content: space-between; /* Nama kiri, X kanan */
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
}
.cart-item-name:hover {
    text-decoration: underline;
}

.cart-item-delete {
    font-size: 14px;
    color: #aaa;
    text-decoration: none;
}
.cart-item-delete:hover {
    color: #d9534f; /* Merah saat hover */
}

.cart-item-price {
    font-size: 14px;
    color: #555;
    display: block;
}

/* Tentukan posisi gambar di grid */
.cart-item-image {
    /* (width & height 80px sudah ada) */
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* Gambar memakan 2 baris (tinggi) */
    align-self: start;
}

/* Tentukan posisi detail di grid */
.cart-item-details {
    grid-column: 2 / 3; /* Kolom kanan */
    grid-row: 1 / 2;    /* Baris atas */
    margin-top: 0; /* Hapus margin atas */
    width: 100%;
}

/* Tentukan posisi kontrol di grid */
.cart-item-controls {
    grid-column: 2 / 3; /* Kolom kanan */
    grid-row: 2 / 3;    /* Baris bawah */
    margin-top: 0; /* Hapus margin atas */
    width: 100%;
    /* Pastikan Qty & Subtotal tetap sejajar */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Kontrol (Kuantitas + Subtotal) */
.cart-item-controls {
    display: flex;
    justify-content: space-between; /* Kuantitas kiri, subtotal kanan */
    align-items: center;
    width: 100%;
    margin-top: 15px; /* Jarak dari detail */
}

.cart-item-subtotal {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: right;
}

.cart-item-divider {
    border: 0;
    height: 1px;
    background-color: #f0f0f0;
    margin: 0;
}

/* Total & Checkout */
.cart-summary {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Full width di mobile */
    margin-top: 30px;
}

.cart-total {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    text-align: right;
    margin-bottom: 15px;
}
.cart-total span {
    font-weight: 400;
    color: #555;
    margin-right: 15px;
}

.btn-checkout {
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
}
.btn-checkout:hover {
    filter: brightness(90%);
}


/* --- Media Query untuk Desktop --- */
@media (min-width: 769px) {
    .cart-item {
        flex-direction: row; /* Berdampingan di desktop */
        align-items: center;
    }

    .cart-item-details {
        margin-top: 0;
        margin-left: 15px;
        margin-right: 15px;
    }

    .cart-item-name-group {
        justify-content: flex-start; /* Nama dan X berdekatan */
        gap: 15px;
    }

    .cart-item-controls {
        width: auto; /* Jangan full width */
        margin-top: 0;
        gap: 20px;
    }

    .cart-item-subtotal {
        width: 150px; /* Beri lebar tetap agar rapi */
    }

    .cart-summary {
        align-items: flex-end; /* Rata kanan di desktop */
    }

    .btn-checkout {
        width: 250px; /* Lebar tetap di desktop */
    }
}

/* 22. BARU: STYLING BADGE KERANJANG */

/* Buat tombol jadi 'relative' agar badge bisa menempel */
.btn-cart,
.mobile-icon-btn {
    position: relative;
}

.cart-badge {
    /* Style Lingkaran */
    background-color: #d9534f; /* Merah */
    color: white;
    border-radius: 50%;
    
    /* Ukuran & Font */
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 600;
    
    /* Posisi Menempel */
    position: absolute;
    top: -8px;   /* Sesuaikan posisi vertikal */
    right: -8px; /* Sesuaikan posisi horizontal */
    
    /* Trik untuk menengahkan angka */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Sembunyikan jika kosong (Backend bisa hapus isinya) */
}

/* Penyesuaian untuk tombol ikon di mobile */
.mobile-icon-btn .cart-badge {
/* Pindahkan badge ke sudut luar ikon */
    top: -5px;  /* Sedikit ke atas */
    right: -5px; /* Sedikit ke kanan */

    /* Buat sedikit lebih kecil agar pas */
    width: 18px;
    height: 18px;
    font-size: 11px;
}
/* Penyesuaian untuk tombol di menu slide-in */
.mobile-menu-body .btn-cart {
    /* Pastikan 'relative' juga di sini */
    position: relative; 
}
.mobile-menu-body .btn-cart .cart-badge {
    top: 5px;   /* Sesuaikan posisi */
    right: 15px; /* Sesuaikan posisi */
}
/* POPUP MASUKKAN KE KERANJANG */
.global-popup-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;
}
.global-popup-overlay.visible {
    display: flex;
}
/* Akhir style overlay */


.add-to-cart-popup {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative; /* Untuk tombol 'X' */
}

/* Tombol 'X' */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.popup-close-btn:hover {
    color: #333;
}

.popup-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 10px 0 25px 0; /* Beri ruang dari tombol X */
}

.popup-actions {
    display: flex;
    flex-direction: column; /* Tumpuk di mobile */
    gap: 10px;
}

.btn-popup-primary,
.btn-popup-secondary {
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #007bff;
}

.btn-popup-primary {
    background-color: #007bff;
    color: #ffffff;
}
.btn-popup-primary:hover {
    filter: brightness(90%);
}

.btn-popup-secondary {
    background-color: #ffffff;
    color: #007bff;
}
.btn-popup-secondary:hover {
    background-color: #f4f8ff;
}

/* --- Media Query untuk Desktop --- */
@media (min-width: 769px) {
    .popup-actions {
        flex-direction: row; /* Berdampingan di desktop */
    }
    .btn-popup-primary,
    .btn-popup-secondary {
        flex: 1; /* Lebar sama */
    }
}
/* 24. BARU: STYLING HALAMAN CHECKOUT */

/* Beri BG abu-abu pada body KHUSUS halaman checkout */
.checkout-body {
    background-color: #f9f9f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.checkout-page {
    padding: 40px 0;
}

.checkout-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout Utama */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr; /* Tumpuk di mobile */
    gap: 30px;
}

/* Kolom Kiri: Formulir */
.checkout-form {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    /* box-shadow dihapus */
    order: 1; 
}

.checkout-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.checkout-steps {
    display: flex;
    flex-wrap: wrap; /* Agar rapi di mobile kecil */
    font-size: 13px;
    margin-bottom: 25px;
    color: #888;
}
.step-item {
    white-space: nowrap;
}
.step-item.active {
    color: #333;
    font-weight: 400;
}
/* Panah pemisah */
.step-item:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: #aaa;
}

.form-subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* Kita pakai ulang style .form-group dan .form-row dari login */
.form-row {
    display: grid;
    grid-template-columns: 1fr; /* Tumpuk di mobile */
    gap: 15px;
}

.btn-checkout-continue {
    width: auto; /* TIDAK full-width */
    padding: 12px 30px; /* Padding horizontal lebih besar */
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: #ffffff;
    border: 1px solid #007bff;
    margin-top: 0; /* Margin diatur oleh wrapper */
}
.btn-checkout-continue:hover {
    filter: brightness(90%);
}

/* BARU: Wrapper untuk meratakan tombol ke kanan */
.form-actions {
    display: flex;
    justify-content: flex-end; /* Rata kanan */
    margin-top: 20px;
}

/* REVISI: Override style input agar full-width dan rapi */
.checkout-form .form-group input {
    /* BARU: Memaksa input agar simetris dan rapi */
    width: 100%;
    box-sizing: border-box; /* Agar padding tidak merusak lebar */
    padding: 10px 12px;
    border: 1px solid #e0e0e0; 
    border-radius: 4px; 
    font-size: 14px; /* Menyamakan ukuran font */
}
/* Kolom Kanan: Ringkasan */
.checkout-summary {
background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    /* box-shadow dihapus */
    order: 2; 
    align-self: start; 
}

.summary-items-list {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
/* Tampilkan item terakhir tanpa margin bawah */
.summary-item:last-child {
    margin-bottom: 0;
}
.summary-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.summary-item-info {
    flex-grow: 1; /* Ambil sisa ruang */
}
.summary-item-name {
    font-size: 14px;
    color: #333;
    display: block;
}
.summary-item-price {
    font-size: 13px;
    color: #888;
}
/* Kecilkan quantity selector di checkout */
.summary-item .quantity-selector {
    width: 100px;
    transform: scale(0.9);
}
.summary-item .quantity-input {
    background-color: #f9f9f9; /* Tunjukkan 'disabled' */
}
.summary-item .btn-quantity {
    background-color: #f9f9f9;
    cursor: not-allowed;
}


.summary-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}

.summary-coupon {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.summary-coupon input[type="text"] {
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}
.btn-coupon {
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ffffff;
    color: #007bff;
    border: 1px solid #007bff;
}
.btn-coupon:hover {
    background-color: #f4f8ff;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 400;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}


@media (min-width: 992px) {
        .checkout-layout {
            grid-template-columns: 3fr 2fr; /* REVISI: 60% / 40% */
            gap: 0; 
        }

    .checkout-form {
        order: 1; 
        /* BARU: Tambah divider di kanan */
        border-right: 1px solid #f0f0f0; 
        /* BARU: Beri jarak dari divider */
        padding-right: 40px; 
        /* Hapus radius di sisi kanan agar divider lurus */
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .checkout-summary {
        order: 2; 
        /* BARU: Beri jarak dari divider */
        padding-left: 40px; 
        /* Hapus radius di sisi kiri agar divider lurus */
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* 25. BARU: STYLING CHECKOUT TAHAP 2 (PENGIRIMAN) */

/* Membuat step 1 terlihat seperti link */
/* REVISI: Membuat step 1 terlihat seperti link */
.step-item.complete {
    color: #f37021; /* Warna oranye/kuning brand */
    text-decoration: none; /* Hapus underline default */
    font-weight: 400;
}
.step-item.complete:hover {
    color: #d15f1a; /* Oranye lebih gelap */
    text-decoration: underline; /* Munculkan underline saat hover */
}
/* REVISI BESAR: Opsi Pengiriman */
.shipping-option-item {
    position: relative; /* Diperlukan untuk input tersembunyi */
    margin-bottom: 10px;
}

/* 1. Sembunyikan radio button asli */
.shipping-option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 2. Style Label (border luar) */
.shipping-label {
    display: block; /* Agar bisa berisi blok lain */
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.shipping-label:hover {
    background-color: #f9f9f9;
}

/* 3. Style baris utama (radio palsu + logo + judul) */
.shipping-label-main-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 4. Style radio button palsu (REVISI 1) */
.custom-radio-button {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s ease;
}
/* Titik biru di dalam */
.custom-radio-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Sembunyi by default */
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.shipping-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.shipping-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}


/* 5. Style sub-detail (REVISI 2) */
.shipping-sub-details {
    display: none; /* Sembunyi by default */
    padding-left: 40px; /* Jarak (radio 18px + gap 15px + buffer) */
    padding-top: 10px;
    
    display: flex; 
    align-items: flex-start;
    gap: 8px;
}
.blue-pointer {
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}
.shipping-sub-details small {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}
.shipping-sub-details .shipping-description {
    font-size: 12px;
    color: #888;
}


/* 6. LOGIKA UTAMA (CSS MAGIC) */

/* Saat TIDAK dicek: sembunyikan sub-detail */
.shipping-option-item input[type="radio"]:not(:checked) + .shipping-label .shipping-sub-details {
    display: none;
}

/* Saat DICEK: */
.shipping-option-item input[type="radio"]:checked + .shipping-label {
    border-color: #007bff; /* Border biru */
    background-color: #f4f8ff;
}
/* Tampilkan titik biru di radio palsu */
.shipping-option-item input[type="radio"]:checked + .shipping-label .custom-radio-button {
    border-color: #007bff; 
}
.shipping-option-item input[type="radio"]:checked + .shipping-label .custom-radio-button::after {
    transform: translate(-50%, -50%) scale(1); /* Tampilkan titik */
}
/* Tampilkan sub-detail */
.shipping-option-item input[type="radio"]:checked + .shipping-label .shipping-sub-details {
    display: flex;
}

/* Tombol Navigasi Step (Kembali & Lanjutkan) */
.form-actions-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-checkout-kembali {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    
}
.btn-checkout-kembali:hover {
    text-decoration: underline;
}

/* Rincian Summary di Kanan */
.summary-breakdown {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 15px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}
.summary-row strong {
    color: #333;
    font-weight: 600;
}
.summary-shipping-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
}
.summary-shipping-details span {
    color: #555;
}

/* 26. BARU: STYLING HALAMAN KONFIRMASI (ORDER) */

.order-page {
    padding: 40px 0;
}

.order-container {
    max-width: 900px; /* Sedikit lebih kecil dari checkout */
    margin: 0 auto;
    padding: 0 15px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

/* 1. Header Invoice */
.order-header {
    display: flex;
    flex-direction: column; /* Tumpuk di mobile */
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.order-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.invoice-id {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}
.badge-unpaid {
    background-color: #f0ad4e; /* Oranye */
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}
.order-timestamp {
    font-size: 13px;
    color: #888;
}

/* 2. Ringkasan Produk */
.order-product-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item-info {
    flex-grow: 1;
}

.summary-item-qty {
    font-size: 14px;
    color: #555;
    min-width: 30px;
    text-align: center;
}
.summary-item-total-price {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    min-width: 100px;
    text-align: right;
}

/* 3. Layout Detail */
.order-details-layout {
    display: grid;
    grid-template-columns: 1fr; /* Tumpuk di mobile */
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-shipping-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
}
.order-shipping-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}
.order-shipping-box p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.order-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 15px 0;
}
.order-status-text {
    font-size: 14px;
    color: #888;
    font-style: italic;
}


.order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
/* REVISI: Blok Tombol Aksi */
.btn-konfirmasi-pembayaran,
.btn-batalkan-link {
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
}

.btn-konfirmasi-pembayaran {
    background-color: #007bff;
    color: #ffffff;
    border: 1px solid #007bff;
}
.btn-konfirmasi-pembayaran:hover {
    filter: brightness(90%);
}

/* REVISI: Tombol Batal (teks abu-abu) */
.btn-batalkan-link {
    background-color: transparent;
    color: #888; /* Teks abu-abu */
    border: 1px solid transparent; /* Untuk alignment */
    font-weight: 500;
}
.btn-batalkan-link:hover {
    color: #555;
    text-decoration: underline;
}
.btn-batalkan-order {
    background-color: #ffffff;
    color: #d9534f; /* Merah */
    border: 1px solid #d9534f;
}
.btn-batalkan-order:hover {
    background-color: #fdf5f5;
}

/* 4. Instruksi Pembayaran */
.order-instructions {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}
.order-instructions p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 15px 0;
}
.order-instructions p:last-child {
    margin-bottom: 0;
}

/* 5. Logo Bank */
.order-payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding-top: 20px;
}
.order-payment-logos img {
    height: 30px; /* Atur tinggi agar seragam */
    object-fit: contain;
}

/* --- Media Query untuk Desktop --- */
@media (min-width: 769px) {
    .order-container {
        padding: 40px;
    }

    .order-header {
        flex-direction: row;
        align-items: center;
    }

    .order-details-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .order-payment-box {
        align-self: start; /* Mencegah stretch */
    }

    .order-actions {
        flex-direction: row; /* Berdampingan */
    }
    .btn-konfirmasi-pembayaran,
    .btn-batalkan-order {
        flex: 1; /* Lebar sama */
    }
}
/* BARU: Style nama produk agar jadi link biru */
.order-product-summary .summary-item-name {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.order-product-summary .summary-item-name:hover {
    text-decoration: underline;
}

/* 27. BARU: STYLING TOMBOL PROFIL */

.btn-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #007bff; /* Samakan dengan 'Keranjang' */
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}
.btn-profile:hover {
    background-color: #0056b3;
}

/* 28. BARU: STYLING HALAMAN PROFIL */

.profile-page {
    padding: 30px 0;
    background-color: #f9f9f9; /* Latar abu-abu */
}

/* Judul "Akun Saya" */
.page-header {
    margin-bottom: 25px;
}
.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Layout 2 Kolom */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr; /* Tumpuk di mobile */
    gap: 30px;
}

/* Kiri: Sidebar Profil */
.profile-sidebar {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    align-self: start; /* Mencegah stretch */
}

.profile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-icon-wrapper i {
    font-size: 24px;
    color: #888;
}

.profile-user-details {
    display: flex;
    flex-direction: column;
}
.profile-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.profile-user-email {
    font-size: 14px;
    color: #888;
}

.profile-nav {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}
.profile-nav-link {
    padding: 12px 15px;
    text-decoration: none;
    color: #555;
    font-size: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}
.profile-nav-link i {
    width: 20px; /* Jaga ikon tetap rapi */
    color: #888;
}
.profile-nav-link.active,
.profile-nav-link:hover {
    background-color: #f4f8ff; /* Biru muda */
    color: #007bff;
}
.profile-nav-link.active i,
.profile-nav-link:hover i {
    color: #007bff;
}
.profile-nav-link.logout {
    color: #d9534f;
}
.profile-nav-link.logout i {
    color: #d9534f;
}
.profile-nav-link.logout:hover {
    background-color: #fdf5f5;
}


/* Kanan: Konten Utama */
.profile-main-content {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}
.profile-main-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Daftar Pesanan */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order-list-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}
.order-item-id {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.order-item-date {
    font-size: 13px;
    color: #888;
}

.order-item-body {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr; /* Tumpuk di mobile */
    gap: 15px;
}

.order-item-product {
    display: flex;
    align-items: center;
    gap: 10px;
}
.order-item-product img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}
.order-item-product span {
    font-size: 14px;
    color: #555;
}

.order-item-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Rata kiri di mobile */
}
.order-item-total {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.btn-lihat-detail {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    justify-self: flex-start; /* Agar tidak full-width */
}
.btn-lihat-detail:hover {
    filter: brightness(90%);
}


/* Badge Status (Kita pakai ulang .badge-unpaid) */
.badge-paid {
    background-color: #5cb85c; /* Hijau */
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}
.badge-shipped {
    background-color: #007bff; /* Biru */
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.btn-batalkan-pesanan {
  background-color: #e74c3c; /* merah */
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  justify-self: flex-start;
}

.btn-batalkan-pesanan:hover {
  background-color: #c0392b; /* merah lebih gelap saat hover */
}
/* --- Media Query untuk Desktop --- */
@media (min-width: 992px) {
    .profile-layout {
        grid-template-columns: 300px 1fr; /* Sidebar 300px, Kanan sisa */
    }

    .order-item-body {
        grid-template-columns: 2fr 1fr 1fr; /* 3 kolom di desktop */
        align-items: center;
    }
    .order-item-status {
        align-items: flex-start; /* Rata kiri */
    }
    .btn-lihat-detail {
        justify-self: flex-end; /* Rata kanan */
    }
}

/* 29. BARU: STYLING FORMULIR TULIS ULASAN */

/* Tombol di halaman profil */
.btn-beri-ulasan {
    color: #007bff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 8px; /* Jarak dari badge */
    display: inline-block;
}
.btn-beri-ulasan:hover {
    text-decoration: underline;
}

/* Halaman Formulir Ulasan */
.review-form-page {
    padding: 30px 0;
    background-color: #f9f9f9; 
}

.review-form-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    max-width: 700px; /* Batasi lebar form */
    margin: 0 auto;
}

/* Tampilkan info produk yang diulas */
.review-form-container .order-item-product {
    padding-bottom: 0;
}

.review-form .form-group {
    margin-bottom: 20px;
}

/* Kita pakai ulang style .form-group label */
.review-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin-bottom: 8px;
}

/* Style input & textarea */
.form-input,
.form-input-file {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.form-input[type="file"] {
    padding: 8px 10px;
}
.form-input-file {
    font-size: 13px;
}

.btn-kirim-ulasan {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: #ffffff;
    border: 1px solid #007bff;
    margin-top: 10px;
}
.btn-kirim-ulasan:hover {
    filter: brightness(90%);
}

/* 30. BARU: STYLING HALAMAN BLOG POST (DETAIL) */

.blog-post-page {
    padding: 30px 0;
    background-color: #f9f9f9; 
}

/* Kotak putih utama artikel */


/* 2. Banner */
.blog-post-banner {
    width: 100%;
    aspect-ratio: 1280 / 718;
    object-fit: cover;
    margin-bottom: 0; /* REVISI: Hapus margin */
}

/* 3. Judul */
.blog-post-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 15px 0 25px 0; /* REVISI: Jarak atas dari Meta, jarak bawah ke Banner */
}

/* 1 & 4.1 Meta (Waktu & Share) */
.blog-post-meta {
    display: flex;
    flex-direction: row; /* REVISI: Sejajar */
    justify-content: space-between; /* REVISI: Kiri dan Kanan */
    align-items: center; /* REVISI: Tengah vertikal */
    gap: 10px;
    padding-top: 20px; /* Jarak dari atas */
}
.blog-post-date {
    font-size: 14px;
    color: #888;
}

.blog-post-share {
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-post-share a {
    font-size: 15px;
    color: #888;
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.blog-post-share a:hover {
    color: white;
    background-color: #007bff;
    border-color: #007bff;
}

/* Isi Artikel */
.blog-post-body {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    white-space: pre-line;

}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
}


/* 4.2 Share Bawah */
/* REVISI: Style Share Bawah */
.blog-post-share-bottom {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 15px; /* Beri jarak antar ikon */
    margin: 0; /* Margin diatur oleh <hr> */
}
.blog-post-share-bottom a {
    font-size: 20px; /* Ikon lebih besar */
    color: #aaa; /* REVISI: Warna abu-abu */
    text-decoration: none;
    transition: color 0.2s ease;
    
    /* Hapus semua style lingkaran */
    width: auto;
    height: auto;
    display: inline;
    border: none;
    border-radius: 0;
}
.blog-post-share-bottom a:hover {
    color: #333; /* Hover jadi gelap */
    background-color: transparent; /* Pastikan tidak ada BG */
}

/* 5. Blog Post Lainnya */
.related-blog-posts {
    max-width: 900px;
    margin: 0 auto;
}
.related-blog-posts .section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}
.related-blog-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 20px;
}
.related-blog-card {
    display: block;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.related-blog-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.related-blog-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.related-blog-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 15px;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.related-blog-card:hover .related-blog-title {
    color: #007bff;
}

/* --- Media Query untuk Desktop --- */
@media (min-width: 769px) {
    /* REVISI: Kembalikan padding ke box utama */
    .blog-post-content {
        padding: 30px;
    }
    /* REVISI: Hapus padding dari wrapper */
    .blog-post-padded-content {
        padding: 0;
    }
    /* REVISI: Kembalikan radius banner */

    /* REVISI: Kembalikan font size judul */
    .blog-post-title {
        font-size: 28px;
    }
    /* REVISI: Hapus padding-top */
    .blog-post-meta {
        padding-top: 0;
    }
    .blog-post-body {
        padding-top: 0;
    }

    /* Grid blog lainnya (tetap) */
    .related-blog-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}
@media (min-width: 992px) {
    .blog-post-content {
        padding: 40px;
    }
}
/* BARU: Wrapper untuk konten ber-padding */
.blog-post-padded-content {
    padding: 0 20px; /* Padding kiri-kanan */
}

.blog-post-body {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    padding-top: 25px; /* BARU: Jarak dari banner */
}

/* 31. BARU: STYLING KERANJANG KOSONG */

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 20px;
}

.cart-empty-icon {
    width: 120px;
    height: auto;
    margin-bottom: 25px;
}

.cart-empty-text {
    font-size: 18px;
    color: #555;
    margin: 0;
}

.btn-kembali-home {
    display: inline-block;
    margin-top: 20px;
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}
.btn-kembali-home:hover {
    text-decoration: underline;
}

.product-badge-new {
    position: absolute;
    top: 10px;
    right: 10px; 
    background-color: #007900;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

/*
==================================================
STYLES KUPON (Tambahan untuk Keranjang)
==================================================
*/

/* 1. FORM INPUT KUPON 
 (Grup yang menampung input dan tombol)
*/
.coupon-form {
    width: 100%;
    margin-bottom: 20px;
}

.coupon-form label {
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.coupon-input-group {
    display: flex;
    gap: 8px; /* Memberi jarak antara input dan tombol */
}

.coupon-input-group .form-control {
    /* * Kita asumsikan 'form-control' Anda sudah memiliki style.
     * 'flex: 1' membuatnya mengisi ruang yang tersisa.
    */
    flex: 1;
    min-width: 0; /* Mencegah input 'overflowing' */
    /* Pastikan cocok dengan style input Anda yang lain */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* 2. TOMBOL "TERAPKAN" 
 (Didesain agar mirip dengan tombol '.btn' Anda)
*/
.btn-apply-coupon {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    
    /* * GANTI WARNA INI! 
     * (Gunakan warna sekunder/gelap Anda) 
    */
    background-color: #007bff; 
    color: #fff;
    
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-apply-coupon:hover {
    background-color: #555; /* Warna hover */
}


/* 3. RINGKASAN HARGA (CART SUMMARY) 
 (Ini adalah modifikasi dari '.cart-total' Anda)
*/

/* Kita gunakan lagi .cart-total dari template Anda */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
}

.cart-total span {
    color: #555; /* Warna teks label (Subtotal, Total, dll) */
}

.cart-total strong {
    color: #000;
    font-weight: 400;
    font-size: 1.1rem;
}

/* 4. BARIS DISKON (BARU) 
 (Saat kupon berhasil diterapkan)
*/
.cart-total.coupon-applied-row {
    font-size: 1.05rem;
}

.cart-total.coupon-applied-row span,
.cart-total.coupon-applied-row strong {
    /* Warna hijau untuk diskon */
    color: #2ecc71; 
    font-weight: 500;
}

/* 5. TOMBOL [HAPUS] KUPON (BARU) 
*/
.btn-remove-coupon {
    background: none;
    border: none;
    color: #e74c3c; /* Warna merah */
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 0 0 5px;
    cursor: pointer;
    vertical-align: middle;
}

.btn-remove-coupon:hover {
    text-decoration: underline;
}

/* 6. GARIS PEMISAH (HR) 
 (Sesuai template Anda)
*/
.cart-item-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}


/* 7. TOTAL AKHIR (FINAL TOTAL) 
 (Membuatnya lebih besar dan tebal)
*/
.cart-total.final-total-row {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 15px;
    border-top: 2px solid #ddd; /* Garis pemisah yang lebih tebal */
}

.cart-total.final-total-row span,
.cart-total.final-total-row strong {
    color: #000;
    font-weight: 500;
}

.btn-harga-emas {
    /* 1. Tampilan (Sesuai Permintaan Anda) */
    background-color: #000000; /* Hitam pekat */
    color: #ffffff; /* Teks putih */
    
    /* 2. Styling (Agar terlihat seperti tombol) */
    display: inline-block;
    padding: 10px 10px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    border-radius: 5px; /* Anda bisa sesuaikan ini */
    transition: all 0.3s ease;
}

/* 3. Efek Hover (Penting) */
.btn-harga-emas:hover {
    background-color: #444; /* Sedikit lebih terang saat disentuh */
    color: #ffffff;
    transform: translateY(-2px); /* Efek 'angkat' sedikit */
}

.btn-harga-emas .fas {
    margin-right: 8px;
    color: #ff9900;
}


/* =============================================
   STYLING PAGINATION (TAUTAN HALAMAN)
   ============================================= 
*/

/* 1. Kontainer Utama (agar ke tengah) */
.pagination-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* 2. List (ul) utama dari Laravel */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Untuk merapikan sudut */
}

/* 3. Setiap item (li) */
.page-item {
    margin: 0;
}

/* 4. Tautan (a) di dalam item */
.page-link {
    display: block;
    padding: 10px 16px; /* Ukuran tombol */
    color: #007bff; /* Warna teks tombol */
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: none; /* Hapus border kiri agar menyatu */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* 5. Item pertama (agar sudutnya rapi) */
.page-item:first-child .page-link {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left: 1px solid #ddd; /* Tambahkan border kiri HANYA di awal */
}

/* 6. Item terakhir (agar sudutnya rapi) */
.page-item:last-child .page-link {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 7. Efek Hover (saat mouse menyentuh) */
.page-item .page-link:hover {
    background-color: #f4f4f4;
    color: #007bff;
}

/* 8. Tombol yang AKTIF (Paling Penting) */
.page-item.active .page-link {
    background-color: #007bff; /* Warna Hitam (atau Emas Anda) */
    color: #ffffff;
    
    z-index: 3;
}

/* 9. Tombol 'Disabled' (Misal: 'Sebelumnya' di halaman 1) */
.page-item.disabled .page-link {
    color: #aaa;
    background-color: #f9f9f9;
    pointer-events: none; /* Tidak bisa diklik */
    border-color: #ddd;
}

/* =============================================
   (BARU) CSS UNTUK GALERI FOTO ULASAN
   ============================================= 
*/

/* 1. Kontainer Galeri */
.review-photo-gallery {
    display: flex;
    flex-wrap: wrap; /* Agar gambar turun ke baris baru jika tidak muat */
    gap: 10px; /* Jarak antar gambar */
    margin-top: 10px; /* Jarak dari teks komentar */
}

/* * 2. Foto Ulasan Individual
 * (Anda mungkin sudah punya ini, tapi pastikan ukurannya benar) 
*/
.review-photo {
    width: 70px;  /* Buat ukuran thumbnail persegi */
    height: 70px;
    object-fit: cover; /* Memastikan gambar terpotong rapi, tidak gepeng */
    border-radius: 5px;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}