/**
 * Stuller Ring Settings - Base Styles
 * 
 * Reset styles, typography, and foundational CSS
 */

/* Reset and Base Styles */
.ringsetting-ring-search *,
.ringsetting-ring-detail * {
    box-sizing: border-box;
}

.ringsetting-ring-search,
.ringsetting-ring-detail {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #6b7280;
}

/* Base Container */
.ringsetting-ring-search,
.ringsetting-ring-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
}

/* Typography */
.ringsetting-ring-search h1,
.ringsetting-ring-search h2,
.ringsetting-ring-search h3,
.ringsetting-ring-detail h1,
.ringsetting-ring-detail h2,
.ringsetting-ring-detail h3 {
    color: #4b5563;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.ringsetting-ring-search h3,
.ringsetting-ring-detail h3 {
    font-size: 1.5rem;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Base Button Styles */
.ringsetting-button,
.button {
    padding: 14px 28px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ringsetting-button:hover,
.button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    text-decoration: none;
    color: white;
}

.ringsetting-button:focus,
.button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ringsetting-button:disabled,
.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Secondary Button */
.ringsetting-button.secondary,
.button.secondary {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.ringsetting-button.secondary:hover,
.button.secondary:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
}

/* Loading States */
.ringsetting-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ringsetting-spinner {
    width: 48px;
    aspect-ratio: 1;
    background: #6366f1;
    mask-size: 50% 50%;
    mask-repeat: no-repeat;
    animation: stuller-loader 2s infinite linear;
    margin: 0 auto 20px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

@keyframes stuller-loader {
    90%, 100% { background-size: 100% 100%; }
}

/* Legacy animation for backwards compatibility */
@keyframes stuller-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ringsetting-loading-text {
    text-align: center;
    padding: 60px 20px;
}

/* Global Loading Overlay */
.ringsetting-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Error and Success Messages */
.ringsetting-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 16px;
}

.ringsetting-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-bottom: 16px;
}

.ringsetting-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
    margin-bottom: 16px;
}

.ringsetting-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #bee5eb;
    margin-bottom: 16px;
}

/* Notification Styles */
.ringsetting-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 6px;
    color: white;
    z-index: 10000;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ringsetting-notification.info {
    background: #3b82f6;
}

.ringsetting-notification.success {
    background: #10b981;
}

.ringsetting-notification.error {
    background: #ef4444;
}

