/**
 * Jewelry Search Page Styles
 * Advanced search and filtering for jewelry collection
 */

/* ============================================
   SEARCH PAGE LAYOUT
   ============================================ */
.jewelry-search-page {
    background: linear-gradient(180deg, var(--jewelry-bg-light) 0%, #fff 40%, #fff 70%, var(--jewelry-bg-light) 100%);
    min-height: calc(100vh - 200px);
    padding: 0px 20px 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative background orbs for depth */
.jewelry-search-page::before,
.jewelry-search-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.jewelry-search-page::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.18), transparent 70%);
    top: -120px;
    right: -80px;
}

.jewelry-search-page::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(134, 97, 74, 0.1), transparent 70%);
    bottom: 200px;
    left: -100px;
}

.jewelry-search-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   SEARCH HEADER
   ============================================ */
.jewelry-search-header {
    text-align: center;
    margin-bottom: 15px;
}

/* Branded page header */
.jewelry-search-branded-header {
    text-align: center;
    padding: 40px 0 28px;
    display: none;
}

.jewelry-search-branded-header .jewelry-section-eyebrow {
    justify-content: center;
}

.jewelry-search-page-title {
    font-family: var(--jewelry-font-heading);
    font-size: 38px;
    font-weight: 400;
    color: var(--jewelry-text);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.jewelry-search-page-title em {
    font-style: italic;
    color: var(--jewelry-primary);
}

.jewelry-search-page-desc {
    font-size: 16px;
    color: #8a7a6e;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 480px;
}

.jewelry-search-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.jewelry-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.jewelry-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B7355;
}

.jewelry-search-bar input {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.jewelry-search-bar input:focus {
    outline: none;
    border-color: var(--jewelry-dark);
    box-shadow: 0 4px 12px rgba(37, 66, 100, 0.1);
}

.jewelry-search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.jewelry-search-clear:hover {
    color: #DC3545;
}

/* ============================================
   VISUAL FILTER BUTTONS
   ============================================ */
.jewelry-visual-filters {
    width: 100%;
    max-height: none;
    padding: 0 0 8px;
}

/* Carousel wrapper for visual filters */
.jewelry-visual-filter-carousel {
    position: relative;
    width: 100%;
    display: none;
}

.jewelry-visual-filter-row {
    display: none;
    gap: 12px;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 16px 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    border: 1px solid rgba(134, 97, 74, 0.06);
    scrollbar-width: none;
}

.jewelry-visual-filter-row::-webkit-scrollbar {
    display: none;
}

.jewelry-visual-filter-row.loaded {
    opacity: 1;
    display: flex!important;
}

/* Carousel navigation arrows */
.jewelry-filter-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.jewelry-filter-carousel-arrow:hover {
    background: var(--jewelry-bg-light);
    border-color: var(--jewelry-text);
}

.jewelry-filter-carousel-arrow.visible {
    display: flex;
}

.jewelry-filter-carousel-arrow-left {
    left: -10px;
}

.jewelry-filter-carousel-arrow-right {
    right: 10px;
}

.jewelry-filter-carousel-arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--jewelry-text);
}

.jewelry-visual-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 6px 6px 10px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    max-width: 160px;
    flex: 0 1 auto;
    border: 1px solid rgba(134, 97, 74, 0.08);
}

.jewelry-visual-filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(134, 97, 74, 0.12);
    border-color: rgba(201, 169, 110, 0.25);
    background: rgba(255, 255, 255, 0.95);
}

.jewelry-visual-filter-btn.active {
    border-color: var(--jewelry-primary);
    background: rgba(252, 247, 241, 0.9);
    box-shadow: 0 4px 16px rgba(134, 97, 74, 0.15);
}

.jewelry-visual-filter-btn.active .jewelry-visual-filter-title {
    color: var(--jewelry-primary);
    font-weight: 700;
}

.jewelry-visual-filter-btn.active .jewelry-visual-filter-img {
    /* border-color: var(--jewelry-primary); */
}

.jewelry-visual-filter-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: var(--jewelry-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.jewelry-visual-filter-img img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jewelry-visual-filter-btn:hover .jewelry-visual-filter-img img {
    transform: scale(1.05);
}

.jewelry-visual-filter-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--jewelry-text);
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.2px;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

/* Skeleton Loader - Separate Element with 4 Placeholders */
.jewelry-filter-skeleton-loader {
    display: flex;
    gap: 10px;
    padding: 20px 0 20px 20px;
    justify-content: center;
}

.jewelry-filter-skeleton-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 165px;
    max-width: 166px;
}

.jewelry-filter-skeleton-image {
    width: 166px;
    height: 144px;
    background: linear-gradient(90deg, rgba(252,247,241,0.6) 25%, rgba(201,169,110,0.12) 50%, rgba(252,247,241,0.6) 75%);
    background-size: 200% 100%;
    animation: jewelry-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.jewelry-filter-skeleton-title {
    width: 120px;
    height: 20px;
    background: linear-gradient(90deg, rgba(252,247,241,0.6) 25%, rgba(201,169,110,0.12) 50%, rgba(252,247,241,0.6) 75%);
    background-size: 200% 100%;
    animation: jewelry-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

/* Skeleton Product Cards Grid */
.jewelry-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0px 0;
}

.jewelry-skeleton-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(134, 97, 74, 0.06);
}

.jewelry-skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, rgba(252,247,241,0.6) 25%, rgba(201,169,110,0.12) 50%, rgba(252,247,241,0.6) 75%);
    background-size: 200% 100%;
    animation: jewelry-skeleton-loading 1.5s ease-in-out infinite;
}

