/* Reset and Base Styles */
:root {
    /* Green color palette */
    --primary-color: #43a047;      /* Lighter green */
    --primary-hover: #2e7d32;      /* Slightly darker green */
    --secondary-green: #66bb6a;    /* Medium green */
    --light-green: #a5d6a7;        /* Light green */
    --pale-green: #f1f8e9;         /* Very light green */
    --accent-green: #4caf50;       /* Bright green for accents */
    --dark-green: #2e7d32;         /* Darker green for text */
    
    /* Text and background colors */
    --text-color: #2e7d32;         /* Dark green for text */
    --light-gray: #f8f9f8;         /* Off-white background */
    --border-color: #c8e6c9;       /* Light green border */
    --shadow: 0 2px 5px rgba(0, 100, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

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

ul {
    list-style: none;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Language Bar */
.header__lang {
    background-color: #f8f9fa;
    padding: 5px 0;
}

.header__lang-inner {
    display: flex;
    justify-content: flex-end;
    padding: 0 15px;
}

.header__lang-link {
    padding: 0 10px;
    color: #6c757d;
    font-size: 14px;
    transition: color 0.3s;
}

.header__lang-link:hover {
    color: #007bff;
}

.header__lang-link-active {
    color: #007bff;
    font-weight: 500;
}

/* Search Bar */
.search {
    padding: 20px 0;
    border-bottom: 1px solid rgba(67, 160, 71, 0.1);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.search__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.search__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.search__logo .logo__img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.search__logo:hover .logo__img {
    transform: scale(1.05);
}

.search__logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-green);
    background: linear-gradient(135deg, var(--primary-color), var(--dark-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo__img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-green);
}

.form-search {
    display: flex;
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.form-search:hover {
    box-shadow: 0 12px 40px rgba(67, 160, 71, 0.2);
    transform: translateY(-2px);
}

.form-search__input-wrap {
    position: relative;
    flex: 1;
}

/* Removed unused dropdown styles */

.form-search__input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    font-size: 15px;
    color: #333;
    background: transparent;
    transition: all 0.3s ease;
}

.form-search__input:focus {
    outline: none;
}

.form-search__input::placeholder {
    color: #999;
    font-weight: 400;
}

.form-search__btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-green));
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.form-search__btn:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-color));
    transform: scale(1.05);
}

.form-search__btn:active {
    transform: scale(0.98);
}

/* User Actions styles removed */

/* Navigation Menu */
.header__menu {
    display: none; /* Hide the separate navigation section */
}

.nav__list {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: block;
    padding: 12px 18px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 3px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 160, 71, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav__link:hover::before {
    left: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
    background: rgba(67, 160, 71, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.2);
}

.nav__link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-green));
    color: white;
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.3);
}

.nav__link-as-drop {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dropdown Menu styles removed - no longer needed */

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,100,0,0.1);
}

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

.btn-light:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--pale-green);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 30px;
    transition: var(--transition);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background-color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    color: var(--text-color);
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.category-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #388e3c 0%, #43a047 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Main Content */
main {
    min-height: 60vh;
    padding: 40px 0;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #2e7d32;  /* Darker green */
    color: #fff;
    padding: 70px 0 0;
    margin-top: 40px;
}

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

.footer h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: white;
}

.footer-about p {
    color: #b3b9c5;
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: #66bb6a;
    transform: translateY(-3px);
}

.footer-links ul,
.footer-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-categories li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-categories a {
    color: #b3b9c5;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-links a:hover,
.footer-categories a:hover {
    color: #c8e6c9;  /* Lighter green for hover */
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 12px;
    color: #b3b9c5;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.contact-info a {
    color: #b3b9c5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info i {
    min-width: 20px;
    margin-right: 12px;
    color: var(--primary-color);
    text-align: center;
    margin-top: 4px;
}

.contact-info br {
    display: block;
    content: "";
    margin-top: 0.5em;
}

/* Ensure the map link shows pointer cursor */
.contact-info a[href^="http"],
.contact-info a[href^="mailto:"],
.contact-info a[href^="tel:"] {
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #b3b9c5;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-green));
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
    margin-left: auto;
    order: 3; /* Ensure it's positioned at the end of the flex container */
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.4);
}

/* Enhanced Form Elements styles removed */

/* Search Suggestions Enhancement */
.search-suggestions {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(67, 160, 71, 0.1);
}

.suggestion-item {
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(67, 160, 71, 0.05);
    position: relative;
    overflow: hidden;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 160, 71, 0.1), transparent);
    transition: left 0.5s ease;
}

.suggestion-item:hover::before {
    left: 100%;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.05), rgba(67, 160, 71, 0.1));
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Enhanced Wishlist Counter styles removed */

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

/* Tooltips */
.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

/* Responsive Design */
/* Mobile Menu Toggle - Additional styles for responsiveness */
/* Main styles defined above - no additional responsive styles needed */

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Hide navigation and search on mobile initially */
    .form-search {
        display: none !important;
    }
    
    .nav__list {
        display: none !important;
    }
    
    /* Mobile menu container - set up positioning context */
    .search__inner {
        position: relative;
    }
    
    /* Navigation menu positioned relative to the search container */
    .nav__list {
        width: 100%;
        flex-direction: column;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 15px 15px;
        z-index: 1000;
        padding: 20px 0 100px 0;
        border-top: 3px solid var(--primary-color);
    }
    
    /* Show navigation when mobile menu is active */
    .nav__list.show {
        display: flex !important;
        animation: slideDown 0.3s ease;
    }
    
    /* Ensure all navigation items are visible */
    .nav__list.show .nav__item {
        opacity: 1;
        visibility: visible;
    }
    
    /* Show search when mobile menu is active - positioned at bottom of nav menu */
    .form-search.show {
        display: flex;
        margin: 0 20px 20px 20px;
        max-width: calc(100% - 40px);
        border-radius: 25px;
        background: white;
        border: 2px solid var(--primary-color);
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        z-index: 1001;
        animation: slideDown 0.3s ease 0.1s both;
    }
    
    .form-search.show .form-search__input {
        border: none;
        padding: 15px 20px;
        border-radius: 25px 0 0 25px;
        background: transparent;
    }
    
    .form-search.show .form-search__btn {
        border-radius: 0 25px 25px 0;
        padding: 15px 20px;
        background: var(--primary-color);
        color: white;
        border: none;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav__item {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    .nav__link {
        display: block;
        padding: 18px 25px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid rgba(67, 160, 71, 0.1);
        margin: 0 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .nav__link:hover {
        background: rgba(67, 160, 71, 0.1);
        color: var(--primary-color);
    }
    
    .nav__link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .search {
        padding: 15px 0;
    }
    
    /* Don't override the mobile menu layout on small screens */
    /* Search inner styles handled by 992px media query above */
    
    .search__logo .logo__img {
        height: 45px;
    }
    
    .search__logo .logo-text {
        font-size: 1.6rem;
    }
    
    /* Only style the search form when it's shown (.show class) */
    .form-search.show {
        margin: 0 10px 10px 10px;
        border-radius: 25px;
    }
    
    .form-search.show .form-search__input {
        border-radius: 25px 0 0 25px;
        text-align: center;
        padding: 12px 15px;
    }
    
    .form-search.show .form-search__btn {
        border-radius: 0 25px 25px 0;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .mobile-menu-toggle {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .nav__link {
        padding: 15px 20px;
        font-size: 15px;
    }
}