.ringsetting-notification.warning {
    background: #f59e0b;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

/* Modal Styles */
.ringsetting-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ringsetting-modal {
    background: white;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #374151;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

/* Responsive Base Styles */
@media (max-width: 768px) {
    .ringsetting-ring-search,
    .ringsetting-ring-detail {
        padding: 16px;
    }
    
    .ringsetting-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .ringsetting-modal {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .ringsetting-ring-search,
    .ringsetting-ring-detail {
        padding: 12px;
    }
    
    .ringsetting-button,
    .button {
        padding: 12px 20px;
        font-size: 13px;
    }
} 
/**
 * Stuller Ring Settings - Filters Component
 * 
 * Styles for search filters, shape selection, sorting, and filter controls
 */

/* Search Interface Container */
.ringsetting-filters {
    background: #ffffff;
    border: 1px solid #e8ecef;
    border-radius: 0;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ringsetting-filters h3 {
    margin: 0 0 28px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b5563;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Filter Layout */
.ringsetting-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.ringsetting-filter-group {
    display: flex;
    flex-direction: column;
}

.ringsetting-filter-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Metal, Style, and Price grouped together - Desktop only */
.desktop-filters .metal-style-group {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-column: 1 / -1; /* Span full width */
    gap: 12px;
    align-items: end;
}

/* Form Controls */
.ringsetting-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #ffffff;
    color: #333;
    width: 100%;
    /* Remove all custom styling that might interfere */
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.ringsetting-filter-group input[type="text"],
.ringsetting-filter-group input[type="number"] {
    padding: 8px 20px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #ffffff;
    color: #333;
}

.ringsetting-filter-group select:focus,
.ringsetting-filter-group input:focus {
    outline: none;
    border-color: rgb(153, 120, 222);
    box-shadow: 0 0 0 2px rgba(153, 120, 222, 0.1);
}

/* Price Range Filters */
.ringsetting-price-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ringsetting-price-range input {
    flex: 1;
}

.ringsetting-price-range span {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
}

/* WB Price Filter - Inline with other filters */
.wb_price-filter-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.wb_price-buttons-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
}

/* Allow wrapping on mobile for better fit */
@media (max-width: 768px) {
    .ringsetting-mobile-filter-overlay .wb_price-buttons-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.wb_price-btn {
    padding: 5px 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    height: 36px;
    display: flex;
    align-items: center;
}

.wb_price-btn:not(.selected):hover {
    border-color: rgb(153, 120, 222);
    background: #fafaff;
    color: rgb(153, 120, 222);
    box-shadow: 0 4px 12px rgba(153, 120, 222, 0.15);
    transform: translateY(-1px);
}

.wb_price-btn.selected {
    background: rgb(153, 120, 222);
    border-color: rgb(153, 120, 222);
    color: white;
    box-shadow: 0 4px 12px rgba(153, 120, 222, 0.25);
    transform: translateY(-1px);
}

.wb_price-btn.selected:hover {
    background: rgb(133, 100, 202);
    border-color: rgb(133, 100, 202);
}

/* Shape Filter Grid */
.shape-filter-group {
    /* Remove full width span to allow metal-style-group on same row */
}

.shape-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.shape-filter-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.shape-filter-option:hover {
    border-color: rgb(153, 120, 222);
    background: #fafaff;
    box-shadow: 0 8px 25px rgba(153, 120, 222, 0.15);
    transform: translateY(-3px);
}

.shape-filter-option.active {
    border-color: rgb(153, 120, 222);
    background: #f8faff;
    box-shadow: 0 8px 25px rgba(153, 120, 222, 0.25);
    transform: translateY(-2px);
}

.shape-filter-option .shape-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    filter: brightness(0) saturate(100%) invert(45%) sepia(8%) saturate(673%) hue-rotate(202deg) brightness(91%) contrast(88%);
    transition: all 0.3s ease;
}

.shape-filter-option:hover .shape-icon,
.shape-filter-option.active .shape-icon {
    filter: brightness(0) saturate(100%) invert(62%) sepia(73%) saturate(2571%) hue-rotate(225deg) brightness(95%) contrast(91%);
    transform: scale(1.05);
}

/* Special styling for the "All Shapes" SVG icon */
.shape-filter-option .all-shapes svg {
    width: 40px;
    height: 40px;
    fill: #666;
    transition: fill 0.2s ease;
}

.shape-filter-option:hover .all-shapes svg,
.shape-filter-option.active .all-shapes svg {
    fill: #007cba;
}

.shape-filter-option .shape-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.shape-filter-option:hover .shape-label,
.shape-filter-option.active .shape-label {
    color: rgb(153, 120, 222);
    transform: translateY(-1px);
}

/* Sorting and Results Controls */
.ringsetting-sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ringsetting-sort-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ringsetting-sort-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ringsetting-sort-group label {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.9rem;
}

.ringsetting-sort-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: white;
    color: #333;
    font-size: 14px;
    /* Use native browser styling */
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.ringsetting-results-count {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

.ringsetting-results-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Results meta with reset button on the right */
.ringsetting-results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ringsetting-results-count {
    flex: 1;
}

.ringsetting-results-actions {
    flex-shrink: 0;
}

/* Desktop Reset Button - After results count */
.desktop-reset-filters-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(153, 120, 222, 0.2);
    cursor: pointer;
    font-size: 11px;
    color: rgba(153, 120, 222, 0.7);
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 0;
}

.desktop-reset-filters-btn:hover {
    background: rgba(153, 120, 222, 0.05);
    color: rgb(153, 120, 222);
    border-color: rgba(153, 120, 222, 0.4);
}

.desktop-reset-filters-btn:active {
    transform: scale(0.98);
}

.desktop-reset-filters-btn .reset-icon {
    width: 12px;
    height: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Reset Filters Button */
.ringsetting-reset-filters {
    display: flex;
    align-items: center;
}

.reset-filters-button {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
}

.reset-filters-button:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
}

.reset-filters-button:active {
    background: #d1d5db;
}

/* Clear Filters (from no results) */
.clear-filters {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}

.clear-filters:hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

/* WB Price Filter - Responsive - Touch Friendly */
@media (max-width: 768px) {
    .ringsetting-mobile-filter-overlay .wb_price-buttons-container {
        gap: 8px;
        justify-content: center;
    }
    
    .ringsetting-mobile-filter-overlay .wb_price-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px; /* Touch-friendly height */
        border-radius: 0;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .ringsetting-mobile-filter-overlay .wb_price-btn:not(.selected):hover {
        border-color: rgb(153, 120, 222);
        background: #fafaff;
        color: rgb(153, 120, 222);
        box-shadow: 0 4px 12px rgba(153, 120, 222, 0.15);
        transform: translateY(-1px);
    }
    
    .ringsetting-mobile-filter-overlay .wb_price-btn.selected {
        background: rgb(153, 120, 222) !important;
        border-color: rgb(153, 120, 222) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(153, 120, 222, 0.25) !important;
        transform: translateY(-1px);
    }
    
    .ringsetting-mobile-filter-overlay .wb_price-btn.selected:hover {
        background: rgb(133, 100, 202) !important;
        border-color: rgb(133, 100, 202) !important;
    }
}

@media (max-width: 480px) {
    .ringsetting-mobile-filter-overlay .wb_price-btn {
        padding: 14px 18px;
        font-size: 14px;
        min-height: 48px; /* Extra touch-friendly for small screens */
        border-radius: 0;
    }
    
    .ringsetting-mobile-filter-overlay .wb_price-btn.selected {
        background: rgb(153, 120, 222) !important;
        border-color: rgb(153, 120, 222) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(153, 120, 222, 0.25) !important;
        transform: translateY(-1px);
    }
    
    .ringsetting-mobile-filter-overlay .wb_price-btn.selected:hover {
        background: rgb(133, 100, 202) !important;
        border-color: rgb(133, 100, 202) !important;
    }
}

/* Responsive Shape Filter */
@media (max-width: 768px) {
    .ringsetting-filter-row {
        grid-template-columns: 1fr;
    }
    
    .ringsetting-sorting {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .ringsetting-results-meta {
        justify-content: space-between;
    }
    
    .shape-filter-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .shape-filter-option {
        padding: 8px 4px;
        min-height: 75px;
    }
    
    .shape-filter-option .shape-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 4px;
    }
    
    .shape-filter-option .all-shapes svg {
        width: 32px;
        height: 32px;
    }
    
    .shape-filter-option .shape-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .ringsetting-filters {
        padding: 16px;
    }
    
    .metal-style-group {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .shape-filter-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .shape-filter-option {
        padding: 6px 2px;
        min-height: 65px;
    }
    
    .shape-filter-option .shape-icon {
        width: 28px;
        height: 28px;
    }
    
    .shape-filter-option .all-shapes svg {
        width: 28px;
        height: 28px;
    }
    
    .shape-filter-option .shape-label {
        font-size: 9px;
    }
} 
/**
 * Stuller Ring Settings - Pagination Component
 * 
 * Styles for pagination, page navigation, and related controls
 */

/* Pagination Container */
.ringsetting-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    margin-bottom: 24px;
}

/* Page Numbers */
.ringsetting-pagination .page-numbers,
.ringsetting-pagination .pagination-link {
    padding: 12px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #ffffff;
    min-width: 44px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}

.ringsetting-pagination .page-numbers:hover,
.ringsetting-pagination .pagination-link:hover,
.ringsetting-pagination .page-numbers.current,
.ringsetting-pagination .pagination-link.current {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

/* Previous/Next Buttons */
.ringsetting-pagination .prev,
.ringsetting-pagination .next {
    padding: 12px 20px;
    font-weight: 600;
}

.ringsetting-pagination .prev:hover,
.ringsetting-pagination .next:hover {
    background: #4f46e5;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Disabled state */
.ringsetting-pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ellipsis */
.ringsetting-pagination .pagination-ellipsis,
.ringsetting-pagination .dots {
    padding: 12px 8px;
    color: #9ca3af;
    font-weight: 600;
    cursor: default;
}

/* Alternative pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.pagination .pagination-link {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination .pagination-link:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
    text-decoration: none;
}

.pagination .pagination-link.current {
    background: rgb(153, 120, 222);
    border-color: rgb(153, 120, 222);
    color: white;
}

.pagination .pagination-link.current:hover {
    background: rgb(138, 102, 200);
    border-color: rgb(138, 102, 200);
}

/* Simple pagination (just prev/next) */
.simple-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0;
}

.simple-pagination .pagination-info {
    color: #6b7280;
    font-size: 14px;
}

.simple-pagination .pagination-nav {
    display: flex;
    gap: 12px;
}

.simple-pagination .pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #d1d5db;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.simple-pagination .pagination-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
    text-decoration: none;
}

.simple-pagination .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}


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

/* Results Per Page */
.results-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.results-per-page select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 14px;
}

.results-per-page select:focus {
    outline: none;
    border-color: rgb(153, 120, 222);
    box-shadow: 0 0 0 2px rgba(153, 120, 222, 0.1);
}

/* Hierarchical Defaults Toggle */
.ringsetting-hierarchical-toggle {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.hierarchical-toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #374151;
}

.hierarchical-toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #e5e7eb;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    border: 1px solid #d1d5db;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hierarchical-toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: rgb(153, 120, 222);
    border-color: rgb(153, 120, 222);
}

.hierarchical-toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-labels {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.label-unique {
    color: rgb(153, 120, 222);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.label-all {
    color: #6b7280;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hierarchical-toggle-switch input[type="checkbox"]:not(:checked) ~ .toggle-labels .label-unique {
    opacity: 0.7;
    color: #6b7280;
}

.hierarchical-toggle-switch input[type="checkbox"]:not(:checked) ~ .toggle-labels .label-all {
    opacity: 1;
    color: rgb(153, 120, 222);
}

/* Mobile Sort Row */
.mobile-sort-row {
    display: none;
}

.sort-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* Sort icon removed from template */

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
    border-color: rgb(153, 120, 222);
    box-shadow: 0 0 0 3px rgba(153, 120, 222, 0.1);
}

/* Mobile Button Toggle */
.unique-designs-button {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.unique-designs-button.active {
    background: rgb(153, 120, 222);
    border-color: rgb(153, 120, 222);
    color: white;
}

.unique-designs-button:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.unique-designs-button.active:hover {
    background: rgb(133, 100, 202);
    border-color: rgb(133, 100, 202);
}

/* Desktop/Mobile Toggle Visibility */
.desktop-toggle {
    display: flex;
}

.mobile-toggle {
    display: none;
}

/* Old mobile rules removed - replaced with new implementation below */

/* Old 480px rules removed - replaced with new implementation below */

/* Responsive Pagination */
@media (max-width: 768px) {
    .ringsetting-pagination {
        gap: 8px;
        margin-top: 32px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ringsetting-pagination .page-numbers,
    .ringsetting-pagination .pagination-link {
        padding: 10px 14px;
        min-width: 40px;
        font-size: 13px;
    }
    
    .ringsetting-pagination .prev,
    .ringsetting-pagination .next {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .pagination {
        gap: 6px;
        margin: 24px 0;
    }
    
    .pagination .pagination-link {
        padding: 8px 12px;
        min-width: 36px;
        font-size: 13px;
    }
    
    .simple-pagination {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
}

@media (max-width: 480px) {
    .ringsetting-pagination {
        gap: 4px;
        margin-top: 24px;
    }
    
    .ringsetting-pagination .page-numbers,
    .ringsetting-pagination .pagination-link {
        padding: 8px 12px;
        min-width: 36px;
        font-size: 12px;
    }
    
    .ringsetting-pagination .prev,
    .ringsetting-pagination .next {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Hide some page numbers on very small screens */
    .ringsetting-pagination .page-numbers:nth-child(n+6):nth-child(-n+10) {
        display: none;
    }
    
    .pagination .pagination-link {
        padding: 6px 10px;
        min-width: 32px;
        font-size: 12px;
    }
    
    
    .results-per-page {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
} 


 
/**
 * Stuller Ring Settings - Products Component
 * 
 * Styles for product grid, product cards, pagination, and related components
 */

/* Modern Responsive Product Grid Layout - Professional Jewelry Style */
.ringsetting-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 0;
}

/* Professional Product Card Design */
.ringsetting-product-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Link - Makes entire card clickable */
.ringsetting-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.ringsetting-product-link:hover {
    text-decoration: none;
    color: inherit;
}

.ringsetting-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: #c8d1d9;
}

/* Product Image Container - Prominent Display */
.ringsetting-product-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #f5f5f5;
}

.ringsetting-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    padding: 16px;
}

.ringsetting-product-card:hover .ringsetting-product-image img {
    transform: scale(1.03);
}

/* Product Info Section - Clean Typography */
.ringsetting-product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 120px;
}

.ringsetting-product-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #2c3e50;
    line-height: 1.3;
    letter-spacing: -0.01em;
    height: auto;
    min-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ringsetting-product-description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.3;
    margin-bottom: 8px;
    height: auto;
    min-height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Product Price - Compact Display */
.ringsetting-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    letter-spacing: -0.02em;
    text-align: left;
}

/* Image Placeholder Styling */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #adb5bd;
    font-size: 14px;
    font-weight: 500;
    height: 100%;
    width: 100%;
}

/* Loading States */
.ringsetting-products-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

.ringsetting-product-card.loading {
    background: #f8f9fa;
    position: relative;
}

.ringsetting-product-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 40px 0;
}

