/* ============================================
   PRODUCTS PAGE REDESIGN - DEFAULT THEME
   Modern, Clean, and User-Friendly Design
   ============================================ */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Page Header */
.search-page-header {
    background: white;
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
}

.search-page-header__left h5 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.3;
}

.products-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.products-count-badge i {
    font-size: 16px;
}

.view-page-item-count {
    font-weight: 700;
}

/* Modern Sorting Dropdown */
.sorting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.sorting-item:hover {
    border-color: var(--web-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sorting-item select {
    border: none;
    background: transparent;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    outline: none;
    min-width: 150px;
}

.sorting-item svg {
    flex-shrink: 0;
}

.for-sorting {
    font-weight: 600;
    color: #6c757d;
    margin: 0;
}

/* Filter Button Mobile */
.filter-show-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px !important;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.filter-show-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   VIEW TOGGLE BUTTONS (Grid/List)
   ============================================ */

.view-toggle-buttons {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 4px;
    display: flex;
    gap: 4px;
}

.view-toggle-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    color: #6c757d;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn:hover {
    background: #f8f9fa;
    color: var(--web-primary, #007bff);
}

.view-toggle-btn.active {
    background: var(--web-primary, #007bff);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.view-toggle-btn i {
    pointer-events: none;
}

/* ============================================
   ACTIVE FILTERS BAR
   ============================================ */

.active-filters-bar {
    display: none;
    background: white;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.active-filters-bar.show {
    display: flex;
}

.active-filters-label {
    font-weight: 700;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e7f3ff;
    color: var(--web-primary, #007bff);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.active-filter-tag:hover {
    background: #cce5ff;
}

.active-filter-tag .remove-filter {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
}

.active-filter-tag .remove-filter:hover {
    opacity: 1;
}

.clear-all-filters {
    margin-left: auto;
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.clear-all-filters:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.products-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.products-loading-overlay.show {
    display: flex;
}

.products-loader {
    text-align: center;
}

.products-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.products-loader p {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   SIDEBAR FILTERS - MODERN DESIGN
   ============================================ */

.cz-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.cz-sidebar-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.cz-sidebar-header h6 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.shop-sidebar-scroll {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
}

.shop-sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.shop-sidebar-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.shop-sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--web-primary);
    border-radius: 10px;
}

.shop-sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Filter Sections */
.cz-sidebar .d-flex.gap-3.flex-column > div {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cz-sidebar .d-flex.gap-3.flex-column > div:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.cz-sidebar h6 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cz-sidebar h6::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--web-primary);
    border-radius: 2px;
}

/* Custom Select Styling */
.cz-sidebar select.form-control {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    color: #495057;
    background: white;
    transition: all 0.3s ease;
}

.cz-sidebar select.form-control:focus {
    border-color: var(--web-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Price Range Inputs */
.cz-filter-search {
    border: 2px solid #dee2e6 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.cz-filter-search:focus {
    border-color: var(--web-primary) !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1) !important;
}

.__number-filter-btn {
    width: 44px;
    height: 44px;
    background: var(--web-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.__number-filter-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.__number-filter-btn a {
    color: white;
    font-size: 18px;
}

/* Category Accordion */
.product-categories-list .menu--caret-accordion {
    margin-bottom: 8px;
}

.product-categories-list .card-header {
    background: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-categories-list .card-header:hover {
    background: #f8f9fa;
}

.product-categories-list .for-hover-label {
    font-weight: 600;
    color: #495057;
    transition: color 0.3s ease;
}

.product-categories-list .for-hover-label:hover {
    color: var(--web-primary);
}

.product-categories-list .menu--caret i {
    transition: transform 0.3s ease;
}

.product-categories-list .menu--caret.active i {
    transform: rotate(90deg);
}

/* Brand Checkboxes */
.brand-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-checkbox-item:hover {
    background: white;
}

.brand-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--web-primary);
}

.brand-checkbox-item label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #495057;
}

/* Rating Filter */
.rating-filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rating-filter-item:hover {
    background: white;
}

.rating-filter-item input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--web-primary);
}

.rating-filter-item .stars {
    display: flex;
    gap: 2px;
}

.rating-filter-item .stars i {
    font-size: 16px;
    color: #ffc107;
}

/* ============================================
   QUICK FILTER BUTTONS
   ============================================ */

.quick-filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

.quick-filter-btn i {
    font-size: 20px;
    color: var(--web-primary, #007bff);
}

.quick-filter-btn:hover {
    background: var(--web-primary, #007bff);
    border-color: var(--web-primary, #007bff);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.quick-filter-btn:hover i {
    color: white;
}

.quick-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.quick-filter-btn.active i {
    color: white;
}

/* ============================================
   PRICE RANGE FILTER
   ============================================ */

.price-range-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 16px;
    border-radius: 10px;
    color: white;
}

.price-range-value {
    font-weight: 700;
    font-size: 16px;
}

.quick-price-ranges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-price-btn {
    width: 100%;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    text-align: left;
}

.quick-price-btn:hover {
    background: #e7f3ff;
    border-color: var(--web-primary, #007bff);
    color: var(--web-primary, #007bff);
    transform: translateX(4px);
}

.quick-price-btn.active {
    background: var(--web-primary, #007bff);
    border-color: var(--web-primary, #007bff);
    color: white;
}

/* ============================================
   COLOR FILTER
   ============================================ */

.color-filter-options {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.color-filter-options::-webkit-scrollbar {
    width: 6px;
}

.color-filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.color-filter-options::-webkit-scrollbar-thumb {
    background: var(--web-primary, #007bff);
    border-radius: 10px;
}

.color-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-filter-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: translateX(4px);
}

.color-filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--web-primary, #007bff);
}

.color-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-filter-item:hover .color-box {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-filter-item input[type="checkbox"]:checked ~ .color-box {
    border-color: var(--web-primary, #007bff);
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.color-name {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.color-filter-item input[type="checkbox"]:checked ~ .color-name {
    color: var(--web-primary, #007bff);
    font-weight: 600;
}

/* White color special styling */
.color-box[style*="#FFFFFF"],
.color-box[style*="#ffffff"] {
    border-color: #dee2e6;
}

/* ============================================
   FILTER SECTION HEADERS
   ============================================ */

.cz-sidebar h6 i {
    margin-right: 8px;
    color: var(--web-primary, #007bff);
}

/* ============================================
   PRODUCT CARD REDESIGN - PROMINENT BUTTONS
   ============================================ */

.product-single-hover {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-single-hover:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.product-single-hover .inline_product {
    position: relative;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 16px 16px 0 0;
}

.product-single-hover .inline_product img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-single-hover:hover .inline_product img {
    transform: scale(1.1);
}

/* Discount Badge */
.for-discount-value {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    z-index: 10;
}

/* Quick View Button */
.quick-view {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.product-single-hover:hover .quick-view {
    opacity: 1;
    transform: translateY(0);
}

.quick-view .btn-circle {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.quick-view .btn-circle:hover {
    background: var(--web-primary);
    color: white;
    transform: scale(1.1);
}

.quick-view .btn-circle i {
    font-size: 20px;
}

/* Out of Stock Badge */
.out_fo_stock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    z-index: 10;
}

/* Product Details Section */
.single-product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Rating */
.rating-show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-show i {
    font-size: 16px;
}

.rating-show .badge-style {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Product Name */
.single-product-details .text-center a {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 42px;
    transition: color 0.3s ease;
}

.single-product-details .text-center a:hover {
    color: var(--web-primary);
}

/* Product Price */
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--web-primary);
    margin-top: auto;
}

.product-price del {
    font-size: 16px;
    color: #999;
    font-weight: 500;
}

.product-price .text-accent {
    color: var(--web-primary) !important;
}

/* ============================================
   PROMINENT ACTION BUTTONS
   ============================================ */

.product-action-buttons {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
}

.btn-add-to-cart {
    flex: 1;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #218838, #1aa179);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-add-to-cart i {
    font-size: 18px;
}

.btn-buy-now {
    flex: 1;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    cursor: pointer;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #ee5a6f, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-buy-now i {
    font-size: 18px;
}

/* Quick Add Button (for products without variations) */
.btn-quick-add {
    width: 100%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    cursor: pointer;
}

.btn-quick-add:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Wishlist Button */
.btn-wishlist {
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-wishlist:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
    transform: scale(1.05);
}

.btn-wishlist i {
    font-size: 20px;
}

.btn-wishlist.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

/* ============================================
   PRODUCT GRID/LIST LAYOUT
   ============================================ */

.products-view-container {
    position: relative;
    min-height: 400px;
}

/* Grid View */
#ajax-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0;
    transition: all var(--transition-speed) ease;
}

/* List View */
.products-view-container[data-view="list"] #ajax-products {
    grid-template-columns: 1fr;
    gap: 20px;
}

.products-view-container[data-view="list"] .product-single-hover {
    display: flex;
    flex-direction: row;
    max-width: 100%;
}

.products-view-container[data-view="list"] .product-single-hover .inline_product {
    flex: 0 0 250px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.products-view-container[data-view="list"] .product-single-hover .single-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.products-view-container[data-view="list"] .product-single-hover .product-action-buttons {
    border-top: none;
    border-left: 2px solid #e9ecef;
    flex-direction: column;
    padding: 24px;
}

.products-view-container[data-view="list"] .product-single-hover .single-product-details .text-center {
    text-align: left !important;
}

.products-view-container[data-view="list"] .product-single-hover .single-product-details .rating-show {
    justify-content: flex-start;
}

.products-view-container[data-view="list"] .product-single-hover .single-product-details .text-center a {
    font-size: 20px;
    min-height: auto;
}

.products-view-container[data-view="list"] .btn-add-to-cart,
.products-view-container[data-view="list"] .btn-quick-add {
    width: 100%;
}

/* Responsive Grid */
@media (min-width: 1400px) {
    #ajax-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    #ajax-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    #ajax-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .products-view-container[data-view="list"] .product-single-hover {
        flex-direction: column;
    }
    
    .products-view-container[data-view="list"] .product-single-hover .inline_product {
        flex: 1;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .products-view-container[data-view="list"] .product-single-hover .product-action-buttons {
        border-left: none;
        border-top: 2px solid #e9ecef;
        flex-direction: row;
        padding: 16px;
    }
}

@media (max-width: 576px) {
    #ajax-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-single-hover .inline_product img {
        height: 180px;
    }

    .btn-add-to-cart,
    .btn-buy-now,
    .btn-quick-add {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .products-view-container[data-view="list"] #ajax-products {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PAGINATION STYLING
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.pagination .page-link:hover {
    background: var(--web-primary);
    border-color: var(--web-primary);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--web-primary);
    border-color: var(--web-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   EMPTY STATE STYLING
   ============================================ */

.products-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.products-empty-state .empty-state-icon {
    font-size: 120px;
    color: #e9ecef;
    margin-bottom: 24px;
    animation: empty-float 3s ease-in-out infinite;
}

.products-empty-state .empty-state-icon i {
    display: inline-block;
}

.products-empty-state h4 {
    font-size: 24px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 12px;
}

.products-empty-state p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 24px;
}

.products-empty-state .btn-browse-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.products-empty-state .btn-browse-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

@keyframes empty-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   SKELETON LOADING ANIMATION
   ============================================ */

.product-skeleton {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.product-skeleton .skeleton-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.product-skeleton .skeleton-content {
    padding: 20px;
}

.product-skeleton .skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-skeleton .skeleton-line.short {
    width: 60%;
}

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

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .search-page-header {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-page-header__left h5 {
        font-size: 22px;
    }
    
    .search-page-header__right {
        justify-content: space-between;
        width: 100%;
    }

    .cz-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        border-radius: 0;
        overflow-y: auto;
    }

    .cz-sidebar.show {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .sorting-item {
        padding: 10px 16px;
    }

    .sorting-item select {
        min-width: 120px;
        font-size: 14px;
    }

    .product-action-buttons {
        flex-direction: column;
    }

    .btn-add-to-cart,
    .btn-buy-now {
        width: 100%;
    }
    
    .products-count-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .active-filters-bar {
        padding: 12px 16px;
    }
}

@media (max-width: 576px) {
    .search-page-header {
        padding: 16px;
    }
    
    .search-page-header__left h5 {
        font-size: 18px;
    }
    
    .products-empty-state {
        padding: 60px 20px;
    }
    
    .products-empty-state img {
        width: 150px;
    }
    
    .products-empty-state h4 {
        font-size: 20px;
    }
    
    .products-empty-state p {
        font-size: 14px;
    }
}
