﻿/* Search Page Styles */
.product-card {
    transition: all 0.3s ease;
    min-height: 380px;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    }

.product-image-container {
    display: flex;
    justify-content: center;
    align-items: center;    
    width: 100%;
    overflow: hidden;
    background-color: #fafafa;
    border-radius: 8px 8px 0 0;
}

.product-image {
    transition: transform 0.3s ease;
    object-fit: contain;
}

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

.category-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px !important;
}

.product-name {
    font-size: 14px;
    line-height: 1.4;
    min-height: 40px;
}

.fire-material-coding-text {
    color: #d32f2f;
    font-weight: 600;
}

.search-box .mud-input-root {
    background-color: white;
}

.card-hover {
    cursor: pointer;
}

.card-translate-14:hover {
    transform: translateY(-14px);
}

/* Search popup styles */
.search-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    min-width: 400px;
    max-width: 600px;
    width: 90%;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background-color: white;
    z-index: 9999;
}

.search-input {
    flex-grow: 1;
}

.close-search-btn {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .search-popup {
        min-width: unset;
        width: 95%;
        padding: 15px 20px;
    }

    .product-card {
        min-height: 320px;
    }

    .product-image-container {
       
    }
}