.no-results h3 {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.no-results p {
    color: #9ca3af;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* View Toggle Styles */
.view-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.view-toggle-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.view-toggle-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.view-toggle-btn.active {
    background: rgb(153, 120, 222);
    border-color: rgb(153, 120, 222);
    color: white;
}

/* List View Styles */
.ringsetting-products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

.list-view .ringsetting-product-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.list-view .ringsetting-product-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.list-view .ringsetting-product-info {
    flex: 1;
    min-height: auto;
    padding: 20px;
}

/* Quick Actions */
.ringsetting-product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ringsetting-product-card:hover .ringsetting-product-actions {
    opacity: 1;
}

.quick-view-btn,
.add-to-cart-quick {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-view-btn:hover,
.add-to-cart-quick:hover {
    background: #f3f4f6;
    border-color: rgb(153, 120, 222);
    color: rgb(153, 120, 222);
}

.add-to-cart-quick.success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Responsive Design - Professional Breakpoints */
/* Responsive Grid Breakpoints - Flexible Auto-Fit System */
@media (max-width: 1199px) {
    .ringsetting-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 899px) {
    .ringsetting-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .ringsetting-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .ringsetting-product-image {
        height: 200px;
    }
    
    .ringsetting-product-info {
        padding: 12px;
        min-height: 100px;
    }
    
    .ringsetting-product-title {
        font-size: 14px;
        min-height: 28px;
        margin-bottom: 2px;
    }
    
    .ringsetting-product-description {
        font-size: 13px;
        margin-bottom: 4px;
        min-height: 26px;
    }
    
    .ringsetting-product-price {
        font-size: 14px;
    }

    /* List view adjustments for mobile */
    .list-view .ringsetting-product-card {
        flex-direction: column;
    }
    
    .list-view .ringsetting-product-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 599px) {
    .ringsetting-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .ringsetting-product-image {
        height: 160px;
    }
    
    .ringsetting-product-info {
        padding: 10px;
        min-height: 85px;
    }
    
    .ringsetting-product-title {
        font-size: 13px;
        min-height: 26px;
        margin-bottom: 1px;
        line-height: 1.3;
    }
    
    .ringsetting-product-description {
        font-size: 12px;
        min-height: 24px;
        margin-bottom: 3px;
        line-height: 1.3;
    }
    
    .ringsetting-product-price {
        font-size: 13px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .ringsetting-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
        gap: 8px;
    }
    
    .ringsetting-product-image {
        height: 140px;
    }
    
    .ringsetting-product-info {
        padding: 8px;
        min-height: 80px;
    }
    
    .ringsetting-product-title {
        font-size: 12px;
        min-height: 24px;
        margin-bottom: 1px;
        line-height: 1.2;
    }
    
    .ringsetting-product-description {
        font-size: 11px;
        min-height: 22px;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    
    .ringsetting-product-price {
        font-size: 12px;
        font-weight: 600;
    }
}

/* Ultra-small screens - ensure minimum 2 columns */
@media (max-width: 360px) {
    .ringsetting-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 6px;
    }
    
    .ringsetting-product-image {
        height: 120px;
    }
    
    .ringsetting-product-image img {
        padding: 8px;
    }
    
    .ringsetting-product-info {
        padding: 6px;
        min-height: 75px;
    }
    
    .ringsetting-product-title {
        font-size: 11px;
        min-height: 22px;
        line-height: 1.1;
    }
    
    .ringsetting-product-description {
        font-size: 10px;
        min-height: 20px;
        line-height: 1.1;
    }
    
    .ringsetting-product-price {
        font-size: 11px;
    }
}

/* Basic responsive design - no mobile modals */ 

/* ============================================================================
   MOBILE FILTER OVERLAY STYLES
   ============================================================================ */

/* Mobile Filter Button - Base Styles */
.ringsetting-mobile-filter-btn {
    display: none; /* Hidden by default, shown in mobile media query */
}

.ringsetting-mobile-filter-btn .filter-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    min-width: 20px;
}

/* Mobile Filter Overlay - Flexbox structure for reliable footer */
.ringsetting-mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    /* Use flexbox for reliable header/content/footer layout */
    flex-direction: column;
}

.ringsetting-mobile-filter-overlay.active {
    display: flex; /* Use flex to enable column layout */
    transform: translateY(0);
}

/* Mobile Filter Header - Fixed height flex item */
.ringsetting-mobile-filter-header {
    flex: 0 0 auto; /* Don't grow or shrink */
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Reset Button */
.mobile-reset-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(153, 120, 222, 0.1);
    border: 1px solid rgba(153, 120, 222, 0.3);
    cursor: pointer;
    font-size: 14px;
    color: rgb(153, 120, 222);
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 0;
}

.mobile-reset-filters-btn:hover {
    background: rgb(153, 120, 222);
    color: white;
    border-color: rgb(153, 120, 222);
    box-shadow: 0 2px 8px rgba(153, 120, 222, 0.2);
}

.mobile-reset-filters-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(153, 120, 222, 0.3);
}

