/* =========================================================
   SEARCH RESULTS
   Arquivo: public/assets/cliente/css/search-results.css
   ========================================================= */

.section-header {
    margin-bottom: 16px;
}

.section-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

.empty-state {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.empty-state-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    color: #222;
}

.empty-state-text {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.cliente-search-filters {
    margin-bottom: 14px;
}

.cliente-home-filters-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.cliente-home-filter-btn {
    min-height: 46px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ececec;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.03);
}

.cliente-home-filter-btn.is-active {
    background: #df1f26;
    border-color: #df1f26;
    color: #fff;
}

.cliente-search-anchor-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.cliente-search-anchor-btn {
    flex: 0 0 auto;
    min-height: 36px;
    min-width: 110px;
    border-radius: 999px;
    background: #f6f6f7;
    border: 1px solid #e8e8ea;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: none;
}

.cliente-search-anchor-btn i {
    font-size: 12px;
    color: #888;
}

.cliente-search-section {
    margin-bottom: 22px;
}

.cliente-search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cliente-search-section-title {
    font-size: 22px;
}

.cliente-search-section-count {
    color: #666;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* LOJAS */

.cliente-home-store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cliente-home-store-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cliente-home-store-card.is-closed {
    background: #f3f3f4;
}

.cliente-home-store-card.is-closed .cliente-home-store-image {
    filter: grayscale(1);
}

.cliente-home-store-card.is-closed .cliente-home-store-image-wrap {
    background: #e4e4e4;
}

.cliente-home-store-card.is-closed .cliente-home-store-title,
.cliente-home-store-card.is-closed .cliente-home-store-category-line,
.cliente-home-store-card.is-closed .cliente-home-store-info-item,
.cliente-home-store-card.is-closed .cliente-home-store-info-item span {
    color: #8c8c8c;
}

.cliente-home-store-card.is-closed .cliente-home-store-info-item i {
    color: #9c9c9c;
}

.cliente-home-store-link {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 12px;
    align-items: center;
}

.cliente-home-store-link-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.cliente-home-store-image-column {
    position: relative;
    width: 86px;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cliente-home-store-badge {
    position: absolute;
    top: -2px;
    left: 0;
    z-index: 3;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 9px;
    font-weight: 800;
}

.cliente-home-store-badge-featured {
    background: #ffcf00;
    color: #222;
}

.cliente-home-store-image-wrap {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    overflow: hidden;
    background: #efefef;
    margin-top: 12px;
}

.cliente-home-store-image,
.cliente-home-store-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cliente-home-store-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 30px;
}

.cliente-home-store-body {
    min-width: 0;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.cliente-home-store-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.cliente-home-store-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cliente-home-store-title {
    margin: 0;
    min-width: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cliente-home-store-category-line {
    color: #666;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cliente-home-store-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.cliente-home-store-info-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 0;
}

.cliente-home-store-info-item i {
    color: #df1f26;
    font-size: 12px;
    flex: 0 0 auto;
}

.cliente-store-card-top-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cliente-favorite-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #df1f26;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.cliente-favorite-btn .favorito-icon-solid {
    display: none;
}

.cliente-favorite-btn .favorito-icon-regular {
    display: inline-block;
}

.cliente-favorite-btn.is-active .favorito-icon-solid {
    display: inline-block;
}

.cliente-favorite-btn.is-active .favorito-icon-regular {
    display: none;
}

.cliente-store-card-closed-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    position: relative;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    color: #c62828;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

/* PRODUTOS */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-grid-store {
    grid-template-columns: 1fr;
    gap: 14px;
}

.cliente-search-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cliente-search-product-card-link {
    display: block;
}

.product-card {
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.product-card-store {
    padding: 10px;
}

.cliente-search-product-card {
    height: 100%;
    padding: 10px;
}

.product-card-store-main {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}

.cliente-search-product-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card-store-image-wrap,
.product-card-image-wrap {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f3f3;
    flex: 0 0 auto;
}

.cliente-search-product-image-wrap {
    width: 100%;
    height: 132px;
    border-radius: 16px;
    overflow: hidden;
}

.product-card-store-image,
.product-card-image,
.product-card-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f3f3f3;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.product-card-body,
.product-card-store-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cliente-search-product-body {
    gap: 6px;
}

.product-card-title {
    margin: 0;
    color: #222;
    font-weight: 800;
}

.product-card-store-title {
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
}

.cliente-search-product-store-name {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    color: #666;
}

.product-card-description-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.product-card-store-description-wrap {
    gap: 2px;
    min-width: 0;
}

.product-card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 64px;
}

.product-card-store-description {
    font-size: 12px;
    line-height: 1.38;
    color: #666;
    -webkit-line-clamp: 2;
    min-height: 34px;
    margin: 0;
}

.product-card-store-price {
    margin: 0;
    font-size: 23px;
    line-height: 1;
    font-weight: 800;
    color: #df1f26;
    flex: 0 1 auto;
}

.cliente-search-empty-products {
    grid-column: 1 / -1;
}

/* RESPONSIVO */

@media (max-width: 640px) {
    .cliente-search-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cliente-search-product-image-wrap {
        height: 118px;
    }

    .cliente-search-section-title {
        font-size: 19px;
    }

    .cliente-search-section-count {
        font-size: 12px;
    }

    .cliente-search-product-card .product-card-store-title {
        font-size: 14px;
    }

    .cliente-search-product-card .product-card-store-description {
        font-size: 11px;
        min-height: 30px;
    }

    .cliente-search-product-card .product-card-store-price {
        font-size: 17px;
    }

    .cliente-home-store-link {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 10px;
    }

    .cliente-home-store-image-column {
        width: 82px;
        min-height: 82px;
    }

    .cliente-home-store-image-wrap {
        width: 70px;
        height: 70px;
    }

    .cliente-home-store-title {
        font-size: 16px;
    }

    .cliente-home-store-category-line {
        font-size: 12px;
    }

    .cliente-home-store-info-row {
        gap: 8px;
    }

    .cliente-home-store-info-item {
        font-size: 11px;
    }
}