/**
 * Loja Page Styles
 * Estilos para página de listagem de produtos
 */

/* ============================================
   LOJA SECTION
   ============================================ */
.loja-section {
    padding: 4rem 0;
    min-height: calc(100vh - 400px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-control-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    min-width: 180px;
}

/* ============================================
   LAYOUT
   ============================================ */
.loja-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* ============================================
   SIDEBAR
   ============================================ */
.loja-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.category-link.active {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-color: var(--primary-red);
    color: var(--primary-red);
    font-weight: 600;
}

.category-count {
    background: var(--bg-black);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-link.active .category-count {
    background: var(--primary-red);
    color: white;
}

/* ============================================
   CONTENT
   ============================================ */
.loja-content {
    min-height: 400px;
}

.produtos-grid {
    gap: 2rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.empty-state svg {
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   PRODUCT IMAGE WRAPPER
   ============================================ */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: var(--bg-dark);
}

.product-image-wrapper a {
    display: block;
}

.product-image-wrapper:hover .product-image {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .loja-layout {
        grid-template-columns: 1fr;
    }
    
    .loja-sidebar {
        position: static;
        order: 2;
    }
    
    .loja-content {
        order: 1;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-actions {
        width: 100%;
    }
    
    .form-control-sm {
        width: 100%;
        min-width: auto;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr;
    }
}