/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F5F5DC; /* Krem */
    color: #3E2723; /* Cokelat Sangat Gelap */
    line-height: 1.6;
    overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
    box-sizing: border-box; /* Tambahkan untuk semua elemen */
}

*, *::before, *::after {
    box-sizing: inherit;
}

header {
    background-color: #4A312A; /* Cokelat Tua */
    color: #FFFFFF;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0 0 12px 0;
    font-size: 2em; /* Ukuran font dipertahankan, akan responsif di media query */
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Search Bar (Frontend) */
.search-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    box-sizing: border-box;
}

.search-container form {
    display: flex;
    width: 100%;
    gap: 10px;
}

#searchInput {
    padding: 12px 20px;
    border: 1px solid #D2B48C; /* Cokelat Pasir */
    border-radius: 30px;
    flex-grow: 1;
    font-size: 1em;
    outline: none;
    background-color: #FFF8E1; /* Krem Lebih Terang */
    color: #3E2723;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#searchInput::placeholder {
    color: #A08362; /* Cokelat Medium */
}

#searchInput:focus {
    border-color: #8B4513; /* Cokelat Sedang */
    box-shadow: 0 0 8px rgba(139,69,19,0.3);
}

.search-container button {
    padding: 12px 25px;
    background-color: #8B4513; /* Cokelat Sedang */
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 1em;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-container button:hover {
    background-color: #6F360F; /* Cokelat Lebih Gelap */
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --- Category Highlights Styling --- */
.category-highlights {
    padding: 30px 0;
    background-color: #FFFFFF;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.category-highlights h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.6em;
    color: #3E2723; /* Cokelat Sangat Gelap */
    font-weight: 600;
}

.category-wrapper {
    display: flex;
    overflow-x: auto; /* Memungkinkan scroll horizontal */
    -webkit-overflow-scrolling: touch;
    padding: 0 25px; /* Padding di kiri dan kanan */
    gap: 25px;
    scrollbar-width: none; /* Sembunyikan scrollbar untuk Firefox */
    -ms-overflow-style: none;  /* Sembunyikan scrollbar untuk IE/Edge */
}

.category-wrapper::-webkit-scrollbar {
    display: none; /* Sembunyikan scrollbar untuk Chrome/Safari */
}

.category-item {
    flex-shrink: 0; /* Penting agar item tidak menyusut */
    text-align: center;
    width: 95px; /* Lebar tetap untuk setiap item kategori */
}

.category-link {
    text-decoration: none;
    color: inherit; /* Warisan warna dari parent */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #5D4037; /* Cokelat Medium Gelap */
}

.category-icon {
    width: 65px; /* Mengurangi ukuran */
    height: 65px; /* Mengurangi ukuran */
    background-color: #D2B48C; /* Cokelat Pasir */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em; /* Ukuran ikon yang lebih kecil */
    color: #4A312A; /* Cokelat Tua */
    margin-bottom: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.category-link:hover .category-icon {
    background-color: #B18F6E; /* Cokelat Pasir Lebih Gelap */
    transform: scale(1.08);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.category-name {
    font-size: 0.95em;
    margin: 0;
    white-space: nowrap; /* Mencegah teks pecah baris */
    overflow: hidden;
    text-overflow: ellipsis; /* Menampilkan elipsis jika teks terlalu panjang */
    padding: 0 8px; /* Sedikit padding horizontal untuk teks */
    font-weight: 500;
}

/* Product Grid (Frontend) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Menggunakan auto-fit dan minmax untuk responsivitas */
    gap: 25px;
    padding: 25px;
    align-items: stretch; /* Memastikan semua item memiliki tinggi yang sama */
}

/* Product Card (Frontend) */
.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.product-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative; /* Penting untuk overlay Sold Out */
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, filter 0.3s ease;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 180px; /* Tinggi gambar fixed */
    object-fit: cover;
    border-bottom: 1px solid #EFEBE9; /* Cokelat Sangat Terang */
    display: block;
    opacity: 1;
}

.product-info {
    padding: 18px;
    flex-grow: 1; /* Memungkinkan info untuk mengambil sisa ruang */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.product-name {
    font-size: 1.15em;
    margin: 5px 0 8px 0;
    font-weight: 700;
    color: #3E2723; /* Cokelat Sangat Gelap */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Membatasi teks hanya 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.7em; /* Pastikan tinggi cukup untuk 2 baris */
    line-height: 1.35em;
}

.product-price {
    font-size: 1.4em;
    color: #8B4513; /* Cokelat Sedang */
    font-weight: 800;
    margin: 10px 0;
}

.product-location {
    font-size: 0.85em;
    color: #795548; /* Cokelat Lebih Gelap dari krem */
    margin: 5px 0 0 0;
}

/* Styling untuk Kondisi Produk di Product Card */
.product-condition {
    font-size: 0.8em;
    font-weight: 600;
    margin: 5px 0 0 0;
    text-transform: uppercase;
}

.product-condition .condition-new {
    color: #28a745; /* Hijau */
}

.product-condition .condition-used {
    color: #FF8C00; /* Oranye/kuning yang sama dengan harga */
}

/* --- Sold Out Overlay --- */
/* Umum untuk Frontend dan Admin Card */
.product-card.sold-out-card, .admin-product-item.sold-out-card {
    opacity: 0.7; /* Sedikit transparan */
    filter: grayscale(50%); /* Sedikit hitam putih */
}

/* Overlay itu sendiri */
.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Tinggi overlay hanya untuk gambar, bukan seluruh card */
    height: 180px; /* Sesuaikan dengan tinggi gambar */
    background-color: rgba(0, 0, 0, 0.6); /* Overlay gelap transparan */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Z-index harus lebih tinggi dari konten biasa (gambar/info) tapi lebih rendah dari tombol aksi */
    z-index: 2; /* TETAPKAN Z-INDEX INI */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Saat hover pada card sold out, overlay bisa lebih gelap */
.product-card.sold-out-card:hover .sold-out-overlay, .admin-product-item.sold-out-card:hover .sold-out-overlay {
    opacity: 0.8;
}

.sold-out-text {
    color: white;
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    border: 3px solid white;
    padding: 10px 20px;
    transform: rotate(-15deg); /* Sedikit miring */
    white-space: nowrap;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5); /* Shadow pada teks */
}

/* Pastikan Tombol Aksi berada di atas Overlay */
/* Ini berlaku untuk Admin Product Card karena .actions ada di dalam .admin-product-item */
.admin-product-item .actions {
    position: relative; /* Berikan konteks positioning */
    z-index: 15; /* Z-index lebih tinggi dari overlay */
}

/* --- Detail Produk Styling --- */
.detail-container {
    padding: 30px;
    max-width: 750px;
    margin: 30px auto;
    background-color: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Bagian untuk mengelompokkan section */
.product-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #E0E0E0;
}

.product-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-section h3 {
    font-size: 1.8em;
    color: #4A312A; /* Cokelat Tua */
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid #8B4513; /* Cokelat Sedang */
    display: inline-block;
    font-weight: 700;
}

/* Galeri Gambar Produk - Styling Swiper.js */
.product-image-gallery {
    margin-bottom: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #f5f5f5; /* Background saat gambar belum load */
    position: relative; /* Untuk navigasi panah */
}

/* Swiper utama (gambar besar) */
.mySwiper2 {
    width: 100%;
    height: 450px; /* Tinggi fixed untuk gambar utama */
    margin-bottom: 10px; /* Spasi antara gambar utama dan thumbnail */
    border-radius: 12px; /* Pastikan match parent */
    overflow: hidden; /* Penting: agar gambar slide tidak keluar dari area */
}

.mySwiper2 .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Untuk loading spinner */
}

/* Spinner Overlay pada slide utama */
.mySwiper2 .swiper-slide .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5F5DC; /* Warna sesuai background galeri */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5; /* Di atas gambar, di bawah fancybox link */
    transition: opacity 0.3s ease;
}

