:root {
    --primary-color: #59981A;
    --primary-light: #aad166;
    --primary-hover: #487A15;
    --bg-nav: #def0c2;
    --text-dark: #333;
    --text-light: gray;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #ffffff;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-nav);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; 
    width: 100%;
}

.logo img {
    height: 45px;
    width: auto;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0;
    flex-grow: 1; 
    max-width: 800px; 
    margin: 0 40px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(89, 152, 26, 0.2);
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
}

.btn-search {
    background-color: #f5f5f5;
    border: none;
    border-left: 1px solid #ccc;
    cursor: pointer;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-search:hover {
    background-color: #e0e0e0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

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

.btn.signup:hover {
    background-color: rgba(89, 152, 26, 0.1);
}

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

.btn.login:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(89, 152, 26, 0.2);
}

.cart-icon img {
    border-radius: 50%;
    transition: transform 0.3s ease;
}

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

.slider-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.slides {
    display: flex;
    width: 300%;
}

.slides input {
    display: none;
}

.slide {
    width: 33.33%;
    transition: margin-left 0.8s ease;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/1;
}

#radio1:checked ~ .first { margin-left: 0; }
#radio2:checked ~ .first { margin-left: -33.33%; }
#radio3:checked ~ .first { margin-left: -66.66%; }

.manual-nav, .auto-nav {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.manual-btn, .auto-nav div {
    border: 2px solid white;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.manual-btn:hover { background: white; }

#radio1:checked ~ .auto-nav .auto-btn1,
#radio2:checked ~ .auto-nav .auto-btn2,
#radio3:checked ~ .auto-nav .auto-btn3 {
    background: white;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 85px;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

.feature-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-dark);
}

.section-title {
    margin-bottom: 20px;
}

.section-title h1 {
    font-size: 24px;
    color: var(--text-dark);
}

.section-title hr {
    border: 2px solid var(--primary-color);
    width: 80px;
    margin-top: 5px;
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-card:hover {
    background-color: #f4f9ed; 
    transform: translateY(-3px);
}

.category-card img {
    width: 65px;
    height: 65px;
    margin-bottom: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.category-card p {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(89, 152, 26, 0.2);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

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

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.product-info .title {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-sold {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-sold .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.price-sold .sold {
    color: var(--text-light);
    font-size: 12px;
}

.btn-more-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-more {
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-more:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(89, 152, 26, 0.3);
}

.footer {
    background: #f8faf5;
    padding: 60px 0 0 0; 
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-social h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: translateY(-5px);
}

.footer-bottom {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .container {
        padding-top: 130px; 
        padding-left: 15px;
        padding-right: 15px;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 12px 15px;
    }
    
    .logo img {
        height: 35px;
    }

    .nav-actions {
        margin-left: auto;
        gap: 10px;
    }
    
    .btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .cart-icon img {
        width: 30px;
        height: 30px;
    }

    .search-container {
        order: 3;
        margin: 15px 0 0 0;
        flex: 0 0 100%;
    }

    .manual-nav, .auto-nav {
        bottom: 10px;
        gap: 8px;
    }

    .manual-btn, .auto-nav div {
        padding: 3px; 
    }

    .features {
        gap: 10px;
        padding: 15px;
    }

    .feature-item {
        width: 70px;
    }

    .feature-item img {
        width: 35px;
        height: 35px;
    }

    .feature-item p {
        font-size: 11px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
        padding: 15px;
    }

    .category-card img {
        width: 50px;
        height: 50px;
        padding: 8px;
        margin-bottom: 8px;
    }

    .category-card p {
        font-size: 11px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .product-card img {
        height: 140px;
    }

    .product-info {
        padding: 10px;
    }

    .product-info .title {
        font-size: 13px;
    }

    .price-sold .price {
        font-size: 14px;
    }

    .price-sold .sold {
        font-size: 11px;
    }

    .footer {
        padding-top: 40px;
        margin-top: 40px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 30px;
        padding: 0 15px 30px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        height: 35px;
        margin-bottom: 15px;
    }

    .social-icons {
        justify-content: flex-start;
    }
}