.mobile-reset-filters-btn .reset-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-reset-filters-btn:hover .reset-icon {
    transform: rotate(-360deg);
}

/* Mobile Close Button */
.mobile-filter-close {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    width: 44px;
    height: 44px;
    transition: all 0.2s ease;
    margin: 0;
    font-size: 18px;
    color: #333;
}

.mobile-filter-close:hover {
    background: rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.2);
    transform: scale(1.05);
}

.mobile-filter-close:active {
    transform: scale(0.95);
}

/* Mobile Filter Content - Reliable Safari approach */
.ringsetting-mobile-filter-content {
    flex: 1; /* Take available space */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Re-enable for smoother scrolling */
    overscroll-behavior: contain; /* Prevent rubber banding */
    padding: 16px 20px 20px 20px; /* Normal padding, footer handles its own space */
    min-height: 0; /* Allow shrinking */
}

/* Mobile Filter Footer - Fixed height flex item */
.ringsetting-mobile-filter-footer {
    flex: 0 0 auto; /* Don't grow or shrink */
    background: white;
    border-top: 1px solid #e5e5e5;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    /* Add safe area support for iOS */
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.mobile-apply-filters-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgb(153, 120, 222);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(153, 120, 222, 0.3);
}

.mobile-apply-filters-btn:hover {
    background: rgb(133, 100, 202);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(153, 120, 222, 0.4);
}

