* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #faf8f5;
    --surface: #ffffff;
    --cream: #f5f0e8;
    --sage: #7a9e7e;
    --sage-dark: #5c7e5f;
    --sage-light: #e8f0e8;
    --brown: #8b6f47;
    --brown-light: #c4a882;
    --text: #2d2a26;
    --text-dim: #7a756d;
    --border: #e8e2d8;
    --pink: #d4a0a0;
    --lavender: #9b8ec4;
    --honey: #d4a843;
    --mint: #6bab8e;
    --chamomile: #e8d58e;
    --ocean: #6b9ab8;
    --coconut: #c9b896;
    --rose: #c47e8e;
    --radius: 14px;
}

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

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sage-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--sage-dark);
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    position: relative;
    padding: 4px;
    transition: color 0.2s;
}

.cart-btn:hover {
    color: var(--sage-dark);
}

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

/* HERO */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 32px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 560px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--sage-light);
    color: var(--sage-dark);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.hero p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 440px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--sage);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(122, 158, 126, 0.3);
}

.hero-deco {
    position: absolute;
    top: 100px;
    right: 0;
    width: 400px;
    height: 400px;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.b1 {
    width: 300px;
    height: 300px;
    background: var(--sage);
    top: 0;
    right: 0;
}

.b2 {
    width: 180px;
    height: 180px;
    background: var(--brown-light);
    top: 160px;
    right: 200px;
}

.b3 {
    width: 120px;
    height: 120px;
    background: var(--pink);
    top: 40px;
    right: 280px;
}

/* FEATURES */
.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature:hover {
    border-color: var(--sage);
    box-shadow: 0 4px 20px rgba(122, 158, 126, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

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

/* PRODUCTS */
.products {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 32px 80px;
}

.products h2, .about h2, .contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 1rem;
}

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

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.product-swatch {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.85);
    color: var(--text);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.5;
}

.product-weight {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-bottom: 14px;
    opacity: 0.7;
}

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

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sage-dark);
}

.add-to-cart {
    padding: 8px 18px;
    background: var(--sage);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

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

.add-to-cart.added {
    background: var(--sage-dark);
    pointer-events: none;
}

/* ABOUT */
.about {
    background: var(--cream);
    padding: 80px 32px;
}

.about-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 16px;
    line-height: 1.8;
}

/* CONTACT */
.contact {
    max-width: 650px;
    margin: 0 auto;
    padding: 80px 32px;
}

.contact-form {
    margin-top: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.2s;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--sage);
}

.contact-form textarea {
    margin-bottom: 16px;
}

.contact-form .btn-primary {
    width: 100%;
}

/* CART SIDEBAR */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 200;
    transition: opacity 0.3s;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: var(--surface);
    z-index: 201;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

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

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dim);
    padding: 0 4px;
    line-height: 1;
}

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

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

.cart-empty {
    color: var(--text-dim);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-swatch {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.cart-item-price {
    color: var(--sage-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--text);
}

.qty-btn:hover {
    border-color: var(--sage);
    background: var(--sage-light);
}

.qty-num {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 16px;
    text-align: center;
}

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

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.btn-checkout {
    width: 100%;
    text-align: center;
}

.cart-note {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 10px;
}

/* FOOTER */
footer {
    background: var(--text);
    color: var(--cream);
    padding: 48px 32px 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: var(--cream);
    font-size: 1.2rem;
}

.footer-brand p {
    color: rgba(245,240,232,0.5);
    font-size: 0.85rem;
    margin-top: 6px;
}

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

.footer-links a {
    color: rgba(245,240,232,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--cream);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(245,240,232,0.35);
    font-size: 0.78rem;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--sage-dark);
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 300;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 2s forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* CHECKOUT MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 200;
}

.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 36px 32px;
    width: 420px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 201;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.checkout-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.checkout-sub {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dim);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

#checkoutForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#checkoutForm input[type="text"],
#checkoutForm input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.2s;
}

#checkoutForm input[type="text"]::placeholder,
#checkoutForm input[type="tel"]::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

#checkoutForm input[type="text"]:focus,
#checkoutForm input[type="tel"]:focus {
    outline: none;
    border-color: var(--sage);
}

#checkoutForm .btn-primary {
    margin-top: 4px;
    text-align: center;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.remember-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sage);
    cursor: pointer;
}

/* UTILITIES */
.hidden {
    display: none !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-inner {
        padding: 12px 16px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 110px 20px 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-deco {
        display: none;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 20px 40px;
    }

    .feature {
        padding: 20px 16px;
    }

    .products {
        padding: 40px 20px 60px;
    }

    .products h2, .about h2, .contact h2 {
        font-size: 1.5rem;
    }

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

    .product-swatch {
        height: 140px;
        font-size: 2.8rem;
    }

    .product-info {
        padding: 14px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-desc {
        font-size: 0.78rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .add-to-cart {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .about {
        padding: 50px 20px;
    }

    .contact {
        padding: 50px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

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

    .product-swatch {
        height: 180px;
    }
}