.jewelry-skeleton-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jewelry-skeleton-category {
    width: 80px;
    height: 14px;
    background: linear-gradient(90deg, rgba(252,247,241,0.6) 25%, rgba(201,169,110,0.12) 50%, rgba(252,247,241,0.6) 75%);
    background-size: 200% 100%;
    animation: jewelry-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.jewelry-skeleton-title {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, rgba(252,247,241,0.6) 25%, rgba(201,169,110,0.12) 50%, rgba(252,247,241,0.6) 75%);
    background-size: 200% 100%;
    animation: jewelry-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.jewelry-skeleton-specs {
    width: 70%;
    height: 16px;
    background: linear-gradient(90deg, rgba(252,247,241,0.6) 25%, rgba(201,169,110,0.12) 50%, rgba(252,247,241,0.6) 75%);
    background-size: 200% 100%;
    animation: jewelry-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.jewelry-skeleton-price {
    width: 90px;
    height: 22px;
    background: linear-gradient(90deg, rgba(252,247,241,0.6) 25%, rgba(201,169,110,0.12) 50%, rgba(252,247,241,0.6) 75%);
    background-size: 200% 100%;
    animation: jewelry-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-top: 4px;
}

/* Responsive skeleton grid */
@media (max-width: 768px) {
    .jewelry-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0px 0px;
    }
    .jewelry-filter-skeleton-loader {
    padding: 42px 0px 30px 20px;
    position: relative;
    /* top: 11px; */
    /* left: 41px; */
    /* overflow: hidden; */
    justify-content: space-around;
}
}

/* Secondary row for metal filters */
.jewelry-visual-filter-row-secondary {
    padding: 12px 24px;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

/* Smaller buttons for metal filters */
.jewelry-visual-filter-btn-small {
    min-width: 90px;
    max-width: 120px;
    gap: 8px;
}

.jewelry-visual-filter-btn-small .jewelry-visual-filter-img {
    width: 80px;
    height: 80px;
}

.jewelry-visual-filter-btn-small .jewelry-visual-filter-title {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .jewelry-visual-filter-row {
        gap: 12px;
    }
.jewelry-sidebar-filters-container .noUi-base:first-of-type {
    display: none;
}
    .jewelry-visual-filter-btn {
        min-width: 100px;
        max-width: 120px;
        padding: 12px 8px;
        gap: 8px;
        overflow: hidden;
    }

    .jewelry-visual-filter-img {
        width: 130px;
        height: 130px;
        border-top: unset;
    }

    .jewelry-visual-filter-title {
        font-size: 12px;
    }

    .jewelry-visual-filter-btn-small {
        min-width: 70px;
        max-width: 90px;
    }

    .jewelry-visual-filter-btn-small .jewelry-visual-filter-img {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   CONTENT GRID
   ============================================ */
.jewelry-search-content {
    display: block;
    width: 100%;
    position: relative;
}

/* ============================================
   SIDEBAR OVERLAY
   ============================================ */
.jewelry-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(97, 69, 53, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

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

/* ============================================
   FILTER SIDEBAR
   ============================================ */
.jewelry-search-sidebar {
    position: fixed;
    left: -340px;
    top: 0;
    width: 340px;
    height: 100vh;
    background: linear-gradient(180deg, var(--jewelry-bg-light) 0%, #fff 30%);
    z-index: 999999;
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-top: 90px;
    border-right: 1px solid rgba(134, 97, 74, 0.08);
    box-shadow: 8px 0 32px rgba(134, 97, 74, 0.08);
}

.jewelry-search-sidebar.active {
    left: 0;
}

/* Hide main page scrollbar when sidebar is open */
body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Sticky Header Container */
.jewelry-sidebar-sticky-header {
    position: sticky;
    top: 0;
    background: var(--jewelry-bg-light);
    z-index: 10;
    padding: 28px 28px 0 28px;
    border-bottom: 1px solid rgba(134, 97, 74, 0.1);
}

.jewelry-search-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.jewelry-sidebar-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jewelry-search-sidebar-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--jewelry-text);
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: var(--jewelry-font-heading);
}

.jewelry-sidebar-results-count {
    font-size: 0.8rem;
    color: #8a7a6e;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.jewelry-sidebar-results-count span {
    font-weight: 600;
    color: var(--jewelry-primary);
}

.jewelry-sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jewelry-clear-filters {
    background: none;
    border: none;
    color: var(--jewelry-accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.jewelry-clear-filters:hover {
    color: var(--jewelry-primary);
    text-decoration: underline;
}

.jewelry-close-sidebar-btn {
    background: none;
    border: 1px solid rgba(134, 97, 74, 0.12);
    color: #8a7a6e;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 34px;
    height: 34px;
}

.jewelry-close-sidebar-btn:hover {
    color: var(--jewelry-primary);
    border-color: var(--jewelry-primary);
    background: rgba(134, 97, 74, 0.04);
}

/* ============================================
   ACTIVE FILTERS
   ============================================ */
.jewelry-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 20px;
    border-bottom: none;
}

.jewelry-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(252, 247, 241, 0.8);
    color: var(--jewelry-primary);
    border: 1px solid rgba(134, 97, 74, 0.15);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    letter-spacing: 0.2px;
}

.jewelry-filter-badge:hover {
    background: var(--jewelry-primary);
    color: white;
    border-color: var(--jewelry-primary);
    box-shadow: 0 4px 12px rgba(134, 97, 74, 0.2);
    transform: translateY(-1px);
}

.jewelry-filter-badge svg {
    width: 10px;
    height: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.jewelry-filter-badge:hover svg {
    opacity: 1;
}

/* Scrollable Filters Container */
.jewelry-sidebar-filters-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px 28px 100px 28px;
}

/* ============================================
   FILTER SECTIONS
   ============================================ */
.jewelry-filter-section {
    margin-bottom: 0px;
}

.jewelry-filter-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--jewelry-accent);
    margin-bottom: 14px;
}

.jewelry-filter-count {
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 5px;
}

.jewelry-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 0px;
}

/* General filter checkbox styles */
.jewelry-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jewelry-filter-checkbox:hover {
    background: rgba(252, 247, 241, 0.6);
    border-radius: 8px;
}

.jewelry-filter-checkbox.active,
.jewelry-filter-checkbox:has(input:checked) {
    background: rgba(252, 247, 241, 0.8);
    border-radius: 8px;
}

.jewelry-filter-checkbox.active span {
    color: var(--jewelry-text);
    font-weight: 600;
}

/* Category Filter Grid with Images */
.jewelry-category-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.jewelry-category-radio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2px 0px;
    /* border: 2px solid #E0E0E0; */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.jewelry-category-radio:hover {
    /* border-color: var(--jewelry-primary); */
    /* background: #f9f9f9; */
}

.jewelry-category-radio input {
    display: none;
}

.jewelry-category-radio input:checked ~ .jewelry-category-icon {
    opacity: 1;
    border-color: var(--jewelry-primary);
}

.jewelry-category-radio input:checked ~ span {
    color: var(--jewelry-primary);
    font-weight: 600;
}

.jewelry-category-icon {
    width: 100%;
    height: 60px;
    object-fit: cover;
    margin-bottom: 8px;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid transparent;
}

.jewelry-category-radio span {
    font-size: 0.85rem;
    color: var(--jewelry-text);
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Active state for category radio */
.jewelry-category-radio.active {
    /* background: var(--jewelry-bg-light); */
    border-color: var(--jewelry-primary);
}

.jewelry-category-radio.active .jewelry-category-icon {
    opacity: 1;
    border-color: var(--jewelry-primary);
}

.jewelry-category-radio.active span {
    color: var(--jewelry-primary);
    font-weight: 600;
}

/* Diamond Shape Filter Grid with Images */
.jewelry-shape-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
    margin-top: 11px;
    /* margin-left: -20px; */
}

.jewelry-shape-checkbox {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 7px 0px;
    border: 0px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jewelry-shape-checkbox:hover {
    /* border-color: var(--jewelry-primary); */
    /* background: #f9f9f9; */
    /* border: 1px solid; */
}

.jewelry-shape-checkbox input:checked + .jewelry-shape-icon-wrapper {background: radial-gradient(ellipse at left, #ece2d7 10%, #c4b3a6 70%, #e7dcd2 100%);border-color: var(--jewelry-text);border: 2px solid;}

.jewelry-shape-checkbox input:checked ~ span {
    color: var(--jewelry-primary);
    font-weight: 600;
}

/* Active state for shape checkboxes */
.jewelry-shape-checkbox.active {
    /* background: var(--jewelry-bg-light); */
    /* border-color: var(--jewelry-text); */
    /* border: 2px solid; */
}

.jewelry-shape-checkbox.active .jewelry-shape-icon {
    opacity: 1;
}

.jewelry-shape-checkbox.active span {
    color: var(--jewelry-text);
    font-weight: 600;
}

.jewelry-shape-checkbox input {
    display: none;
}

.jewelry-shape-icon {
    width: 61px;
    transform: rotate(90deg);
    /* height: 40px; */
    margin-bottom: 6px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.jewelry-shape-checkbox span {
    font-size: 0.85rem;
    color: var(--jewelry-text);
    transition: all 0.3s ease;
    color: var(--jewelry-text);
    font-weight: 500;
}

.jewelry-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--jewelry-text);
    transition: color 0.3s ease;
    font-weight: 400;
}

.jewelry-filter-checkbox:hover {
    color: var(--jewelry-text);
    /* border-color: var(--jewelry-primary); */
}

.jewelry-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--jewelry-text);
    border-color: var(--jewelry-text);
}

/* ============================================
   PRICE FILTERS
   ============================================ */
.jewelry-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    display: none;
}

