/* Extraído de partials/loja_vitrine.php: manter idêntico ao PHP. */
/* ==========================================================================
   ESTILOS PREMIUM DARK - VITRINE DA LOJA OFICIAL (GFH-TASK-009)
   ========================================================================== */
.hub-loja-page {
    background: var(--hub-bg);
    color: var(--hub-text);
    min-height: calc(100vh - 160px);
    padding: 30px 20px 90px 20px;
    box-sizing: border-box;
}

.hub-loja-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.hub-loja-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px auto;
}

.hub-badge-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(243, 106, 39, 0.12);
    border: 1px solid rgba(243, 106, 39, 0.35);
    border-radius: 999px;
    color: #F36A27;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}

.hub-loja-title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: var(--hub-text);
}

.hub-loja-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--hub-text-muted);
    margin: 0;
}

/* Toolbar: Filtros & Busca */
.hub-loja-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: var(--hub-surface-0);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.08);
    border-radius: 16px;
    padding: 14px 20px;
}

.hub-loja-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* Sem isso, no toolbar em coluna (mobile) o item flex cresce até o conteúdo e vaza da tela */
    min-width: 0;
}

.hub-filter-pill {
    background: transparent;
    border: 1px solid rgba(var(--hub-fg-rgb), 0.1);
    border-radius: 999px;
    color: var(--hub-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hub-filter-pill:hover {
    color: var(--hub-text);
    border-color: rgba(var(--hub-fg-rgb), 0.25);
    background: rgba(var(--hub-fg-rgb), 0.03);
}

.hub-filter-pill.active {
    background: #F36A27;
    border-color: #F36A27;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(243, 106, 39, 0.35);
}

.hub-loja-search {
    position: relative;
    min-width: 280px;
    flex: 1;
    max-width: 360px;
}

.hub-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666670;
    pointer-events: none;
}

.hub-search-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--hub-surface-2);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.1);
    border-radius: 999px;
    padding: 9px 16px 9px 40px;
    color: var(--hub-text);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}

.hub-search-input:focus {
    border-color: #F36A27;
    background: var(--hub-surface-3);
    box-shadow: 0 0 0 2px rgba(243, 106, 39, 0.2);
}

/* Grid de Produtos */
.hub-loja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

/* Card de Produto */
.hub-product-card {
    background: var(--hub-surface-0);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hub-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(243, 106, 39, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 24px rgba(243, 106, 39, 0.12);
}

/* Visual do Produto */
.hub-prod-visual {
    height: 250px;
    background: radial-gradient(circle at center, #1b1b20 0%, var(--hub-surface-0) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(var(--hub-fg-rgb), 0.06);
    padding: 20px;
    box-sizing: border-box;
}

.hub-prod-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

.hub-badge-orange {
    background: #F36A27;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(243, 106, 39, 0.4);
}

.hub-badge-limited {
    background: #ffffff;
    color: #000000;
}

.hub-badge-neutral {
    background: rgba(var(--hub-fg-rgb), 0.12);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.2);
    color: var(--hub-text);
}

.hub-mockup-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.hub-mockup-graphic {
    max-width: 130px;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease;
}

.hub-product-card:hover .hub-mockup-graphic {
    transform: scale(1.05);
}

/* Foto do produto enviada pelo admin: ocupa toda a área da arte */
.hub-prod-visual.has-photo {
    padding: 0;
    overflow: hidden;
}

.hub-prod-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hub-product-card:hover .hub-prod-photo {
    transform: scale(1.04);
}

.hub-store-unavailable {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--hub-text-muted);
    padding: 40px 16px;
    margin: 0;
}

.hub-mockup-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #777782;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Tipográfico Mockup */
.hub-mockup-typographic {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    border: 1px dashed rgba(var(--hub-fg-rgb), 0.2);
    border-radius: 12px;
    padding: 24px 32px;
    background: rgba(var(--hub-fg-rgb), 0.02);
}

.hub-typo-highlight {
    overflow-wrap: anywhere;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #F36A27;
}

.hub-typo-sub {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #e5e5e5;
}

/* Capa de Livro Mockup */
.hub-book-cover {
    width: 110px;
    height: 150px;
    background: linear-gradient(135deg, #1c1c22 0%, #101014 100%);
    border: 1px solid rgba(243, 106, 39, 0.4);
    border-radius: 4px 10px 10px 4px;
    box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.8);
    position: relative;
    padding: 12px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.hub-book-hardcover {
    border-color: rgba(var(--hub-fg-rgb), 0.3);
    background: linear-gradient(135deg, #24242c 0%, #14141a 100%);
}

.hub-product-card:hover .hub-book-cover {
    transform: perspective(400px) rotateY(-10deg) translateY(-4px);
}

.hub-book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: rgba(243, 106, 39, 0.7);
    border-radius: 4px 0 0 4px;
}

.hub-book-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hub-book-author {
    font-size: 0.55rem;
    font-weight: 800;
    color: #F36A27;
    letter-spacing: 0.1em;
}

.hub-book-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--hub-text);
    line-height: 1.15;
    margin: 4px 0;
}

.hub-book-sub {
    font-size: 0.5rem;
    color: var(--hub-text-muted);
    line-height: 1.2;
}

