/* ========================================
   PRODUCT LIST PAGE — shared styles
   Used by: v1 _ProductsAdvanced.cshtml + v2 Themes/_Kernel/Templates/ProductList.cshtml
   Theme tokens: --accent-color (default #CA000F for Solid), --accent-color-dark, --accent-color-rgb
   ======================================== */

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.spin-animation { display: inline-block; animation: spin 1s linear infinite; }

/* Hero Rich Text Content */
.category-hero .rich-text-content,
.collection-hero .rich-text-content { color: white; }
.category-hero .rich-text-content h1, .category-hero .rich-text-content h2,
.category-hero .rich-text-content h3, .category-hero .rich-text-content h4,
.category-hero .rich-text-content h5, .category-hero .rich-text-content h6,
.category-hero .rich-text-content p, .category-hero .rich-text-content li,
.category-hero .rich-text-content a,
.collection-hero .rich-text-content h1, .collection-hero .rich-text-content h2,
.collection-hero .rich-text-content h3, .collection-hero .rich-text-content h4,
.collection-hero .rich-text-content h5, .collection-hero .rich-text-content h6,
.collection-hero .rich-text-content p, .collection-hero .rich-text-content li,
.collection-hero .rich-text-content a { color: white; }

.category-hero .rich-text-content span:not([style*="color"]),
.category-hero .rich-text-content font:not([color]),
.collection-hero .rich-text-content span:not([style*="color"]),
.collection-hero .rich-text-content font:not([color]) { color: white; }

.category-hero .rich-text-content span, .category-hero .rich-text-content font,
.collection-hero .rich-text-content span, .collection-hero .rich-text-content font { background-color: transparent !important; }

.category-hero .rich-text-content a:hover,
.collection-hero .rich-text-content a:hover { color: rgba(255, 255, 255, 0.8); text-decoration: underline; }