.jewelry-price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    width: inherit;
    /* background: #86604b; */
}

.jewelry-price-inputs span {
    color: #999;
    font-size: 0.9rem;
}

.jewelry-price-quick-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.jewelry-price-quick {
    padding: 8px 12px;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jewelry-price-quick:hover,
.jewelry-price-quick.active {
    background: var(--jewelry-text);
    color: white;
    border-color: var(--jewelry-text);
}

/* ============================================
   CARAT SIZE FILTERS
   ============================================ */
.jewelry-carat-quick-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.jewelry-carat-quick {
    padding: 8px 12px;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jewelry-carat-quick:hover,
.jewelry-carat-quick.active {
    background: var(--jewelry-text);
    color: white;
    border-color: var(--jewelry-text);
}

.jewelry-carat-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1px;
}

.jewelry-carat-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: unset;
    border-bottom: 1px solid #E0E0E0;
    border-radius: 0px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.jewelry-carat-inputs span {
    color: #999;
    font-size: 0.9rem;
}

.jewelry-carat-sliders {
    margin-top: 30px;
    margin-bottom: 22px;
}

.jewelry-slider-container {
    position: relative;
    height: 15px;
    margin-bottom: 8px;
}

.jewelry-range-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.jewelry-range-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
}

.jewelry-range-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
}

.jewelry-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--jewelry-text);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.jewelry-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--jewelry-text);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.jewelry-range-slider:first-child {
    z-index: 1;
}

.jewelry-range-slider:last-child {
    z-index: 2;
}

.jewelry-slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.jewelry-search-results-section {
    min-height: 600px;
}

/* Trust Strip */
.jewelry-trust-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #F0F7FF;
    border-left: 3px solid var(--jewelry-dark);
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--jewelry-dark);
}

.jewelry-trust-strip svg {
    color: var(--jewelry-dark);
}

.jewelry-results-header {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 14px;
    border: 1px solid rgba(134, 97, 74, 0.06);
    box-shadow: 0 2px 8px rgba(134, 97, 74, 0.04);
    position: relative;
    z-index: 100;
}