.mySwiper2 .swiper-slide img.loaded + .loading-overlay {
    opacity: 0;
    visibility: hidden;
}

/* Animasi Spinner */
.loading-spinner-circle {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #4A312A; /* Cokelat Tua */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mySwiper2 .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Gambar akan pas di dalam slide tanpa terpotong */
    /* Mulai dengan opacity 0 dan transisi */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mySwiper2 .swiper-slide img.loaded {
    opacity: 1; /* Tampilkan gambar saat sudah dimuat */
}

/* Swiper thumbnail */
.mySwiper {
    width: 100%;
    height: 100px; /* Tinggi fixed untuk container thumbnail */
    box-sizing: border-box;
    padding: 10px 0;
}

.mySwiper .swiper-slide {
    width: 80px; /* Lebar setiap thumbnail */
    height: 80px; /* Tinggi setiap thumbnail */
    opacity: 0.7;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden; /* Pastikan gambar thumbnail tidak keluar */
    position: relative; /* Untuk loading spinner thumbnail */
}

/* Spinner Overlay pada thumbnail */
.mySwiper .swiper-slide .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5F5DC;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.mySwiper .swiper-slide img.loaded + .loading-overlay {
    opacity: 0;
    visibility: hidden;
}

.mySwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Thumbnail akan mengisi penuh area */
    border-radius: 8px; /* Border radius pada gambar thumbnail */
    border: 2px solid transparent; /* Border default transparan */
    transition: border-color 0.2s ease, opacity 0.3s ease;
    opacity: 0; /* Mulai dengan opacity 0 */
}

.mySwiper .swiper-slide img.loaded {
    opacity: 1; /* Tampilkan gambar saat sudah dimuat */
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #8B4513; /* Border aksen untuk thumbnail aktif */
}

.mySwiper .swiper-slide:hover:not(.mySwiper .swiper-slide-thumb-active) img { /* Perbaikan selector hover */
    border-color: #795548; /* Cokelat abu-abu saat hover pada thumbnail non-aktif */
}

/* Styling navigasi panah (opsional, sesuaikan warna & ukuran) */
.swiper-button-next, .swiper-button-prev {
    color: #4A312A !important; /* Warna panah */
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important; /* Ukuran ikon panah */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px !important;
}

