/**
 * WooCommerce AJAX Filters
 * Version: 1.1.0
 * Complete Stylesheet
 */

/* ============================================
   FILTER SIDEBAR
   ============================================ */

/* Filter Container */
#ajax-product-filters {
    background: #fff;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Search Box */
.ajax-filter-search {
    margin-bottom: 20px;
}

.ajax-filter-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ajax-filter-search-wrapper {
    display: flex;
    gap: 8px;
}

#ajax-filter-keyword {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

#ajax-filter-keyword:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ajax-search-btn {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.ajax-search-btn:hover {
    background: #555;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ajax-search-btn:active {
    transform: translateY(0);
}

/* Filter Groups */
.ajax-filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 15px;
}

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

.ajax-filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
    transition: color 0.2s;
}

.ajax-filter-title:hover {
    color: #3498db;
}

.ajax-filter-toggle {
    font-size: 20px;
    line-height: 1;
    color: #999;
    font-weight: 400;
    transition: transform 0.2s;
}

.ajax-filter-items {
    padding-top: 10px;
    display: none;
}

.ajax-filter-items label {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    border-radius: 3px;
    margin: 0 -5px;
    padding: 8px 5px;
}

.ajax-filter-items label:hover {
    color: #333;
    background: #f8f8f8;
}

.ajax-filter-items input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.ajax-filter-label {
    flex: 1;
}

.ajax-filter-count {
    color: #999;
    font-size: 13px;
    margin-left: 5px;
}


/* ============================================
   PRODUCTS TOOLBAR
   ============================================ */

.ajax-products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f8f8;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.ajax-products-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.ajax-products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ajax-products-sort label {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.ajax-products-sort select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    transition: border-color 0.2s;
}

.ajax-products-sort select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ajax-products-sort select:hover {
    border-color: #999;
}


/* ============================================
   ACTIVE FILTERS DISPLAY
   ============================================ */

.ajax-active-filters {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.active-filters-header strong {
    font-size: 14px;
    color: #333;
}

.clear-all-btn {
    padding: 6px 14px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.clear-all-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.clear-all-btn:active {
    transform: translateY(0);
}

#ajax-active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #3498db;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.active-filter strong {
    font-weight: 600;
}

.active-filter .remove-filter {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.active-filter .remove-filter:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}


/* ============================================
   PRODUCTS GRID
   ============================================ */

.ajax-products-grid {
    position: relative;
    min-height: 200px;
}

.ajax-products-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.ajax-products-loading p {
    font-size: 16px;
    margin: 0;
}

/* Custom Product Grid */
.ajax-custom-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Loading State - Fade Effect */
.ajax-products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.ajax-products-grid.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}


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

.ajax-pagination {
    margin-top: 40px;
    text-align: center;
}

.ajax-pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ajax-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ajax-pagination .page-numbers:hover {
    background: #f5f5f5;
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ajax-pagination .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
    cursor: default;
    pointer-events: none;
}

.ajax-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
}

.ajax-pagination .page-numbers.prev,
.ajax-pagination .page-numbers.next {
    font-weight: 600;
}


/* ============================================
   LOAD MORE BUTTON
   ============================================ */

.ajax-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.ajax-load-more-btn {
    padding: 14px 40px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ajax-load-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ajax-load-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.ajax-load-more-btn:hover:not(:disabled) {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ajax-load-more-btn:active:not(:disabled) {
    transform: translateY(0);
}

.ajax-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #999;
}


/* ============================================
   LOADING OVERLAY & SPINNER
   ============================================ */

.ajax-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.ajax-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: ajax-spin 0.8s linear infinite;
}

@keyframes ajax-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ============================================
   CUSTOM PRODUCT CARDS (for custom templates)
   ============================================ */

.custom-product-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.custom-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #ddd;
}

.custom-product-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.custom-product-image::before {
    content: '';
    display: block;
    padding-top: 100%; /* Square aspect ratio */
}

.custom-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.custom-product-card:hover .custom-product-image img {
    transform: scale(1.08);
}