.jewelry-results-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.jewelry-results-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.jewelry-filters-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--jewelry-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(134, 97, 74, 0.2);
}

.jewelry-filters-toggle-btn:hover {
    background: var(--jewelry-text);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(134, 97, 74, 0.25);
}

.jewelry-filters-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.jewelry-results-count {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8a7a6e;
    flex: 2;
    letter-spacing: 0.2px;
}

.jewelry-results-count span {
    font-weight: 700;
    color: var(--jewelry-primary);
}

.jewelry-results-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jewelry-results-sort label {
    font-size: 0.85rem;
    color: #8a7a6e;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.jewelry-results-sort select {
    padding: 9px 32px 9px 14px;
    border: 1px solid rgba(134, 97, 74, 0.15);
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    color: var(--jewelry-text);
    font-weight: 600;
    outline: unset;
    font-family: var(--jewelry-font-primary);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    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 d='M3 5l3 3 3-3' stroke='%23614535' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.jewelry-results-sort select:hover {
    border-color: rgba(134, 97, 74, 0.3);
    background-color: rgba(255, 255, 255, 1);
}

.jewelry-results-sort select:focus {
    border-color: var(--jewelry-primary);
    box-shadow: 0 0 0 3px rgba(134, 97, 74, 0.08);
}

/* ============================================
   QUICK FILTERS (pill dropdowns in header)
   ============================================ */
.jewelry-quick-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(134, 97, 74, 0.06);
}

.jewelry-qf-title {
    font-family: var(--jewelry-font-primary);
    font-size: 12px;
    font-weight: 600;
    color: #8a7a6e;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.jewelry-qf-clear {
    margin-left: auto;
    background: none;
    border: none;
    font-family: var(--jewelry-font-primary);
    font-size: 12px;
    font-weight: 600;
    color: var(--jewelry-primary);
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.jewelry-qf-clear:hover {
    background: rgba(134, 97, 74, 0.06);
    color: var(--jewelry-accent);
}

.jewelry-qf-wrap {
    position: relative;
}


.jewelry-qf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(134, 97, 74, 0.12);
    border-radius: 30px;
    font-family: var(--jewelry-font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--jewelry-text);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.jewelry-qf-pill:hover {
    border-color: rgba(134, 97, 74, 0.25);
    background: rgba(252, 247, 241, 0.6);
}

.jewelry-qf-pill.open {
    border-color: var(--jewelry-primary);
    background: rgba(252, 247, 241, 0.8);
}

.jewelry-qf-pill.has-active {
    background: rgba(252, 247, 241, 0.8);
    border-color: rgba(134, 97, 74, 0.2);
    color: var(--jewelry-primary);
}

.jewelry-qf-chevron {
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.jewelry-qf-pill.open .jewelry-qf-chevron {
    transform: rotate(180deg);
}

.jewelry-qf-badge {
    background: var(--jewelry-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Dropdown Panel */
.jewelry-qf-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 14px 1px rgb(135 97 75 / 7%);
    border: 1px solid rgba(134, 97, 74, 0.08);
    padding: 14px;
    z-index: 9999999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.jewelry-qf-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jewelry-qf-dropdown-wide {
    min-width: 280px;
}

/* Options */
.jewelry-qf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jewelry-qf-option {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(134, 97, 74, 0.12);
    border-radius: 30px;
    font-family: var(--jewelry-font-primary);
    font-size: 13px;
    font-weight: 500;
    color: #5a4a3e;
    cursor: pointer;
    transition: all 0.15s ease;
}

.jewelry-qf-option:hover {
    border-color: rgba(134, 97, 74, 0.3);
    background: rgba(252, 247, 241, 0.6);
}

.jewelry-qf-option.selected {
    background: rgba(252, 247, 241, 0.9);
    border-color: var(--jewelry-primary);
    color: var(--jewelry-primary);
    font-weight: 600;
}

/* Shape Grid */
.jewelry-qf-shape-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.jewelry-qf-shape-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.jewelry-qf-shape-option img {
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.jewelry-qf-shape-option.selected img {
    opacity: 1;
}

/* Range Section (inputs + slider) */
.jewelry-qf-range-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jewelry-qf-range-labels {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -6px;
}

.jewelry-qf-range-labels > span {
    flex: 1;
}

.jewelry-qf-range-labels > span:nth-child(2) {
    flex: 0;
    width: 14px;
}

.jewelry-qf-range-label {
    font-size: 11px;
    font-weight: 600;
    color: #8a7a6e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jewelry-qf-slider {
    padding: 0 6px;
}

.jewelry-qf-slider .noUi-connect {
    background: linear-gradient(90deg, var(--jewelry-primary), var(--jewelry-accent));
    border-radius: 3px;
}

.jewelry-qf-slider .noUi-handle.noUi-handle {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    right: -10px;
    top: -7px;
    background: #fff;
    border: 2px solid var(--jewelry-primary);
    box-shadow: 0 2px 6px rgba(134, 97, 74, 0.2);
    cursor: pointer;
}

.jewelry-qf-slider .noUi-handle.noUi-handle:hover {
    box-shadow: 0 3px 10px rgba(134, 97, 74, 0.3);
}

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

.jewelry-qf-slider .noUi-target {
    background: rgba(134, 97, 74, 0.08);
    border: none;
    height: 6px;
    border-radius: 3px;
    box-shadow: none;
}

.jewelry-qf-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jewelry-qf-price-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid rgba(134, 97, 74, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--jewelry-font-primary);
    color: var(--jewelry-text);
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
    appearance: textfield;
}

.jewelry-qf-price-input::-webkit-outer-spin-button,
.jewelry-qf-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.jewelry-qf-price-input:focus {
    border-color: var(--jewelry-primary);
    box-shadow: 0 0 0 3px rgba(134, 97, 74, 0.08);
}

.jewelry-qf-price-sep {
    color: #ccc;
    font-size: 14px;
}


/* ============================================
   RESULTS GRID
   ============================================ */
.jewelry-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.jewelry-results-grid.loaded {
    animation: gridFadeIn 0.4s ease-out;
}

@keyframes gridFadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Product Card - Luxury Treatment */
.jewelry-search-page .jewelry-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(134, 97, 74, 0.06);
    box-shadow: 0 2px 8px rgba(134, 97, 74, 0.04);
}

.jewelry-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.jewelry-search-page .jewelry-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(134, 97, 74, 0.12);
    border-color: rgba(201, 169, 110, 0.2);
}

.jewelry-product-card:hover {
}

.jewelry-search-page .jewelry-product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--jewelry-bg-light);
    position: relative;
}

