/* =========================
   Search Layout
========================= */

#aa-search-results {
    margin-top: 20px;
}

#aa-result-count {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    font-weight: 600;
    color: #2D2855;
    margin-bottom: 15px;
    font-weight: 700;
}

/* =========================
   Filters Row
========================= */

#aa-filters-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

#aa-filters-row select {
    flex: 1;
    min-width: 140px;
}

/* =========================
   Search Input
========================= */

.aa-search-wrap {
    position: relative;
}

#aa-book-search {
    width: 100%;
    padding: 12px 45px 12px 18px;
    border: 1px solid #D5D8E0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

#aa-book-search:focus {
    border-color: #2D2855;
}

/* =========================
   Clear Search Button
========================= */

#aa-clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
    font-size: 18px;
    line-height: 1;
    color: #2D2855;
}

/* =========================
   Reset Button
========================= */

#aa-reset-filters {
    background: #E2EBEE;
    color: #2D2855;
    border: 1px solid #2D2855;
    border-radius: 25px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

#aa-reset-filters:hover {
    background: #2D2855;
    color: #E2EBEE;
}

/* =========================
   Search Results
========================= */

.aa-result {
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    border-radius: 10px;
}

.aa-result:hover {
    background: #F7F8FC;
}

.aa-result-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.aa-result img {
    width: 70px;
    height: 95px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.aa-result-content {
    flex: 1;
}

/* =========================
   Product Title
========================= */

.aa-title {
    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-weight: 800;
    color: #2D2855;
    line-height: 1.4;
}

/* =========================
   Product Meta
========================= */

.aa-meta {
    font-family: "Playfair Display", serif;
    font-size: 13px;
    color: #2D2855;
    opacity: 1;
    margin-top: 4px;
    font-weight: 600;
}

/* =========================
   Product Price
========================= */

.aa-price {
    font-family: "Playfair Display", serif;
    font-size: 13px;
    font-weight: 700;
    color: #2D2855;
    margin-top: 6px;
}

/* =========================
   Empty / Loading States
========================= */

.aa-empty-state,
.aa-loading,
.aa-no-results {
    text-align: center;
    padding: 20px;
    font-family: "Playfair Display", serif;
    color: #2D2855;
}

/* =========================
   Select Fields
========================= */

#aa-class,
#aa-board,
#aa-resource {
    border: 1px solid #D5D8E0;
    border-radius: 25px;
    padding: 10px 15px;
    color: #2D2855;
}

/* =========================
   Mobile
========================= */

@media (max-width: 767px) {

    #aa-filters-row {
        flex-direction: column;
    }

    .aa-result-link {
        align-items: flex-start;
    }

    .aa-result img {
        width: 60px;
        height: 85px;
    }

    .aa-title {
        font-size: 14px;
    }

}