/* products.css */

/* This file contains styles specific to the products.html page.
   It imports the main index.css to maintain consistent theme and layout. */

/* Ensure the products page main section has similar padding and background as other sections */
.products-page-main {
    background-color: #deebee; /* Consistent background color */
    padding: 90px 85px; /* Consistent padding */
    text-align: center; /* Center align content similar to portfolio section */
    margin-top: 80px; /* Add margin-top to account for fixed navbar height */
}

/* Header styling for the products page, similar to the portfolio section header */
.products-page-main .header {
    display: flex;
    flex-direction: column; /* Stack info and button if any */
    align-items: center;
    justify-content: center; /* Center content */
    margin-bottom: 60px;
    text-align: center;
}

/* Product grid container */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px; /* Gap between product cards */
    justify-content: center; /* Center the grid items */
    max-width: 1200px; /* Max width for the grid */
    margin: 0 auto; /* Center the grid on the page */
}

/* Individual product card styling, similar to portfolio items */
.product-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 32px;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    box-shadow: 0 5px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-align: left; /* Align text left within product card */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content vertically within the card */
}

.product-card:hover {
    border-color: #5e3bee; /* Hover effect consistent with index.css */
}

.product-card img {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: cover;
    object-position: center; /* Center the image within its container */
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.product-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%; /* Ensure info takes full width of card */
    align-items: flex-start; /* Align text to the left */
}

.product-card .card-info h4 {
    font-size: 20px; /* Consistent product title size */
    font-weight: bold;
    color: #1c1e53;
}

.product-card .card-info p {
    font-size: 14px; /* Consistent description font size */
    line-height: 1.6;
    color: #282938;
    margin-bottom: 10px;
}

.product-card .card-info .futuristic-button-small {
    /* Reusing the futuristic-button-small class from index.css */
    margin-top: 10px; /* Space above the button */
    align-self: flex-start; /* Align button to the left */
    z-index: 1; /* Ensure buttons are below the navbar */
}

/* Responsive adjustments for products page */
@media screen and (max-width: 1200px) {
    .products-page-main {
        padding: 60px 42px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 992px) {
    .products-page-main {
        padding: 42px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .products-page-main {
        padding: 30px;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Single column layout on small screens */
        gap: 20px;
    }

    .product-card {
        width: 90%; /* Adjust width for single column */
        margin: 0 auto; /* Center the card */
    }
}

@media screen and (max-width: 576px) {
    .products-page-main {
        padding: 20px;
    }

    .product-card {
        width: 100%; /* Full width on very small screens */
        padding: 20px;
    }

    .product-card img {
        height: 150px; /* Adjust image height for smaller cards */
    }

    .product-card .card-info h4 {
        font-size: 18px;
    }

    .product-card .card-info p {
        font-size: 13px;
    }
}
