:root {
    /* Elite Palette: "Glass & Glow" */
    --primary: #ff9900;
    --primary-gradient: linear-gradient(135deg, #FF9900 0%, #FF5E00 100%);
    --primary-glow: rgba(255, 153, 0, 0.4);

    --secondary: #0f172a;
    /* Deep Midnight */
    --secondary-light: #1e293b;
    --secondary-gradient: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);

    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #f8fafc;

    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --border-light: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.5);

    --white: #FFFFFF;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;

    /* Decoration */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

    /* Fluids */
    --header-height: 70px;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glass Header */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    height: var(--header-height);
}

.header-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.03em;
}

.logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-bar {
    flex: 1;
    display: flex;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 153, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 0 1rem;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: var(--primary-gradient);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.header-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-family: var(--font-heading);
}

.header-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.cart-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-link:hover {
    background: var(--primary-gradient);
    color: var(--white);
}

.cart-count {
    background: var(--white);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    min-width: 20px;
    text-align: center;
}

/* Modern Hero */
.hero {
    background: var(--secondary-gradient);
    color: var(--white);
    padding: 4rem var(--spacing-lg);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background glow */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Section */
.section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--border-light), transparent);
}

.section-title {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 800;
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.2s;
}

.section-link:hover {
    transform: translateX(4px);
}

/* Levitating Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: var(--white);
    padding: 1.5rem;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-store {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
    opacity: 0.8;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
}

/* === Amazon-Style Price Display === */
.price-display {
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
    line-height: 1;
}

.price-currency {
    font-size: 0.65em;
    font-weight: 600;
    color: var(--secondary);
    align-self: flex-start;
    margin-top: 2px;
}

.price-dollars {
    font-size: 1.75em;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    font-family: var(--font-heading);
}

.price-cents {
    font-size: 0.55em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 1px;
}

.product-price {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
}

.product-price::before {
    content: '';
    display: none;
}

/* Glass Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: var(--spacing-xl);
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon {
    font-size: 3rem;
    background: var(--bg-body);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: var(--primary-gradient);
    color: white;
    transform: rotate(10deg);
}

.category-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: white;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--text-light);
    padding: 4rem var(--spacing-lg);
    margin-top: 5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--white);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-main {
        padding: 0 1rem;
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .header-nav {
        gap: 0.5rem;
    }

    .header-link span {
        display: none;
    }

    .search-bar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: none;
        background: var(--secondary);
        padding: 0.5rem;
        border-radius: 0;
        z-index: 90;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .header-link {
        padding: 0.5rem;
    }
}