/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fafaf9;
    --fg: #1c1917;
    --muted: #78716c;
    --border: #e7e5e4;
    --accent: #b91c1c;
    --accent-hover: #991b1b;
    --accent-light: #fef2f2;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--fg);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions button {
    font-size: 1.125rem;
    color: var(--fg);
    padding: 8px;
    position: relative;
    transition: var(--transition);
}

.header-actions button:hover {
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px !important;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 68px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fef2f2 0%, #fafaf9 50%, #f5f5f4 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.06) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 .accent {
    color: var(--accent);
    font-style: italic;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--fg);
    color: var(--white);
    border-color: var(--fg);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--fg);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--fg);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8125rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: var(--fg);
    color: var(--white);
    padding: 24px 0;
}

.promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.promo-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.promo-text p {
    font-size: 0.875rem;
    color: #d6d3d1;
}

.promo-code {
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.promo-inner .btn-primary {
    background: var(--white);
    color: var(--fg);
    border-color: var(--white);
}

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

/* ===== SECTIONS ===== */
.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--muted);
    font-size: 1rem;
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 100px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--fg);
    color: var(--fg);
}

.filter-btn.active {
    background: var(--fg);
    color: var(--white);
    border-color: var(--fg);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    animation: fadeUp 0.4s ease both;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card.hidden {
    display: none;
}

.product-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d6d3d1;
}

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

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

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--fg);
    color: var(--white);
}

.product-tag.sale {
    background: var(--accent);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
}

.product-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.price-current {
    font-weight: 700;
    font-size: 1rem;
}

.price-original {
    font-size: 0.8125rem;
    color: var(--muted);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--fg);
    color: var(--white);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background: var(--accent);
}

/* ===== FEATURED GRID ===== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.featured-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f5f5f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d6d3d1;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.featured-overlay h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.featured-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* ===== CONTACT / NEWSLETTER ===== */
.contact {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.contact-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-content > p {
    color: var(--muted);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    max-width: 480px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
}

.newsletter-form input:focus {
    border-color: var(--fg);
    box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.08);
}

.contact-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent);
}

.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--border);
}

.contact-visual i {
    opacity: 0.4;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 2001;
    transform: translateX(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.cart-close {
    font-size: 1.25rem;
    color: var(--muted);
    padding: 4px;
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--fg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    text-align: center;
    padding: 48px 0;
    color: var(--muted);
}

.cart-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeUp 0.2s ease both;
}

.cart-item-image {
    width: 72px;
    height: 96px;
    border-radius: var(--radius-sm);
    background: #f5f5f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #d6d3d1;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.cart-item-category {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 8px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    font-weight: 700;
    font-size: 0.875rem;
}

.cart-item-remove {
    font-size: 0.8125rem;
    color: var(--muted);
    transition: var(--transition);
    padding: 4px;
}

.cart-item-remove:hover {
    color: var(--accent);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.total-price {
    font-weight: 700;
    font-size: 1.125rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--fg);
    color: #d6d3d1;
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-col .logo {
    color: var(--white);
    display: inline-block;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: #a8a29e;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #78716c;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        opacity: 0;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section {
        padding: 64px 0;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-visual {
        display: none;
    }

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

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

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

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

    .product-info {
        padding: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cart-sidebar {
        width: 100vw;
        max-width: 100vw;
    }
}