/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

:root {
    --primary: #2d6a4f;
    /* Hijau Alam */
    --secondary: #1b4332;
    /* Hijau Gelap */
    --accent: #d8f3dc;
    /* Hijau Terang */
}

/* =========================================
   HEADER & HERO SECTION
========================================= */
header {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Padding bawah digedein buat efek overlap katalog */

.hero {
    /* Ganti 'background.jpg' dengan nama file foto asli lu (misal: hero-tokopedia.jpg atau camp.jpg) */
    background: linear-gradient(rgba(27, 67, 50, 0.8), rgba(45, 106, 79, 0.9)), url('assets/logo.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 5% 8rem;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Jarak antara logo dan teks */
}

.header-logo {
    width: 45px;
    /* Ukuran logo (bisa lu gede-kecilin) */
    height: 45px;
    object-fit: cover;
    /* Biar foto kotak dipotong rapi tengahnya, gak gepeng */
    border-radius: 50%;
    /* Ini kuncian yang bikin foto kotak jadi bulat sempurna */
    border: 2px solid white;
    /* Garis pinggir putih dikit biar lebih elegan (bisa dihapus kalau ga suka) */
    background-color: white;
    /* Jaga-jaga kalau logonya transparan/PNG */
}

/* =========================================
   CATALOG & PRODUCT GRID (MAIN FOCUS)
========================================= */
.catalog-section {
    width: 95%;
    max-width: 1200px;
    margin: -4rem auto 4rem;
    /* Efek overlap ke atas hero */
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Default Desktop 4 Kolom */
    gap: 1.5rem;
    padding: 1rem 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

/* =========================================
   FITUR IMAGE SLIDER (CAROUSEL)
========================================= */
.slider-container {
    position: relative;
    width: 100%;
    height: 180px;
    /* Dikunci biar rata tinggi box-nya di desktop */
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f1f5f9;
}

/* Mengatur gambar di dalam slider */
.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: fade 0.3s ease;
}

/* Tombol Panah Navigasi Slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0.7;
}

.slider-arrow:hover {
    background: var(--primary);
    opacity: 1;
}

.arrow-left {
    left: 8px;
}

.arrow-right {
    right: 8px;
}

/* Jalur penyesuaian tinggi slider di HP (Media Queries paling bawah) */
@media (max-width: 480px) {
    .slider-container {
        height: 140px;
        /* Otomatis jadi 140px di HP kecil biar presisi */
    }

    .slider-arrow {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
}

.product-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-card .price {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

.input-custom {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.8rem;
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-custom:focus {
    border-color: var(--primary);
    background-color: #fff;
}

/* =========================================
   BUTTONS & INFO SECTION
========================================= */
.btn,
.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-add {
    width: 100%;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--secondary);
}

.btn:hover {
    background: var(--secondary);
}

.btn-add:hover {
    background: var(--primary);
    color: white;
}

.info-katalog {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover,
.btn-outline.active {
    background: var(--primary);
    color: white;
}

.info-section {
    padding: 2rem 5%;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.contact-group {
    margin-bottom: 2.5rem;
}

.contact-group h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.contact-group p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.action-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   FLOATING CART
========================================= */
.cart-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 300px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border: 2px solid var(--primary);
}

.cart-header h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.cart-items {
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed #eee;
    padding-bottom: 0.5rem;
}

.cart-total {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: right;
}

.btn-checkout {
    width: 100%;
    background: #25D366;
}

.btn-checkout:hover {
    background: #1ebe57;
}

/* =========================================
   FOOTER
========================================= */
footer {
    text-align: center;
    padding: 2rem 5%;
    margin-top: auto;
    font-size: 0.95rem;
    color: #555;
    border-top: 1px solid #e2e8f0;
}

.creator-link {
    color: var(--primary);
    font-weight: 700;
    margin-top: 0.5rem;
    display: inline-block;
}

.creator-link:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE (MEDIA QUERIES) - SUDAH DIRAPIKAN
========================================= */
@media (max-width: 1024px) {

    /* Tablet */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    /* Mobile Landscape / Tablet Kecil */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .catalog-section {
        padding: 1.5rem 1rem;
        margin-top: -3rem;
    }

    .action-links {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .cart-floating {
        width: 90%;
        right: 5%;
        bottom: 10px;
    }
}

@media (max-width: 480px) {

    /* Mobile Portrait (HP biasa) */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .product-card {
        padding: 0.8rem;
    }

    .product-card h4 {
        font-size: 0.95rem;
    }

    .product-card img {
        height: 140px;
    }

    .input-custom {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

/* =========================================
   DROPDOWN SYARAT & KETENTUAN (DI HERO)
========================================= */
.snk-dropdown {
    background: rgba(255, 255, 255, 0.1);
    /* Efek transparan biar nyatu sama background */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    /* Margin bawah buat jarak ke slogan */
    padding: 0.8rem;
    backdrop-filter: blur(5px);
    /* Efek kaca */
    text-align: left;
    transition: all 0.3s ease;
}

.snk-dropdown summary {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    /* Hilangin panah bawaan */
    text-align: center;
    outline: none;
}

/* Sembunyiin marker panah default di beberapa browser */
.snk-dropdown summary::marker,
.snk-dropdown summary::-webkit-details-marker {
    display: none;
}

.snk-content {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.6;
}

/* =========================================
   FIX KONTAK & LOKASI (DESKTOP GRID)
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Bikin 2 Kolom Kiri-Kanan di Desktop */
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Samain shadownya sama katalog */
}

/* Hilangin margin bawah default biar sejajar */
.contact-grid .contact-group {
    margin-bottom: 0;
}

/* Responsif: Kalau di HP balik ke atas-bawah */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        /* Jadi 1 kolom */
        padding: 1.5rem;
        gap: 2rem;
    }
}

/* =========================================
   TAMBAHAN CSS KERANJANG (TOMBOL HAPUS)
========================================= */
.cart-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; /* Biar ikon sejajar di tengah secara vertikal */
    margin-bottom: 0.5rem; 
    border-bottom: 1px dashed #eee; 
    padding-bottom: 0.5rem; 
}

.cart-item-details {
    display: flex;
    flex-direction: column; /* Bikin teks nama dan harga numpuk atas-bawah */
    flex-grow: 1;
    padding-right: 10px;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-price {
    color: var(--primary);
    font-size: 0.85rem;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px;
    opacity: 0.8;
}

.btn-remove:hover {
    transform: scale(1.2); /* Efek membesar pas kena mouse */
    opacity: 1;
}