:root {
    --primary-color: #2E7D32;
    --secondary-color: #FF9800;
    --accent-color: #4CAF50;
    --dark-color: #1B5E20;
    --light-color: #E8F5E9;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --gray: #f5f5f5;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    position: relative;
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    padding: 100px 0 50px;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    margin-top: 70px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Section Styles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: var(--white);
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--gray);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
    margin-right: 0.5rem;
}

.product-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.tag.new {
    background: var(--secondary-color);
}

.tag.popular {
    background: #FF5722;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--dark-color);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.benefit-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--dark-color);
}

.benefit-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: flex-end;
}

.cart-content {
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: var(--white);
    padding: 2rem;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray);
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

.cart-items {
    min-height: 300px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 1rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item {
    color: #ff4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
}

.cart-total {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--gray);
    text-align: center;
}

.cart-total h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    color: #ddd;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ddd;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cart-content {
        width: 100%;
    }
}
/* Navigation Search Bar */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 5px 10px rgba(46, 125, 50, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background: transparent;
    outline: none;
}

.search-box input::placeholder {
    color: #aaa;
    font-weight: 500;
}

.search-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.search-icon-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-icon-mobile:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Search Results */
.search-results {
    position: flex;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--light-color);
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.search-result-info .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Profile Icon and Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-icon {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray);
}

.profile-icon:hover {
    color: var(--primary-color);
    background: var(--light-color);
    transform: scale(1.1);
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    width: 280px;
    margin-top: 15px;
    display: none;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

.profile-menu.active {
    display: block;
}

.profile-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--white);
}

.profile-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 15px 15px 0 0;
    color: white;
}

.profile-header i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.profile-header h4 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.profile-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.profile-links {
    padding: 15px 0;
}

.profile-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.profile-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 25px;
}

.profile-link i {
    width: 25px;
    margin-right: 10px;
    color: var(--primary-color);
}

.profile-links hr {
    border: none;
    height: 1px;
    background: var(--gray);
    margin: 10px 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
}

.modal-header h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-family: 'Montserrat', sans-serif;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.forgot-password {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Adjust navigation icons spacing */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* Responsive Design for New Features */
@media (max-width: 992px) {
    .search-container {
        display: none;
        position: flex;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 15px;
        background: var(--white);
        box-shadow: var(--shadow);
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
    }
    
    .search-container.active {
        display: block;
    }
    
    .search-icon-mobile {
        display: block;
    }
    
    .nav-icons {
        gap: 1rem;
    }
    
    .profile-menu {
        right: -50px;
    }
    
    .profile-menu::before {
        right: 60px;
    }
}

@media (max-width: 768px) {
    .nav-icons {
        gap: 0.8rem;
    }
    
    .profile-icon,
    .cart-icon,
    .search-icon-mobile {
        font-size: 1.4rem;
    }
    
    .modal-content {
        margin: 20px;
        max-width: 90%;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-icons {
        gap: 0.6rem;
    }
    
    .profile-icon,
    .cart-icon,
    .search-icon-mobile {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .profile-menu {
        width: 250px;
        right: -30px;
    }
    
    .profile-menu::before {
        right: 40px;
    }
}

/* Update header for new elements */
.navbar {
    position: relative;
}

/* Add animation for search box on mobile */
@keyframes slideDownSearch {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for profile links */
.profile-link {
    position: relative;
}

.profile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.profile-link:hover::before {
    transform: scaleY(1);
}

/* Active state for profile icon when dropdown is open */
.profile-icon.active {
    background: var(--primary-color);
    color: white;
}

/* Loading state for search */
.search-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

.search-loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}