@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Products Page Layout */
.products-page-wrapper {
    background: #f5f5f5 !important;
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

.products-page-wrapper .badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.products-page-wrapper .category-section {
    margin-bottom: 36px;
}

.products-page-wrapper .category-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 6px 0 22px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 12px;
    font-weight: 700;
    color: #6b4f72;
}

.products-page-wrapper .category-title::before,
.products-page-wrapper .category-title::after {
    content: '';
    height: 1px;
    background: #d9c6dd;
    flex: 1;
}

.products-page-wrapper .category-title span {
    white-space: nowrap;
}

.products-page-wrapper .badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #8C04A4, #9D0DB8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(140, 4, 164, 0.3);
}

.products-page-wrapper .badge-category i {
    font-size: 10px;
}

.products-page-wrapper .product-actions {
    display: none;
}

.products-page-wrapper .btn-action {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    text-decoration: none;
}

.products-page-wrapper .product-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.products-page-wrapper .btn-action:hover {
    background: #8C04A4;
    color: white;
    transform: scale(1.1);
}

.products-page-wrapper .product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.products-page-wrapper .product-rating .stars {
    display: flex;
    gap: 2px;
    color: #ffa500;
    font-size: 14px;
}

.products-page-wrapper .product-rating .rating-count {
    font-size: 12px;
    color: #999;
}

.products-page-wrapper .product-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-page-wrapper .price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.products-page-wrapper .price-current {
    font-size: 18px;
    font-weight: 700;
    color: #8C04A4;
}

.products-page-wrapper > .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.products-page-wrapper .products-layout {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 25px !important;
}

/* Page Header */
.products-page-wrapper .page-header {
    background: white !important;
    padding: 20px 25px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
}

.products-page-wrapper .page-header h1 {
    font-size: 24px !important;
    color: #1a1a2e !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.products-page-wrapper .page-header h1 i {
    color: #8C04A4 !important;
    font-size: 28px !important;
}

.products-page-wrapper .page-header .page-subtitle {
    font-size: 14px !important;
    color: #ffffff !important;
    background: #C066E8 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filters-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filters-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #C066E8;
}

.filters-card h3 i {
    color: #8C04A4;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.filter-group label i {
    color: #8C04A4;
    font-size: 16px;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-group input[type="text"]:focus,
.filter-group input[type="number"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #8C04A4;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}

/* Price Range */
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range input {
    flex: 1;
}

.price-range .separator {
    color: #666;
    font-weight: 500;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-filter {
    width: 100%;
    height: 42px;
    padding: 0 20px;
    background: linear-gradient(135deg, #8C04A4 0%, #8C04A4 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-filter i {
    font-size: 14px;
}

.btn-clear-filters {
    width: 100%;
    height: 42px;
    padding: 0 20px;
    background: white;
    color: #8C04A4;
    border: 2px solid #8C04A4;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-clear-filters:hover {
    background: #E8D4F8;
    transform: translateY(-2px);
}

/* Products Content */
.products-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Products Grid */
.products-page-wrapper .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Product Card */
.products-page-wrapper .product-card {
    background: white !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.products-page-wrapper .product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* Product Image */
.products-page-wrapper .product-image {
    position: relative !important;
    width: 100% !important;
    padding-top: 100% !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    aspect-ratio: unset !important;
}

.products-page-wrapper .product-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.products-page-wrapper .product-card:hover .product-image img {
    transform: scale(1.05) !important;
}

/* Badge Discount */
.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #8C04A4 0%, #8C04A4 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
    z-index: 2;
}

/* Product Actions */
.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.btn-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #8C04A4;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-action:hover {
    background: #8C04A4;
    color: white;
    transform: scale(1.1);
}

/* Product Info */
.products-page-wrapper .product-card .product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.products-page-wrapper .product-card .product-info h3 {
    font-size: 15px;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-page-wrapper .product-card .product-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px 0;
    line-height: 1.45;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-page-wrapper .product-card .product-rating {
    justify-content: center;
}

/* Product Prices */
.products-page-wrapper .product-card .product-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    align-items: center;
}

.products-page-wrapper .product-card .price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.products-page-wrapper .product-card .price-current {
    font-size: 20px;
    color: #8C04A4;
    font-weight: 700;
}

.products-page-wrapper .product-card .product-installments {
    margin-top: 6px;
    font-size: 11px;
    color: #9aa0a6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.products-page-wrapper .product-card .product-installments i {
    font-size: 10px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.empty-state i {
    font-size: 64px;
    color: #8C04A4;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 24px;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.empty-state p {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #8C04A4;
    color: #8C04A4;
    background: #E8D4F8;
}

.page-btn i {
    font-size: 14px;
}

.page-info {
    padding: 0 16px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-page-wrapper .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .products-page-wrapper .products-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .products-page-wrapper .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .products-page-wrapper .page-header h1 {
        font-size: 20px !important;
    }

    .products-page-wrapper .filters-sidebar {
        position: static !important;
        max-height: none !important;
    }

    .products-page-wrapper .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 12px !important;
    }

    .products-page-wrapper .product-info h3 {
        font-size: 14px !important;
    }

    .products-page-wrapper .price-current {
        font-size: 18px !important;
    }

    .products-page-wrapper .product-card .product-installments {
        font-size: 10px !important;
        gap: 4px !important;
    }

    .products-page-wrapper .product-card .product-installments i {
        font-size: 9px !important;
    }
}

@media (max-width: 480px) {
    .products-page-wrapper {
        padding: 12px 0 !important;
    }

    .products-page-wrapper .container {
        padding: 0 12px !important;
    }

    .products-page-wrapper .page-header {
        padding: 16px !important;
    }

    .products-page-wrapper .filters-card {
        padding: 16px !important;
    }

    .products-page-wrapper .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .products-page-wrapper .product-info {
        padding: 12px !important;
    }

    .products-page-wrapper .product-info h3 {
        font-size: 13px !important;
        min-height: 38px !important;
    }

    .products-page-wrapper .price-old {
        font-size: 12px !important;
    }

    .products-page-wrapper .price-current {
        font-size: 16px !important;
    }

    .products-page-wrapper .product-card .product-installments {
        font-size: 9px !important;
        gap: 4px !important;
    }

    .products-page-wrapper .product-card .product-installments i {
        font-size: 8px !important;
    }

    .products-page-wrapper .pagination {
        padding: 12px !important;
        gap: 6px !important;
    }

    .products-page-wrapper .page-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .products-page-wrapper .page-info {
        font-size: 13px !important;
        padding: 0 8px !important;
    }
}

/* Scrollbar Styling */
.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #8C04A4;
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #8C04A4;
}
