/* ========================================
   PÁGINAS DE CATEGORIAS
   VICENTE - Loja de Moda Masculina
   ======================================== */

/* Garantir que o grid de produtos em categorias tenha prioridade */
.categories-section .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .categories-section .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .categories-section .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #333333;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #6c757d;
}

.breadcrumb-current {
    color: #6c757d;
    font-weight: 500;
}

/* Main Content */
.main-content {
    margin-bottom: 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header da Categoria */
.category-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.category-header .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.product-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layout de Conteúdo */
.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    min-height: 500px;
    width: 100%;
}

/* Sidebar */
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    margin-bottom: 20px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.category-link:hover {
    background: #e9ecef;
    color: #000000;
    text-decoration: none;
}

.category-item.active .category-link {
    background: #000000;
    color: white;
    border-color: #000000;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: normal;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Filtros e Ordenação */
.filters-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-filter {
    flex: 1;
    min-width: 300px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #000000;
}

.search-btn {
    padding: 12px 20px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #333333;
}

.sort-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #000000;
}

/* Seção de Produtos */
.products-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========================================
   PÁGINA DE TODAS AS CATEGORIAS
   ======================================== */

.page-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
}

.page-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.categories-section {
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card .category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 3rem;
}

.category-card .category-info {
    padding: 25px;
}

.category-card .category-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.category-card .category-name a {
    color: #000000;
    text-decoration: none;
}

.category-card .category-name a:hover {
    color: #333333;
}

.category-card .category-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.category-card .category-stats {
    margin-bottom: 20px;
}

.category-card .product-count {
    color: #000000;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-card .product-count i {
    font-size: 0.9rem;
}

/* Produtos em Destaque */
.featured-products {
    margin-bottom: 20px;
}

.featured-products h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 10px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.featured-product {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
}

.featured-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-product .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 1.2rem;
}

.category-actions {
    text-align: center;
}

/* Navegação Rápida */
.quick-nav-section {
    background: #f8f9fa;
    padding: 50px 0;
    margin-top: 50px;
}

.quick-nav-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 30px 0;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.quick-nav-item {
    background: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quick-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    color: #333333;
}

.quick-nav-item i {
    font-size: 2rem;
    color: #000000;
}

.quick-nav-item span {
    font-weight: 500;
    font-size: 1rem;
}

/* Grid de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    min-height: 500px;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 2rem;
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .product-name {
        margin: 0 0 0.25rem 0;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    @media (max-width: 480px) {
        .product-name {
            font-size: 0.95rem;
        }
        
        .product-category {
            font-size: 0.8rem;
        }
        
        .current-price {
            font-size: 1rem;
        }
        
        .sale-price {
            font-size: 1rem;
        }
        
        .variation-label {
            font-size: 0.7rem;
            min-width: 50px;
        }
        
        .color-chip {
            width: 18px;
            height: 18px;
        }
        
        .color-chip.more {
            font-size: 0.7rem;
        }
        
        .size-chip {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
        }
        
        .size-chip.more {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
            min-width: 18px;
        }
    }

.product-name a {
    color: #000000;
    text-decoration: none;
}

.product-name a:hover {
    color: #333333;
}

.product-category {
    margin-bottom: 8px;
}

/* Variações dos Produtos */
.product-variations {
    margin-top: 0.5rem;
}

.variations-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variation-colors, .variation-sizes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.variation-label {
    font-size: 0.8rem;
    color: #666666;
    font-weight: 500;
    min-width: 60px;
}

.color-chips, .size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.color-chip {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-chip:hover {
    transform: scale(1.1);
}

.size-chip {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #333333;
    font-weight: 500;
    white-space: nowrap;
}

.color-chip.more {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-chip.more {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    min-width: 20px;
    text-align: center;
}

.product-category a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.product-category a:hover {
    color: #000000;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.product-rating .fas.fa-star {
    color: #ddd;
    font-size: 14px;
}

.product-rating .fas.fa-star.filled {
    color: #ffc107;
}

.rating-count {
    font-size: 0.8rem;
    color: #6c757d;
}

.product-price {
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 8px;
}

.sale-price {
    color: #dc3545;
    font-weight: 600;
    font-size: 1.1rem;
}

.current-price {
    color: #000000;
    font-weight: 600;
    font-size: 1.1rem;
}

.product-actions {
    text-align: center;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

.add-to-cart:hover {
    background: #333333;
}

/* Botões */
.btn-primary-link {
    display: inline-block;
    padding: 12px 24px;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-primary-link:hover {
    background: #333333;
    color: white;
    text-decoration: none;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #000000;
}

.page-link.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

/* Responsividade */
@media (max-width: 768px) {
    .category-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-image {
        width: 150px;
        height: 120px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter {
        min-width: auto;
    }
    
    .sort-filter {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card .category-info {
        padding: 20px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 30px 0;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-card {
        min-height: 380px;
    }
    
    .product-info {
        padding: 12px 12px 18px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }
}
