*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
}

/* Top Notification */
.top-banner {
    background-color: #c00000;
    color: #fff;
    font-size: 11px;
    text-align: center;
    padding: 8px 10px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Header */
.main-header {
    text-align: center;
    padding: 20px 10px;
    border-bottom: 2px solid #333;
}

.main-header .logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    margin: 0 10px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #c00000;
}

/* Hero Section */
.hero-banner {
    width: 100%;
    min-height: 450px; /* Tinggi minimal agar teks promo tidak tenggelam di layar HP */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* TAMBAHKAN 4 BARIS BARU DI BAWAH INI */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content .hashtag {
    font-style: italic;
    font-size: 24px;
    color: #ddd;
    margin-bottom: 5px;
    text-align: center; /* Memastikan hashtag berada di tengah */
    display: block;     /* Mengubah elemen menjadi blok agar rata tengah bekerja */
}

.hero-content .discount-title {
    color: #cc0000;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px #000;
    text-align: center; /* Memastikan judul diskon berada tepat di tengah */
    display: block;
}

.hero-content .promo-box {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px dashed #fff;
    padding: 10px 20px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center; /* Memastikan teks kotak promo beserta isi span-nya berada di tengah */
}

.promo-box span {
    color: #ffcc00;
    font-weight: bold;
}

/* Tombol Shop Now Interaktif */
.shop-now-btn {
    display: inline-block;
    background-color: #c00000;
    color: #fff;
    text-decoration: none;
    padding: 12px 40px;
    font-weight: bold;
    font-style: italic;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-now-btn:hover {
    background-color: #990000;
    transform: scale(1.05); /* Membesar sedikit */
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Two Column Grid */
.collection-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.col-box {
    flex: 1;
    min-width: 300px;
    height: 220px;
    display: flex;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.col-box .box-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease, filter 0.5s ease;
    z-index: 1;
}

.bg-blue .box-bg-overlay {
    width: 100%;
    aspect-ratio: 750 / 500; /* Mengunci rasio gambar 750x500 px */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-cream .box-bg-overlay {
    width: 100%;
    aspect-ratio: 750 / 500; /* Mengunci rasio gambar 750x500 px */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.col-box .box-text {
    position: relative;
    z-index: 2; 
    transition: transform 0.4s ease;
}

.bg-blue { color: white; }
.bg-cream { color: #333; }

.box-text h3 { font-size: 22px; margin-bottom: 8px; font-weight: bold; letter-spacing: 0.5px; }
.box-text p { font-size: 15px; margin-bottom: 18px; opacity: 0.9; }

.link-shop { 
    color: inherit; 
    font-size: 12px; 
    font-weight: bold; 
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
    transition: padding-left 0.3s ease;
}

/* Hover Efek 2 Kolom Grid */
.col-box:hover .box-bg-overlay {
    transform: scale(1.08);
    filter: brightness(90%);
}

.col-box:hover .box-text {
    transform: translateY(-5px);
}

.col-box:hover .link-shop {
    padding-left: 8px;
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 40px 0 20px 0;
}
.section-title h2 { font-size: 16px; letter-spacing: 1px; font-weight: bold; }
.section-title p { font-size: 12px; color: #666; margin-top: 5px; }

/* Four Column Products */
.products-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto 20px auto;
    padding: 0 10px;
}

.product-item {
    width: 22%;
    min-width: 160px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
}

/* Wadah Gambar Kategori */
.img-container {
    width: 100%;
    height: 220px;
    overflow: hidden; /* Memastikan zoom gambar terpotong rapi */
    margin-bottom: 12px;
    border: 1px solid #eee;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    transition: transform 0.5s ease, background-color 0.3s ease;
}

.product-item h4 {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.product-link {
    display: inline-block;
    font-size: 11px;
    color: #666;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

/* ======================================================== */
/* EFFECT HOVER UNTUK 4 KATEGORI PRODUK BABAWH             */
/* ======================================================== */

/* 1. Efek Zoom pada Kotak Abu-abu Kategori */
.product-item:hover .img-placeholder {
    transform: scale(1.06);
    background-color: #e8e8e8; /* Sedikit menggelap saat disentuh */
}

/* 2. Judul Kategori Bergeser Naik */
.product-item:hover h4 {
    color: #c00000;
    transform: translateY(-2px);
}

/* 3. Link Teks Shop Now Bergeser */
.product-item:hover .product-link {
    color: #000;
    padding-left: 4px;
}

.product-item img.box-bg-overlay {
    width: 100%;
    aspect-ratio: 450 / 600; /* Mengunci rasio kotak gambar agar tetap 450x600 */
    object-fit: cover; /* PENTING: Pengganti background-size agar gambar tidak gepeng/ketarik */
    object-position: center; /* Memastikan bagian tengah gambar tetap fokus saat menyusut */
    display: block;
}

/* ======================================================== */
/* STYLE FOOTER & HAK CIPTA                                 */
/* ======================================================== */
.main-footer {
    background-color: #111111; /* Warna hitam elegan standar e-commerce */
    color: #ffffff;
    padding: 30px 10px;
    margin-top: 50px;
    border-top: 3px solid #c00000; /* Garis merah penyeimbang tema atas */
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Agar responsif saat dibuka di layar HP */
}

.main-footer .copyright {
    font-size: 12px;
    color: #b5b5b5;
    letter-spacing: 0.5px;
}

.footer-links a {
    color: #b5b5b5;
    text-decoration: none;
    font-size: 12px;
    margin-left: 20px;
    transition: color 0.3s ease;
}

/* Efek Interaksi pada Link Footer */
.footer-links a:hover {
    color: #ffffff; /* Teks menjadi putih terang saat disorot */
    text-decoration: underline;
}

/* Responsif untuk Layar HP */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-links a {
        margin: 5px 10px;
        display: inline-block;
    }
}
/* ======================================================== */
/* CSS POP-UP DOKUMEN LEGAL (MODAL)                         */
/* ======================================================== */
.legal-modal {
    display: none; /* Tersembunyi secara default */
    position: fixed;
    z-index: 9999; /* Muncul di atas semua elemen */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Efek latar belakang gelap transparan */
    backdrop-filter: blur(3px); /* Efek blur premium */
}

.legal-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 85%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto; /* Memungkinkan scroll jika teks panjang */
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover { color: #000; }

.legal-title {
    font-size: 20px;
    font-weight: bold;
    color: #c00000;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.legal-body {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

.legal-body h5 {
    font-size: 14px;
    color: #111;
    margin: 15px 0 5px 0;
    font-weight: bold;
}

/* Latar Belakang Gelap Transparan di Seluruh Layar */
.modal-custom {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

/* Box Konten Popup Hubungi Kami */
.modal-kontak-konten {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%; max-width: 420px;
    position: relative;
    color: #333;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.info-kontak-box { margin-top: 15px; background: #f9f9f9; padding: 15px; border-radius: 6px; }
.info-kontak-box p { margin: 8px 0; font-size: 14px; }

/* Box Konten Popup Katalog Detail Produk */
.modal-produk-konten {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%; max-width: 650px;
    position: relative;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Penataan Fleksibel Gambar Kiri - Teks Kanan (Responsif) */
.modal-produk-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
    margin-top: 15px;
}
.modal-produk-foto { flex: 1; min-width: 200px; text-align: center; }
.modal-produk-foto img { max-width: 100%; max-height: 250px; border-radius: 6px; object-fit: cover; }
.modal-produk-detail { flex: 1.2; min-width: 240px; font-size: 14px; }
.modal-produk-detail h3 { margin-top: 0; color: #111; font-size: 18px; }

/* Tombol Silang Silang (Close) */
.tombol-tutup {
    position: absolute;
    right: 15px; top: 10px;
    color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer;
}
.tombol-tutup:hover { color: #000; }

/* Dekorasi Komponen Harga E-Commerce */
.modal-harga-box { margin: 8px 0; }
.harga-coret { text-decoration: line-through; color: #888; margin-right: 10px; font-size: 13px; }
.harga-aktif { color: #d9381e; font-weight: bold; font-size: 18px; }
.btn-beli-dummy {
    background-color: #0b4c7c; color: white; border: none; 
    padding: 10px 15px; width: 100%; margin-top: 15px;
    border-radius: 4px; font-weight: bold; cursor: pointer;
}
.btn-beli-dummy:hover { background-color: #08375b; }
