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

:root {
    --brown-dark: #3E2210;
    --brown: #6B4226;
    --brown-light: #8B5A2B;
    --cream: #F5EDE0;
    --cream-dark: #E8DCC8;
    --gold: #C9A961;
    --white: #FFFFFF;
    --text: #2C1810;
    --text-light: #6B5D54;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--cream);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(62, 34, 16, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: padding 0.3s;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700; color: var(--cream);
    text-decoration: none; letter-spacing: 0.5px;
}
.nav-menu {
    display: flex; list-style: none; gap: 2rem; align-items: center;
}
.nav-menu a {
    color: var(--cream); text-decoration: none; font-weight: 400;
    font-size: 0.95rem; transition: color 0.2s;
}
.nav-menu a:hover { color: var(--gold); }
.nav-cta {
    background: var(--gold); color: var(--brown-dark) !important;
    padding: 0.5rem 1.5rem; border-radius: 50px; font-weight: 600 !important;
}
.nav-cta:hover { background: #D4B872; color: var(--brown-dark) !important; }
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px;
}
.nav-toggle span {
    width: 25px; height: 3px; background: var(--cream); border-radius: 2px;
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 6rem 2rem;
    background: linear-gradient(135deg, #3E2210 0%, #6B4226 50%, #8B5A2B 100%);
    color: var(--cream);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A961' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 {
    font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 900;
    margin-bottom: 0.5rem; letter-spacing: 1px;
}
.hero-tagline {
    font-size: 1.4rem; color: var(--gold); margin-bottom: 1.5rem; font-weight: 300;
}
.hero-desc { font-size: 1.1rem; margin-bottom: 2.5rem; opacity: 0.9; line-height: 1.8; }

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block; background: var(--gold); color: var(--brown-dark);
    padding: 0.9rem 2.5rem; border-radius: 50px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; font-size: 1rem;
    transition: all 0.3s; font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: #D4B872; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,169,97,0.4); }

.btn-buy {
    background: var(--brown); color: var(--cream); border: none;
    padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 500;
    cursor: pointer; font-size: 0.9rem; font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
.btn-buy:hover { background: var(--brown-light); transform: scale(1.05); }

/* ===== Products ===== */
.products { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
    font-family: 'Playfair Display', serif; font-size: 2.5rem;
    color: var(--brown-dark); margin-bottom: 0.5rem;
}
.section-header p { color: var(--text-light); font-size: 1.1rem; }

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--white); border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(62,34,16,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(62,34,16,0.15); }
.product-image {
    height: 200px; display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
}
.product-info { padding: 1.5rem; }
.product-info h3 {
    font-family: 'Playfair Display', serif; font-size: 1.3rem;
    color: var(--brown-dark); margin-bottom: 0.5rem;
}
.product-info p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price {
    font-size: 1.3rem; font-weight: 700; color: var(--brown);
}

/* ===== About ===== */
.about {
    background: var(--brown-dark); color: var(--cream);
    padding: 5rem 2rem; text-align: center;
}
.about-content { max-width: 700px; margin: 0 auto; }
.about h2 {
    font-family: 'Playfair Display', serif; font-size: 2.5rem;
    margin-bottom: 1.5rem; color: var(--gold);
}
.about p { font-size: 1.1rem; margin-bottom: 1rem; opacity: 0.9; line-height: 1.8; }
.about-stats {
    display: flex; justify-content: center; gap: 3rem; margin-top: 3rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
    display: block; font-family: 'Playfair Display', serif;
    font-size: 2rem; color: var(--gold); font-weight: 700;
}
.stat-label { font-size: 0.9rem; opacity: 0.8; }

/* ===== Contact ===== */
.contact { padding: 5rem 2rem; max-width: 600px; margin: 0 auto; text-align: center; }
.contact h2 {
    font-family: 'Playfair Display', serif; font-size: 2.5rem;
    color: var(--brown-dark); margin-bottom: 1rem;
}
.contact p { color: var(--text-light); margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
    padding: 0.9rem 1.2rem; border: 2px solid var(--cream-dark);
    border-radius: 10px; font-size: 1rem; font-family: 'Inter', sans-serif;
    background: var(--white); transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--gold);
}
.contact-form textarea { resize: vertical; }

/* ===== Footer ===== */
.footer {
    background: var(--brown-dark); color: var(--cream);
    text-align: center; padding: 2rem;
}
.footer p { font-size: 0.9rem; opacity: 0.8; margin-bottom: 0.5rem; }
.footer-links a { color: var(--gold); text-decoration: none; }

/* ===== Cart ===== */
.cart-button {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 99;
    background: var(--brown); color: var(--cream); border: none;
    width: 60px; height: 60px; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; box-shadow: 0 4px 20px rgba(62,34,16,0.3);
    transition: transform 0.2s; display: flex; align-items: center; justify-content: center;
}
.cart-button:hover { transform: scale(1.1); }
.cart-count {
    position: absolute; top: -5px; right: -5px; background: var(--gold);
    color: var(--brown-dark); font-size: 0.75rem; font-weight: 700;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.cart-modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center;
}
.cart-modal.active { display: flex; }
.cart-content {
    background: var(--white); border-radius: 16px; padding: 2rem;
    max-width: 450px; width: 90%; max-height: 80vh; overflow-y: auto;
}
.cart-close {
    float: right; background: none; border: none; font-size: 1.8rem;
    cursor: pointer; color: var(--text-light);
}
.cart-content h2 { font-family: 'Playfair Display', serif; color: var(--brown-dark); margin-bottom: 1.5rem; }
.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 0; border-bottom: 1px solid var(--cream-dark);
}
.cart-item-name { font-weight: 500; }
.cart-item-price { color: var(--brown); font-weight: 700; }
.cart-total {
    display: flex; justify-content: space-between; margin: 1.5rem 0;
    font-size: 1.3rem; font-weight: 700; color: var(--brown-dark);
}
.cart-note { font-size: 0.85rem; color: var(--text-light); margin-top: 1rem; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--brown-dark); flex-direction: column;
        padding: 1rem 2rem; gap: 1rem;
    }
    .nav-menu.active { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .hero-tagline { font-size: 1.1rem; }
    .product-grid { grid-template-columns: 1fr; }
    .about-stats { gap: 1.5rem; }
}
