/* ======================================================= */
/* ====== EXACT PRODUCT GRID CSS ========================= */
/* ======================================================= */

.product-grid-section {
    background-color: white;
    padding-top: 4rem; /* py-16 */
    padding-bottom: 4rem;
}

@media (min-width: 640px) { /* sm:py-20 */
    .product-grid-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.product-grid-container {
    /* width: 100%; */
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
}

/* --- Section Title --- */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem; /* mb-12 */
}
.section-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 600; /* font-semibold */
    color: #1f2937; /* text-gray-800 */
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem; /* pb-2 */
}
.title-underline {
    position: absolute;
    bottom: -0.5rem; /* -bottom-2 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px; /* h-0.5 */
    background-color: #2563eb; /* bg-blue-600 */
}

/* --- Products Grid Layout --- */
.products-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 2rem; /* gap-8 */
}
@media (min-width: 640px) { /* sm:grid-cols-2 */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) { /* sm:grid-cols-2 */
    .products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) { /* lg:grid-cols-3 */
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- Product Card Styling --- */
.product-card-link {
    text-decoration: none;
    color: inherit;
;
}

@media (max-width:380px){
    .product-card-link{
        max-width: 80%;
        height: auto;
     
    }
}
.product-card {
    background-color: rgba(249, 250, 251, 0); /* bg-gray-50/0 */
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); /* shadow-sm */
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-lg */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
   
    height: auto;
}

.product-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* hover:shadow-lg */
    transform: translateY(-1rem); /* hover:-translate-y-4 */
}

.product-card-image-wrapper {
    display: flex;
    justify-content: center;
    height: 16rem; /* h-64 equivalent, adjust if needed */
    margin-bottom: 0.5rem; /* mb-2 */
    transition: all 0.3s ease-in-out;
}

.product-card:hover .product-card-image-wrapper {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); /* group-hover:shadow-xl */
}

.product-card-image {
     width: 250px;
    height: 250px;
    border-radius: 0.375rem;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.product-card:hover .product-card-image {
    transform: scale(1.05); /* group-hover:scale-105 */
}

.product-card-title {
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
    font-size: 1.125rem; /* text-lg */
}

.product-card-description {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    margin-top: 0.25rem; /* mt-1 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* truncate */
}

/* --- No Products Message --- */
.no-products-found {
    text-align: center;
    color: #6b7280;
    padding: 4rem 0;
}

/* --- View All Button --- */
.view-all-wrapper {
    margin-top: 4rem; /* mt-16 */
    text-align: center;
}
.view-all-button {
    display: inline-block;
    background-color: #2563eb; /* bg-blue-600 */
    color: white;
    font-weight: 600;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px; /* rounded-full */
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.view-all-button:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
    transform: scale(1.05);
}