.product-basic-info {
    text-align: center;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-name {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #3E2723; /* Cokelat Sangat Gelap */
    font-weight: 800;
}

.detail-price {
    font-size: 2.2em;
    color: #8B4513; /* Cokelat Sedang */
    font-weight: 800;
    margin-bottom: 12px;
}

/* Styling untuk status SOLD OUT di detail produk */
.detail-sold-out-status {
    font-size: 1.5em;
    color: #dc3545; /* Merah (tetap untuk warning) */
    font-weight: bold;
    margin-top: 10px;
    padding: 5px 15px;
    border: 2px solid #dc3545;
    border-radius: 8px;
    text-transform: uppercase;
    background-color: rgba(220, 53, 69, 0.1);
}

.detail-location-moved {
    font-size: 1.15em;
    color: #795548; /* Cokelat Lebih Gelap dari krem */
    /* Tambahan: Margin atas dan bawah agar terpisah dari harga/status dan deskripsi */
    margin: 15px 0 25px 0; /* Lebih banyak spasi */
    display: flex;
    align-items: center;
    justify-content: center; /* Tengahkan lokasi juga */
    gap: 8px;
    font-weight: 500;
}

.detail-location-moved i {
    color: #4A312A; /* Cokelat Tua */
    font-size: 1.1em;
}

/* Styling untuk Kondisi Produk di Halaman Detail */
.detail-condition {
    font-size: 1.1em;
    color: #555;
    margin: 10px 0;
    font-weight: 500;
}

.detail-condition .condition-new-detail {
    color: #28a745; /* Hijau */
    font-weight: 700;
}

.detail-condition .condition-used-detail {
    color: #FF8C00; /* Oranye/kuning */
    font-weight: 700;
}

/* Informasi Tambahan (sekarang untuk 'description' field) */
.full-description-section h3 {
    text-align: left; /* Deskripsi judul rata kiri */
    border-bottom: 3px solid #4A312A; /* Garis bawah warna tema utama */
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.6em;
    color: #4A312A; /* Cokelat Tua */
    font-weight: 700;
    display: block; /* Agar border memenuhi lebar */
}

.detail-description-content {
    font-size: 1em;
    line-height: 1.8;
    color: #4A4A4A;
    text-align: left; /* Konten deskripsi rata kiri */
    padding: 0 5px; /* Sedikit padding horizontal jika perlu */
    
    /* Tambahan untuk mencegah teks keluar dari wadah */
    word-wrap: break-word;   /* Untuk kompatibilitas browser lama */
    overflow-wrap: break-word; /* Properti yang lebih direkomendasikan */
}

/* Kontak Penjual */
.contact-seller h3 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 25px;
    font-size: 1.8em;
    color: #4A312A; /* Cokelat Tua */
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    /* Tambahkan auto margin kiri/kanan untuk menengahkan jika flex-direction column */
    margin: 0 auto;
}

.contact-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    max-width: 280px; /* Batasi lebar tombol */
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Pastikan tidak ada underline */
}

.contact-buttons .btn i {
    margin-right: 12px;
    font-size: 1.3em;
}

.btn-whatsapp {
    background-color: #25D366; /* Tetap hijau WhatsApp */
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-3px);
}

.btn-instagram {
    background-color: #C13584; /* Tetap ungu Instagram */
    color: white;
}

.btn-instagram:hover {
    background-color: #A02B6D;
    transform: translateY(-3px);
}

