/* ============================================
   COTTON BLOOM - Gothic Victorian Theme
   ============================================ */

/* CSS Variables - Gothic Dark Palette */
:root {
    --primary: #D1627C;
    /* Jaipur Pink / Rose Deep */
    --primary-dark: #A6445D;
    --primary-light: #EF819E;
    --secondary: #FAE1E5;
    /* Soft Blush */
    --accent: #D4AF37;
    /* Metallic Gold */
    --accent-light: #F4C430;
    --background: #FFF9FA;
    /* Ultra Light Pink Tint */
    --background-alt: #FCE4EC;
    --background-card: #ffffff;
    --text: #4A2C2A;
    /* Coffee Brown */
    --text-light: #7D5A58;
    --text-muted: #A1887F;
    --white: #ffffff;
    --black: #212121;
    --shadow: rgba(209, 98, 124, 0.1);
    --shadow-lg: rgba(209, 98, 124, 0.2);
    --shadow-glow: rgba(239, 129, 158, 0.2);
    --gradient-primary: linear-gradient(135deg, #EF819E 0%, #D1627C 100%);
    --gradient-dark: linear-gradient(135deg, #4A2C2A 0%, #212121 100%);
    --gradient-accent: linear-gradient(135deg, #F4C430 0%, #D4AF37 100%);
    --transition: all 0.3s ease-out;
    /* Simpler, faster transitions */
    --radius: 12px;
    --radius-sm: 6px;
    --radius-lg: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   Navigation - Gothic Style
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(252, 245, 229, 0.98);
    /* Use background variable with transparency */
    backdrop-filter: blur(10px);
    /* Slightly less blur */
    border-bottom: 1px solid rgba(62, 39, 35, 0.1);
    /* Lighter, earthy border */
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.1);
    /* Add a subtle shadow */
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--accent));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover {
    color: var(--text);
    text-shadow: 0 0 20px var(--primary-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-btn {
    background: var(--gradient-primary);
    border: 1px solid var(--primary-light);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-glow);
}

.cart-count {
    background: var(--accent);
    color: var(--black);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

/* ============================================
   Hero Section - Gothic Dramatic
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(139, 10, 80, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(92, 7, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--black);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(139, 10, 80, 0.5);
}

.hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--primary));
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: 1px solid var(--primary-light);
    box-shadow: 0 8px 25px var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-glow), 0 0 30px var(--primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(139, 10, 80, 0.2);
    box-shadow: 0 0 20px var(--shadow-glow);
}

/* Hero Visual Simplified */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, var(--primary) 50%, transparent 70%);
    opacity: 0.2;
    filter: blur(50px);
}

.floating-bag {
    display: none;
    /* Removed as per user request */
}



/* Hero Stats - Gothic Cards */
.hero-stats {
    max-width: 1400px;
    margin: 4rem auto 0;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--background-card);
    border: 1px solid rgba(139, 10, 80, 0.3);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px var(--shadow);
    min-width: 180px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px var(--shadow), 0 0 30px var(--shadow-glow);
    border-color: var(--primary);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Collection Section - Gothic Grid
   ============================================ */
.collection {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-light);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 30px var(--shadow-glow);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Filter Tabs - Gothic */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-light);
    color: var(--white);
    box-shadow: 0 0 20px var(--shadow-glow);
}

/* Products Grid - Gothic Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--background-card);
    border: 1px solid rgba(139, 10, 80, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow), 0 0 40px var(--shadow-glow);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.tote-1 {
    background: linear-gradient(135deg, #3d1a2a 0%, #1a0a10 100%);
}

.crossbody-1 {
    background: linear-gradient(135deg, #2a2a35 0%, #1a1a25 100%);
}

.clutch-1 {
    background: linear-gradient(135deg, #3d3520 0%, #2a2515 100%);
}

.backpack-1 {
    background: linear-gradient(135deg, #1a2a2a 0%, #0a1a1a 100%);
}

.tote-2 {
    background: linear-gradient(135deg, #4a2030 0%, #2a1020 100%);
}

.crossbody-2 {
    background: linear-gradient(135deg, #2a1a3a 0%, #1a0a2a 100%);
}

.product-card:hover .product-placeholder {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: 1px solid var(--primary-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-tag.bestseller {
    background: var(--accent);
    color: var(--black);
}

.product-tag.new {
    background: var(--primary);
    color: var(--white);
}

.product-tag.sale {
    background: #8b2020;
    color: var(--white);
}

.product-tag.limited {
    background: var(--secondary);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.product-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.price s {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1rem;
}

.add-cart-btn {
    background: var(--gradient-primary);
    border: 1px solid var(--primary-light);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-glow);
}

/* ============================================
   About Section - Gothic Elegance
   ============================================ */
.about {
    padding: 6rem 2rem;
    background: var(--background-alt);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 10, 80, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
}

.about-img-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(145deg, #3d1a2a, #1a0a10);
    border: 1px solid var(--primary-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px var(--shadow);
}

.about-float-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--background-card);
    border: 1px solid var(--primary);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 15px 50px var(--shadow), 0 0 30px var(--shadow-glow);
    text-align: center;
}

.float-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.float-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--text);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px var(--shadow-glow);
}

.about-content>p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--background-card);
    border: 1px solid rgba(139, 10, 80, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px var(--shadow), 0 0 20px var(--shadow-glow);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: grayscale(30%) brightness(0.9);
}

.feature h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
}



/* ============================================
   Footer - Gothic
   ============================================ */
.footer {
    background: var(--background-alt);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(139, 10, 80, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
}

.footer-brand p {
    color: var(--text-light);
    margin: 1rem 0 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--background-card);
    border: 1px solid rgba(139, 10, 80, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--shadow-glow);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a,
.footer-col li {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 10, 80, 0.2);
    text-align: center;
    color: var(--text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: 2;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat {
        min-width: 140px;
        padding: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    #gameCanvas {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .game-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}