.mobile-apply-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(153, 120, 222, 0.3);
}

/* Hide duplicate title in cloned content */
.ringsetting-mobile-filter-overlay .mobile-filters-form h3 {
    display: none;
}

/* iOS Safari support - Simplified for flexbox approach */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .ringsetting-mobile-filter-footer {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Safari flexbox height fix */
@supports (-webkit-touch-callout: none) {
    .ringsetting-mobile-filter-overlay {
        /* Ensure full height on Safari */
        height: 100vh;
        height: 100dvh; /* Use dynamic viewport height where supported */
    }
}

/* Mobile filter section spacing */
.ringsetting-mobile-filter-overlay .ringsetting-filter-group {
    margin-bottom: 20px;
}

.ringsetting-mobile-filter-overlay .shape-filter-group {
    margin-bottom: 24px;
}

.ringsetting-mobile-filter-overlay .metal-style-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ringsetting-mobile-filter-overlay .shape-filter-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 8px 0;
}

.ringsetting-mobile-filter-overlay .shape-filter-option {
    padding: 8px 4px;
    min-height: 70px;
}

.ringsetting-mobile-filter-overlay .shape-filter-option .shape-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.ringsetting-mobile-filter-overlay .shape-filter-option .shape-label {
    font-size: 10px;
    line-height: 1.2;
}