.custom-product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-product-title {
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.4;
    min-height: 44px;
}

.custom-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.custom-product-title a:hover {
    color: #3498db;
}

.custom-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.custom-product-price del {
    opacity: 0.5;
    font-size: 16px;
    margin-right: 8px;
}

.custom-product-price ins {
    text-decoration: none;
    color: #27ae60;
}

.custom-product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.custom-product-meta {
    margin-bottom: 15px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.custom-product-meta .badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.sale {
    background: #e74c3c;
    color: #fff;
}

.badge.out-of-stock {
    background: #95a5a6;
    color: #fff;
}

.badge.featured {
    background: #f39c12;
    color: #fff;
}

.custom-product-actions {
    margin-top: auto;
}

.custom-product-actions .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.custom-product-actions .button:hover {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .ajax-custom-products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    #ajax-product-filters {
        padding: 15px;
    }

    .ajax-products-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 15px;
    }

    .ajax-products-count {
        text-align: center;
    }

    .ajax-products-sort {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ajax-products-sort label {
        text-align: center;
    }

    .ajax-products-sort select {
        width: 100%;
    }

    .ajax-filter-search-wrapper {
        flex-direction: column;
    }

    .ajax-search-btn {
        width: 100%;
    }

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

    .ajax-active-filters {
        padding: 15px;
    }

    .active-filters-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .clear-all-btn {
        width: 100%;
    }

    .ajax-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

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

    .custom-product-info {
        padding: 15px;
    }

    .ajax-load-more-btn {
        width: 100%;
        padding: 12px 20px;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .ajax-filters-overlay,
    .ajax-filter-search,
    .ajax-products-toolbar,
    .ajax-active-filters,
    .ajax-pagination,
    .ajax-load-more-wrapper {
        display: none !important;
    }
}


/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
    /* Example:
    #ajax-product-filters {
        background: #1a1a1a;
        border-color: #333;
        color: #e1e1e1;
    }
    */
}


/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus styles for keyboard navigation */
#ajax-filter-keyword:focus,
.ajax-search-btn:focus,
.ajax-products-sort select:focus,
.clear-all-btn:focus,
.ajax-load-more-btn:focus,
.ajax-pagination .page-numbers:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ajax-filter-items label:hover {
        background: #000;
        color: #fff;
    }
    
    .ajax-pagination .page-numbers.current {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* ============================================
   PRICE RANGE SLIDER
   ============================================ */

.ajax-filter-price {
    margin-bottom: 20px;
}

.price-slider-wrapper {
    padding: 15px 0;
}

.price-slider-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.price-slider {
    height: 8px;
    background: #e1e1e1;
    border-radius: 4px;
    margin: 10px 0;
    position: relative;
}

/* noUiSlider overrides to match your design */
.price-slider .noUi-connect {
    background: #3498db;
}

.price-slider .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #3498db;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    top: -6px;
}

.price-slider .noUi-handle:before,
.price-slider .noUi-handle:after {
    display: none;
}

.price-slider .noUi-handle:hover {
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.price-slider .noUi-handle:active {
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.4);
}

/* Focus state for accessibility */
.price-slider .noUi-handle:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}


/* ============================================
   STOCK STATUS FILTER
   ============================================ */

.ajax-filter-stock {
    margin-bottom: 20px;
}

.ajax-filter-stock .ajax-filter-items label {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    border-radius: 3px;
}

.ajax-filter-stock .ajax-filter-items label:hover {
    color: #333;
    background: #f8f8f8;
}

.ajax-filter-stock input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.ajax-filter-stock input[type="radio"]:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}


/* ============================================
   QUICK VIEW MODAL
   ============================================ */

.ajax-quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.ajax-quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    backdrop-filter: blur(3px);
}

.ajax-quick-view-content {
    position: relative;
    background: white;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ajax-quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e1e1e1;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.ajax-quick-view-close:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: rotate(90deg);
}

.ajax-quick-view-inner {
    padding: 40px;
}