/* Boné, Garrafa e Óleo Mockups */
.hub-cap-mockup,
.hub-bottle-mockup,
.hub-oil-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hub-cap-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #aaaaaf;
}

/* Detalhes do Produto */
.hub-prod-details {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hub-prod-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.hub-prod-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F36A27;
}

.hub-prod-sku {
    font-size: 0.72rem;
    color: #666670;
    font-family: monospace;
}

.hub-prod-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hub-text);
    line-height: 1.25;
    margin: 0 0 10px 0;
}

.hub-prod-desc {
    font-size: 0.86rem;
    color: #888892;
    line-height: 1.5;
    margin: 0 0 18px 0;
    flex: 1;
}

/* Seletores de Tamanho */
.hub-size-selector {
    margin-bottom: 18px;
}

.hub-size-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaaaaf;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hub-size-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hub-size-btn {
    background: var(--hub-surface-2);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.1);
    border-radius: 6px;
    color: var(--hub-text);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hub-size-btn:hover {
    border-color: rgba(var(--hub-fg-rgb), 0.3);
}

.hub-size-btn.active {
    background: #F36A27;
    border-color: #F36A27;
    color: #ffffff;
}

/* Extra Meta (Pills) */
.hub-prod-extra-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hub-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hub-surface-2);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.08);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #aaaaaf;
    padding: 4px 10px;
}

.hub-meta-pill svg {
    color: #F36A27;
}

/* Rodapé do Card */
.hub-prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(var(--hub-fg-rgb), 0.06);
    padding-top: 16px;
    margin-top: auto;
}

.hub-prod-pricing {
    display: flex;
    flex-direction: column;
}

.hub-prod-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--hub-text);
    letter-spacing: -0.02em;
}

.hub-prod-installments {
    font-size: 0.7rem;
    color: #888892;
}

.hub-add-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F36A27;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(243, 106, 39, 0.35);
    transition: all 0.2s ease;
}

.hub-add-cart-btn:hover {
    background: #e05514;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(243, 106, 39, 0.45);
}

.hub-add-cart-btn:active {
    transform: translateY(0);
}

/* Empty State */
.hub-empty-store {
    background: var(--hub-surface-0);
    border: 1px dashed rgba(var(--hub-fg-rgb), 0.12);
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 60px;
}

.hub-empty-store-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hub-surface-2);
    color: #666670;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.hub-empty-store-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--hub-text);
    margin: 0 0 8px 0;
}

.hub-empty-store-desc {
    font-size: 0.95rem;
    color: var(--hub-text-muted);
    max-width: 480px;
    margin: 0 auto 22px auto;
    line-height: 1.5;
}

.hub-btn-reset-filters {
    background: var(--hub-surface-2);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.15);
    border-radius: 999px;
    color: var(--hub-text);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hub-btn-reset-filters:hover {
    background: #1d1d22;
    border-color: #F36A27;
    color: #F36A27;
}

/* Benefícios */
.hub-store-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.hub-benefit-card {
    background: var(--hub-surface-0);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.08);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hub-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(243, 106, 39, 0.12);
    border: 1px solid rgba(243, 106, 39, 0.25);
    color: #F36A27;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-benefit-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hub-text);
    margin: 0 0 4px 0;
}

.hub-benefit-desc {
    font-size: 0.82rem;
    color: var(--hub-text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Suporte da Loja */
.hub-store-support {
    background: linear-gradient(135deg, rgba(243, 106, 39, 0.1), rgba(12, 12, 14, 0.95));
    border: 1px solid rgba(243, 106, 39, 0.25);
    border-radius: 18px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hub-support-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--hub-text);
    margin: 0 0 6px 0;
}

.hub-support-desc {
    font-size: 0.92rem;
    color: var(--hub-text-muted);
    margin: 0;
    max-width: 600px;
}

.hub-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: var(--hub-surface-2);
    border: 1px solid rgba(243, 106, 39, 0.4);
    border-radius: 999px;
    color: var(--hub-text);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hub-support-btn:hover {
    background: #F36A27;
    border-color: #F36A27;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 106, 39, 0.35);
}

/* Responsividade */
@media (max-width: 860px) {
    .hub-loja-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 16px;
    }
    
    .hub-loja-search {
        max-width: 100%;
        min-width: 0;
    }
    
    .hub-store-support {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 24px 20px;
    }
    
    .hub-support-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hub-loja-container {
        padding: 0 12px !important;
        margin: 18px auto 40px !important;
    }

    .hub-loja-title {
        font-size: 2rem !important;
    }

    .hub-loja-subtitle {
        font-size: 0.92rem !important;
    }

    .hub-loja-categories {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hub-loja-categories::-webkit-scrollbar {
        display: none;
    }

    .hub-filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .hub-loja-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .hub-product-card {
        border-radius: 14px;
    }

    .hub-product-img-wrap {
        height: 180px;
    }

    .hub-product-info {
        padding: 12px;
        gap: 6px;
    }

    .hub-product-title {
        font-size: 0.92rem;
    }

    .hub-product-price {
        font-size: 1.15rem;
    }

    .hub-size-options {
        gap: 4px;
    }

    .hub-size-btn {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .hub-product-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-height: 42px;
    }
}

@media (max-width: 380px) {
    .hub-loja-grid {
        grid-template-columns: 1fr !important;
    }

    .hub-product-img-wrap {
        height: 230px;
    }
}
