/* ==========================================================================
   Base & Typography
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

/* Kustomisasi Scrollbar (Webkit) agar tampil lebih modern */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc; /* gray-50 */
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* gray-300 */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* gray-400 */
}

/* ==========================================================================
   Komponen Custom
   ========================================================================== */

/* Efek Hover pada Card Produk (Elevasi Halus) */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-2xl */
}

/* Animasi Zoom pelan pada gambar thumbnail saat card di-hover */
.product-card .img-wrapper {
    overflow: hidden;
}
.product-card .img-wrapper img {
    transition: transform 0.6s ease;
}
.product-card:hover .img-wrapper img {
    transform: scale(1.08);
}

/* Animasi Masuk (Fade In & Slide Up) untuk elemen yang baru dimuat */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Overlay (Spinner) */
.loading-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #4F46E5; /* Warna Primary */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}