/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #00d4ff; 
    --secondary: #00ff87; 
    --wa-color: #25D366;
    --wa-color-dark: #128C7E;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-bg: #f8fafc;
    --gray-light: #e2e8f0;
    --gray-text: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--gray-bg); 
    color: var(--dark); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding: 0.8rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.logo a { display: flex; align-items: center; transition: var(--transition); }
.logo a:hover { transform: scale(1.02); }
.nav-links a { 
    text-decoration: none; color: var(--dark-light); 
    margin-left: 2.5rem; font-weight: 600; font-size: 1.05rem;
    position: relative; transition: var(--transition);
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background: var(--primary);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* Slim Animated Banner */
.slim-banner {
    position: relative;
    width: 100%;
    height: 160px; /* Thin banner */
    background: linear-gradient(270deg, #0f172a, #00d4ff, #00ff87, #0f172a);
    background-size: 800% 800%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banner-glow {
    position: absolute;
    width: 200%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 100 C 20 0 50 0 100 100 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x;
    background-size: contain;
    animation: waveMove 20s linear infinite;
    bottom: -10px; opacity: 0.5;
}
@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.banner-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.banner-content p {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.banner-particles .particle {
    position: absolute;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
    animation: particleFloat 6s infinite ease-in-out alternate;
}
.p1 { width: 6px; height: 6px; top: 20%; left: 15%; animation-delay: 0s; }
.p2 { width: 4px; height: 4px; top: 60%; right: 25%; animation-delay: 1s; }
.p3 { width: 8px; height: 8px; bottom: 30%; left: 35%; animation-delay: 2s; }

@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.5; }
    100% { transform: translateY(-20px) scale(1.5); opacity: 1; }
}

/* Main Container */
.main-container { display: flex; max-width: 1400px; margin: 3rem auto; padding: 0 5%; gap: 3rem; }

/* Sidebar Filter */
.sidebar { width: 280px; flex-shrink: 0; }
.filter-group { 
    background: var(--white); padding: 1.75rem; 
    border-radius: var(--radius); margin-bottom: 1.5rem; 
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.02);
}
.filter-group h3 { 
    font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; 
    padding-bottom: 0.75rem; border-bottom: 2px solid var(--gray-bg); 
    color: var(--dark);
}
.filter-item { 
    display: flex; align-items: center; margin-bottom: 0.75rem; 
    cursor: pointer; color: var(--gray-text); font-weight: 500;
    transition: var(--transition);
}
.filter-item:hover { color: var(--dark); transform: translateX(5px); }
.filter-item input { 
    appearance: none; width: 18px; height: 18px; 
    border: 2px solid var(--gray-light); border-radius: 4px; 
    margin-right: 0.75rem; cursor: pointer; transition: var(--transition);
    position: relative;
}
.filter-item input:checked { 
    background: var(--primary); border-color: var(--primary); 
}
.filter-item input:checked::after {
    content: '✔'; position: absolute; color: white; 
    font-size: 12px; left: 2px; top: -1px;
}

/* Product Grid */
.products-area { flex: 1; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; }
.product-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    position: relative; display: flex; flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}
.product-card:hover { 
    transform: translateY(-8px); box-shadow: var(--shadow-lg); 
}
.product-image-container { 
    position: relative; width: 100%; padding-top: 140%; /* Taller elegant aspect ratio */
    overflow: hidden; background: var(--gray-light); 
}
.product-image-container img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; transition: opacity 0.6s ease;
}
.product-img-secondary { opacity: 0; }
.product-card:hover .product-img-secondary { opacity: 1; transform: scale(1.05); }
.product-card:hover .product-image-container img:first-child { transform: scale(1.05); }

.product-info { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--dark); line-height: 1.3; }
.product-price { 
    font-size: 1.3rem; color: var(--primary); font-weight: 800; 
    margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem;
}
.product-price .original { 
    text-decoration: line-through; color: var(--gray-text); 
    font-size: 0.95rem; font-weight: 500; 
}
.btn-order {
    margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 0.5rem;
    width: 100%; text-align: center;
    background: linear-gradient(135deg, var(--wa-color), var(--wa-color-dark)); color: white;
    padding: 1rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700;
    transition: var(--transition); border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-order:hover { 
    filter: brightness(1.1); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Badges */
.badge-offer {
    position: absolute; top: 1rem; right: 1rem;
    background: #ef4444; color: white; padding: 0.25rem 0.75rem;
    border-radius: 20px; font-weight: 700; font-size: 0.85rem;
    z-index: 10; box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

/* Mobile Filter Toggle */
.mobile-filter-btn { 
    display: none; background: var(--dark); color: white; 
    padding: 1rem; text-align: center; border-radius: var(--radius-sm); 
    box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; 
    cursor: pointer; font-weight: 700; letter-spacing: 1px;
}

/* Footer */
footer { 
    background: var(--dark); color: var(--gray-text); 
    padding: 3rem 1rem; text-align: center; margin-top: 5rem; 
    border-top: 4px solid var(--primary);
}
footer p { margin-bottom: 0.5rem; }
footer a { color: var(--primary); text-decoration: none; font-weight: 600; transition: var(--transition); }
footer a:hover { color: var(--secondary); }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-card { animation: fadeInUp 0.6s ease-out backwards; }
/* Staggered animation delays for cards generated by JS */

/* Responsive */
@media (max-width: 900px) {
    .main-container { flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
    .sidebar { width: 100%; display: none; }
    .sidebar.active { display: block; animation: fadeInUp 0.3s ease-out; }
    .mobile-filter-btn { display: block; }
    .slim-banner { height: 120px; }
    .banner-content h1 { font-size: 1.5rem; }
}
