/* ==========================================
   CATEGORY PAGE STYLES
   ========================================== */

/* Product Badges - Category Page */
.category-products .badge,
.category-products .badge-discount,
.category-products .badge-new,
.category-products .badge-promo,
.category-products .badge-combo {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #000000;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'DUX-Core', sans-serif;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
}

.category-products .badge-new {
    background: #00D9A3;
}

.category-products .badge-promo {
    background: #EF4444;
}

.category-products .badge-combo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Breadcrumb */
.breadcrumb {
    background: #F5F5F5;
    padding: 16px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #000;
}

.breadcrumb span {
    color: #999;
    margin: 0 8px;
}

/* Category Header */
.category-header {
    background: white;
    padding: 32px 0;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.category-header h1 {
    font-family: 'DUX-Core', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1A1A1A;
    text-transform: uppercase;
}

.category-header p {
    font-size: 15px;
    color: #666;
}

/* Category Controls */
.category-controls {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid #E0E0E0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.btn-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #000;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filters:hover {
    background: #2D2D2D;
}

.product-count {
    flex: 1;
    text-align: left;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-dropdown label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.sort-dropdown select {
    padding: 10px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    color: #1A1A1A;
    background: white;
    cursor: pointer;
    font-family: 'DUX-Core', sans-serif;
    min-width: 200px;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #2D2D2D;
}

/* Category Products */
.category-products {
    padding: 32px 0 80px;
    background: #F5F5F5;
}

.category-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products i {
    font-size: 64px;
    color: #CCC;
    margin-bottom: 24px;
}

.no-products h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.no-products p {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.no-products .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #2D2D2D;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.no-products .btn-primary:hover {
    background: #000;
}

/* Responsive */
@media (max-width: 1200px) {
    .category-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Breadcrumb */
    .breadcrumb {
        padding: 12px 0;
        font-size: 13px;
    }

    /* Category Header */
    .category-header {
        padding: 24px 0;
        text-align: left;
    }

    .category-header h1 {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 0;
        text-transform: uppercase;
    }

    .category-header p {
        display: none;
    }

    /* Controls */
    .category-controls {
        padding: 16px 0;
    }

    .controls-wrapper {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .btn-filters {
        background: #000;
        color: white;
        border: none;
        border-radius: 50px;
        padding: 12px 24px;
        font-size: 14px;
        white-space: nowrap;
    }

    .product-count {
        display: none;
    }

    /* Mostrar contador no desktop */
    @media (min-width: 769px) {
        .product-count {
            display: block;
        }
    }

    .sort-dropdown {
        flex: 1;
    }

    .sort-dropdown label {
        display: none;
    }

    .sort-dropdown select {
        width: 100%;
        background: white;
        border: 1px solid #E0E0E0;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Products Grid */
    .category-products {
        padding: 20px 0 60px;
    }

    .category-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Product Cards Mobile */
    .product-card {
        border-radius: 8px;
    }

    .product-card .product-image {
        height: 180px;
    }

    .product-card .product-title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .product-card .product-subtitle {
        display: none;
    }

    .product-card .product-pricing {
        margin-bottom: 8px;
    }

    .product-card .product-price {
        font-size: 16px;
    }

    .product-card .product-original-price {
        font-size: 12px;
    }

    .product-card .product-installments {
        font-size: 11px;
    }

    .product-card .btn-add-cart {
        padding: 10px 16px;
        font-size: 13px;
    }

    .product-card .btn-add-cart i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-header h1 {
        font-size: 18px;
    }

    .btn-filters {
        padding: 10px 20px;
        font-size: 13px;
    }

    .sort-dropdown select {
        font-size: 13px;
        padding: 10px 14px;
    }
}