/* Category Description Bottom (Solid Theme) */
.category-description-bottom .rich-text-content h1,
.category-description-bottom .rich-text-content h2,
.category-description-bottom .rich-text-content h3,
.category-description-bottom .rich-text-content h4,
.category-description-bottom .rich-text-content h5,
.category-description-bottom .rich-text-content h6 { color: #ffffff; margin-bottom: 1rem; }
.category-description-bottom .rich-text-content p { color: #e0e0e0; margin-bottom: 1rem; }
.category-description-bottom .rich-text-content a { color: var(--accent-color, #CA000F); text-decoration: none; }
.category-description-bottom .rich-text-content a:hover { color: #ff1a2e; text-decoration: underline; }
.category-description-bottom .rich-text-content ul,
.category-description-bottom .rich-text-content ol { color: #e0e0e0; padding-left: 1.5rem; }
.category-description-bottom .rich-text-content li { margin-bottom: 0.5rem; }

/* Filters Sidebar */
.filters-sidebar { background: #ffffff; border: 1px solid #e5e5e5; border-radius: 0; padding: 25px 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.filters-sidebar h5 { font-size: 16px; font-weight: 600; color: #363f4d; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0; }
.filter-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #f5f5f5; }
.filter-section:last-child { border-bottom: none; }
.filter-section h6 { font-size: 13px; font-weight: 600; color: #363f4d; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 15px; }

.filter-link { display: block; padding: 8px 12px; color: #434343; text-decoration: none; border-radius: 0; transition: all 0.2s ease; font-size: 13px; background: #ffffff; border-left: 3px solid transparent; }
.filter-link:hover { background: #f8f9fa; color: var(--accent-color, #CA000F); border-left-color: var(--accent-color, #CA000F); }
.filter-link.active { background: #f8f9fa; color: var(--accent-color, #CA000F); font-weight: 600; border-left-color: var(--accent-color, #CA000F); }

.color-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 0; border: 1px solid #e5e5e5; margin-right: 8px; vertical-align: middle; }

.active-filters .badge, .active-filter-badge { padding: 6px 12px; font-weight: 500; font-size: 12px; transition: all 0.2s ease; }
.active-filters .badge:hover, .active-filter-badge:hover { filter: brightness(0.85); transform: translateY(-1px); }

.btn-outline-secondary { border-color: #e5e5e5; color: #434343; border-radius: 0; }
.btn-outline-secondary:hover { background: #f8f9fa; border-color: var(--accent-color, #CA000F); color: var(--accent-color, #CA000F); }

.show-more-options-btn { transition: all 0.2s ease; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.show-more-options-btn:hover { background: #f8f9fa; border-color: var(--accent-color, #CA000F); color: var(--accent-color, #CA000F); }
.show-more-options-btn.expanded { background: #f8f9fa; }

.show-more-filters-btn { text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.show-more-filters-btn:hover { filter: brightness(1.1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); transform: translateY(-1px); color: #ffffff !important; }
.show-more-filters-btn:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.show-more-filters-btn.expanded { background-color: #6c757d !important; border-color: #6c757d !important; }

.filter-group-hidden { will-change: opacity, transform; }

/* Category Tree */
.category-tree { font-size: 13px; }
.category-tree-item { display: flex; align-items: center; margin-bottom: 6px; transition: all 0.2s ease; }
.category-toggle-btn { flex-shrink: 0; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.category-toggle-btn.expanded { transform: rotate(0deg); }
.category-toggle-btn:hover { color: var(--accent-color, #CA000F); }
.category-link { flex: 1; padding: 4px 8px; text-decoration: none; transition: all 0.2s ease; display: inline-block; border-left: 2px solid transparent; }
.category-link:hover { color: var(--accent-color, #CA000F); border-left-color: var(--accent-color, #CA000F); background: #f8f9fa; }
.category-link.active { color: var(--accent-color, #CA000F); font-weight: 600; border-left-color: var(--accent-color, #CA000F); background: #f8f9fa; }
.category-children { transition: all 0.3s ease; }
.category-child { position: relative; }

/* Desktop sticky filters */
@media (min-width: 992px) {
    .filters-sidebar-col { position: sticky; top: 100px; align-self: flex-start; z-index: 10; }
    .filters-sidebar { max-height: calc(100vh - 140px); overflow-y: auto; overflow-x: hidden; }
    .filters-sidebar::-webkit-scrollbar { width: 6px; }
    .filters-sidebar::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 3px; }
    .filters-sidebar::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
    .filters-sidebar::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }
}

/* Products Toolbar */
.products-toolbar { background: #ffffff; border: 1px solid #e5e5e5; border-radius: 0; padding: 20px; margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.toolbar-section { display: flex; align-items: center; gap: 15px; }
.toolbar-info { flex: 1; min-width: 200px; }
.toolbar-controls { flex-wrap: wrap; }
.results-count { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #363f4d; }
.results-count i { color: var(--accent-color, #CA000F); font-size: 18px; }
.results-range { margin-top: 4px; font-size: 12px; color: #6c757d; }

.view-mode-toggle { display: flex; gap: 0; border: 1px solid #e5e5e5; border-radius: 0; overflow: hidden; }
.view-mode-toggle .btn { border-radius: 0; border: none; border-right: 1px solid #e5e5e5; min-width: 44px; height: 38px; transition: all 0.2s ease; background: #ffffff; color: #434343; }
.view-mode-toggle .btn:last-child { border-right: none; }
.view-mode-toggle .btn.btn-primary { background: var(--accent-color, #CA000F); color: white; }
.view-mode-toggle .btn:hover:not(.btn-primary) { background: #f8f9fa; color: var(--accent-color, #CA000F); }

.page-size-selector select, .sort-selector select { min-width: 160px; height: 38px; border: 1px solid #e5e5e5; border-radius: 0; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: all 0.2s ease; background: #ffffff; color: #434343; }
.page-size-selector select:hover, .sort-selector select:hover,
.page-size-selector select:focus, .sort-selector select:focus { border-color: var(--accent-color, #CA000F); outline: none; }

/* Products Grid/List */
.products-container { display: grid; gap: 20px; transition: all 0.3s ease; }
.products-container.products-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.products-container.products-list { grid-template-columns: 1fr; }

.product-card { position: relative; background: #ffffff; border: 1px solid #e5e5e5; border-radius: 0; overflow: hidden; transition: all 0.3s ease; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border-color: var(--accent-color, #CA000F); }
.product-card > a { display: flex; flex-direction: column; flex-grow: 1; }

.product-card-image-wrapper { width: 100%; height: 280px; display: flex; align-items: center; justify-content: center; background: transparent; padding: 20px; box-sizing: border-box; }
.product-card-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.product-card-no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #adb5bd; }
.product-card-no-image i { font-size: 64px; }

.product-card-body { padding: 10px 20px 20px 20px; }
.product-card-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #363f4d; line-height: 1.4; }
.product-card-description { font-size: 13px; color: #6c757d; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.product-card-price { font-size: 20px; font-weight: 700; color: var(--accent-color, #CA000F); }
.product-card-price-old { font-size: 14px; font-weight: 400; color: #999; text-decoration: line-through; }
.product-card-pricing { margin-bottom: 0; }

.product-card:has(.product-card-action) .product-card-body { padding-bottom: 8px; }
.product-card:has(.product-card-action) .product-card-pricing { margin-bottom: 0; }
.product-card:has(.product-card-action) .product-card-stock { margin-top: 4px !important; margin-bottom: 0; }
.product-card-action { padding: 0 20px 15px 20px; margin-top: 0; }

.btn-configure-product { display: block; width: 100%; padding: 12px 20px; background-color: var(--accent-color, #CA000F); color: white; text-align: center; text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; border: 2px solid var(--accent-color, #CA000F); border-radius: 0; transition: all 0.3s ease; }
.btn-configure-product:hover { background-color: var(--accent-color-dark, #a50009); border-color: var(--accent-color-dark, #a50009); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--accent-color-rgb, 202, 0, 15), 0.3); }

.product-card-badge { position: absolute; top: 15px; right: 15px; background: var(--accent-color, #CA000F); color: white; padding: 6px 12px; border-radius: 0; font-size: 12px; font-weight: 600; z-index: 10; text-transform: uppercase; letter-spacing: 0.5px; }
.product-card-badge.sale { background: var(--accent-color, #CA000F); }
.product-card-badge.featured { background: #222222; }

/* CTA card (end of collection) */
.product-card-cta { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: 2px dashed var(--accent-color, #CA000F); min-height: 280px; }
.product-card-cta:hover { border-style: solid; background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.product-card-cta-content { text-align: center; padding: 30px 20px; }
.product-card-cta-icon { font-size: 48px; color: var(--accent-color, #CA000F); margin-bottom: 16px; opacity: 0.8; }
.product-card-cta:hover .product-card-cta-icon { opacity: 1; transform: scale(1.1); transition: all 0.3s ease; }
.product-card-cta-title { font-size: 18px; font-weight: 600; color: #363f4d; margin-bottom: 20px; line-height: 1.4; }
.product-card-cta-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; background-color: var(--accent-color, #CA000F); color: white !important; border: 2px solid var(--accent-color, #CA000F); border-radius: 0; font-size: 14px; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s ease; }
.product-card-cta-btn:hover { background-color: transparent; color: var(--accent-color, #CA000F) !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.products-list .product-card-cta { min-height: 200px; }
.products-list .product-card-cta-content { padding: 40px; }
.products-list .product-card-cta-icon { font-size: 36px; margin-bottom: 12px; }
.products-list .product-card-cta-title { font-size: 20px; }

/* List view */
.products-list .product-card { display: flex; flex-direction: row; height: auto; }
.products-list .product-card-image-wrapper { width: 280px; height: 280px; flex-shrink: 0; }
.products-list .product-card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; }
.products-list .product-card-title { font-size: 20px; margin-bottom: 12px; }
.products-list .product-card-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 15px; }
.products-list .product-card-badge { top: 15px; left: 15px; right: auto; }

/* Pagination */
.pagination-modern { gap: 8px; }
.pagination-modern .page-link { color: #434343; border: 1px solid #e5e5e5; border-radius: 0; padding: 8px 14px; min-width: 44px; text-align: center; transition: all 0.2s ease; font-weight: 500; font-size: 13px; background: #ffffff; }
.pagination-modern .page-link:hover { background: var(--accent-color, #CA000F); color: white; border-color: var(--accent-color, #CA000F); }
.pagination-modern .page-item.active .page-link { background: var(--accent-color, #CA000F); color: white; border-color: var(--accent-color, #CA000F); }
.pagination-modern .page-item.disabled .page-link { background: #f8f9fa; color: #adb5bd; border-color: #e5e5e5; cursor: not-allowed; }
.pagination-modern .page-item.disabled .page-link:hover { background: #f8f9fa; color: #adb5bd; border-color: #e5e5e5; }

/* Price Range Slider */
.price-range-slider { position: relative; height: 40px; margin-bottom: 10px; padding: 0 10px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.range-slider-track { position: absolute; width: calc(100% - 20px); left: 10px; height: 4px; background: #e5e5e5; top: 50%; transform: translateY(-50%); border-radius: 2px; cursor: pointer; z-index: 1; }
.range-slider-fill { position: absolute; height: 4px; background: var(--accent-color, #CA000F); top: 50%; transform: translateY(-50%); z-index: 2; border-radius: 2px; pointer-events: none; }
.range-slider-input { position: absolute; width: calc(100% - 20px); left: 10px; height: 40px; top: 50%; transform: translateY(-50%); background: transparent; -webkit-appearance: none; appearance: none; margin: 0; padding: 0; cursor: pointer; z-index: 10; pointer-events: none; }
.range-slider-input.range-min { z-index: 11; }
.range-slider-input.range-max { z-index: 12; }
.range-slider-input::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.range-slider-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: var(--accent-color, #CA000F); border: 3px solid #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); cursor: grab; pointer-events: auto; margin-top: -8px; border-radius: 2px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.range-slider-input::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 2px 8px rgba(var(--accent-color-rgb, 202, 0, 15), 0.4); }
.range-slider-input:active::-webkit-slider-thumb, .range-slider-input.dragging::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.2); background: var(--accent-color-dark, #a50009); box-shadow: 0 2px 10px rgba(var(--accent-color-rgb, 202, 0, 15), 0.5); }
.range-slider-input::-moz-range-track { height: 4px; background: transparent; border: none; }
.range-slider-input::-moz-range-thumb { width: 20px; height: 20px; background: var(--accent-color, #CA000F); border: 3px solid #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); cursor: grab; pointer-events: auto; border-radius: 2px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.range-slider-input::-moz-range-thumb:hover { transform: scale(1.15); box-shadow: 0 2px 8px rgba(var(--accent-color-rgb, 202, 0, 15), 0.4); }
.range-slider-input:active::-moz-range-thumb, .range-slider-input.dragging::-moz-range-thumb { cursor: grabbing; transform: scale(1.2); background: var(--accent-color-dark, #a50009); box-shadow: 0 2px 10px rgba(var(--accent-color-rgb, 202, 0, 15), 0.5); }
.range-slider-input:focus { outline: none; }
@media (pointer: coarse) {
    .range-slider-input::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; }
    .range-slider-input::-moz-range-thumb { width: 24px; height: 24px; }
    .price-range-slider { height: 48px; }
    .range-slider-input { height: 48px; }
}

/* Form Controls */
.product-list-page .form-control, .product-list-page .form-select { border-radius: 0; border-color: #e5e5e5; font-size: 13px; }
.product-list-page .form-control:focus, .product-list-page .form-select:focus { border-color: var(--accent-color, #CA000F); box-shadow: 0 0 0 0.2rem rgba(var(--accent-color-rgb, 202, 0, 15), 0.1); }
.product-list-page .btn-primary { background: var(--accent-color, #CA000F); border-color: var(--accent-color, #CA000F); border-radius: 0; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; padding: 8px 20px; }
.product-list-page .btn-primary:hover { background: var(--accent-color-dark, #a50009); border-color: var(--accent-color-dark, #a50009); }
.product-list-page .form-check-input { border-radius: 0; }
.product-list-page .form-check-input:checked { background-color: var(--accent-color, #CA000F); border-color: var(--accent-color, #CA000F); }
.product-list-page .form-check-input:focus { border-color: var(--accent-color, #CA000F); box-shadow: 0 0 0 0.2rem rgba(var(--accent-color-rgb, 202, 0, 15), 0.1); }
.product-list-page .badge.bg-light { background: #f8f9fa !important; color: #434343 !important; border: 1px solid #e5e5e5; border-radius: 0; font-weight: 500; font-size: 11px; padding: 4px 8px; }

/* Breadcrumbs */
.product-list-page .breadcrumb, .category-hero .breadcrumb, .collection-hero .breadcrumb,
.solid-dark-breadcrumbs .breadcrumb { font-size: 13px; }
.product-list-page .breadcrumb-item a { color: #434343; }
.product-list-page .breadcrumb-item a:hover { color: var(--accent-color, #CA000F); }
.product-list-page .breadcrumb-item.active { color: #6c757d; }

.category-hero .breadcrumb-item a, .collection-hero .breadcrumb-item a, .solid-dark-breadcrumbs .breadcrumb-item a { color: var(--accent-color, #CA000F) !important; }
.category-hero .breadcrumb-item a:hover, .collection-hero .breadcrumb-item a:hover, .solid-dark-breadcrumbs .breadcrumb-item a:hover { color: #ff1a2e !important; text-decoration: underline; }
.category-hero .breadcrumb-item.active, .collection-hero .breadcrumb-item.active, .solid-dark-breadcrumbs .breadcrumb-item.active { color: white !important; }
.category-hero .breadcrumb-item + .breadcrumb-item::before, .collection-hero .breadcrumb-item + .breadcrumb-item::before, .solid-dark-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.5) !important; }

/* Responsive — tablet */
@media (max-width: 991px) {
    .filters-sidebar-col { position: static; }
    .filters-sidebar { position: relative; top: 0; max-height: none; overflow-y: visible; margin-bottom: 30px; }
    .products-toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-section { width: 100%; justify-content: space-between; }
    .toolbar-controls { justify-content: space-between; }
}

/* Responsive — mobile */
@media (max-width: 767px) {
    .products-container.products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .products-list .product-card { flex-direction: column; }
    .products-list .product-card-image-wrapper { width: 100%; height: 220px; }
    .product-card-image-wrapper { height: 280px; }
    .product-card-body { padding: 10px 12px 6px 12px; }
    .product-card:has(.product-card-action) .product-card-body { padding-bottom: 4px !important; }
    .product-card-title { font-size: 12px; line-height: 1.35; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; word-break: break-word; }
    .product-card-pricing { margin-top: 0; margin-bottom: 0; }
    .product-card-pricing .d-flex { gap: 8px !important; flex-wrap: nowrap !important; align-items: baseline !important; }
    .product-card-price { font-size: 15px; line-height: 1.2; }
    .product-card-price-old { font-size: 12px; line-height: 1.2; }
    .product-card-description { display: none; }
    .product-card-stock { margin-top: 2px !important; margin-bottom: 0 !important; font-size: 11px; }
    .product-card-action { padding: 6px 12px 10px 12px; margin-top: 0; }
    .btn-configure-product { padding: 10px 16px; font-size: 13px; }
    .view-mode-toggle, .page-size-selector, .sort-selector { flex: 1; }
    .view-mode-toggle .btn { flex: 1; }
    .page-size-selector select, .sort-selector select { width: 100%; min-width: auto; }
    .pagination-modern .page-link { padding: 6px 10px; min-width: 38px; font-size: 12px; }
    .pagination-modern .page-link .d-none { display: none !important; }
    .page-size-selector { display: none !important; }
}

.pagination-footer { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.page-info { white-space: nowrap; }

.page-size-mobile { display: none; align-items: center; gap: 0; }
.page-size-select-mobile { width: auto !important; min-width: 52px; padding: 6px 28px 6px 12px !important; font-size: 13px !important; font-weight: 500; height: auto !important; border-radius: 8px; border: 1px solid #e5e5e5; background-color: #f8f9fa; color: #434343; cursor: pointer; transition: all 0.25s ease; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.page-size-select-mobile:hover { border-color: var(--accent-color, #CA000F); background-color: #fff; }
.page-size-select-mobile:focus { outline: none; border-color: var(--accent-color, #CA000F); box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb, 202, 0, 15), 0.1); }
.page-size-label { font-size: 12px; font-weight: 500; color: #666; white-space: nowrap; padding: 6px 10px; background: #f8f9fa; border: 1px solid #e5e5e5; border-left: none; border-radius: 0 8px 8px 0; }
.page-size-select-mobile + .page-size-label { margin-left: -1px; }
.page-size-mobile .page-size-select-mobile { border-radius: 8px 0 0 8px; }

@media (max-width: 767px) {
    .page-size-mobile { display: flex; }
    .pagination-footer { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 480px) {
    .page-size-select-mobile { padding: 5px 24px 5px 10px !important; font-size: 12px !important; min-width: 48px; }
    .page-size-label { font-size: 11px; padding: 5px 8px; }
}

/* MOBILE FILTERS DRAWER */
.btn-mobile-filters { display: none; }
.filters-count-badge { display: none; }
.filters-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 1040; opacity: 0; transition: opacity 0.3s ease; }
.filters-overlay.active { opacity: 1; }
.filters-mobile-header { display: none; }
.filters-desktop-header { display: flex; }
.filters-mobile-footer { display: none; }
.filters-scrollable-content { display: block; position: static; overflow: visible; padding: 0; }

@media (max-width: 991px) {
    .filters-sidebar-col { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9997; margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; }
    .filters-sidebar-col.active { display: block; }
    .filters-sidebar { position: fixed !important; top: 0 !important; left: 0; right: 0; bottom: 0; width: 100% !important; max-width: 100% !important; height: 100vh !important; height: 100dvh !important; max-height: 100vh !important; max-height: 100dvh !important; border-radius: 0 !important; border: none !important; z-index: 9998; overflow: hidden !important; padding: 0 !important; transform: translateX(-100%); transition: transform 0.3s ease; background: #fff; }
    .filters-sidebar-col.active .filters-sidebar { transform: translateX(0); }
    .filters-scrollable-content { display: block !important; position: absolute !important; top: 56px !important; left: 0 !important; right: 0 !important; bottom: 0 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; padding: 20px !important; padding-bottom: 100px !important; }
    .filters-sidebar .filter-form .btn-apply-filters { display: none !important; }
    .filters-mobile-footer { display: flex !important; position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 10000; gap: 12px; padding: 16px; background: #fff; border-top: 1px solid #e5e5e5; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
    .filters-mobile-footer .btn-clear-filters, .filters-mobile-footer .btn-apply-filters { flex: 1; padding: 14px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.2s; text-decoration: none; }
    .filters-mobile-footer .btn-clear-filters { background: #f5f5f5; color: #555; border: 1px solid #ddd; }
    .filters-mobile-footer .btn-clear-filters:hover { background: #e8e8e8; color: #333; }
    .filters-mobile-footer .btn-apply-filters { background: var(--accent-color, #CA000F); color: white; border: none; }
    .filters-mobile-footer .btn-apply-filters:hover { background: var(--accent-color-dark, #a50009); }
    .filters-mobile-header { display: flex !important; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; justify-content: space-between; align-items: center; height: 56px; padding: 0 16px; background: var(--accent-color, #CA000F); color: white; z-index: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
    .filters-mobile-header h5 { color: white; font-size: 16px; font-weight: 600; margin: 0; }
    .filters-mobile-header h5 i { margin-right: 8px; }
    .btn-close-filters { background: transparent; border: none; color: white; font-size: 20px; padding: 8px; cursor: pointer; border-radius: 4px; transition: background 0.2s; }
    .btn-close-filters:hover { background: rgba(255,255,255,0.2); }
    .filters-desktop-header { display: none !important; }
    .filters-overlay.active { display: block; }
    .toolbar-info { display: flex !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; }
    .btn-mobile-filters { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--accent-color, #CA000F); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; line-height: 1.3; text-align: left; flex-shrink: 0; }
    .btn-mobile-filters:hover { background: var(--accent-color-dark, #a50009); }
    .btn-mobile-filters i { font-size: 22px; }
    .btn-mobile-filters span { white-space: nowrap; }
    .filters-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; background: #fff; color: var(--accent-color, #CA000F); font-size: 12px; font-weight: 700; border-radius: 11px; margin-left: 4px; }
}

@media (max-width: 767px) {
    .btn-mobile-filters { padding: 10px 16px; font-size: 13px; gap: 8px; }
    .btn-mobile-filters i { font-size: 20px; }
    .filters-count-badge { min-width: 20px; height: 20px; font-size: 11px; }
    .toolbar-controls { flex-wrap: wrap; gap: 8px !important; }
    .view-mode-selector, .sort-selector { flex: 1; min-width: calc(50% - 4px); }
}

@media (max-width: 480px) {
    .btn-mobile-filters { padding: 8px 14px; font-size: 12px; gap: 7px; }
    .btn-mobile-filters i { font-size: 18px; }
    .filters-count-badge { min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
    .products-container.products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card-image-wrapper { height: 220px; }
    .product-card-body { padding: 8px 10px 4px 10px; }
    .product-card:has(.product-card-action) .product-card-body { padding-bottom: 2px !important; }
    .product-card-title { font-size: 11px; min-height: 42px; margin-bottom: 3px; -webkit-line-clamp: 3; }
    .product-card-price { font-size: 13px; }
    .product-card-price-old { font-size: 10px; }
    .product-card-action { padding: 4px 10px 8px 10px; }
    .btn-configure-product { font-size: 11px; padding: 8px 10px; }
}
