﻿.home {
    --page-pad: 16px;
    margin: 0 auto;
    padding: 0px 16px 28px 16px;
    margin-bottom: 60px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto
}

.full-bleed {
    width: calc(100% + (var(--page-pad) * 2));
    margin-left: calc(var(--page-pad) * -1);
    margin-right: calc(var(--page-pad) * -1);
}

.store-hero.full-bleed {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

.store-hero {
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    position: relative;
}

/* Capa */
.cover {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #1f8f2e;
}

/* Card */
.store-card {
    position: relative;
    padding: 12px 16px 12px 16px;
    /*padding-left: 98px;*/
    background: #fff;
}

.store-title-row h1 {
    padding-left: 80px;
}

/* Logo flutuando */
.logo-floating {
    position: absolute;
    left: 18px;
    top: -34px;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.store-meta {
    flex: 1;
}

    .store-meta h1 {
        font-size: 20px;
        margin: 0;
        line-height: 1.2;
    }

.store-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

/* Linha do título + ações (pesquisar / compartilhar) */
.store-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.store-actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.icon-btn {
    border: 1px solid #e6e6e6;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.icon-circle {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    background: #f3f4f6; /* “fundo padrão” */
    border: 1px solid #ececec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .icon-circle:hover {
        filter: brightness(0.98);
    }

.icon-22 {
    width: 20px;
    height: 20px;
    fill: #1f8f2e;
}

/* Campo de busca (aparece ao clicar no ícone) */
.store-search {
    margin-top: 10px;
}

.store-search-input {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    background: #fff;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

    .store-search-input:focus {
        border-color: rgba(31,143,46,.55);
        box-shadow: 0 0 0 3px rgba(31,143,46,.12);
    }

/* Divisória */
.store-divider {
    height: 1px;
    background: #ececec;
    margin: 8px 0 4px;
}

/* Linha: aberto até / pedido mínimo + perfil da loja */
.store-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.store-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    flex-wrap: wrap;
}

.dot {
    opacity: .7;
}

/* Botão perfil da loja */
.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #1f8f2e;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    white-space: nowrap;
}

.profile-i {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31,143,46,.35);
    color: #1f8f2e;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

/* Aviso loja fechada */
.store-alert {
    margin-top: 2px;
    background: #ffe8e8;
    border: 1px solid #ffc9c9;
    text-align: center;
    color: #b10000;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Sections */
.section {
    margin-top: 18px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section h2 {
    margin: 0;
    font-size: 18px;
}

.h-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 260px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.gridHome {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 420px) {
    .gridHome {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    display: flex;
    gap: 12px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

    .product-card.compact {
        flex-direction: column;
    }

.product-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    background: #f5f5f5;
}

.product-card.compact .product-img {
    width: 100%;
    height: 140px;
}

.product-body {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 10px 10px 44px 0;
    overflow: visible;
}

.product-card.compact .product-body {
    padding: 10px 12px 12px 12px;
    padding-bottom: 40px;
}

.product-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.product-name {
    font-weight: 700;
    font-size: 15px;
}

.product-price {
    font-weight: 700;
    white-space: nowrap;
}

.product-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 560px) {
    .product-desc {
        -webkit-line-clamp: 3;
    }
}

.add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #1f8f2e;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .add-btn:hover {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    .add-btn:active {
        transform: scale(0.98);
        filter: brightness(0.9);
    }

.skeleton {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

/* Modal Perfil */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
}

.modal-sheet {
    width: min(720px, 100%);
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.18);
    padding: 14px 14px 18px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
}

.modal-body {
    margin-top: 12px;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-logo {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #e8e8e8;
    background: #fafafa;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-name {
    font-weight: 800;
    font-size: 15px;
}

.profile-sub {
    color: #666;
    font-size: 13px;
}

.profile-status {
    margin-top: 10px;
    background: #ffe8e8;
    border: 1px solid #ffc9c9;
    color: #b10000;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.profile-note {
    margin-top: 10px;
    color: #888;
    font-size: 12px;
}

/* Responsivo */
@media screen and (max-width: 488px) {
    .cover {
        height: 110px;
        background-size: cover;
        background-position: center;
        border-bottom: 2px solid #1f8f2e;
    }

    /*.store-card {
        position: relative;
        padding: 10px 10px 10px 98px;
        background: #fff;
    }*/

    .store-sub {
        font-size: 12px;
    }

    .profile-btn {
        font-size: 12px;
    }

    .icon-circle {
        width: 38px;
        height: 38px;
    }
}

.product-click-wrap {
    position: relative;
    cursor: pointer;
}

    .product-click-wrap .add-btn {
        position: absolute;
        right: 12px;
        bottom: 12px;
        z-index: 5;
    }