/* ===============================
   ALGOLIA SEARCH RESULTS GRID
================================ */

#algolia-results {
    margin-top: 20px;
}

.algolia-search-meta {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Algolia Hits Grid FIX */
#algolia-hits .ais-Hits-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#algolia-hits .ais-Hits-item {
    margin: 0;
}


/* PRODUCT CARD */
.product-card {
    display: block;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    text-decoration: none;
    color: #000;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* IMAGE */
.product-card .thumb {
    text-align: center;
    margin-bottom: 10px;
}

.product-card img {
    max-width: 100%;
    height: auto;
}

/* TITLE */
.product-card .title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
    color: #111;
}

/* MODEL */
.product-card .model {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

/* PRICE */
.product-card .price {
    font-size: 15px;
    font-weight: bold;
    color: #1a73e8;
}

.product-card .price .contact {
    color: #666;
    font-weight: normal;
}

/* PAGINATION */
#algolia-pagination {
    margin-top: 30px;
    text-align: center;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1200px) {
    #algolia-hits {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    #algolia-hits {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #algolia-hits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #algolia-hits {
        grid-template-columns: 1fr;
    }
}
