/* Products/css/main.css */
main {
    padding-top: 80px;
}

.hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.hero-images {
    display: block;
}

.hero-images img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.products, .marketplace {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.products.visible, .marketplace.visible {
    opacity: 1;
    transform: translateY(0);
}

.products {
  padding: 60px 0;
}

.products h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

.product-categories-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Changed to space-between */
    margin-bottom: 40px;
    position: relative; /* For positioning arrows */
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
}

.product-categories-slider {
    display: flex;
    overflow-x: auto; /* Changed to auto to enable horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling */
    gap: 10px;
    padding: 0 10px; /* Add some padding for visual comfort */
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    /* Removed flex-grow: 1; */
    /* Removed justify-content: flex-start; */
}

.product-categories-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.category-btn {
    flex: 0 0 auto; /* Prevent buttons from shrinking */
    padding: 8px 18px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.category-slider-arrow {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    z-index: 10; /* Ensure arrows are above slider content */
    margin: 0 5px; /* Spacing between arrows and slider */
}

.category-slider-arrow:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.category-slider-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ensure only 4 categories are visible at a time */
@media (min-width: 768px) {
    .product-categories-wrapper {
        padding: 0 20px; /* Add padding to wrapper to prevent cut-off */
    }
    .product-categories-slider {
        /* Removed justify-content: center to prevent cut-off, content will align flex-start */
    }
    /* Removed .product-categories-slider .category-btn width rules */
}
@media (max-width: 767px) {
    /* Removed .product-categories-slider .category-btn width rules */
}
@media (max-width: 480px) {
    /* Removed .product-categories-slider .category-btn width rules */
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

#no-products-message {
    text-align: center;
    color: var(--primary-color); /* Use primary color for text */
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 30px;
    padding: 20px;
    border: 1px solid var(--secondary-color); /* Softer border */
    border-radius: 8px;
    background-color: var(--background-grey); /* Neutral background */
    display: none; /* Default to hidden, JavaScript will control visibility */
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: none; /* Remove box shadow */
    position: relative;
    z-index: 1;
}

.product-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for uniformity of the card image area */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflowing parts of the image */
    border-radius: 10px 10px 0 0; /* Apply border-radius to top corners */
    background-color: #f8f8f8; /* Light background for consistency */
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures the image fits within its content box while maintaining its aspect ratio */
    border-radius: 0; /* Remove border-radius from the image itself */
    transition: transform 0.3s ease;
}

.product-image-wrapper img:hover {
    transform: scale(1.05);
}

.product-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark); /* Using a darker text color for professionalism */
    margin-top: 15px;
    text-align: center;
}

.btn-more {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 12px 35px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-more:hover {
    transform: translateY(-2px);
    background-color: var(--secondary-color);
}

.marketplace {
    padding: 60px 0;
    text-align: center;
}

.marketplace h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.marketplace-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default to 3 columns for larger screens */
    justify-items: center;
    align-items: center;
    gap: 40px;
}

.marketplace-logos img {
    max-width: 120px; /* Reduced from 500px to 120px */
    transition: transform 0.3s ease;
}

.marketplace-logos img:hover {
    transform: scale(1.1);
}

/* Products/css/responsive.css */
/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    

    .products {
        padding: 80px 0;
    }

    .products h2 {
        text-align: left;
        font-size: 2.5rem;
    }

    .product-categories {
        justify-content: flex-start;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .marketplace h2 {
        font-size: 2.5rem;
    }
    
}

@media (max-width: 768px) {
    
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-text {
        flex-basis: auto;
        margin-top: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-images {
        flex-basis: auto;
    }

    .products h2 {
        text-align: center;
        font-size: 2rem;
    }

    .product-categories {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .marketplace h2 {
        font-size: 2rem;
    }
    
    .marketplace-logos {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets and smaller */
        gap: 20px; /* Adjusted gap for smaller screens */
    }

} /* End of @media (max-width: 768px) */

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .products h2 {
        font-size: 1.8rem;
    }

    .marketplace h2 {
        font-size: 1.8rem;
    }

    .marketplace-logos {
        grid-template-columns: repeat(1, 1fr); /* 1 column for very small screens */
        gap: 20px; /* Adjusted gap for mobile */
    }

    .marketplace-logos img {
        max-width: 100px; /* Reduced from 400px to 100px */
    }

    .btn-more {
        font-size: 0.9rem;
        padding: 10px 25px;
    }
}



/* Desktop Styles */
@media (min-width: 993px) {
    
    .hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .hero-text {
        flex-basis: 50%;
        padding-right: 30px;
    }

    .hero-images {
        flex-basis: 45%;
}


    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .marketplace-logos {
        grid-template-columns: repeat(3, 1fr); /* Ensure 3 columns for desktop */
        gap: 20px 40px; /* Adjusted gap for desktop */
    }

}

@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

/* Products/css/style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: none;
  background: none;
  -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--background-light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Products/css/vars.css */
:root {
  --primary-color: #2f4858;
  --secondary-color: #7aabbd;
  --text-dark: #000000;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-grey: #f2f2f2;
}

/* Loading Spinner Styles */
.loading-spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid var(--primary-color); /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 50px auto; /* Center the spinner */
    display: block; /* Ensure it's a block element for centering */
}

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