.ajax-quick-view-loading,
.ajax-quick-view-error {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.ajax-quick-view-error {
    color: #e74c3c;
}

/* Quick View Product Layout */
.ajax-quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ajax-quick-view-images {
    position: relative;
}

.ajax-quick-view-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ajax-quick-view-summary h2 {
    margin: 0 0 15px;
    font-size: 28px;
    color: #333;
    line-height: 1.3;
}

.ajax-quick-view-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.ajax-quick-view-price del {
    opacity: 0.5;
    font-size: 20px;
    margin-right: 8px;
}

.ajax-quick-view-price ins {
    text-decoration: none;
    color: #27ae60;
}

.ajax-quick-view-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.ajax-quick-view-meta {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.ajax-quick-view-meta .stock {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.ajax-quick-view-meta .in-stock {
    background: #d4edda;
    color: #155724;
}

.ajax-quick-view-meta .out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.ajax-quick-view-actions {
    margin-top: 20px;
}

.ajax-quick-view-actions .button,
.ajax-quick-view-actions .single_add_to_cart_button {
    display: inline-block;
    padding: 14px 32px;
    background: #333;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ajax-quick-view-actions .button:hover,
.ajax-quick-view-actions .single_add_to_cart_button:hover {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ajax-quick-view-actions .button:active,
.ajax-quick-view-actions .single_add_to_cart_button:active {
    transform: translateY(0);
}

/* Quick View Button on Product Cards */
.ajax-quick-view-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-top: 10px;
}

.ajax-quick-view-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.ajax-quick-view-btn:active {
    transform: translateY(0);
}

/* Responsive Quick View */
@media (max-width: 768px) {
    .ajax-quick-view-product {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ajax-quick-view-inner {
        padding: 30px 20px;
    }

    .ajax-quick-view-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .ajax-quick-view-summary h2 {
        font-size: 22px;
    }

    .ajax-quick-view-price {
        font-size: 20px;
    }

    .ajax-quick-view-content {
        width: 95%;
        max-height: 95vh;
    }
}


/* ============================================
   STOCK BADGES ON PRODUCT CARDS
   ============================================ */

.product-stock-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-stock-status.instock,
.product-stock-status.in-stock {
    background: #d4edda;
    color: #155724;
}

.product-stock-status.outofstock,
.product-stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-stock-status.onbackorder,
.product-stock-status.on-backorder {
    background: #fff3cd;
    color: #856404;
}

/* Stock badge with icon (optional enhancement) */
.product-stock-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.product-stock-status.instock::before,
.product-stock-status.in-stock::before {
    background: #28a745;
}

.product-stock-status.outofstock::before,
.product-stock-status.out-of-stock::before {
    background: #dc3545;
}

.product-stock-status.onbackorder::before,
.product-stock-status.on-backorder::before {
    background: #ffc107;
}


/* ============================================
   ACCESSIBILITY ADDITIONS
   ============================================ */

/* Focus states for new elements */
.ajax-quick-view-close:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.ajax-quick-view-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* ============================================
   PRINT ADDITIONS
   ============================================ */

@media print {
    .ajax-quick-view-modal,
    .ajax-quick-view-btn,
    .product-stock-status {
        display: none !important;
    }
}


/* ============================================
   REDUCED MOTION ADDITIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .ajax-quick-view-modal,
    .ajax-quick-view-content {
        animation: none !important;
    }
    
    .ajax-quick-view-close:hover {
        transform: none;
    }
}


/* ============================================
   DARK MODE ADDITIONS (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .ajax-quick-view-content {
        background: #1a1a1a;
        color: #e1e1e1;
    }
    
    .ajax-quick-view-summary h2 {
        color: #e1e1e1;
    }
    
    .ajax-quick-view-close {
        background: #333;
        border-color: #555;
        color: #e1e1e1;
    }
    
    .ajax-quick-view-close:hover {
        background: #e74c3c;
        color: white;
    }
    
    .price-slider .noUi-handle {
        background: #333;
    }
}