/* Base Styles */
:root {
    --primary-color: #2c7744;
    --secondary-color: #8cb369;
    --accent-color: #f4a259;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #f9f9f9;
    --footer-color: #1a1a1a;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Header Styles */
header {
    background-color: var(--light-text);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo span {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.main-nav a:hover,
.main-nav .active a {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 8rem 0;
    margin-top: 70px;
    position: relative;
}

.image-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-style: italic;
}

/* Page Header */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 6rem 0 4rem;
    margin-top: 70px;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--light-text);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Featured Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--light-text);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.product-card h3,
.product-card p,
.product-card a {
    padding: 0 1.5rem;
}

.product-card h3 {
    margin-top: 1.5rem;
}

.product-card a {
    display: inline-block;
    margin: 1.5rem;
}

/* Product Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3,
.category-card p {
    position: absolute;
    width: 100%;
    left: 0;
    padding: 1rem;
    color: var(--light-text);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.category-card h3 {
    bottom: 40px;
}

.category-card p {
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Product Listing */
.product-listing {
    padding: 2rem 0;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.testimonial {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
}

.testimonial p {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
}

/* CTA Section */
.cta {
    background-color: var(--accent-color);
    color: var(--light-text);
    text-align: center;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
footer {
    background-color: var(--footer-color);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

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

.footer-logo h2 {
    text-align: left;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--light-text);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.5rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Bot */
.chat-bot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-bot-toggle {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.chat-bot-container {
    display: none;
    width: 300px;
    background-color: var(--light-text);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.chat-bot-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-bot-header h3 {
    margin-bottom: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-bot-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    max-width: 80%;
}

.bot {
    background-color: #f0f0f0;
    align-self: flex-start;
}

.user {
    background-color: var(--primary-color);
    color: var(--light-text);
    margin-left: auto;
}

.chat-bot-input {
    display: flex;
    padding: 0.5rem;
    border-top: 1px solid #eee;
}

.chat-bot-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: 'Poppins', sans-serif;
}

.chat-bot-input button {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}