/**
 * ============================================================================
 * GUSTZY PREMIUM CSS CORE v6.5.0 - ULTIMATE DESIGN SYSTEM
 * ============================================================================
 * AUTHOR: MUHAMMAD GUSTI FAIZ FATHURRAHMAN
 * PRINCIPLE: HIGH-END UX, GLASSMORPHISM, & SMOOTH TRANSITIONS
 * ============================================================================
 */

/* 1. CSS VARIABLES & ARCHITECTURE */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.4);
    --accent: #f59e0b;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-400: #94a3b8;
    --slate-800: #1e293b;
    --glass-white: rgba(255, 255, 255, 0.8);
    --glass-dark: rgba(15, 23, 42, 0.9);
    --radius-xl: 1.5rem;
    --radius-2xl: 2.5rem;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. BASE RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--slate-100);
    overflow-x: hidden;
    user-select: none;
}

body.dark {
    background-color: #020617;
}

/* 3. SCROLLBAR CUSTOMIZATION */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 4. HEADER TRANSFORMATIONS */
header {
    transition: var(--transition);
}

header.scrolled {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    border-radius: 0 !important;
    background-color: rgba(37, 99, 235, 0.95);
    backdrop-filter: blur(15px);
}

/* 5. PRODUCT CARD DESIGN */
.product-card {
    background: var(--white);
    border-radius: 2rem;
    border: 1px solid var(--slate-100);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.dark .product-card {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary);
}

.product-image {
    aspect-ratio: 1 / 1;
    width: 100%;
}

/* 6. PILL CATEGORY STYLING */
.cat-pill {
    padding: 10px 18px;
    border-radius: 1rem;
    background: var(--white);
    color: var(--slate-400);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-soft);
}

.dark .cat-pill {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.cat-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 8px 20px -5px var(--primary-glow);
}

.cat-pill i {
    width: 14px;
    height: 14px;
}

/* 7. MODAL & OVERLAY ANIMATIONS */
#modal-overlay {
    background-color: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
}

#modal-panel {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 8. NAVIGATION BOTTOM BAR */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--slate-400);
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary);
}

.dark .nav-item.active {
    color: #60a5fa;
}

/* 9. PREMIUM BADGES & UI ELEMENTS */
.promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    font-weight: 900;
    font-size: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.05em;
}

.payment-card {
    transition: var(--transition);
}

.payment-card:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: scale(1.02);
}

/* 10. SKELETON LOADING EFFECTS */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

.dark .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 11. CUSTOM TOAST NOTIFICATION */
.toast-success {
    background: #10b981;
    color: white;
}

.toast-error {
    background: #ef4444;
    color: white;
}

/* 12. UTILITIES */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 13. RESPONSIVE ADJUSTMENTS */
@media (max-width: 380px) {
    .product-card {
        border-radius: 1.5rem;
    }
    
    h4 {
        font-size: 10px !important;
    }
}

/**
 * ============================================================================
 * END OF GUSTZY PREMIUM CSS CORE
 * ============================================================================
 */
