/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Premium Earth Tones Palette */
    --color-bg: #FDFCF8;
    /* Warm Off-white */
    --color-text-main: #2C2C2C;
    /* Soft Black */
    --color-text-muted: #6E6E6E;
    --color-primary: #8C7B6D;
    /* Muted Earthy Brown */
    --color-accent: #D4A373;
    /* Soft Terracotta/Gold */
    --color-border: #E5E5E5;
    --color-surface: #FFFFFF;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* Elegant Serif for headings */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
    --header-height: 80px;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-main);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--color-text-main);
    background: transparent;
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn:hover {
    background: var(--color-text-main);
    color: var(--color-surface);
}

.btn-primary {
    background: var(--color-text-main);
    color: var(--color-surface);
    border-color: var(--color-text-main);
}

.btn-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(253, 252, 248, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

header.scrolled {
    border-bottom: 1px solid var(--color-border);
    height: 70px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text-main);
    transition: var(--transition-smooth);
}

nav a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.icon-btn {
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Japanese House with 70-80s American Vibe (City Pop Style): Retro furniture, warm wood, nostalgic atmosphere */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://images.unsplash.com/photo-1550920405-c13f6385db1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    /* Clean minimal stock photo of daily objects/coffee */
    color: var(--color-surface);
    position: relative;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    color: var(--color-surface);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

/* Categories Section */
.categories {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

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

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
}

.category-overlay h3 {
    margin: 0;
    font-weight: 400;
}

/* Featured Products */
.featured {
    padding: var(--spacing-xl) 0;
    background-color: #F8F6F1;
    /* Slightly darker beige */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.product-card {
    background: var(--color-surface);
    padding: var(--spacing-sm);
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f0f0f0;
    margin-bottom: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-main);
}

.product-price {
    color: var(--color-primary);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #212121;
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
}

.footer-brand h2 {
    color: white;
    font-size: 1.8rem;
}

.footer-brand p {
    color: #999;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-main);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #999;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    h1 {
        font-size: 2.5rem;
    }

    nav {
        display: none;
        /* Mobile menu implementation usually goes here */
    }
}