.back-button {
    display: block;
    width: fit-content;
    margin: 50px auto 0 auto;
    padding: 15px 30px;
    background-color: #795548; /* Cokelat gelap */
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.back-button:hover {
    background-color: #5D4037; /* Cokelat lebih gelap */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Ajakan Masukan Produk Styling (di index.php) */
.call-to-action {
    background-color: #EFEBE9; /* Cokelat Sangat Terang */
    padding: 40px 20px;
    margin: 30px auto;
    max-width: 800px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.call-to-action h2 {
    font-size: 2em;
    color: #4A312A; /* Cokelat Tua */
    margin: 0;
    font-weight: 700;
}

.call-to-action p {
    font-size: 1.1em;
    color: #5D4037; /* Cokelat Medium Gelap */
    margin: 0;
    max-width: 500px;
}

.download-app-call-to-action {
    position: relative; /* Penting untuk posisi tombol dismiss */
    background-color: #D2B48C; /* Cokelat Pasir */
    padding: 40px 20px;
    margin: 30px auto;
    max-width: 800px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.download-app-call-to-action h2 {
    font-size: 2em;
    color: #4A312A; /* Cokelat Tua */
    margin: 0;
    font-weight: 700;
}

.download-app-call-to-action p {
    font-size: 1.1em;
    color: #5D4037; /* Cokelat Medium Gelap */
    margin: 0;
    max-width: 500px;
}

.app-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745; /* Hijau yang menarik untuk tombol download */
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.15em;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.app-download-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

.app-download-button:hover {
    background-color: #218838; /* Hijau lebih gelap saat hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Gaya untuk tombol dismiss (tutup) */
.download-app-call-to-action .dismiss-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #4A312A; /* Warna teks gelap */
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.download-app-call-to-action .dismiss-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #3E2723;
}


/* Responsive adjustments for the new section */
@media (max-width: 600px) {
    .download-app-call-to-action {
        padding: 30px 15px;
        margin: 20px auto;
        gap: 15px;
    }
    .download-app-call-to-action h2 {
        font-size: 1.8em;
    }
    .download-app-call-to-action p {
        font-size: 1em;
    }
    .app-download-button {
        padding: 12px 25px;
        font-size: 1.05em;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #8B4513; /* Cokelat Sedang */
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.15em;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

.cta-button:hover {
    background-color: #6F360F; /* Cokelat Lebih Gelap */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Gaya dasar untuk loading spinner (dari index.php) */
/* PERUBAHAN DI SINI: Gaya untuk #loadingSpinner yang di bawah produk */
#loadingSpinner {
    display: flex; /* Menggunakan Flexbox */
    flex-direction: column; /* Mengatur item dalam kolom (spinner di atas teks) */
    align-items: center; /* Menengahkan item secara horizontal dalam flex container */
    justify-content: center; /* Menengahkan item secara vertikal dalam flex container (jika ada ruang) */
    
    padding: 20px;
    max-width: 200px; /* Batasi lebar div spinner */
    margin: 20px auto; /* Menengahkan div spinner secara horizontal di dalam parent */
    
    /* Warna dan ukuran default spinner agar terlihat konsisten */
    color: #795548; 
    font-size: 1.1em;
}

/* Pastikan spinner circle tetap terdefinisi */
.loading-spinner-circle {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #4A312A; /* Cokelat Tua */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px; /* Spasi antara spinner dan teks */
}

/* Keyframes untuk animasi spin */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Jika Anda juga memiliki spinner overlay seluruh layar, pastikan ID-nya berbeda */
/* Misal: */
/*
#fullScreenOverlaySpinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 220, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
*/


/* Tambahan untuk pesan akhir agar terlihat setelah semua dimuat */
.all-products-loaded-message {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: #795548; /* Cokelat Gelap */
    margin-top: 20px;
    display: block;
    grid-column: 1 / -1; /* Pastikan pesan ini di tengah di grid */
}

/* Style untuk tombol "Kembali ke Halaman Utama" */
.back-to-home-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4A312A; /* Warna cokelat tua */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.back-to-home-button:hover {
    background-color: #3E2723; /* Sedikit lebih gelap */
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

/* Responsive Adjustments */
/* Untuk tablet (lebar >= 600px) */
@media (min-width: 600px) {
    h1 {
        font-size: 2.2em;
    }
    .search-container {
        max-width: 600px;
    }
    .category-highlights h2 {
        font-size: 1.8em;
    }
    .category-item {
        width: 90px; /* Sesuaikan lebar item kategori */
    }
    .category-icon {
        width: 75px; /* Ukuran ikon disesuaikan untuk tablet */
        height: 75px; /* Ukuran ikon disesuaikan untuk tablet */
        font-size: 2.0em; /* Ukuran font ikon disesuaikan untuk tablet */
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 30px;
    }
    .product-card img {
        height: 200px;
    }
    .product-name {
        font-size: 1.15em; /* Tetap 1.15em */
        min-height: 2.7em; /* Sesuaikan dengan 2 baris */
        line-height: 1.35em; /* Sesuaikan dengan line-clamp */
    }
    .product-price {
        font-size: 1.4em; /* Tetap 1.4em */
    }
    .contact-buttons {
        flex-direction: row; /* Kembali ke horizontal di layar lebih lebar */
        flex-wrap: wrap; /* Izinkan wrapping jika terlalu banyak tombol */
        gap: 20px; /* Jarak antar tombol */
        max-width: 600px; /* Batasi lebar container tombol */
        margin: 0 auto; /* Tengahkan */
    }
    .detail-container {
        padding: 40px;
    }
    .detail-name {
        font-size: 2.8em;
    }
    .detail-price {
        font-size: 2.4em;
    }
    .detail-location-moved {
        font-size: 1.2em;
    }
    .mySwiper2 {
        height: 500px; /* Sesuaikan tinggi untuk tablet */
    }
    .mySwiper {
        height: 120px;
    }
    .mySwiper .swiper-slide {
        width: 90px;
        height: 90px;
    }
    .product-section h3 {
        font-size: 2em;
    }
    .contact-buttons .btn {
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1.1em;
    }
    .call-to-action h2 {
        font-size: 2.4em;
    }
    .call-to-action p {
        font-size: 1.2em;
    }
    .cta-button {
        padding: 18px 35px;
        font-size: 1.25em;
    }
}

/* Untuk desktop (lebar >= 900px) */
@media (min-width: 900px) {
    h1 {
        font-size: 2.5em;
    }
    .search-container {
        max-width: 700px;
    }
    .category-highlights h2 {
        font-size: 2em;
    }
    .category-item {
        width: 100px; /* Sesuaikan lebar item kategori */
    }
    .category-icon {
        width: 85px; /* Ukuran ikon disesuaikan untuk desktop */
        height: 85px; /* Ukuran ikon disesuaikan untuk desktop */
        font-size: 2.4em; /* Ukuran font ikon disesuaikan untuk desktop */
    }
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px;
        padding: 35px;
    }
    .product-card img {
        height: 220px;
    }
    .product-name {
        font-size: 1.15em; /* Tetap 1.15em */
        min-height: 2.7em; /* Sesuaikan dengan 2 baris */
        line-height: 1.35em; /* Sesuaikan dengan line-clamp */
    }
    .product-price {
        font-size: 1.4em; /* Tetap 1.4em */
    }
    .detail-container {
        max-width: 960px;
        padding: 50px;
    }
    .detail-name {
        font-size: 3.2em;
    }
    .detail-price {
        font-size: 2.8em;
    }
    .detail-location-moved {
        font-size: 1.3em;
    }
    .mySwiper2 {
        height: 600px; /* Sesuaikan tinggi untuk desktop */
    }
    .mySwiper {
        height: 150px;
    }
    .mySwiper .swiper-slide {
        width: 120px;
        height: 120px;
    }
    .product-section h3 {
        font-size: 2.2em;
    }
    .contact-buttons .btn {
        max-width: 320px;
        padding: 18px 30px;
        font-size: 1.2em;
    }
    .call-to-action h2 {
        font-size: 2.8em;
    }
    .call-to-action p {
        font-size: 1.3em;
    }
    .cta-button {
        padding: 20px 40px;
        font-size: 1.35em;
    }
}

/* Media Query Khusus untuk tampilan HP rasio 19:6 atau yang mirip (misalnya 9:18, 9:19, 9:20) */
@media (max-width: 450px) and (min-height: 700px) {
    body {
        font-size: 14px;
    }
    header {
        padding: 15px 10px;
    }
    h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    .search-container {
        padding: 0 10px;
        max-width: 100%;
    }
    #searchInput, .search-container button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .category-highlights {
        padding: 20px 0;
        margin-bottom: 15px;
    }
    .category-highlights h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    .category-wrapper {
        padding: 0 15px;
        gap: 15px;
    }
    .category-item {
        width: 70px; /* Lebih kecil untuk HP tinggi */
    }
    .category-icon {
        width: 60px; /* Lebih kecil untuk HP tinggi */
        height: 60px; /* Lebih kecil untuk HP tinggi */
        font-size: 1.8em; /* Ukuran font ikon yang paling kecil */
    }
    .category-name {
        font-size: 0.85em;
    }
    .product-grid {
        gap: 15px;
        padding: 15px;
    }
    .product-card img {
        height: 160px;
    }
    .product-info {
        padding: 12px;
    }
    .product-name {
        font-size: 1em;
        min-height: 2.5em;
        line-height: 1.25em;
    }
    .product-price {
        font-size: 1.2em;
    }
    .detail-location-moved {
        font-size: 0.9em;
        margin-top: 8px;
    }
    .detail-location-moved i {
        font-size: 1em;
    }
    /* Detail Produk untuk HP tinggi */
    .detail-container {
        padding: 20px;
        margin: 15px auto;
    }
    .detail-name {
        font-size: 2.2em;
    }
    .detail-price {
        font-size: 1.9em;
    }
    .mySwiper2 {
        height: 350px;
    }
    .mySwiper {
        height: 80px;
    }
    .mySwiper .swiper-slide {
        width: 70px;
        height: 70px;
    }
    .product-section h3 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    .contact-buttons .btn {
        padding: 12px 20px;
        font-size: 1em;
        max-width: none;
    }
    .contact-buttons .btn i {
        font-size: 1.2em;
    }
    .back-button {
        margin-top: 35px;
        padding: 12px 25px;
        font-size: 0.95em;
    }
    .call-to-action {
        padding: 30px 15px;
        margin: 20px auto;
        gap: 15px;
    }
    .call-to-action h2 {
        font-size: 1.8em;
    }
    .call-to-action p {
        font-size: 1em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1.05em;
    }
    .cta-button i {
        font-size: 1.1em;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px; /* Jarak dari bawah */
    right: 20px; /* Jarak dari kanan */
    background-color: #25D366; /* Warna hijau WhatsApp */
    color: #FFF;
    border-radius: 50px; /* Membuat lingkaran */
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    z-index: 1000; /* Pastikan di atas elemen lain */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; /* Hilangkan underline */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float i {
    margin-top: 0; /* Sesuaikan jika perlu, biasanya ikon sudah di tengah */
}

.whatsapp-float:hover {
    background-color: #1DA851; /* Warna hijau lebih gelap saat hover */
    transform: scale(1.08); /* Efek sedikit membesar saat hover */
}

/* Responsive adjustment for smaller screens */
@media (max-width: 450px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

/* --- Bottom Navigation Bar --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #795548; /* Cokelat Gelap */
    font-size: 0.8em;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; /* Tambah transition */
    flex: 1; /* Agar item membagi ruang secara merata */
    padding: 5px 0;
    border-radius: 8px; /* Tambahkan border-radius */
}

.bottom-nav .nav-item i {
    font-size: 1.6em; /* Ukuran ikon */
    margin-bottom: 4px;
}

.bottom-nav .nav-item span {
    white-space: nowrap; /* Mencegah teks pecah baris */
}

.bottom-nav .nav-item.active {
    color: white; /* Warna ikon dan teks aktif menjadi putih */
    background-color: #4A312A; /* Latar belakang menjadi cokelat tua */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Tambah shadow untuk efek aktif */
}

.bottom-nav .nav-item:hover {
    color: #8B4513; /* Cokelat Sedang */
    /* Pastikan hover tidak menimpa active state yang baru */
}

/* Penyesuaian untuk tombol WhatsApp mengambang agar tidak tertutup nav bar */
.whatsapp-float {
    bottom: 80px; /* Sesuaikan agar di atas nav bar bawah */
}

/* Adjust body padding for fixed bottom nav */
body {
    padding-bottom: 70px; /* Beri ruang di bagian bawah agar konten tidak tertutup nav bar */
}

/* Responsiveness for smaller screens */
@media (max-width: 450px) {
    .bottom-nav {
        padding: 6px 0;
    }
    .bottom-nav .nav-item {
        font-size: 0.75em;
    }
    .bottom-nav .nav-item i {
        font-size: 1.4em;
    }
    .whatsapp-float {
        bottom: 70px; /* Sesuaikan lagi untuk layar yang lebih kecil */
        width: 45px; /* Sedikit lebih kecil */
        height: 45px; /* Sedikit lebih kecil */
        font-size: 22px; /* Ukuran ikon WhatsApp */
    }
    body {
        padding-bottom: 60px; /* Sesuaikan padding body untuk nav bar yang lebih kecil */
    }
}

/* --- Bottom Navigation Bar for Detail Product Page --- */
.bottom-nav-detail {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #4A312A; /* Warna latar belakang nav bar detail (Cokelat Tua) */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.2);
    z-index: 1100; /* Lebih tinggi dari WhatsApp float dan nav index */
}

.bottom-nav-detail .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #D2B48C; /* Cokelat Pasir */
    font-size: 0.9em;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; /* Tambah transition */
    flex: 1; /* Agar item membagi ruang secara merata */
    padding: 8px 0;
    border-radius: 8px;
    margin: 0 5px; /* Sedikit jarak antar tombol */
}

.bottom-nav-detail .nav-item i {
    font-size: 1.8em; /* Ukuran ikon */
    margin-bottom: 5px;
}

.bottom-nav-detail .nav-item span {
    white-space: nowrap;
    text-align: center;
}

.bottom-nav-detail .nav-item:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1); /* Efek hover samar */
}

.bottom-nav-detail .nav-item.chat-seller-btn {
    background-color: #25D366; /* Warna khusus untuk tombol chat */
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bottom-nav-detail .nav-item.chat-seller-btn:hover {
    background-color: #1DA851;
    color: white;
}

.bottom-nav-detail .nav-item.instagram-btn {
    background-color: #C13584; /* Warna khusus untuk tombol chat */
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bottom-nav-detail .nav-item.instagram-btn:hover {
    background-color: #A02B6D;
    color: white;
}

/* Section for other products */
.other-products-section {
    padding: 30px 25px;
    background-color: #F5F5DC; /* Warna background mirip body (Krem) */
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.other-products-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
    color: #3E2723; /* Cokelat Sangat Gelap */
    font-weight: 600;
}

/* Adjust body padding for fixed bottom nav in detail page */
body {
    padding-bottom: 70px; /* Default padding bottom untuk bottom-nav-detail (sekitar 10px padding atas/bawah + 50px tinggi nav) */
}

/* Responsive adjustments */
@media (max-width: 450px) {
    .bottom-nav-detail {
        padding: 8px 0;
    }
    .bottom-nav-detail .nav-item {
        font-size: 0.8em;
        padding: 6px 0;
        margin: 0 2px;
    }
    .bottom-nav-detail .nav-item i {
        font-size: 1.6em;
    }
    body {
        padding-bottom: 60px; /* Sesuaikan padding body */
    }
    .other-products-section {
        padding: 20px 15px;
    }
    .other-products-section h2 {
        font-size: 1.6em;
    }

    .about-container {
        max-width: 800px;
        margin: 30px auto;
        padding: 30px;
        background-color: #F8F5EE; /* Krem lebih gelap */
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        line-height: 1.7;
        color: #3E2723; /* Cokelat gelap untuk teks */
    }
    .about-container h2 {
        color: #4A312A; /* Cokelat Tua */
        margin-bottom: 25px;
        text-align: center;
        font-size: 2.2em;
        padding-bottom: 10px;
        border-bottom: 3px solid #8B4513; /* Cokelat Sedang */
        display: inline-block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    .about-section {
        margin-bottom: 35px;
        padding-bottom: 25px;
        border-bottom: 1px solid #D2B48C; /* Cokelat Pasir */
    }
    .about-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .about-section h3 {
        font-size: 1.8em;
        color: #4A312A; /* Cokelat Tua */
        margin-bottom: 20px;
        padding-bottom: 8px;
        border-bottom: 3px solid #4A312A; /* Cokelat Tua */
        display: inline-block;
        font-weight: 700;
    }
    .about-section p, .about-section ul {
        font-size: 1em;
        margin-bottom: 15px;
    }
    .about-section ul {
        list-style: disc;
        margin-left: 25px;
    }
    .about-section ul li {
        margin-bottom: 8px;
    }
    .back-to-home-button {
        display: block;
        width: fit-content;
        margin: 40px auto 0 auto;
        padding: 15px 30px;
        background-color: #795548; /* Cokelat Gelap */
        color: white;
        text-decoration: none;
        border-radius: 10px;
        transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
        font-weight: 600;
        font-size: 1em;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    .back-to-home-button:hover {
        background-color: #5D4037; /* Cokelat Lebih Gelap */
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }
    /* Responsive adjustments */
    @media (max-width: 600px) {
        .about-container {
            margin: 15px auto;
            padding: 20px;
        }
        .about-container h2 {
            font-size: 1.8em;
        }
        .about-section h3 {
            font-size: 1.5em;
        }
        .about-section p, .about-section ul {
            font-size: 0.95em;
        }
        .back-to-home-button {
            padding: 12px 25px;
            font-size: 0.9em;
        }
    }
}


/* --- Styling untuk Hero Carousel (NEW) --- */
.hero-carousel-section {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0; /* Warna latar belakang default */
}

.swiper-container-hero {
    width: 100%;
    height: 300px; /* Tinggi default untuk carousel hero */
}

.swiper-slide-hero {
    position: relative; /* Pastikan ini adalah konteks positioning untuk pseudo-element dan elemen child absolut lainnya */
    overflow: hidden; /* Penting untuk gambar */
}

/* NEW: Pseudo-element untuk gradasi yang meluas hingga ke bagian paling bawah slide */
.swiper-slide-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Tinggi gradasi dasar yang menutupi area bawah dan pagination dots */
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%); /* Gradasi kuat di bawah */
    z-index: 7; /* Lebih rendah dari hero-product-info, lebih tinggi dari gambar */
    pointer-events: none; /* Memungkinkan klik menembus ke link di bawahnya */
}

.swiper-slide-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-product-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative; /* Untuk z-index dari img dan info di dalamnya */
    z-index: 6; /* Pastikan link berada di bawah info text dan gradasi */
}

.hero-product-info {
    position: absolute;
    /* --- Perubahan di sini: Mengurangi nilai 'bottom' untuk menurunkan teks --- */
    bottom: 50px; /* Diubah dari 100px menjadi 90px */
    left: 0;
    width: 100%;
    background: transparent; /* Latar belakang overlay teks menjadi transparan */
    color: white;
    padding: 25px 15px 20px 15px; /* Padding relatif terhadap min-height overlay */
    text-align: center; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Menengahkan item-item flex secara vertikal di dalam overlay */
    align-items: center; /* Menengahkan item-item flex secara horizontal di dalam overlay */
    box-sizing: border-box;
    min-height: 120px; 
    z-index: 8; /* Lebih tinggi dari pseudo-element gradasi */
}

.hero-product-name {
    font-size: 1.5em; 
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); 
}

.hero-product-price {
    font-size: 1.8em; 
    font-weight: 900; 
    margin: 0;
    color: #FFD700; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); 
}

.hero-sold-out-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #dc3545; 
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10; 
}

/* Swiper Navigation (Arrows) */
.swiper-button-next-hero,
.swiper-button-prev-hero {
    color: #FFFFFF !important; 
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    transition: background-color 0.3s ease;
    z-index: 10; 
}

.swiper-button-next-hero:hover,
.swiper-button-prev-hero:hover {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.swiper-button-next-hero::after,
.swiper-button-prev-hero::after {
    font-size: 20px !important;
}

/* Swiper Pagination (Dots) */
.swiper-pagination-hero.swiper-pagination-bullets .swiper-pagination-bullet {
    background-color: #FFFFFF; 
    opacity: 0.6;
    z-index: 9; 
}

.swiper-pagination-hero.swiper-pagination-bullets .swiper-pagination-bullet-active {
    background-color: #8B4513; 
    opacity: 1;
}

/* Responsive adjustments for Hero Carousel */
@media (min-width: 600px) {
    .swiper-container-hero {
        height: 400px; 
    }
    .hero-product-name {
        font-size: 1.8em; 
    }
    .hero-product-price {
        font-size: 2.2em; 
    }
    .hero-product-info {
        min-height: 140px; 
        padding: 30px 25px 25px 25px;
        bottom: 100px; /* Diubah dari 110px menjadi 100px */
    }
    .swiper-slide-hero::after {
        height: 100px; 
    }
}

@media (min-width: 900px) {
    .swiper-container-hero {
        height: 500px; 
    }
    .hero-product-name {
        font-size: 2.2em; 
    }
    .hero-product-price {
        font-size: 2.6em; 
    }
    .hero-product-info {
        min-height: 160px; 
        padding: 40px 30px 30px 30px;
        bottom: 110px; /* Diubah dari 120px menjadi 110px */
    }
    .swiper-slide-hero::after {
        height: 120px; 
    }
}

@media (max-width: 450px) and (min-height: 700px) {
    .swiper-container-hero {
        height: 250px; 
    }
    .hero-product-name {
        font-size: 1.2em;
    }
    .hero-product-price {
        font-size: 1.4em;
    }
    .hero-product-info {
        padding: 15px 10px 10px 10px;
        min-height: 80px; 
        bottom: 70px; /* Diubah dari 80px menjadi 70px */
    }
    .swiper-slide-hero::after {
        height: 80px; 
    }
}

/* Styling untuk bagian Produk yang Sudah Terjual (Sold Out Highlights) */
.sold-out-highlights-section {
    padding: 30px 0; /* Padding horizontal akan diatur oleh .sold-out-grid */
    background-color: #EFEBE9; /* Cokelat Sangat Terang */
    margin: 30px auto;
    max-width: 100%; /* Pastikan bisa menjangkau lebar penuh untuk scroll */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden; /* Sembunyikan overflow horizontal dari padding */
}

.sold-out-highlights-section h2 {
    font-size: 2em;
    color: #4A312A; /* Cokelat Tua */
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    padding: 0 25px; /* Tambahkan padding ke judul */
}

.sold-out-highlights-section .sold-out-grid {
    display: flex; /* Ubah menjadi flex untuk scrolling horizontal */
    overflow-x: auto; /* Aktifkan scroll horizontal */
    -webkit-overflow-scrolling: touch; /* Scroll mulus untuk iOS */
    flex-wrap: nowrap; /* Mencegah item melompat ke baris baru */
    gap: 0; /* Reset gap, gunakan margin untuk spasi */
    padding: 0 25px; /* Padding untuk area yang bisa digulir */
    margin-bottom: 25px; /* Jarak dengan tombol "Lihat Semua" */
    scrollbar-width: none; /* Sembunyikan scrollbar untuk Firefox */
    -ms-overflow-style: none;  /* Sembunyikan scrollbar untuk IE/Edge */
}
/* Sembunyikan scrollbar untuk Chrome/Safari */
.sold-out-highlights-section .sold-out-grid::-webkit-scrollbar {
    display: none;
}

.sold-out-highlights-section .sold-out-grid .product-link {
    flex-shrink: 0; /* Mencegah tautan/kartu menyusut */
    width: 170px; /* Lebar tetap untuk setiap item, sesuaikan sesuai kebutuhan */
    margin-right: 15px; /* Spasi antar kartu */
    height: auto; /* Biarkan tinggi menyesuaikan */
    display: flex; /* Agar link juga menjadi flex container untuk kartunya */
}

.sold-out-highlights-section .sold-out-grid .product-link:last-child {
    margin-right: 0; /* Tidak ada margin di item terakhir */
}

.sold-out-highlights-section .sold-out-grid .product-card {
    width: 100%; /* Memenuhi lebar penuh item flex */
    height: 100%; /* Memenuhi tinggi penuh item flex */
    border-radius: 10px; /* Membuatnya sedikit lebih ringkas */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sold-out-highlights-section .sold-out-grid .product-card img {
    height: 160px; /* Tinggi gambar lebih kecil untuk sorotan */
}
.sold-out-highlights-section .sold-out-grid .product-info {
    padding: 10px;
}
.sold-out-highlights-section .sold-out-grid .product-name {
    font-size: 1em;
    min-height: 2.4em; /* Sesuaikan agar sesuai dengan dua baris teks pada ukuran yang lebih kecil */
    line-height: 1.2em;
}
.sold-out-highlights-section .sold-out-grid .product-price {
    font-size: 1.2em;
}
.sold-out-highlights-section .sold-out-grid .product-location {
    font-size: 0.75em;
}

/* Sesuaikan overlay "SOLD OUT" untuk ukuran kartu yang lebih kecil */
.sold-out-highlights-section .sold-out-grid .sold-out-overlay {
    height: 160px; /* Sesuaikan dengan tinggi gambar baru */
}
.sold-out-highlights-section .sold-out-grid .sold-out-text {
    font-size: 1.5em; /* Ukuran teks lebih kecil untuk kartu yang lebih kecil */
    padding: 5px 10px;
    border-width: 2px;
}


/* Responsive adjustments for sold-out-highlights-section */
@media (max-width: 600px) {
    .sold-out-highlights-section {
        padding: 20px 0;
        margin: 20px auto;
    }
    .sold-out-highlights-section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    .sold-out-highlights-section .sold-out-grid {
        padding: 0 15px; /* Padding disesuaikan */
    }
    .sold-out-highlights-section .sold-out-grid .product-link {
        width: 150px; /* Lebih kecil untuk layar kecil */
        margin-right: 10px;
    }
    .sold-out-highlights-section .sold-out-grid .product-card img {
        height: 140px; /* Tinggi gambar lebih kecil */
    }
    .sold-out-highlights-section .sold-out-grid .sold-out-overlay {
        height: 140px;
    }
    .sold-out-highlights-section .sold-out-grid .sold-out-text {
        font-size: 1.3em;
        padding: 4px 8px;
    }
}