/* =========================================================
   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 18px;
    text-align: center;
}

.empty-state-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #222;
}

.empty-state-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    font-weight: 700;
}

/* =========================================================
   FILTROS
   ========================================================= */

.cliente-search-filters {
    position: sticky;
    top: 58px;
    z-index: 79;
    margin-bottom: 14px;
    padding: 8px 0 10px;
    background: #f9f9f9;
    box-shadow: 0 0 0 100vmax #f9f9f9;
    clip-path: inset(0 -100vmax);
}

.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: 35px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #ececec;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cliente-home-filter-btn.is-active {
    background: #e31b46;
    border-color: #e31b46;
    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;
    scrollbar-width: none;
}

.cliente-search-anchor-row::-webkit-scrollbar {
    display: none;
}

.cliente-search-anchor-btn {
    flex: 0 0 auto;
    min-height: 36px;
    min-width: 110px;
    border-radius: 5px;
    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;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.cliente-search-anchor-btn i {
    font-size: 12px;
    color: #888;
}

.cliente-search-anchor-btn.is-active {
    background: #fff;
    border-color: rgba(223, 31, 38, 0.28);
    color: #e31b46;
}

.cliente-search-anchor-btn.is-active i {
    color: #e31b46;
}

/* =========================================================
   SEÇÕES
   ========================================================= */

.cliente-search-section {
    margin-bottom: 22px;
}

.cliente-search-section:last-child {
    margin-bottom: 0;
}

.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;
}

/* =========================================================
   CARDS DE LOJAS - mesmo padrão da home
   ========================================================= */

.cliente-home-store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cliente-home-store-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    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-card.is-closed .cliente-home-store-free-delivery-badge,
.cliente-home-store-card.is-closed .cliente-home-store-coupon-badge,
.cliente-home-store-card.is-closed .cliente-home-store-coupon-more-badge,
.cliente-home-store-card.is-closed .cliente-home-store-offer-summary,
.cliente-home-store-card.is-closed .cliente-home-store-offer-more {
    color: #8c8c8c;
}

.cliente-home-store-card.is-closed .cliente-home-store-free-delivery-badge i,
.cliente-home-store-card.is-closed .cliente-home-store-coupon-badge i,
.cliente-home-store-card.is-closed .cliente-home-store-offer-summary i {
    color: #9c9c9c;
}

.cliente-home-store-link,
.cliente-home-store-link-button {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 12px 1px 14px;
    align-items: flex-start;
    text-decoration: none;
}

.cliente-home-store-link-button {
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.cliente-home-store-image-column {
    position: relative;
    width: 73px;
    min-height: 73px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cliente-home-store-badge {
    position: absolute;
    top: -5px;
    left: 3px;
    z-index: 3;
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 800;
}

.cliente-home-store-badge-featured {
    background: #ffcf00;
    color: #222;
}

.cliente-home-store-image-wrap {
    width: 72px;
    height: 72px;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    margin-top: 5px;
    margin-left: 5px;
}

.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: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 2px;
}

.cliente-home-store-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.cliente-home-store-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-right: 42px;
}

.cliente-home-store-title {
    margin: 0;
    min-width: 0;
    font-size: 16px;
    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: 8px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.cliente-home-store-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 0;
}

.cliente-home-store-info-item i {
    color: #222;
    font-size: 12px;
    flex: 0 0 auto;
}

.cliente-home-store-free-delivery-row {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    margin-top: 3px;
    padding-right: 0;
}

.cliente-home-store-free-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-width: 0;
    border-radius: 999px;
    padding: 4px 9px;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    white-space: normal;
}

.cliente-home-store-promo-row,
.cliente-home-store-coupon-row {
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    overflow: hidden;
    white-space: nowrap;
}

.cliente-home-store-offer-summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
    color: #4a4a4a;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.cliente-home-store-offer-summary i {
    color: #22a65a;
    font-size: 11px;
    flex: 0 0 auto;
}

.cliente-home-store-offer-text {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.cliente-home-store-offer-more {
    flex: 0 0 auto;
    color: #22a65a;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.cliente-home-store-promo-row .cliente-home-store-free-delivery-badge {
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    color: #4a4a4a;
    box-shadow: none;
    border-radius: 0;
    white-space: nowrap;
}

.cliente-home-store-promo-row .cliente-home-store-free-delivery-badge i {
    color: #16a34a;
}

.cliente-home-store-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0;
    background: transparent;
    color: #4a4a4a;
    box-shadow: none;
    border-radius: 0;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.cliente-home-store-coupon-badge i {
    color: #16a34a;
    font-size: 11px;
}

.cliente-home-store-coupon-more-badge {
    flex: 0 0 auto;
    color: #16a34a;
}

.cliente-home-store-card .store-card-new-badge {
    position: absolute;
    right: -13px;
    bottom: 11px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 18px;
    background: #0b72e7;
    color: #fff;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-transform: lowercase;
    transform: rotate(-30deg);
    transform-origin: center;
    pointer-events: none;
    white-space: nowrap;
}

/* =========================================================
   FAVORITOS + STATUS FECHADA
   ========================================================= */

.cliente-store-card-top-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 76px;
    pointer-events: auto;
}

.cliente-favorite-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(247, 247, 247, 0.96);
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
    padding: 0;
    flex: 0 0 auto;
}

.cliente-favorite-btn:hover,
.cliente-favorite-btn:focus {
    transform: translateY(-1px);
}

.cliente-favorite-btn .favorito-icon-solid,
.cliente-favorite-btn .favorito-icon-regular {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.cliente-favorite-btn .favorito-icon-solid {
    opacity: 0;
    transform: scale(0.85);
}

.cliente-favorite-btn .favorito-icon-regular {
    opacity: 1;
    transform: scale(1);
}

.cliente-favorite-btn.is-active {
    background: rgba(255, 255, 255, 0.96);
    color: #e31b46;
}

.cliente-favorite-btn.is-active .favorito-icon-solid {
    opacity: 1;
    transform: scale(1);
}

.cliente-favorite-btn.is-active .favorito-icon-regular {
    opacity: 0;
    transform: scale(0.85);
}

.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);
    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;
    text-decoration: none;
}

.product-card {
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 12px;
}

.product-card-store {
    padding: 10px;
}

.cliente-search-product-card {
    height: 100%;
    padding: 10px 10px 8px;
    border-radius: 6px;
}

.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: 6px;
    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: 25px;
    line-height: 1;
    font-weight: 800;
    color: #df1f26;
    flex: 0 1 auto;
}

.cliente-search-product-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 6px;
}

.cliente-search-product-price-row .product-card-store-price {
    margin: 0;
    text-align: left;
}

.cliente-search-empty-products {
    grid-column: 1 / -1;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 640px) {
    .cliente-store-card-top-actions {
        top: 6px;
        right: 6px;
        gap: 6px;
        width: 66px;
    }

    .cliente-home-store-card .cliente-favorite-btn,
    .cliente-store-card-closed-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .cliente-home-store-card .store-card-new-badge {
        right: -15px;
        bottom: 10px;
        width: 104px;
        height: 17px;
        font-size: 7.5px;
    }

    .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-price {
        font-size: 19px;
    }
}
