:root {
    /* Dynamic Color Palette */
    --primary: #f43f5e; /* Rose */
    --primary-gradient: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
    --secondary-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    
    --dark: #0f172a;
    --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    --light-bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --border: rgba(226, 232, 240, 0.8);
    
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --success: #10b981;
    --star: #fbbf24;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--light-bg);
    background-image: radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Promo Banner with Animated Gradient */
.promo-banner {
    background: linear-gradient(45deg, #f43f5e, #fb923c, #8b5cf6, #f43f5e);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    color: var(--white);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
@keyframes gradientShift { 0% {background-position: 0% 50%;} 50% {background-position: 100% 50%;} 100% {background-position: 0% 50%;} }

/* Glassmorphism Navbar */
.navbar {
    border-bottom: 1px solid rgba(255,255,255,0.5);
    position: sticky; top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 75px; }
.logo { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px;}
.logo span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary-gradient); transition: 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-icons { display: flex; gap: 1.5rem; align-items: center; font-size: 1.25rem; color: var(--text-primary); }
.nav-icons a { transition: 0.3s; }
.nav-icons a:hover { color: var(--primary); transform: scale(1.1); }
.cart-icon { position: relative; cursor: pointer; }
.cart-badge {
    position: absolute; top: -8px; right: -10px;
    background: var(--primary-gradient); box-shadow: 0 2px 5px rgba(244, 63, 94, 0.4);
    color: var(--white); font-size: 0.75rem; width: 20px; height: 20px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 700;
}
.mobile-menu-btn { display: none; cursor: pointer; }

/* Buttons */
.btn {
    padding: 0.8rem 1.75rem; border: none; border-radius: 50px;
    font-family: inherit; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden; z-index: 1;
}
.btn-primary { background: var(--primary-gradient); color: var(--white); box-shadow: 0 8px 15px rgba(244, 63, 94, 0.3); }
.btn-primary::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(135deg, #fb923c, #f43f5e); z-index:-1; transition: opacity 0.3s; opacity: 0; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 20px rgba(244, 63, 94, 0.4); }

.btn-dark { background: var(--dark-gradient); color: var(--white); box-shadow: 0 8px 15px rgba(15, 23, 42, 0.2); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(15, 23, 42, 0.3); }

/* Hero Section */
.hero { padding: 2rem 0; }
.hero-banner {
    position: relative;
    background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&q=80&w=1200') center/cover;
    height: 450px; border-radius: 24px;
    display: flex; align-items: center; padding: 5rem;
    overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.4) 50%, transparent 100%);
}
.hero-banner::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.2) 0%, transparent 50%);
    pointer-events: none;
}
.hero-text { color: var(--white); max-width: 500px; position: relative; z-index: 2; }
.hero-text h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.hero-text h1 span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.15rem; margin-bottom: 2.5rem; opacity: 0.9; }

/* Product Filters */
.products-section { padding: 5rem 0; position: relative; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.filter-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; background: white; padding: 0.5rem; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid var(--border); }
.filter-btn {
    background: transparent; border: none; padding: 0.75rem 1.5rem;
    border-radius: 50px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: 0.3s; color: var(--text-muted);
}
.filter-btn.active { background: var(--primary-gradient); color: var(--white); box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3); }
.filter-btn:not(.active):hover { background: var(--light-bg); color: var(--text-primary); }

/* Premium Product Card */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem; }
.product-card {
    background: var(--white); border-radius: 20px;
    overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative; display: flex; flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.product-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 2px;
    background: var(--primary-gradient); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: 0.4s; pointer-events: none; z-index: 10;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-8px);
}
.product-image { position: relative; overflow: hidden; height: 350px; background: var(--light-bg); display: flex; justify-content: center; align-items: center;}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.product-card:hover .product-image img { transform: scale(1.1); }

.badge { position: absolute; top: 1.25rem; left: 1.25rem; padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; z-index: 2; color: white; letter-spacing: 1px;}
.badge.sale { background: var(--primary-gradient); box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4); }
.badge.new { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4); }

