/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #fff8f0; /* Light yellowish background from brand colors */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* From brand shadow */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: #800000; /* Maroon from brand colors */
    margin-left: 10px;
}

.logo span {
    color: #ff6a00; /* Orange from brand colors */
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 44px; /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    border: 2px solid #800000; /* Maroon from brand colors */
    color: #800000;
    background: transparent;
}

.btn-outline:hover {
    border-color: #e57373; /* Light red hover from brand colors */
    color: #e57373;
    box-shadow: 0 0 5px rgba(229, 115, 115, 0.5); /* From brand shadow */
}

.btn-primary {
    background: linear-gradient(to right, #800000, #ff6a00); /* Gradient from brand colors */
    color: white;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Navigation */
nav {
    background-color: #ffb700; /* Light red background from brand colors */
    padding: 10px 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.nav-links a {
    color: #721c24; /* Dark red from brand colors */
    text-decoration: none;
    font-weight: 500;
    padding: 12px 15px; /* Larger touch target */
    border-radius: 3px;
    transition: background-color 0.3s ease;
    display: block;
}

.nav-links a:hover {
    background-color: #f8d7da; /* Light red background from brand colors */
    color: #e57373; /* Light red on hover from brand colors */
}

/* Mobile menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #800000; /* Maroon from brand colors */
    border-radius: 3px;
}

#mobile-menu-toggle {
    display: none;
}

#mobile-menu-toggle:checked ~ .nav-links {
    display: flex;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/api/placeholder/1200/600') center/cover no-repeat;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Stats bar */
.stats-bar {
    background: linear-gradient(to right, #800000, #ff6a00); /* Gradient from brand colors */
    color: white;
    height: 80px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.8rem;
}

/* Prize section */
.prizes {
    padding: 20px 0;
    background-color: #fff8f0; /* Light yellowish background from brand colors */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: #800000; /* Maroon from brand colors */
    margin-bottom: 10px;
}

.section-title p {
    color: #721c24; /* Dark red from brand colors */
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.prizes-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* From brand shadow */
    transition: transform 0.3s ease;
}

.prizes-card:hover {
    transform: translateY(-5px);
}

.prizes-icon {
    background: linear-gradient(to right, #ff6a00, #ffb700); /* Horizontal fading background from brand */
    color: white;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.prize-img
{
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.prizes-content {
    padding: 20px;
}

.prizes-content h3 {
    margin-bottom: 10px;
    color: #800000; /* Maroon from brand colors */
}

/* Prize section */
.steps {
    padding: 20px 0;
    background-color: #fff8f0; /* Light yellowish background from brand colors */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: #800000; /* Maroon from brand colors */
    margin-bottom: 10px;
}

.section-title p {
    color: #721c24; /* Dark red from brand colors */
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.steps-card {
    background-color: white;
    border-radius: 8px;
    /* overflow: hidden; Removed to allow icon to overflow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* From brand shadow */
    transition: transform 0.3s ease;
}

.steps-card:hover {
    transform: translateY(-5px);
}

.steps-icon {
    background: linear-gradient(to right, #ff6a00, #ffb700); /* Horizontal fading background from brand */
    color: white;
    height: 120px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%; /* Make icon round */
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%); /* 50% above, 50% inside */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 2;
}
.steps-card {
    position: relative;
    padding-top: 70px; /* Space for the icon above */
}
.steps-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.steps-content {
    padding: 20px;
}

.steps-content h3 {
    margin-bottom: 10px;
    color: #800000; /* Maroon from brand colors */
}

/* Features section */
.features {
    padding: 60px 0;
    background-color: #fff8f0; /* Light yellowish background from brand colors */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: #800000; /* Maroon from brand colors */
    margin-bottom: 10px;
}

.section-title p {
    color: #721c24; /* Dark red from brand colors */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* From brand shadow */
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background: linear-gradient(to right, #ff6a00, #ffb700); /* Horizontal fading background from brand */
    color: white;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-content {
    padding: 20px;
}

.feature-content h3 {
    margin-bottom: 10px;
    color: #800000; /* Maroon from brand colors */
}

/* Categories section */
.categories {
    padding: 60px 0;
    background-color: rgb(196, 192, 192); /* Light red background from brand colors */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* From brand shadow */
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(128, 0, 0, 0.7)); /* Using maroon from brand */
    padding: 20px;
    color: white;
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

/* Supply chain section */
.supply-chain {
    padding: 60px 0;
    background-color: #fff8f0; /* Light yellowish background from brand colors */
}

.supply-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    position: relative;
}

.supply-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #800000; /* Maroon from brand colors */
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 20%;
}

.step-icon {
    background: linear-gradient(to right, #800000, #ff6a00); /* Gradient from brand colors */
    color: white;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* From brand shadow */
}

/* CTA section */
.cta {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/api/placeholder/1200/400') center/cover no-repeat;
    color: white;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background-color: #fce4ec; /* Light red background from brand colors */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* From brand shadow */
    padding: 20px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 15px;
    color: #721c24; /* Dark red from brand colors */
}

.client-info {
    display: flex;
    align-items: center;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

/* Footer */
footer {
    background-color: #0b0b0b; /* From brand colors */
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: #ffb700; /* Yellow from brand colors */
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #dca2a2; /* Light red from brand colors */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6a00; /* Orange from brand colors */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #9d3939; /* Dark red from brand colors */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .category-grid, .features-grid, .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .supply-steps {
        flex-wrap: wrap;
    }
    
    .step {
        width: 48%;
        margin-bottom: 30px;
    }
    
    .supply-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-top {
        align-items: center;
        justify-content: space-between;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Hamburger menu styles */
    .hamburger-menu {
        display: flex;
    }
    
    nav .container {
        position: relative;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #F9F3E6;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 200;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    #mobile-menu-toggle:checked ~ .nav-links {
        display: flex;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .category-grid, .features-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .step {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .feature-card, .testimonial-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .category-card {
        height: 150px;
    }
}

.hero {
    position: relative;
    overflow: hidden;
}
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    animation: slide 21s infinite;
}
.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.hero .container {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding-top: 100px;
    transition: color 0.3s ease;
}
.hero h2, .hero p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
@keyframes slide {
    0%, 14.28% { transform: translateX(0); }
    14.29%, 28.57% { transform: translateX(-100%); }
    28.58%, 42.85% { transform: translateX(-200%); }
    42.86%, 57.14% { transform: translateX(-300%); }
    57.15%, 71.42% { transform: translateX(-400%); }
    71.43%, 85.71% { transform: translateX(-500%); }
    85.72%, 100% { transform: translateX(-600%); }
}


.top-header {
    display: flex;
    align-items: center;
    background: #ff6a00;
    color: #fff;
    height: 100px; /* Set a specific height */
}

.logo-container {
    display: flex;
    flex: 1;
    background: linear-gradient(to right, #800000, #ff6a00);
    justify-content: center;
    width: 15%;
    height: 100%;
    
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 85%;
    height: 100%;
}

.nav-container-top {
    display: flex;
    height: 50%;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #0b0b0b;
    padding-left: 150px;
    color: #fff;
    border-bottom-left-radius: 25px; /* Rounded bottom-left corner */
}

.nav-container-bottom {
    display: flex;
    height: 50%;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #ff6a00, #ffb700); /* Horizontal fading background */
    color: #fff;
}

.nav-container_bottom-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
}

.nav-container_bottom-right {
    display: flex;
    align-items: center;
    justify-content: right;
    width: 30%;
}
.nav-menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.nav-link {
    color: #fff;
    margin-right: 20px;
    text-decoration: none;
    font-size: 1.2rem;
}
/* --- Product Listing Page Styles --- */


/* --- New Category Header and Chips --- */
.category-header {
    margin: 20px auto;
    padding: 30px;
    max-width: 1200px;
    text-align: center;
    border-radius: 8px;
    background: linear-gradient(to right, #ff6a00, #ffb700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-title {
    margin: 0;
    font-size: 2em;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    padding: 10px;
    max-width: 1200px;
}

.category-chip {
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid #e0e0e0;
}

.category-chip:hover {
    background-color: #e6e6e6;
    transform: translateY(-2px);
}

.active-chip {
    background-color: #ff6a00;
    color: #ffffff;
    font-weight: 600;
    border-color: #ff6a00;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.4);
}

/* --- Product Listing Page Styles (existing code) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-image-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.1);
}

.product-info {
    /* Ensures the product name area is a consistent height */
    min-height: 50px; 
    padding: 15px;
    text-align: center;
}

.product-name {
    font-size: 1.1em;
    margin: 0;
    color: #333;
    /* Removed: white-space: nowrap; overflow: hidden; text-overflow: ellipsis; */
}
/* --- Load More Button --- */
.load-more-container {
    text-align: center;
    margin: 30px auto;
}

#load-more-btn {
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    background-color: #ff6a00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#load-more-btn:hover {
    background-color: #ff914d;
    transform: translateY(-2px);
}

#load-more-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}