/* Cuddle Cotton - Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Sniglet&display=swap');

:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    --bg-color: #FFFFFF;
    --bg-secondary: #F9F9F9;
    --text-main: #2D2D2D;
    --text-muted: #666666;
    --accent: #FFB7B2;
    --border-color: rgba(0, 0, 0, 0.05);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
    --spacing-xxl: 80px;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-cute: 'Sniglet', system-ui, cursive;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-lg: 1.25rem;
    --text-xl: 2rem;
    --text-xxl: 3.5rem;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, #fff0f5 0%, #e6e6fa 50%, #e0ffff 100%);
    background-size: 100% 400%;
    /* Animation handled by JS on scroll */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 var(--spacing-lg);
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.flex {
    display: flex;
    align-items: center;
}

.flex-between {
    justify-content: space-between;
}

.box {
  border-radius: 25px;
  background-color: rgba(128, 128, 128, 0.3);
}

.text-center {
    text-align: center;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
}

.nav-links {
    gap: var(--spacing-lg);
}

.nav-links a,
.lang-toggle {
    font-size: var(--text-sm);
    font-weight: 600;
    /* Bolder */
    color: var(--text-muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.lang-toggle:hover {
    color: var(--text-main);
}

.logo {
    font-family: var(--font-cute);
    font-size: 1.75rem;
    font-weight: 600;
    color: #4a4a4a;
    /* Softer dark grey for cute look */
    letter-spacing: -0.5px;
}

/* Product Grid */
.products {
    padding: var(--spacing-md) 0 var(--spacing-xxl);
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px 16px;
}

.product-card {
    position: relative;
    background: transparent;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1.2;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info h3 {
    font-size: var(--text-base);
    font-weight: 600;
    /* Bolder */
    margin-bottom: 2px;
}

.product-price {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 700;
    /* Bolder */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 16px;
        --spacing-xxl: 40px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Header adjustments for mobile */
    header .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-links {
        gap: var(--spacing-md);
        justify-content: center;
        flex-wrap: wrap;
    }

    .logo {
        order: -1;
        /* Move logo to top */
        font-size: 2rem;
    }

    /* Force 2 columns on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }

    .product-info h3 {
        font-size: 0.875rem;
    }

    .products {
        padding-top: var(--spacing-sm);
    }
}