.quick-add {
    position: absolute; bottom: -4rem; right: 1.25rem; width: 45px; height: 45px;
    border-radius: 50%; background: var(--white); border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); font-size: 1.2rem; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); color: var(--text-primary); display: flex; justify-content: center; align-items: center; z-index: 2;
}
.product-card:hover .quick-add { bottom: 1.25rem; }
.quick-add:hover { background: var(--primary-gradient); color: var(--white); transform: scale(1.1) rotate(90deg); }

.product-info { padding: 1.75rem; display: flex; flex-direction: column; flex-grow: 1; background: var(--white); position: relative; z-index: 5;}
.category { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 0.5rem; }
.product-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); cursor: pointer; transition: 0.3s;}
.product-title:hover { color: var(--primary); }

.rating { color: var(--star); font-size: 0.9rem; margin-bottom: 0.75rem; display: flex; gap: 2px;}
.rating span { color: var(--text-muted); margin-left: 0.5rem; font-size: 0.8rem;}

.price-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.old-price { font-size: 0.95rem; color: var(--text-muted); text-decoration: line-through; font-weight: 500;}

.btn-add-cart { width: 100%; border: 2px solid var(--border); background: transparent; color: var(--text-primary); margin-top: auto; font-size: 0.95rem; padding: 0.75rem;}
.btn-add-cart:hover { border-color: transparent; background: var(--primary-gradient); color: var(--white); box-shadow: 0 8px 15px rgba(244, 63, 94, 0.3); }

/* Newsletter */
.newsletter { padding: 6rem 0; position: relative; }
.newsletter::before { content: ''; position: absolute; inset: 0; background: var(--secondary-gradient); opacity: 0.05; z-index: -1; }
.newsletter-inner { 
    background: var(--dark-gradient); padding: 4rem; border-radius: 30px; 
    display: flex; justify-content: space-between; align-items: center; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); position: relative; overflow: hidden;
}
.newsletter-inner::before {
    content:''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.3) 0%, transparent 60%);
}
.newsletter-text { position: relative; z-index: 2; color: white;}
.newsletter-text h2 { font-size: 2.5rem; margin-bottom: 0.5rem; font-weight: 800; letter-spacing: -0.5px;}
.newsletter-text p { color: #cbd5e1; font-size: 1.1rem; max-width: 400px;}
.newsletter-form { display: flex; gap: 1rem; min-width: 450px; position: relative; z-index: 2;}
.newsletter-form input { 
    flex-grow: 1; padding: 1.2rem 1.75rem; border: none; border-radius: 50px; 
    font-family: inherit; font-size: 1rem; outline: none; background: rgba(255,255,255,0.1); color: white;
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); transition: 0.3s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 4px rgba(255,255,255,0.1); }
.newsletter-form .btn { padding: 0 2rem; border-radius: 50px; background: var(--primary-gradient); box-shadow: 0 8px 15px rgba(244, 63, 94, 0.4);}

/* Footer */
footer { background: var(--dark); color: var(--white); padding-top: 5rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-col p { color: #94a3b8; margin-top: 1.5rem; margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.8;}
.footer-col h4 { font-size: 1.2rem; margin-bottom: 1.75rem; font-weight: 700; letter-spacing: 0.5px;}
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a { color: #94a3b8; font-size: 0.95rem; transition: 0.3s; display: inline-block;}
.footer-col ul li a:hover { color: var(--white); transform: translateX(5px); color: var(--primary); }

.social-links { display: flex; gap: 1rem; }
.social-links a { 
    width: 45px; height: 45px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; font-size: 1.1rem;
}
.social-links a:hover { background: var(--primary-gradient); border-color: transparent; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(244, 63, 94, 0.3);}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 2rem 0; color: #64748b; font-size: 0.9rem; }
.text-center { text-align: center; }

@media (max-width: 900px) {
    .newsletter-inner { flex-direction: column; text-align: center; gap: 3rem; padding: 3rem 2rem;}
    .newsletter-text p { margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .hero-banner { padding: 3rem; text-align: center; justify-content: center; height: auto; min-height: 400px;}
    .hero-banner::after { left: -50%; width: 200%; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-icons .fa-search, .nav-icons .fa-user { display: none; }
    .mobile-menu-btn { display: block; }
    .newsletter-form { min-width: 100%; flex-direction: column; }
    .newsletter-form input { padding: 1rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
}
