/* Tramontina Style Category Page */

.tramontina-category-page {
    background: #fff;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Breadcrumb */
.category-breadcrumb {
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.category-breadcrumb .container-fluid {
    padding-left: 40px;
    padding-right: 40px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #000;
}

.breadcrumb-item.active {
    color: #000;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #666;
    padding: 0 8px;
}

/* Page Title */
.category-page-title {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.category-page-title .container-fluid {
    padding-left: 40px;
    padding-right: 40px;
}

.category-page-title h1 {
    font-size: 32px;
    font-weight: 400;
    color: #000;
    margin: 0;
    text-transform: capitalize;
}

/* Main Content */
.category-main-content {
    padding: 30px 0 50px;
}

.category-main-content .container-fluid {
    padding-left: 40px;
    padding-right: 40px;
}

/* Filter Column */
.filter-column {
    padding-right: 30px;
}

.filter-toggle-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    margin-bottom: 15px;
}

.filter-toggle-btn i {
    transition: transform 0.3s ease;
}

.filter-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.filter-sidebar {
    background: #fff;
}

.filter-section {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-select {
    border: 1px solid #000;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 14px;
    background: #fff;
    color: #000;
}

.sort-select:focus {
    border-color: #000;
    box-shadow: none;
    outline: none;
}

.form-check {
    margin-bottom: 12px;
}

.form-check-input {
    border-color: #000;
    border-radius: 0;
}

.form-check-input:checked {
    background-color: #000;
    border-color: #000;
}

.form-check-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-left: 8px;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-range-inputs input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 14px;
}

.price-range-inputs span {
    font-size: 14px;
    color: #666;
}

.applied-filters {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 0;
}

.applied-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.applied-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #333;
}

.remove-filter {
    color: #666;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    margin-left: 5px;
}

.remove-filter:hover {
    color: #000;
}

.clear-all-filters {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
}

.clear-all-filters:hover {
    color: #000;
}

/* Products Column */
.products-column {
    padding-left: 30px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.products-count {
    font-size: 14px;
    color: #666;
}

.products-count strong {
    color: #000;
    font-weight: 600;
}

.products-sort-mobile {
    width: 100%;
    margin-top: 15px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f9f9f9;
    overflow: hidden;
    min-height: 280px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 64px;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1.5;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.product-original-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
}

.product-unit-price {
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

.product-actions {
    padding: 0 20px 20px;
}

.btn-add-to-cart {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-to-cart:hover {
    background: #333;
}

.product-unavailable {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.load-more-section {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e5e5e5;
}

.load-more-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.load-more-section strong {
    color: #000;
    font-weight: 600;
}

.btn-load-more {
    padding: 12px 30px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-load-more:hover {
    background: #000;
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .category-breadcrumb .container-fluid,
    .category-page-title .container-fluid,
    .category-main-content .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .filter-column {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .products-column {
        padding-left: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .product-card {
        min-height: 420px;
    }
    
    .product-image-container {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .category-page-title h1 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-card {
        min-height: 400px;
    }
    
    .product-image-container {
        min-height: 220px;
        padding-top: 100%;
    }
    
    .product-image-placeholder {
        font-size: 48px;
    }
    
    .product-name {
        font-size: 15px;
        min-height: 2.8em;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-original-price {
        font-size: 14px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-actions {
        padding: 0 15px 15px;
    }
}

@media (max-width: 576px) {
    .category-breadcrumb .container-fluid,
    .category-page-title .container-fluid,
    .category-main-content .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        min-height: 380px;
    }
    
    .product-image-container {
        min-height: 200px;
    }
    
    .product-image-placeholder {
        font-size: 40px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .product-original-price {
        font-size: 13px;
    }
    
    .product-actions {
        padding: 0 12px 12px;
    }
    
    .btn-add-to-cart {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        min-height: 360px;
    }
    
    .product-image-container {
        min-height: 180px;
    }
    
    .product-image-placeholder {
        font-size: 36px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-actions {
        padding: 0 10px 10px;
    }
    
    .btn-add-to-cart {
        padding: 8px;
        font-size: 12px;
    }
}

