body{
    margin:0;
    background:#111;
    display:flex;
    justify-content:center;
   font-family: 'Inter', sans-serif;
}

/* PAPER */

.paper{

background:#fcfcfc;

box-shadow:0 10px 35px rgba(0,0,0,0.4);

border-radius:8px;

max-width:700px;
width:95%;

padding:60px 30px;

color:#3a2a1f;

margin:40px auto;

}


/* ================= HEADER STYLE ================= */
.section-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 10px;
    color: #111;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* ================= 4 MAIN CATEGORIES GRID ================= */
.main-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 20px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

@media (max-width: 768px) {
    .main-categories {
        grid-template-columns: 1fr; /* 1 kolom saja di layar HP */
    }
}

.category-card {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%); /* Sentuhan tone estetik sedikit redup */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.category-overlay h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Hover effect untuk foto kategori utama */
.category-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* ================= PRODUCT DETAILS SECTIONS (ETALASE KOTAK KECIL) ================= */
.products-container {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.back-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
    margin-bottom: 30px;
}

.back-btn:hover {
    background-color: #111;
    color: #fff;
    border-color: #111;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Grid Etalase Kotak Kecil */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kotak menyamping di desktop */
    gap: 25px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kotak menyamping di tablet */
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr; /* 1 kotak penuh di HP */
    }
}

/* Kotak Produk individual */
.product-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #111;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-img-wrapper {
    width: 100%;
    height: 220px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

.product-desc {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Tombol CTA Menuju Amazon */
.amazon-btn {
    display: block;
    text-align: center;
    background-color: #111; /* Desain clean minimalis hitam gelap */
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.amazon-btn:hover {
    background-color: #ff9900; /* Berubah jadi warna oranye khas Amazon saat di-hover */
}

/* ================= UTILITY CLASSES ================= */
.hidden {
    display: none !important;
}


/* --- INI UNTUK PENGATURAN TAMPILAN HP --- */
@media screen and (max-width: 480px) {
    /* Hapus paksa semua ruang kosong bawaan browser di bagian atas */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }

    .container {
        padding: 8px !important; /* Jarak kiri kanan tipis saja */
        margin-top: 0 !important;
    }

    /* Pangkas habis area judul agar langsung mepet ke atas layar HP */
    .section-header {
        padding: 10px 10px 5px 10px !important;
        margin: 0 0 10px 0 !important;
    }

    .section-header h1 {
        font-size: 1.4rem !important; 
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }

    .section-header p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        color: #666;
    }

    /* Set tinggi kotak gambar agar lebih pendek dan naik ke atas screen */
    .main-categories {
        grid-template-columns: 1fr !important; /* 1 kolom ke bawah */
        gap: 8px !important; /* Jarak antar kotak super rapat */
        margin-top: 0 !important;
    }

    .category-card {
        height: 140px !important; /* Tingginya dibuat 140px saja agar 3-4 foto langsung muat di satu layar HP tanpa perlu scroll */
    }

    .category-overlay {
        padding: 12px !important;
    }

    .category-overlay h2 {
        font-size: 1.1rem !important;
    }
}