/* Body scroll prevention when overlay is open - Targeted approach */
body.mobile-filter-open {
    overflow: hidden;
}

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

@media (max-width: 768px) {
    /* Show mobile filter button */
    .ringsetting-mobile-filter-btn {
        display: flex;
    }
    
    /* Hide desktop filters */
    .desktop-filters {
        display: none;
    }
    
    /* Single row layout like diamond search - clean and compact */
    .ringsetting-sorting .ringsetting-sort-controls {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important; /* Changed from center to stretch for equal heights */
        gap: 8px !important; /* Add spacing like diamond search (their 16px scaled down) */
        justify-content: space-between !important; /* Use space-between like diamond search */
        flex-wrap: nowrap !important;
        padding: 6px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure parent container doesn't break layout */
    .ringsetting-sorting {
        width: 100%;
        max-width: 100%;
        margin: 0; /* Remove any default margins */
        padding: 0; /* Remove any default padding */
    }
    
    /* Mobile filter button - clean purple button with icon */
    .ringsetting-mobile-filter-controls {
        display: flex !important;
        width: 15%; /* Smaller - just needs icon and count */
        flex-shrink: 0;
        margin: 0; /* Remove any default margins */
        padding: 0; /* Remove any default padding */
        box-sizing: border-box;
        align-items: stretch; /* Match parent container */
    }
    
    .ringsetting-mobile-filter-btn {
        width: 100%;
        padding: 8px 4px; /* Match vertical padding with other elements */
        font-size: 11px; /* Smaller font */
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px; /* Minimal gap */
        position: relative;
        background: rgb(153, 120, 222);
        color: white;
        border: 1px solid rgb(153, 120, 222);
        cursor: pointer;
        transition: all 0.2s ease;
        height: 36px; /* Fixed height instead of min-height */
        margin: 0; /* Remove any default browser margins */
        box-sizing: border-box;
        line-height: 1;
    }
    
    .ringsetting-mobile-filter-btn:hover {
        background: rgb(133, 100, 202);
        transform: translateY(-1px);
    }
    
    .ringsetting-mobile-filter-btn .filter-text {
        display: none; /* Hide text on mobile */
    }
    
    .ringsetting-mobile-filter-btn .filter-icon {
        font-size: 16px; /* Slightly smaller for compact button */
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ringsetting-mobile-filter-btn .filter-count {
        position: absolute;
        top: -4px; /* Closer to button edge */
        right: -4px;
        background: #ff4757;
        color: white;
        border-radius: 50%;
        width: 16px; /* Slightly smaller */
        height: 16px;
        font-size: 10px; /* Smaller font */
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid white; /* Thinner border */
        min-width: 16px;
    }
    
    /* Sort dropdown - clean styling */
    .ringsetting-sort-group {
        width: 55%; /* More space for dropdown text */
        flex-shrink: 0;
        margin: 0; /* Remove any default margins */
        padding: 0; /* Remove any default padding */
        box-sizing: border-box;
        display: flex;
        align-items: stretch; /* Match parent container */
    }
    
    .sort-dropdown-wrapper {
        position: relative;
        width: 100%;
        margin: 0; /* Remove any default margins */
        padding: 0; /* Remove any default padding */
    }
    
    .sort-select {
        width: 100%;
        font-size: 12px; /* Reduced font size */
        padding: 8px 10px; /* Standard padding */
        border-radius: 6px;
        border: 1px solid #d1d5db;
        background: white;
        color: #374151;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        height: 36px; /* Fixed height instead of min-height */
        margin: 0; /* Remove any default browser margins */
        box-sizing: border-box;
        vertical-align: top; /* Ensure proper alignment */
        line-height: 1;
    }
    
    .sort-select:focus {
        outline: none;
        border-color: rgb(153, 120, 222);
        box-shadow: 0 0 0 3px rgba(153, 120, 222, 0.1);
    }
    
    /* Sort icon removed from template */
    
    /* Hide desktop elements on mobile */
    .ringsetting-reset-filters {
        display: none; /* Reset button moved to mobile overlay */
    }
    
    .desktop-toggle {
        display: none;
    }
    
    /* Unique designs toggle - clean button */
    .ringsetting-hierarchical-toggle.mobile-toggle {
        display: flex;
        width: 25%; /* Reduced to prevent overflow */
        flex-shrink: 0;
        margin: 0; /* Remove any default margins */
        padding: 0; /* Remove any default padding */
        box-sizing: border-box;
        align-items: stretch; /* Match parent container */
    }
    
    .unique-designs-button {
        width: 100%;
        padding: 8px 10px; /* Match sort dropdown padding for consistent height */
        font-size: 11px; /* Reduced font size */
        border-radius: 6px;
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        color: #6b7280;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 36px; /* Fixed height instead of min-height */
        position: relative;
        margin: 0; /* Remove any default browser margins */
        box-sizing: border-box; /* Consistent box model */
        line-height: 1;
    }
    
    .unique-designs-button.active {
        background: rgb(153, 120, 222);
        border-color: rgb(153, 120, 222);
        color: white;
    }
    
    .unique-designs-button:hover {
        background: #e5e7eb;
        border-color: #9ca3af;
    }
    
    .unique-designs-button.active:hover {
        background: rgb(133, 100, 202);
        border-color: rgb(133, 100, 202);
    }
    
    /* Hide text, show icons */
    .unique-designs-button .btn-text {
        display: none;
    }
    
    .unique-designs-button::after {
        content: "Show All";
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.2px;
    }
    
    .unique-designs-button.active::after {
        content: "Unique";
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.2px;
    }
    
    /* Mobile overlay responsive adjustments */
    .ringsetting-mobile-filter-header {
        padding: 12px 16px;
    }
    
    .mobile-filter-title {
        font-size: 16px;
    }
    
    .mobile-filter-close {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .ringsetting-mobile-filter-content {
        padding: 20px 16px;
        height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    /* Compact for smaller screens */
    .ringsetting-sort-controls {
        gap: 6px !important; /* Slightly reduced spacing for smaller screens */
        padding: 6px 0;
    }
    
    .ringsetting-mobile-filter-controls {
        width: 15%; /* Match main breakpoint for consistency */
    }
    
    .ringsetting-mobile-filter-btn {
        padding: 6px 4px; /* Match vertical padding with other elements */
        font-size: 11px; /* Smaller font */
        min-height: 32px; /* Match other elements */
    }
    
    .ringsetting-mobile-filter-btn .filter-icon {
        font-size: 16px;
    }
    
    .ringsetting-mobile-filter-btn .filter-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: -4px;
        right: -4px;
    }
    
    .ringsetting-sort-group {
        width: 55%; /* Match main breakpoint */
    }
    
    .sort-select {
        font-size: 11px; /* Smaller font */
        padding: 6px 8px; /* Tighter padding */
        min-height: 32px; /* Smaller height */
    }
    
    .ringsetting-hierarchical-toggle.mobile-toggle {
        width: 25%; /* Match main breakpoint */
    }
    
    .unique-designs-button {
        padding: 6px 8px; /* Match sort dropdown padding for consistent alignment */
        font-size: 10px; /* Smaller font */
        min-height: 32px; /* Match sort dropdown */
    }
    
    .unique-designs-button::after,
    .unique-designs-button.active::after {
        font-size: 9px; /* Smaller for full text on smaller screens */
    }
    
    .ringsetting-mobile-filter-header {
        padding: 10px 12px;
    }
    
    .mobile-filter-title {
        font-size: 15px;
    }
    
    .mobile-filter-close {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .mobile-reset-filters-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .ringsetting-mobile-filter-content {
        padding: 16px 12px;
        height: calc(100vh - 60px);
    }
    
    .ringsetting-mobile-filter-overlay .shape-filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .ringsetting-mobile-filter-overlay .shape-filter-option {
        padding: 10px 6px;
        min-height: 65px;
    }
}

/* Ultra compact for very small screens */
@media (max-width: 360px) {
    .ringsetting-sort-controls {
        gap: 4px !important; /* Minimal spacing for ultra-small screens */
        padding: 5px 0;
    }
    
    .ringsetting-mobile-filter-btn {
        padding: 6px 4px;
        min-height: 32px;
    }
    
    .sort-select {
        font-size: 11px;
        padding: 6px 8px;
        min-height: 32px;
    }
    
    .unique-designs-button {
        padding: 6px 6px; /* Balanced padding for ultra-small screens */
        min-height: 32px;
    }
} 