.jewelry-product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #F9F9F9;
    position: relative;
}

.jewelry-product-image img {

}

.jewelry-product-card:hover .jewelry-product-image img {
    transform: scale(1.05);
}

.jewelry-search-page .jewelry-product-info {
    padding: 16px 18px 18px;
    background: linear-gradient(180deg, #fff 0%, rgba(252, 247, 241, 0.3) 100%);
}

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

.jewelry-search-page .jewelry-product-category {
    font-size: 0.7rem;
    color: var(--jewelry-accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    font-weight: 700;
}

.jewelry-product-category {
    font-size: 0.85rem;
    color: #8B7355;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.jewelry-search-page .jewelry-product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--jewelry-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.1px;
}

.jewelry-search-page .jewelry-product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--jewelry-primary);
    letter-spacing: -0.3px;
}

/* ============================================
   WISHLIST BUTTON
   ============================================
   Note: Wishlist button styles are defined in jewelry-main.css
   for consistent styling across homepage and search page.
   ============================================ */

/* ============================================
   NO RESULTS
   ============================================ */
.jewelry-no-results {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    border: 1px solid rgba(134, 97, 74, 0.06);
    margin: 40px 0;
}

.jewelry-no-results svg {
    /* margin-bottom: 20px; */
}

.jewelry-no-results h3 {
    font-size: 1.4rem;
    color: var(--jewelry-text);
    margin-bottom: 8px;
    font-family: var(--jewelry-font-heading);
    font-weight: 600;
}

.jewelry-no-results p {
    color: #8a7a6e;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.jewelry-btn-primary {
    padding: 12px 32px;
    background: var(--jewelry-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--jewelry-font-primary);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(134, 97, 74, 0.2);
}

