/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Body styles */
body {
    color: rgb(22, 34, 27);
    line-height: 1.6;
    background-color: #1e9c61;
    scroll-behavior: smooth;
}

/* Loading Screen word that appeares */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e9c61 0%, rgb(9, 174, 138) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-screen p {
    color: white;
    font-size: 1.2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    max-width: 300px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: scale(1);
}

.close-mobile-menu {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    font-size: 2rem;
    color: #666;
}

.mobile-navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-navigation a {
    padding: 1rem;
    text-align: center;
    color: rgb(22, 34, 27);
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-navigation a:hover {
    background-color: #f0f0f0;
}

/* Links */
a {
    text-decoration: none;
}

/* Buttons */
button {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Header section */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: rgb(2, 39, 125);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(5, 47, 216, 0.2);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 2rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    animation: rotate 3s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Main heading */
h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* Navigation bar */
.navigation {
    display: flex;
    gap: 1.5rem;
}

.navigation a {
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.navigation a:hover::before {
    left: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

.cart-bounce {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: rgb(2, 39, 125);
    transition: all 0.3s ease;
}

/* Main container */
.container {
    display: flex;
    min-height: calc(100vh - 130px);
    margin-top: 80px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: rgb(238, 226, 212);
    box-shadow: 0 4px 6px rgba(10, 10, 10, 0.5);
    padding: 1.5rem 0;
}

.sidebar-head {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 2px solid green;
}

.sidebar-head h2 {
    color: green;
}

/* Sidebar nav list */
.sideba-nav {
    list-style: none;
    margin-top: 1rem;
}

.sideba-nav li {
    margin-bottom: 0.5rem;
}

.sideba-nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: rgb(39, 191, 31);
    transition: all 0.3s ease;
}

.sideba-nav a:hover {
    background-color: rgba(39, 191, 31, 0.1);
    transform: translateX(5px);
}

/* Categories link */
.Categories {
    font-size: large;
    font-weight: 600;
    background-color: rgb(17, 78, 122);
}

.sideba-nav span {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

.animate-title {
    animation: slideInLeft 1s ease 0.2s both;
}

.animate-subtitle {
    animation: slideInLeft 1s ease 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Fruits Animation */
.floating-fruits {
    position: relative;
    height: 200px;
    margin: 2rem 0;
}

.fruit {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.fruit-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.fruit-2 {
    top: 60%;
    left: 70%;
    animation-delay: 0.5s;
}

.fruit-3 {
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

.fruit-4 {
    bottom: 20%;
    left: 50%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section styles */
section {
    background-color: rgb(238, 226, 212);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(10, 10, 10, 0.6);
}

section h2 {
    color: rgb(32, 109, 32);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #268808;
}

/* Home section */
.home {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home h2 {
    color: rgb(2, 39, 125);
    font-size: 2.5rem;
    border: none;
}

.home p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-button {
    background: linear-gradient(45deg, #1e9c61, rgb(9, 174, 138));
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 156, 97, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 156, 97, 0.4);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.8rem 1.5rem;
    background: white;
    color: rgb(32, 109, 32);
    border: 2px solid rgb(32, 109, 32);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: rgb(32, 109, 32);
    color: white;
    transform: translateY(-2px);
}

/* Product items grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Product card */
.product-card {
    background: rgb(222, 229, 240);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #84af87;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Product image */
.product-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: white;
    color: rgb(32, 109, 32);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

/* Product info */
.product-info {
    padding: 1.2rem;
}

/* Product name */
.product-name {
    color: rgb(2, 39, 125);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Product price */
.product-price {
    color: rgb(30, 27, 27);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Product form */
.product-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Quantity row */
.quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form label */
label {
    font-weight: 500;
}

/* Select dropdown */
select {
    padding: 0.5rem;
    border: 1px solid green;
    border-radius: 4px;
    color: rgb(123, 102, 16);
    width: 100px;
}

/* Order button */
.order-btn {
    background-color: green;
    color: white;
    padding: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.order-btn:hover {
    background-color: #228B22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.3);
}

/* About section enhancements */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(32, 109, 32);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgb(22, 34, 27);
    font-weight: 500;
}

.about p {
    margin-bottom: 1rem;
}

/* Contact section enhancements */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: rgb(32, 109, 32);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

/* Contact form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 0.8rem;
    border: 1px solid #1e9c61;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: rgb(32, 109, 32);
    box-shadow: 0 0 0 2px rgba(32, 109, 32, 0.1);
}

/* Textarea */
textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit button */
.submit-button {
    background-color: green;
    color: white;
    padding: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #228B22;
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, rgb(22, 34, 27) 0%, rgb(9, 174, 138) 100%);
    color: white;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    font-size: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.social-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter {
    margin-top: 1.5rem;
}

.newsletter h5 {
    margin-bottom: 0.5rem;
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    background: white;
    color: rgb(32, 109, 32);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgb(32, 109, 32);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(32, 109, 32, 0.3);
}

.back-to-top:hover {
    background: #228B22;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(32, 109, 32, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    font-size: 2rem;
    color: #666;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-close {
    background: none;
    font-size: 1.2rem;
    color: #666;
    margin-left: auto;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Tablet */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .sideba-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sideba-nav a {
        padding: 0.5rem 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Responsive Mobile */
@media (max-width: 576px) {
    .header {
        flex-direction: row;
        padding: 1rem;
    }
    
    .header-container {
        width: 100%;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-fruits {
        height: 150px;
    }
    
    .fruit {
        font-size: 1.5rem;
    }
    
    .toast {
        min-width: 250px;
        font-size: 0.9rem;
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
    }
}