/**
 * Catalog Page Styles
 */

.catalog-page {
    padding: 40px 0 80px;
    min-height: 70vh;
}

/* Breadcrumb (reusing from cart-page) */

/* Catalog Header */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.results-info {
    font-size: 14px;
    color: #666;
}

/* Catalog Layout */
.catalog-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.catalog-sidebar {
    position: sticky;
    top: 20px;
}

.filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.filters-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-options.scrollable {
    max-height: 200px;
    overflow-y: auto;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-checkbox:hover {
    color: #ff6600;
}

/* Brand Search */
.filter-search {
    margin-bottom: 12px;
}

.filter-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

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

/* Clear Filters */
.btn-clear-filters {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-clear-filters:hover {
    background: #e0e0e0;
}

/* Toolbar */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #e0e0e0;
}

.view-btn.active {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: white;
}

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

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #ff6600;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

/* Product Card */
.product-card-catalog {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 85%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge-catalog {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.product-badge-catalog.promo {
    background: #e74c3c;
}

.product-badge-catalog.new {
    background: #27ae60;
}

.product-fast-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 102, 0, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Badges adicionais */
.product-badge-catalog.destaque {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
}

.product-badge-catalog.hot {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Skeleton Loading */
.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.skeleton-image {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.product-card-content {
    padding: 12px;
}

.product-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.product-card-sku {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.stars {
    color: #ffa500;
}

.reviews-count {
    color: #999;
}

.product-card-price {
    margin-bottom: 10px;
}

.price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    display: block;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #ff6600;
}

.price-normal {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-card-actions {
    display: flex;
    gap: 6px;
}

.btn-add-cart {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-view-details {
    padding: 12px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: #f5f5f5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f5f5f5;
}

.page-btn.active {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.no-results svg {
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

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

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

@media (max-width: 992px) {
    .catalog-content {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

    .filter-toggle {
        display: flex;
    }

    .filters-container {
        display: none;
    }

    .filters-container.active {
        display: block;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-title {
        font-size: 24px;
    }

    .catalog-toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .sort-select {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .catalog-page {
        padding: 24px 0 60px;
    }
}