.jewelry-btn-primary:hover {
    background: var(--jewelry-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(134, 97, 74, 0.25);
}

/* ============================================
   LOAD MORE
   ============================================ */
.jewelry-load-more {
    text-align: center;
    margin-top: 40px;
}

.jewelry-btn-secondary {
    padding: 12px 40px;
    background: white;
    color: var(--jewelry-dark);
    border: 2px solid var(--jewelry-dark);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jewelry-btn-secondary:hover {
    background: var(--jewelry-dark);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .jewelry-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   MOBILE FILTER BUTTON
   ============================================ */
.jewelry-mobile-filter-btn {
    display: none;
    position: relative;
    /* bottom: 24px; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    background: var(--jewelry-primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: unset;
    z-index: 100;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    font-family: var(--jewelry-font-primary);
    transition: all 0.3s ease;
    padding: 9px 32px 9px 14px;
    border: 1px solid rgba(134, 97, 74, 0.15);
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    color: var(--jewelry-text);
    font-weight: 700;
    outline: unset;
    font-family: var(--jewelry-font-primary);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.jewelry-mobile-filter-btn:active {
    /* transform: translateX(-50%) scale(0.97); */
}

.jewelry-mobile-filter-btn svg {
    width: 20px;
    height: 20px;
}

.jewelry-mobile-filter-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--jewelry-bg-light) 0%, #fff 15%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(134, 97, 74, 0.15);
    z-index: 1000;
    max-height: 85vh;
    overflow-y: auto;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* padding-bottom: 50px; */
    /* box-sizing: border-box; */
}

.jewelry-mobile-filter-drawer.active {
    bottom: 0;
}

.jewelry-mobile-filter-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px 2px;
    border-bottom: 1px solid rgba(134, 97, 74, 0.08);
    position: sticky;
    top: 0;
    background: var(--jewelry-bg-light);
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.jewelry-mobile-filter-header h3 {
    font-family: var(--jewelry-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jewelry-text);
}

/* Mobile Drawer Drag Handle */
.jewelry-mobile-drawer-handle {
    width: 40px;
    height: 4px;
    background: rgba(134, 97, 74, 0.2);
    border-radius: 2px;
    margin: 8px auto 0;
    position: sticky;
    top: 0px;
    display: flex;
}

.jewelry-mobile-filter-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

/* Mobile drawer content styling */
.jewelry-mobile-filter-drawer .jewelry-sidebar-sticky-header {
    position: sticky;
    border-bottom: 1px solid rgba(134, 97, 74, 0.08);
    padding: 16px 24px 3px 24px;
    background: rgba(252, 247, 241, 0.5);
    backdrop-filter: blur(9px);
}

.jewelry-mobile-filter-drawer .jewelry-sidebar-filters-container {
    padding: 20px;
}

.jewelry-mobile-filter-drawer .jewelry-filter-section {
    margin-bottom: 24px;
}

.jewelry-mobile-filter-drawer .jewelry-close-sidebar-btn {
    /* display: none; */
}

/* Floating Close Button at Bottom of Mobile Drawer */
.jewelry-mobile-drawer-close-btn {
    position: fixed;
    bottom: 20px;
    /* left: 0; */
    /* right: 0; */
    width: 80%;
    /* margin: 20px 20px 20px 20px; */
    padding: 16px 24px;
    background: rgb(253 249 245 / 75%);
    color: #87614b;
    border: 0px solid #f4ede8;
    /* border: none; */
    border-radius: 12px;
    font-family: var(--jewelry-font-body);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(134, 97, 74, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    /* top: 50%; */
    left: 50%;
    transform: translate(-50%, 0px);
}

.jewelry-mobile-drawer-close-btn:hover {
    background: var(--jewelry-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(134, 97, 74, 0.4);
}

.jewelry-mobile-drawer-close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(134, 97, 74, 0.3);
}

.jewelry-mobile-drawer-close-btn svg {
    width: 20px;
    height: 20px;
    display: none;
}

/* Ensure sliders work on touch devices */
.jewelry-mobile-filter-drawer .noUi-handle {
    cursor: grab;
    touch-action: none;
}

.jewelry-mobile-filter-drawer .noUi-handle:active {
    cursor: grabbing;
}

@media (max-width: 1024px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .jewelry-search-content {
        overflow-x: hidden;
    }

    .jewelry-mobile-filter-btn {
        display: flex;
        /* transform: none!important; */
    }

    .jewelry-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .jewelry-results-left {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        justify-content: space-between;
        width: 100%;
        flex: 1 1;
        max-width: 170px;
        display: none;
    }

    .jewelry-filters-toggle-btn {
        width: 100%;
        justify-content: center;
        flex: 1;
        /* display: none; */
    }

    /* Make visual filters scrollable horizontally */
    .jewelry-visual-filter-row {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 12px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        border-radius: 12px;
        justify-content: flex-start;
        margin-top: 10px;
    }
    .jewelry-search-page {
        padding: 0px 12px 20px 12px;
        box-sizing: border-box;
    }

    .jewelry-visual-filter-row::-webkit-scrollbar {
        display: none;
    }
    .jewelry-results-count{
        text-align:right;
        display: none;
    }

    .jewelry-qf-title {
        display: none;
    }

    .jewelry-qf-clear {
        flex-shrink: 0;
    }

    /* Quick filters: horizontal scroll on tablet/mobile */
    .jewelry-quick-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-top: 10px;
        margin-top: 10px;
    }

    .jewelry-quick-filters::-webkit-scrollbar {
        display: none;
    }

    .jewelry-qf-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        min-width: unset;
        max-height: 60vh;
        overflow-y: auto;
        padding: 20px;
        transform: translateY(100%);
        z-index: 1001;
    }

    .jewelry-qf-dropdown.active {
        transform: translateY(0);
    }

    .jewelry-qf-dropdown-wide {
        min-width: unset;
    }

    .jewelry-visual-filter-btn {
        flex: 0 0 auto;
        min-width: 100px;
        max-width: 120px;
        padding: 0px 4px 8px;
        /* border-top: unset; */
    }

    .jewelry-search-header {
        margin-bottom: 12px;
        margin-top: 0px;
    }

    .jewelry-filter-skeleton-image {
        width: 100px;
        height: 90px;
    }

    .jewelry-filter-skeleton-item {
        min-width: 100px;
        max-width: 110px;
    }
    .jewelry-visual-filter-icon {
        width: 40px;
        height: 40px;
    }

    .jewelry-visual-filter-label {
        font-size: 12px;
    }

    /* Product cards on mobile */
    .jewelry-product-card {
        min-width: auto;
    }

    .jewelry-product-image {
        height: auto;
        aspect-ratio: 1;
    }

    .jewelry-product-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .jewelry-product-price {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .jewelry-search-page-title {
        font-size: 26px;
    }

    .jewelry-search-branded-header {
        padding: 20px 0 16px;
    }

    .jewelry-search-page-desc {
        font-size: 13px;
    }

    .jewelry-results-header {
        padding: 10px 12px;
        gap: 12px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .jewelry-filters-toggle-btn {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }

    .jewelry-results-sort label {
        display: none;
    }

    .jewelry-qf-pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    .jewelry-qf-badge {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }

    .jewelry-quick-filters {
        gap: 6px;
        padding-top: 8px;
        margin-top: 8px;
        display: none;
    }

    .jewelry-results-sort select {
        flex: 1;
        max-width: 150px;
        padding: 7px 28px 7px 10px;
        font-size: 12px;
        height: 40px;
        font-weight: 700;
    }

    /* Search page product info */
    .jewelry-search-page .jewelry-product-info {
        padding: 10px 12px 14px;
    }

    .jewelry-search-page .jewelry-product-category {
        font-size: 0.6rem;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }

    .jewelry-search-page .jewelry-product-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .jewelry-search-page .jewelry-product-price {
        font-size: 14px;
    }

    .jewelry-search-page .jewelry-product-specs {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    /* Promo tag on mobile */
    .jewelry-promo-tag {
        font-size: 9px;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }
}

@media (max-width: 480px) {
    .jewelry-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .jewelry-price-quick-filters {
        grid-template-columns: 1fr;
    }

    .jewelry-product-image {
        height: auto;
        aspect-ratio: 1;
    }

    .jewelry-product-title {
        font-size: 11px;
    }

    .jewelry-product-price {
        font-size: 13px;
    }

    .jewelry-search-page .jewelry-product-info {
        padding: 8px 10px 12px;
    }

    .jewelry-visual-filter-btn {
        min-width: 90px;
    }

    .jewelry-visual-filter-title {
        font-size: 0.75rem;
    }
}

/* ============================================
   PROMO TAGS & VALUE LABELS
   ============================================ */

/* Promo Tag */
.jewelry-promo-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--jewelry-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(134, 97, 74, 0.2);
}

/* Product Specs Line */
.jewelry-search-page .jewelry-product-specs {
    font-size: 0.8rem;
    color: #8a7a6e;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.jewelry-product-specs {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

/* Price Row */
.jewelry-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Value Label Pill */
.jewelry-value-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: help;
    position: relative;
}

/* Value Label Tiers */
.jewelry-value-tier-1 {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.15);
}

.jewelry-value-tier-2 {
    background: rgba(201, 169, 110, 0.12);
    color: var(--jewelry-primary);
    border: 1px solid rgba(201, 169, 110, 0.2);
}

.jewelry-value-tier-3 {
    background: rgba(194, 24, 91, 0.08);
    color: #C2185B;
    border: 1px solid rgba(194, 24, 91, 0.12);
}



/* ============================================
   HOVER IMAGE EFFECT
   ============================================ */
.jewelry-product-img-main,
.jewelry-product-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    /* Hide broken image icons and alt text */
    color: transparent;
    font-size: 0;
    background-color: #f5f5f5;
}

