/* ==========================================================================
   SHOP ARCHIVE (ESTOQUE PREMIUM)
   ========================================================================== */
.shop-header {
    background: linear-gradient(to bottom, var(--portal-dark), var(--portal-surface));
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4rem 0 2.5rem;
}

.shop-header__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.shop-header__title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

@media (min-width: 768px) {
    .shop-header__title { font-size: 3.5rem; }
}

.shop-header__description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.shop-toolbar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .shop-toolbar { flex-direction: row; }
}

/* Layout Grid da Loja */
.shop-main-content {
    padding: 3rem 0;
}

.shop-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .shop-layout-grid {
        flex-direction: row;
    }
}

/* Sidebar de Filtros */
.shop-sidebar-wrapper {
    width: 100%;
}

.filters-container {
    background-color: var(--portal-surface);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.filters-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--portal-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botão Filtros Mobile */
.mobile-filters-trigger {
    width: 100%;
    margin-bottom: 1rem;
}

/* =========================================
   STICKY SIDEBAR & LAYOUT (DESKTOP)
   ========================================= */
@media (min-width: 1024px) {
    .mobile-filters-trigger { display: none; }
    .mbn-close-sidebar-btn { display: none !important; }
    .mbn-mobile-sticky-bar { display: none !important; }

    .shop-sidebar-wrapper {
        width: 25%;
        flex-shrink: 0;
        position: sticky !important;
        top: 100px !important; 
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding-right: 12px; 
        scrollbar-width: thin;
        scrollbar-color: var(--portal-gold) rgba(255, 255, 255, 0.02);
    }
    
    .shop-sidebar-wrapper::-webkit-scrollbar { width: 6px; }
    .shop-sidebar-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 4px; }
    .shop-sidebar-wrapper::-webkit-scrollbar-thumb { background: var(--portal-gold); border-radius: 4px; }
}

/* =========================================
   GAVETA MOBILE (OFF-CANVAS) & BARRA FIXA
   ========================================= */
@media (max-width: 1023px) {
    .mbn-mobile-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.75);
        z-index: 999990;
        backdrop-filter: blur(4px);
    }
    
    .shop-sidebar-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 85% !important;
        max-width: 350px !important;
        background-color: var(--portal-dark) !important;
        z-index: 999995 !important;
        padding: 24px 20px 80px 20px !important;
        overflow-y: auto !important;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 25px rgba(0,0,0,0.5);
    }
    
    .shop-sidebar-wrapper.is-open-mobile {
        transform: translateX(0);
    }

    /* Hitbox expandida e fundo dourado para o "X" */
    .mbn-close-sidebar-btn {
        position: absolute;
        right: 16px;
        top: 16px;
        width: 35px;
        height: 35px;
        background-color: var(--portal-gold, #C4A04A);
        color: #111;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        font-weight: bold;
        cursor: pointer;
        z-index: 999999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .mbn-mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--portal-dark);
        border-top: 1px solid rgba(255,255,255,0.05);
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        z-index: 99980;
        box-shadow: 0 -10px 25px rgba(0,0,0,0.8);
    }
    
    .shop-main-content { padding-bottom: 160px !important; }
}

/* =========================================
   AJUSTES GLOBAIS DE ALINHAMENTO DO CARD
   ========================================= */
.products-grid { 
    align-items: stretch !important; 
}
.product-card { 
    height: 100% !important; 
}

/* Skeleton Loader Semântico */
.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) { .skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skeleton-grid { grid-template-columns: repeat(3, 1fr); } }

.skeleton-card {
    background-color: var(--portal-surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 400px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.skeleton-card__img { height: 200px; background-color: rgba(255, 255, 255, 0.05); }
.skeleton-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.skeleton-line { height: 1rem; background-color: rgba(255, 255, 255, 0.05); border-radius: 4px; }