/* ==========================================================================
   agro_bahari_shop/style.css - Enhanced Modern & Sync Edition
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

/* 1. Animasi Masuk Ringan (Fade In Up) untuk Grid Produk */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(16px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Otomatis memberikan efek animasi smooth saat element produk di-render di home.html */
#product-grid > div {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 2. Custom Scrollbar Modern & Minimalis (Selaras dengan Tema Hijau/Emerald) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #10b981; /* Emerald-500 */
    border-radius: 9999px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669; /* Emerald-600 */
}

/* 3. Efek Hover & Zoom Premium Pada Kartu Produk */
.product-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Efek zoom gambar produk di dalam kartu tanpa merusak container */
.product-card img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
    transform: scale(1.08);
}

/* 4. Sentuhan Interaktif Tambahan untuk Form Inputs */
input[type="text"], 
input[type="number"], 
select, 
textarea {
    transition: all 0.2s ease;
}

input[type="text"]:focus, 
input[type="number"]:focus, 
select:focus, 
textarea:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* 5. Custom Utility Khusus untuk Mempercantik Tampilan Live Search di home.html */
#search-produk {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s ease;
}

#search-produk:focus {
    border-color: #10b981;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1);
}
/* ==========================================================================
   Responsivitas Tambahan (Mobile-First & Media Queries)
   ========================================================================== */

/* Perbaikan properti CSS di style.css */
@media (max-width: 480px) {
    #product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important; 
    }

    /* Menyesuaikan ukuran font header di mobile agar tidak terpotong */
    header h1 {
        font-size: 1.875rem !important; /* text-3xl ekivalen */
        line-height: 1.2 !important;
    }

    header p {
        font-size: 0.875rem !important; /* text-sm ekivalen */
    }

    /* Padding kontainer banner diperkecil */
    header .bg-gradient-to-br {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }
}


/* Optimasi Fleksibilitas Kontainer untuk Touch Screen Device */
.product-card {
    /* Mencegah text overflow pada nama produk yang panjang di layar mobile */
    word-break: break-word;
    -webkit-tap-highlight-color: transparent; /* Menghilangkan highlight biru saat di-tap di HP */
}