.jewelry-product-img-main {
    opacity: 1;
    z-index: 1;
}

.jewelry-product-img-hover {
    /* opacity: 0; */
    /* z-index: 2; */
}

/* Custom Scrollbar Styling */
.jewelry-sidebar-filters-container::-webkit-scrollbar {
    width: 5px;
}

.jewelry-sidebar-filters-container::-webkit-scrollbar-track {
    background: transparent;
}

.jewelry-sidebar-filters-container::-webkit-scrollbar-thumb {
    background: rgba(134, 97, 74, 0.2);
    border-radius: 10px;
}

.jewelry-sidebar-filters-container::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 97, 74, 0.35);
}

/* Firefox Scrollbar */
.jewelry-sidebar-filters-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(134, 97, 74, 0.2) transparent;
}
/**
 * Collection Page Styles
 * For engagement rings, wedding rings, and other collection pages
 */

/* ============================================
   BREADCRUMB
   ============================================ */
.jewelry-breadcrumb {
    background: var(--jewelry-bg-light);
    padding: 16px 0;
    border-bottom: 1px solid var(--jewelry-border);
}

.jewelry-breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.jewelry-breadcrumb a {
    color: var(--jewelry-text-light);
    text-decoration: none;
    transition: var(--jewelry-transition);
}

.jewelry-breadcrumb a:hover {
    color: var(--jewelry-primary);
}

.jewelry-breadcrumb-separator {
    color: var(--jewelry-text-light);
}

/* ============================================
   COLLECTION HEADER
   ============================================ */
.jewelry-collection-header {
    padding: 48px 0;
    text-align: center;
    background: var(--jewelry-white);
}

.jewelry-collection-header h1 {
    font-family: var(--jewelry-font-heading);
    font-size: 48px;
    font-weight: 400;
    margin: 0 0 16px 0;
    color: var(--jewelry-text);
}

.jewelry-collection-description {
    font-size: 18px;
    color: var(--jewelry-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   COLLECTION LAYOUT
   ============================================ */
.jewelry-collection-content {
    padding: 48px 0 80px 0;
}

.jewelry-collection-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

/* ============================================
   FILTER SIDEBAR
   ============================================ */
.jewelry-filter-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 24px;
    background: var(--jewelry-white);
    border: 1px solid var(--jewelry-border);
    border-radius: 8px;
}

.jewelry-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--jewelry-border);
}

.jewelry-filter-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.jewelry-filter-clear {
    background: none;
    border: none;
    color: var(--jewelry-primary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--jewelry-transition);
}

.jewelry-filter-clear:hover {
    text-decoration: underline;
}

.jewelry-filter-group {
    margin-bottom: 32px;
}

.jewelry-filter-title {
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: var(--jewelry-text);
}

.jewelry-filter-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Price Filter */
.jewelry-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow: hidden;
}

.jewelry-price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--jewelry-border);
    border-radius: 4px;
    font-size: 14px;
}

.jewelry-price-separator {
    color: var(--jewelry-text-light);
}

.jewelry-price-slider {
    position: relative;
    height: 4px;
    background: var(--jewelry-border);
    border-radius: 2px;
    margin: 16px 0 8px 0;
}

.jewelry-range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
}

.jewelry-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--jewelry-primary);
    cursor: pointer;
    pointer-events: all;
}

.jewelry-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--jewelry-text-light);
}

/* Shape Filter */
.jewelry-shape-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.jewelry-shape-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 1px solid var(--jewelry-border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--jewelry-transition);
}

.jewelry-shape-option:hover {
    border-color: var(--jewelry-primary);
    background: var(--jewelry-bg-light);
}

.jewelry-shape-option input {
    display: none;
}

.jewelry-shape-option input:checked + .jewelry-shape-icon {
    color: var(--jewelry-primary);
}

.jewelry-shape-option input:checked ~ .jewelry-shape-name {
    color: var(--jewelry-primary);
    font-weight: 600;
}

.jewelry-shape-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: var(--jewelry-transition);
}

.jewelry-shape-name {
    font-size: 12px;
    color: var(--jewelry-text);
    transition: var(--jewelry-transition);
}

/* Checkbox Options */
.jewelry-checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
}

.jewelry-checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.jewelry-checkbox-option span {
    font-size: 14px;
    color: var(--jewelry-text);
}

/* ============================================
   TOOLBAR
   ============================================ */
.jewelry-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--jewelry-white);
    border: 1px solid var(--jewelry-border);
    border-radius: 8px;
    margin-bottom: 24px;
}

.jewelry-toolbar-left,
.jewelry-toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jewelry-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--jewelry-white);
    border: 1px solid var(--jewelry-border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--jewelry-transition);
}

.jewelry-filter-toggle:hover {
    background: var(--jewelry-bg-light);
}

