/* Main Styles for Shreenathji Seeds */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #006400;
    --secondary-color: #003300;
    --accent-color: #FFD700;
    --light-bg: #f5f9f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after, 
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

/* Banner Styles */
.banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 100, 0, 0.9), rgba(0, 100, 0, 0.9)), url('/api/placeholder/1200/300');
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

/* Separator Style */
.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.yellow-line {
    height: 3px;
    width: 30px;
    background-color: var(--accent-color);
}

.green-line {
    height: 3px;
    width: 50px;
    background-color: var(--primary-color);
    margin: 0 10px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Section Styles */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo-img {
    /* Existing styles */
    background-color: #ffffff; /* Add a contrasting background color */
    border: 2px solid #000000; /* Add a border for better visibility */
    border-radius: 5px; /* Optional: Add rounded corners */
    padding: 0px; /* Optional: Add padding for spacing */
    height: 80px; /* Increase the height for a larger logo */
    width: auto; /* Maintain aspect ratio */
}

.footer-logo p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.quick-links h3,
.contact-info h3,
.social-links h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.quick-links h3::after,
.contact-info h3::after,
.social-links h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
}

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

.quick-links ul li {
    margin-bottom: 10px;
}

.quick-links ul li a {
    color: var(--white);
    transition: all 0.3s ease;
}

.quick-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright a {
    color: var(--accent-color);
}

.copyright a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px 10px;
    }
    
    .banner h1 {
        font-size: 2.2rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .banner h1 {
        font-size: 1.8rem;
    }
    
    .banner p {
        font-size: 0.9rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


/* Products Page Specific Styles */

/* Category Filters */
.categories {
    padding-bottom: 20px;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 20px;
    background-color: var(--light-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-btn:hover {
    background-color: rgba(0, 100, 0, 0.1);
    transform: translateY(-2px);
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    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;
    position: relative;
}

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

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

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

/* Product Badge (For Sale, New, etc.) */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.load-more-btn {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    /* 🚫 no transition */
}

/* keep colour switch only (no move / shadow) */
.load-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 80%;
    }
}

/* Hide products based on category selection */
.product-card {
    display: block;
}

.product-card.hidden {
    display: none;
}