/* ==========================================================
   Sprint 1 — Bloco 8
   Página da Loja: acabamento visual e UX mobile-first.
   ========================================================== */

.store-hero,
.store-toolbar,
.store-products-section {
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.store-hero {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    padding: 0 1rem !important;
}

.store-hero-shell {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    padding: clamp(1rem, 2.4vw, 1.45rem) !important;
    border: 1px solid rgba(226, 232, 240, 0.94) !important;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.11), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07) !important;
}

.store-hero-logo {
    width: clamp(82px, 11vw, 112px) !important;
    height: clamp(82px, 11vw, 112px) !important;
    border-radius: 24px !important;
    background: #fff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10) !important;
}

.store-hero-logo-image {
    object-fit: cover !important;
}

.store-hero-logo-fallback {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    font-size: clamp(1.35rem, 3vw, 2rem) !important;
    letter-spacing: -0.04em !important;
}

.store-hero-content {
    min-width: 0 !important;
}

.store-hero-copy {
    gap: 0.5rem !important;
    min-width: 0 !important;
}

.store-hero-tag {
    background: rgba(37, 99, 235, 0.09) !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(191, 219, 254, 0.95) !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
}

.store-hero-title {
    font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
    letter-spacing: -0.045em !important;
    line-height: 1.05 !important;
}

.store-hero-meta {
    gap: 0.5rem 0.85rem !important;
    color: #64748b !important;
}

.store-hero-meta span {
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
}

.store-hero-meta i {
    color: #2563eb !important;
}

.store-hero-actions {
    min-width: 190px !important;
    gap: 0.55rem !important;
}

.store-hero-actions .btn-whatsapp,
.store-hero-actions .btn-secondary {
    min-height: 46px !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
}

.store-hero-actions .btn-whatsapp {
    background: linear-gradient(135deg, #16a34a, #059669) !important;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.20) !important;
}

.store-hero-actions .btn-secondary {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
}

.store-toolbar {
    padding: 0 1rem !important;
    margin-bottom: 1rem !important;
}

.store-toolbar-main {
    padding: 1rem !important;
    border-radius: 24px !important;
    background: #fff !important;
    border: 1px solid rgba(226, 232, 240, 0.94) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045) !important;
}

.store-toolbar-title {
    font-size: clamp(1.12rem, 2vw, 1.45rem) !important;
    letter-spacing: -0.035em !important;
}

.store-toolbar-subtitle {
    max-width: 58ch !important;
    line-height: 1.4 !important;
}

.store-toolbar-chips {
    padding: 0 0.12rem !important;
    gap: 0.45rem !important;
}

.store-toolbar-chips .chip,
.chip {
    border-radius: 999px !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    background: #fff !important;
    color: #475569 !important;
    font-weight: 750 !important;
    font-size: 0.78rem !important;
}

.store-toolbar-chips .chip.active,
.chip.active {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

.store-products-section {
    padding: 0 1rem 2rem !important;
}

.store-products-section .product-grid,
#store-grid.product-grid {
    align-items: stretch !important;
}

#storeInfiniteLoader {
    margin-top: 1rem !important;
}

.store-products-section .marketplace-empty-state,
.store-products-section .empty-state {
    border-radius: 24px !important;
    background: #fff !important;
    border: 1px solid rgba(226, 232, 240, 0.94) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045) !important;
}

/* Carrosséis internos da loja */
.store-toolbar + .market-strip,
.store-toolbar ~ .market-strip {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Mobile */
@media (max-width: 768px) {
    .store-hero {
        margin-top: 0.45rem !important;
        padding: 0 0.72rem !important;
    }

    .store-hero-shell {
        border-radius: 24px !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
    }

    .store-hero-logo {
        width: 72px !important;
        height: 72px !important;
        border-radius: 20px !important;
    }

    .store-hero-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
    }

    .store-hero-title {
        font-size: 1.35rem !important;
        line-height: 1.08 !important;
    }

    .store-hero-meta {
        gap: 0.45rem !important;
    }

    .store-hero-meta span {
        font-size: 0.80rem !important;
    }

    .store-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .store-hero-actions .btn-whatsapp,
    .store-hero-actions .btn-secondary {
        min-height: 44px !important;
        font-size: 0.84rem !important;
        justify-content: center !important;
        padding-left: 0.72rem !important;
        padding-right: 0.72rem !important;
    }

    .store-toolbar {
        padding: 0 0.72rem !important;
    }

    .store-toolbar-main {
        border-radius: 22px !important;
        padding: 0.9rem !important;
    }

    .store-toolbar-title {
        font-size: 1.12rem !important;
    }

    .store-toolbar-subtitle {
        font-size: 0.84rem !important;
    }

    .store-toolbar-chips {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 0.12rem !important;
    }

    .store-toolbar-chips::-webkit-scrollbar {
        display: none !important;
    }

    .store-toolbar-chips .chip,
    .chip {
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }

    .store-products-section {
        padding-left: 0.58rem !important;
        padding-right: 0.58rem !important;
        padding-bottom: calc(5.8rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    #store-grid.product-grid,
    .store-products-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.34rem !important;
    }

    .store-toolbar + .market-strip,
    .store-toolbar ~ .market-strip {
        padding-left: 0.58rem !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 430px) {
    .store-hero {
        padding-left: 0.58rem !important;
        padding-right: 0.58rem !important;
    }

    .store-hero-shell {
        padding: 0.85rem !important;
    }

    .store-hero-logo {
        width: 66px !important;
        height: 66px !important;
    }

    .store-hero-actions {
        gap: 0.42rem !important;
    }

    .store-hero-actions .btn-whatsapp,
    .store-hero-actions .btn-secondary {
        font-size: 0.78rem !important;
        min-height: 42px !important;
    }

    .store-toolbar {
        padding-left: 0.58rem !important;
        padding-right: 0.58rem !important;
    }

    .store-products-section {
        padding-left: 0.52rem !important;
        padding-right: 0.52rem !important;
    }
}

@media (max-width: 380px) {
    .store-hero-logo {
        width: 60px !important;
        height: 60px !important;
        border-radius: 18px !important;
    }

    .store-hero-title {
        font-size: 1.22rem !important;
    }

    #store-grid.product-grid,
    .store-products-section .product-grid {
        gap: 0.30rem !important;
    }
}