.jewelry-result-count {
    font-size: 14px;
    color: var(--jewelry-text-light);
}

.jewelry-sort-label {
    font-size: 14px;
    color: var(--jewelry-text);
}

.jewelry-sort-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--jewelry-border);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: var(--jewelry-white);
}

.jewelry-view-toggle {
    display: flex;
    gap: 4px;
    border: 1px solid var(--jewelry-border);
    border-radius: 4px;
    overflow: hidden;
}

.jewelry-view-btn {
    padding: 8px 12px;
    background: var(--jewelry-white);
    border: none;
    cursor: pointer;
    transition: var(--jewelry-transition);
}

.jewelry-view-btn:hover {
    background: var(--jewelry-bg-light);
}

.jewelry-view-btn.active {
    background: var(--jewelry-primary);
    color: var(--jewelry-white);
}

/* ============================================
   ACTIVE FILTERS
   ============================================ */
.jewelry-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0px;
}

.jewelry-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--jewelry-bg-light);
    border: 1px solid var(--jewelry-border);
    border-radius: 20px;
    font-size: 13px;
}

.jewelry-filter-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--jewelry-text-light);
    font-size: 16px;
    line-height: 1;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.jewelry-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.jewelry-products-grid.view-list {
    grid-template-columns: 1fr;
}

.jewelry-products-grid.view-list .jewelry-product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}

.jewelry-products-grid.view-list .jewelry-product-image {
    aspect-ratio: 1;
}

/* ============================================
   PAGINATION
   ============================================ */
.jewelry-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.jewelry-page-btn {
    padding: 8px 16px;
    background: var(--jewelry-white);
    border: 1px solid var(--jewelry-border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--jewelry-transition);
}

.jewelry-page-btn:hover {
    background: var(--jewelry-bg-light);
}

.jewelry-page-btn.active {
    background: var(--jewelry-primary);
    color: var(--jewelry-white);
    border-color: var(--jewelry-primary);
}

.jewelry-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.jewelry-education {
    padding: 80px 0;
    background: var(--jewelry-bg-light);
}

.jewelry-education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.jewelry-education-item {
    padding: 32px;
    background: var(--jewelry-white);
    border-radius: 8px;
}

.jewelry-education-item h3 {
    font-size: 20px;
    margin: 0 0 12px 0;
}

.jewelry-education-item p {
    font-size: 15px;
    color: var(--jewelry-text-light);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.jewelry-education-item a {
    color: var(--jewelry-primary);
    text-decoration: none;
    font-weight: 500;
}

.jewelry-education-item a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .jewelry-collection-layout {
        grid-template-columns: 1fr;
    }

    .jewelry-filter-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        max-height: 100vh;
        border-radius: 0;
    }

    .jewelry-filter-sidebar.active {
        display: block;
    }

    .jewelry-filter-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .jewelry-collection-header h1 {
        font-size: 36px;
    }

    .jewelry-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .jewelry-toolbar-left,
    .jewelry-toolbar-right {
        justify-content: space-between;
    }

    .jewelry-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ============================================
   NOUISLIDER STYLES FOR JEWELRY SEARCH
   ============================================ */

/* noUiSlider base styles */
.jewelry-filter-structure .noUi-connect {
    background: linear-gradient(90deg, var(--jewelry-primary), var(--jewelry-accent));
    border-radius: 3px;
}

.jewelry-filter-structure .noUi-horizontal {
    height: 6px;
    margin-top: 25px;
}

.jewelry-filter-structure .noUi-handle.noUi-handle {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    top: -10px;
    cursor: pointer;
    background: var(--jewelry-primary);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(134, 97, 74, 0.25);
    transition: box-shadow 0.2s ease;
}

.jewelry-filter-structure .noUi-handle.noUi-handle:hover {
    box-shadow: 0 4px 12px rgba(134, 97, 74, 0.35);
}

.jewelry-filter-structure .noUi-handle:after,
.jewelry-filter-structure .noUi-handle:before {
    display: none;
}

/* Step labels and dividers */
.filter-step-value-title {
    position: relative;
    color: #666;
    font-size: 12px;
    transition: color 0.2s ease;
}

.filter-step-value-title.active {
    color: var(--jewelry-text);
    font-weight: 600;
}

.filter-step-value-title .slider-step-divider {
    position: absolute;
    width: 2px;
    height: 5px;
    background-color: #E0E0E0;
    border-radius: 0px;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: none;
}

.filter-step-value-title.active .slider-step-divider {
    background-color: var(--jewelry-text);
}

.filter-step-value-title-txt {
    text-align: center;
}

/* Adjust input fields for slider filters */
.jewelry-filter-structure input[type="number"] {
    border: 1px solid rgba(134, 97, 74, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: var(--jewelry-font-primary);
    color: var(--jewelry-text);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.jewelry-filter-structure input[type="number"]:focus {
    outline: none;
    border-color: var(--jewelry-primary);
    box-shadow: 0 0 0 3px rgba(134, 97, 74, 0.08);
}



.flex.justify-between.px-1.mt-2 {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    width: calc(101% + 15px);
}
.filter-step-value-title-last-step {
    left: -10px;
}
.jewelry-border-filter-structure {
    border-bottom: 1px solid rgba(134, 97, 74, 0.08);
    padding: 0px 0px 24px 0px;
    margin-bottom: 0px;
    color: var(--jewelry-text);
}

.jewelry-shape-icon-wrapper {
    width: 100%;
    padding: 7px 0px;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid transparent;
}

label.jewelry-filter-checkbox.jewelry-shape-checkbox {}

.jewelry-filter-options span {
    color: var(--jewelry-text);
    font-weight: 500;
}
.jewelry-visual-filter-row.loaded.topFilterHidden {
    display: none!important;
}
.jewelry-visual-filter-carousel.topFilterShow {
    display: block!important;
}
