/* =========================================================
   HOME CLIENTE
   Arquivo: public/assets/cliente/css/home.css
   ========================================================= */

/* =========================================================
   AJUSTES INLINE REMOVIDOS DO BLADE
   ========================================================= */
.cliente-home-custom-message {
    margin-bottom: 8px;
    border-radius: 18px;
    overflow: hidden;
}

.cliente-home-topbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.cliente-home-store-card .cliente-home-store-link,
.cliente-home-store-card .cliente-home-store-link-button {
    display: flex;
    width: 100%;
}

/* =========================================================
   ESTRUTURA HOME
   ========================================================= */
.cliente-home-page,
.cliente-mobile-home {
    display: block;
}

.cliente-mobile-home-container {
    max-width: 760px;
}

.cliente-home-custom-message-top {
    margin-top: 0;
}

.cliente-home-custom-message-inner {
    position: relative;
    background: #f8f9fa;
}

.cliente-home-custom-message img,
.cliente-home-custom-message iframe,
.cliente-home-custom-message video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   BUSCA
   ========================================================= */
.cliente-home-search-form {
    display: block;
}

.cliente-home-search-box {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 0 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.cliente-home-search-box i {
    color: #999;
    font-size: 16px;
}

.cliente-home-search-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #222;
}

.cliente-home-search-form.is-loading .cliente-home-search-box {
    box-shadow: 0 0 0 3px rgba(223, 31, 38, 0.08);
}

/* =========================================================
   SLIDER PRINCIPAL
   ========================================================= */
.cliente-home-main-slider {
    margin-bottom: 12px;
}

.cliente-home-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 0 16px 0;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
}

.cliente-home-slider-track,
.cliente-home-inline-promo-track,
.cliente-home-categories-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cliente-home-slider-track::-webkit-scrollbar,
.cliente-home-inline-promo-track::-webkit-scrollbar,
.cliente-home-categories-track::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   INDICADORES DOS SLIDERS DA HOME
   ========================================================= */

.cliente-home-slider-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 12px;
    margin-top: 6px;
    background: transparent;
    box-shadow: none;
}
 
.cliente-home-slider-dot {
    width: 8px;
    height: 5px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: #d7d7d7;
    transition: width 180ms ease, background 180ms ease;
}

.cliente-home-slider-dot.is-active {
    width: 22px;
    background: #df1f26;
}

.cliente-home-slide {
    display: block;
    scroll-snap-align: center;
}

.cliente-home-slide-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 22px;
    box-shadow: none;
}

/* =========================================================
   CABEÇALHOS DE SEÇÃO
   ========================================================= */
.cliente-home-section-head {
    margin-bottom: 8px;
}

.cliente-home-section-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #222;
}

/* =========================================================
   CATEGORIAS
   ========================================================= */
.cliente-home-categories {
    margin-bottom: 12px;
}

.cliente-home-categories-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 96px);
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 0;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
}

.cliente-home-category-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 8px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 112px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.03);
}

.cliente-home-category-card.is-active {
    border-color: #df1f26;
    box-shadow: 0 0 0 2px rgba(223, 31, 38, 0.08);
}

.cliente-home-category-card-image-wrap {
    width: 100%;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f3f3;
}

.cliente-home-category-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
    background: #fff;
}

.cliente-home-category-card-name {
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    text-transform: lowercase;
    text-align: center;
}

/* =========================================================
   FILTROS
   ========================================================= */
.cliente-home-filters {
    margin-bottom: 12px;
}

.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-home-count-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 700;
}

.cliente-home-count-row strong {
    color: #222;
}

/* =========================================================
   LISTA DE LOJAS
   ========================================================= */
.cliente-home-stores {
    margin-bottom: 24px;
}

.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;
}

/* =========================================================
   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(255, 255, 255, 0.96);
    color: #d62828;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    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);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.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: #fff1f1;
    color: #d62828;
}

.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);
    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;
}

/* =========================================================
   PROMOS INLINE
   ========================================================= */
.cliente-home-inline-promo-block {
    margin-top: -2px;
}

.cliente-home-inline-promo-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 0;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
}

.cliente-home-inline-promo-card {
    display: block;
}

.cliente-home-inline-promo-image {
    width: 100%;
    height: 94px;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 18px;
    box-shadow: none;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 22px 18px;
    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.2;
    font-weight: 800;
    color: #222;
}

.empty-state-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    font-weight: 700;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (min-width: 992px) {
    .cliente-mobile-home {
        display: none;
    }
}

@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;
    }
}

/* MODAL LOJA FECHADA - HOME */
body.cliente-modal-open {
    overflow: hidden;
    touch-action: none;
}

.cliente-confirm-modal {
    text-align: center;
}

.cliente-confirm-modal-icon {
    width: 60px;
    height: 60px;
    margin: 4px auto 14px;
    border-radius: 999px;
    background: #fff1f2;
    color: #df1f26;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(223, 31, 38, 0.08);
}

.cliente-confirm-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cliente-confirm-modal-actions .btn {
    min-width: 132px;
}

@media (max-width: 640px) {
    .cliente-confirm-modal-actions .btn {
        width: 100%;
    }
}

.cliente-home-stores {
    transition: opacity 220ms ease, transform 220ms ease;
}

.cliente-home-stores.is-loading {
    opacity: 0.45;
    pointer-events: none;
    transform: translateY(4px);
}

/* ajuste da home para reduzir espaço antes do footer */
body.cliente-footer-float .cliente-main {
    padding-bottom: 95px;
}

.cliente-home-stores {
    margin-bottom: 0;
}