/*
Theme Name: Apple Flash Sale
Author: Antigravity
Version: 1.0
Description: A premium Apple-style flash sale theme.
*/

/* Apple Flash Sale Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #000000;
    --bg-card: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-color: #ff3b30; /* Apple Red for sale */
    --accent-glow: rgba(255, 59, 48, 0.5);
    --gold: #f5d06d;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.grid { display: grid; }
.text-center { text-align: center; }
.hidden { display: none; }

/* Flash Animation */
@keyframes flashPulse {
    0% { text-shadow: 0 0 10px var(--accent-color); }
    50% { text-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color); }
    100% { text-shadow: 0 0 10px var(--accent-color); }
}

.flash-sale-text {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    animation: flashPulse 2s infinite;
}

/* Header */
header {
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}
.nav-bar {
    height: 48px;
    font-size: 12px;
}
.nav-links a {
    color: #bdbdbd;
    margin: 0 15px;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #fff;
}
.cart-icon {
    position: relative;
    cursor: pointer;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #2c2c2e 0%, #000 70%);
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}
.hero-cta {
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Category Filter */
.categories {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.cat-btn {
    background: var(--bg-card);
    border: 1px solid #424245;
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.cat-btn.active, .cat-btn:hover {
    background: #fff;
    color: #000;
}

/* Product Grid */
.products-wrapper {
    padding: 20px 0 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid transparent;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #424245;
}
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-2024 {
    background: var(--accent-color);
    color: white;
}
.badge-2025 {
    background: var(--gold);
    color: black;
}
.product-img {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #2c2c2e, #1c1c1e);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #424245;
    position: relative;
    overflow: hidden;
}
/* CSS-only Apple-ish Placeholder */
.product-img::after {
    content: '';
    position: absolute;
}
.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.price-container {
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-right: 10px;
    font-size: 0.9rem;
}
.sale-price {
    color: #fff;
    font-weight: 600;
}
.buy-btn {
    background: #2c2c2e; /* Light grey */
    color: #2997ff; /* Apple Blue */
    border: none;
    padding: 8px 16px;
    border-radius: 980px;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}
.buy-btn:hover {
    background: #3a3a3c;
}

/* Footer */
footer {
    background: #1c1c1e;
    padding: 50px 0 20px;
    font-size: 12px;
    color: var(--text-secondary);
}
