/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #2b3128; /* Deep Olive/Charcoal */
    --accent-color: #6B7A62;  /* Sage Green */
    --bg-light: #f7f6f2;      /* Natural Beige */
    --text-main: #3b3a36;
    --text-muted: #7d7973;
    --white: #ffffff;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo, .logo-footer {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

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

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

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #e9e6e0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 49, 40, 0.4); /* Gentle dark overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

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

/* Category Section */
.categories {
    padding: 5rem 0 2rem;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    position: relative;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background-color: var(--bg-light);
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9e6e0;
}

.category-card:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.category-card h3 {
    font-size: 1.5rem;
}

/* Collection Section */
.collection {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

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

.img-wrapper {
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #fff;
    aspect-ratio: 4/5;
}

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

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

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.price {
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Subscribe Section */
.subscribe-section {
    padding: 6rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.subscribe-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.subscribe-text {
    flex: 1;
    min-width: 300px;
}

.subscribe-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.subscribe-text p {
    font-size: 1.1rem;
    color: #cbd3c7;
}

.subscribe-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.subscribe-form input {
    padding: 1.2rem;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    border: 1px solid #cbd3c7;
    background-color: transparent;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
}

.subscribe-form input::placeholder {
    color: #cbd3c7;
}

.subscribe-form input:focus {
    border-color: var(--white);
}

.subscribe-form button {
    width: 100%;
    background-color: var(--white);
    color: var(--primary-color);
}

.subscribe-form button:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.privacy-note {
    font-size: 0.8rem;
    color: #cbd3c7;
    margin-top: 1rem;
    text-align: center;
}

.form-msg {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    display: none;
    font-weight: 500;
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: var(--white);
    color: var(--text-main);
    padding: 5rem 0 2rem;
    border-top: 1px solid #e9e6e0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.logo-footer {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9e6e0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .subscribe-flex {
        flex-direction: column;
    }
}

/* Chatbot Styles */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.chat-toggle:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.chat-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    max-width: 90vw;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid #e9e6e0;
    font-family: 'Jost', sans-serif;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.chat-header button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    height: 350px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fcfcfc;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-message.bot {
    background-color: #e9e6e0;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    background-color: var(--accent-color);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e9e6e0;
    background-color: var(--white);
}

.chat-footer input {
    flex: 1;
    border: 1px solid #cbd3c7;
    border-radius: 20px;
    padding: 10px 15px;
    font-family: 'Jost', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-footer input:focus {
    border-color: var(--accent-color);
}

.chat-footer button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.chat-footer button:hover {
    background-color: var(--primary-color);
}
