/* Start custom CSS for shortcode, class: .elementor-element-5b2373a */* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.jwd-search-input {
    width: 100%;
    padding: 18px 54px 18px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    font-size: 17px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&display=swap');

/* ===== PAGINATION STYLES ===== */
.jwd-pagination-container {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
}
.jwd-results-header {
    animation: slideInFromTop 0.4s ease-out;
}

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

.jwd-results-header h2 {
    line-height: 1.2;
    margin-bottom: 0;
}

/* Add extra spacing for mobile */
@media (max-width: 768px) {
    .jwd-results-header {
        margin-bottom: 25px !important;
        padding-bottom: 15px !important;
    }
    
    .jwd-results-header h2 {
        font-size: 1.5rem !important;
    }
}
.jwd-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.jwd-pagination-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.jwd-pagination-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

.jwd-pagination-btn.active {
    background: #4a5568;
    border-color: #4a5568;
    color: white;
}

.jwd-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.jwd-pagination-ellipsis {
    padding: 10px 5px;
    color: #6c757d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .jwd-pagination {
        gap: 4px;
    }
    
    .jwd-pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 35px;
    }
}

/* ===== BACK BUTTON STYLES ===== */
.jwd-sidebar-back-container {
    margin-bottom: 15px;
    animation: slideDown 0.3s ease-out;
}

.jwd-sidebar-back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: flex-start;
}

.jwd-sidebar-back-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    transform: translateX(-2px);
}

.jwd-back-arrow {
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.jwd-sidebar-back-button:hover .jwd-back-arrow {
    transform: translateX(-2px);
}

.jwd-back-text {
    font-family: 'Barlow', sans-serif;
}

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

/* ===== INSTRUCTION CONTAINER STYLES ===== */
.jwd-instruction-container {
    padding: 40px 20px !important;
}

.jwd-instruction-container h2 {
    font-size: 2.5rem !important;
}

.jwd-instruction-container > div:first-child p {
    font-size: 1.1rem !important;
}

.jwd-instruction-container div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.jwd-instruction-container > div:nth-child(2) > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.jwd-instruction-container div[style*="background: white"][style*="border: 3px solid"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    min-height: auto !important;
}

.jwd-instruction-container h4 {
    margin-bottom: 8px !important;
    font-size: 1.8rem !important;
}

.jwd-instruction-container div[style*="background: white"] p {
    margin: 0 !important;
    line-height: 1.3 !important;
}

.jwd-instruction-container {
    padding: 20px !important;
}

[style*="grid-template-columns: repeat(2, 1fr)"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    align-items: stretch !important;
    max-width: 100% !important;
    width: 100% !important;
}

.jwd-instruction-container h3 {
    font-size: 1.6rem !important;
}

.jwd-instruction-container > div:last-of-type > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.jwd-instruction-container > div:last-of-type > div > div {
    padding: 30px !important;
    min-height: auto !important;
}

.jwd-instruction-container > div:last-of-type > div > div p {
    font-size: 1rem !important;
}

.jwd-instruction-container > div:first-child {
    margin-bottom: 40px !important;
}

.jwd-instruction-container > div:last-child {
    margin-top: 40px !important;
}

/* ===== MAIN LAYOUT ===== */
.jwd-art-shop {
    font-family: 'Barlow', sans-serif;
    line-height: 1.6;
}

.jwd-category-count {
    display: none !important;
}

.jwd-category-name,
.jwd-subcategory-name {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jwd-artist-count {
    display: none !important;
}

.jwd-subcategory-count {
    display: none !important;
}

.jwd-shop-container {
    margin: 0 auto;
    font-family: 'Barlow', sans-serif;
}

.jwd-shop-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    align-items: start;
}

/* ===== SIDEBAR LAYOUT ===== */
.jwd-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    max-height: 200vh;
    display: flex;
    flex-direction: column;
}

.jwd-sidebar-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #3d566e 50%, #485e74 75%, #52677a 100%);
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.jwd-sidebar-header h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    text-align: center;
}

.jwd-sidebar-header p {
    opacity: 0.9;
    font-size: 0.9rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 300;
    text-align: center;
}

.jwd-sidebar-close {
    display: none;
}

/* ===== SIDEBAR CONTENT WITH FIXED HEIGHT ===== */
.jwd-sidebar-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Alphabet index styles */
.jwd-alphabet-index {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    overflow-y: auto;
    z-index: 10;
}

.jwd-sidebar-content.show-alphabet .jwd-alphabet-index {
    display: flex;
}

.jwd-alphabet-letter {
    flex: 0 0 auto;
    width: 100%;
    padding: 2px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-family: 'Barlow', sans-serif;
    line-height: 1.2;
}

.jwd-alphabet-letter:hover {
    background: #e9ecef;
    color: #495057;
}

.jwd-alphabet-letter.active {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #3d566e 50%, #485e74 75%, #52677a 100%);
    color: white;
}

.jwd-alphabet-letter.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.jwd-alphabet-special {
    padding: 4px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 4px;
    font-size: 11px;
}

.jwd-category-item.hidden,
.jwd-artist-item.hidden {
    display: none;
}

.jwd-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.jwd-tab-container {
    flex: 1;
    position: relative;
    transition: margin-left 0.3s ease;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jwd-sidebar-content.show-alphabet .jwd-tab-container {
    margin-left: 30px;
}

.jwd-tab-buttons {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    justify-content: center;
    flex-shrink: 0;
}

.jwd-tab-button {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Barlow', sans-serif;
    text-align: center;
}

.jwd-tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.jwd-tab-button.active {
    color: #4a5568;
    background: white;
}

.jwd-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #3d566e 50%, #485e74 75%, #52677a 100%);
}

/* ===== TAB CONTENT WITH FIXED HEIGHT ===== */
.jwd-tab-content {
    display: none;
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 600px; /* Fixed height for about 10 categories */
}

.jwd-tab-content.active {
    display: block;
}

/* Style the scrollbar on the tab content */
.jwd-tab-content::-webkit-scrollbar {
    width: 8px;
}

.jwd-tab-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
    margin: 8px 0;
}

.jwd-tab-content::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.jwd-tab-content::-webkit-scrollbar-thumb:hover {
    background: #2d3748;
}

/* For Firefox */
.jwd-tab-content {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #f8f9fa;
}

.jwd-category-list, 
.jwd-artist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: none; /* Let parent handle scrolling */
    overflow: visible; /* Let parent handle scrolling */
}

.jwd-category-item, .jwd-artist-item {
    margin-bottom: 8px;
    padding: 0;
    width: 100%;
}

/* ===== CATEGORY AND ARTIST LINKS ===== */
.jwd-category-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 18px;
    padding-left: 18px;
    text-decoration: none;
    color: #495057;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    text-align: left;
    width: 100%;
}

.jwd-artist-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 18px;
    padding-left: 18px;
    text-decoration: none;
    color: #495057;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    text-align: left;
    width: 100%;
}

.jwd-category-link:hover, .jwd-artist-link:hover {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.1), rgba(45, 55, 72, 0.1));
    border-color: #4a5568;
    color: #4a5568;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.15);
    text-decoration: none;
}

.jwd-category-link.selected, .jwd-artist-link.selected {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #3d566e 50%, #485e74 75%, #52677a 100%);
    color: white;
    border-color: #2c3e50;
}

.jwd-category-link.has-children::after {
    content: '▶';
    position: absolute;
    right: 18px;
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.jwd-category-link.has-children.expanded::after {
    transform: rotate(90deg);
    opacity: 1;
}

.jwd-category-link.has-children:hover::after {
    opacity: 1;
}

/* ===== SUBCATEGORY STYLES ===== */
.jwd-subcategory-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-radius: 0 0 10px 10px;
    margin-top: 4px;
    padding: 0;
    list-style: none;
    padding-left: 0;
}

.jwd-subcategory-container.expanded {
    max-height: none;
    min-height: auto;
    padding-bottom: 8px;
    padding-top: 8px;
}

.jwd-subcategory-item {
    margin-bottom: 8px;
    list-style: none;
    padding-left: 30px;
}

.jwd-subcategory-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.9rem;
    padding: 10px 14px;
    background: #eef1f4;
    border-radius: 8px;
    border: 1px solid #d5d8dc;
    text-transform: uppercase;
    transition: all 0.2s ease;
    color: #495057;
    cursor: pointer;
    text-align: left;
    width: 100%;
    position: relative;
}

.jwd-subcategory-link::before {
    content: '└';
    position: absolute;
    left: -20px;
    color: #adb5bd;
    font-size: 14px;
}

.jwd-subcategory-link.has-children::after {
    content: '▶';
    position: absolute;
    right: 14px;
    font-size: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.jwd-subcategory-link.has-children.expanded::after {
    transform: rotate(90deg);
    opacity: 1;
}

.jwd-subcategory-link.has-children:hover::after {
    opacity: 1;
}

.jwd-subcategory-link:hover {
    background: #e2e6ea;
    border-color: #c4c8cc;
    transform: translateX(2px);
}

.jwd-subcategory-link.selected {
    background: #34495e;
    color: #fff;
    border-color: #2c3e50;
}

.jwd-subcategory-name {
    font-weight: 500;
    flex: 0 0 auto;
    font-family: 'Barlow', sans-serif;
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    color: inherit;
    line-height: 1.4;
}

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

.jwd-subcategory-container.expanded .jwd-subcategory-item {
    animation: slideDown 0.3s ease forwards;
}

.jwd-subcategory-container.expanded .jwd-subcategory-item:nth-child(1) { animation-delay: 0.05s; }
.jwd-subcategory-container.expanded .jwd-subcategory-item:nth-child(2) { animation-delay: 0.10s; }
.jwd-subcategory-container.expanded .jwd-subcategory-item:nth-child(3) { animation-delay: 0.15s; }
.jwd-subcategory-container.expanded .jwd-subcategory-item:nth-child(4) { animation-delay: 0.20s; }
.jwd-subcategory-container.expanded .jwd-subcategory-item:nth-child(5) { animation-delay: 0.25s; }

.jwd-category-icon, .jwd-artist-icon {
    width: 20px;
    height: 20px;
    margin-right: 14px;
    opacity: 0.8;
    fill: currentColor;
}

.jwd-subcategory-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    opacity: 0.6;
    fill: currentColor;
}

.jwd-category-name, .jwd-artist-name {
    font-weight: 500;
    flex: 1;
    font-family: 'Barlow', sans-serif;
    text-align: left;
    display: block;
}

/* ===== PRODUCT AREA ===== */
.jwd-product-area {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    min-height: 90vh;
    position: relative;
}

.jwd-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.jwd-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.jwd-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #4a5568;
    text-decoration: none;
    color: inherit;
}

.jwd-product-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.jwd-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.jwd-product-placeholder {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    fill: #6c757d;
}

.jwd-favorite-heart,
.favorite-heart-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 999999 !important;
    background: none !important;
    border: none !important;
    color: #e74c3c !important;
    cursor: pointer !important;
    font-size: 24px !important;
    font-weight: normal !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    padding: 8px !important;
    margin: 0 !important;
    outline: none !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 5px rgba(255, 255, 255, 0.8) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.jwd-favorite-heart:hover,
.favorite-heart-btn:hover {
    transform: scale(1.2) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(255, 255, 255, 1) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.jwd-favorite-heart.favorited,
.favorite-heart-btn.favorited {
    color: #e74c3c !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(255, 255, 255, 0.9) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.jwd-product-info {
    padding: 20px;
}

.jwd-product-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Barlow', sans-serif;
}

.jwd-product-artist {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.jwd-product-category {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== LOADING OVERLAY ===== */
.jwd-loading-overlay {
    position: absolute;
    top: 240px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    z-index: 10;
    backdrop-filter: blur(4px);
    border-radius: 0 0 16px 16px;
    transition: all 0.3s ease;
}

.jwd-loading-overlay.active {
    display: flex;
}

.jwd-loading-content {
    text-align: center;
    color: #4a5568;
}

.jwd-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #4a5568;
    border-radius: 50%;
    animation: jwd-spin 1s linear infinite;
    margin: 0 auto 24px;
    position: relative;
}

.jwd-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #4a5568;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: jwd-pulse 1.5s ease-in-out infinite;
}

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

@keyframes jwd-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.jwd-loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: 'Barlow', sans-serif;
}

.jwd-loading-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    font-family: 'Barlow', sans-serif;
}

.jwd-product-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== MOBILE STYLES ===== */
.jwd-mobile-filter-tab {
    display: none;
    position: fixed;
    top: 20px;
    left: 10px;
    z-index: 1001;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #3d566e 50%, #485e74 75%, #52677a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.3);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-100px);
}

.jwd-mobile-filter-tab.visible {
    opacity: 1;
    transform: translateY(0);
}

.jwd-mobile-filter-tab.hidden {
    opacity: 0;
    transform: translateY(-100px);
}

.jwd-mobile-filter-tab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.jwd-filter-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.jwd-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.jwd-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1400px) {
    .jwd-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .jwd-shop-layout {
        grid-template-columns: 300px 1fr;
        gap: 20px;
    }
    
    .jwd-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .jwd-shop-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .jwd-mobile-filter-tab {
        display: flex;
    }
    
    .jwd-mobile-overlay {
        display: block;
    }

    .jwd-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }
    
    .jwd-sidebar.open {
        left: 0;
    }
    
    .jwd-sidebar-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s ease;
    }
    
    .jwd-sidebar-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    .jwd-product-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .jwd-shop-container {
        padding: 16px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .jwd-product-area {
        width: 100%;
        min-width: 0;
        padding: 20px;
        margin: 0;
    }

    .jwd-product-card {
        width: 100%;
        max-width: none;
    }

    .jwd-product-image {
        height: 300px;
    }

    .jwd-alphabet-index {
        width: 25px;
    }
    
    .jwd-sidebar-content.show-alphabet .jwd-tab-container {
        margin-left: 25px;
    }
    
    .jwd-alphabet-letter {
        font-size: 11px;
        padding: 1px 0;
    }

    .jwd-sidebar-back-button {
        width: 36px;
        height: 36px;
    }
    
    .jwd-back-arrow {
        font-size: 20px;
    }

    .jwd-subcategory-item {
        padding-left: 20px;
    }
    
    .jwd-subcategory-link::before {
        left: -15px;
    }

    /* Mobile tab content - override with mobile height limit */
    .jwd-tab-content {
        max-height: 60vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .jwd-shop-container {
        padding: 12px;
    }

    .jwd-product-area {
        padding: 15px;
    }

    .jwd-product-grid {
        gap: 15px;
    }
}

/* ===== FOCUS AND ACCESSIBILITY ===== */
.jwd-sidebar-back-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.jwd-sidebar-back-button:active {
    transform: translateX(-1px) scale(0.95);
}

/* Handle very deep nesting (3+ levels) */
.jwd-subcategory-item[style*="padding-left: 40px"] .jwd-subcategory-link,
.jwd-subcategory-item[style*="padding-left: 60px"] .jwd-subcategory-link,
.jwd-subcategory-item[style*="padding-left: 80px"] .jwd-subcategory-link {
    font-size: 0.85rem;
    padding: 8px 12px;
    background: #f0f3f6;
}

/* Better animation for expanding categories */
.jwd-subcategory-container {
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Fix for very long category lists */
@media (min-height: 800px) {
    .jwd-tab-content {
        max-height: 500px;
    }
}

/* Smooth transitions for all interactive elements */
.jwd-category-link,
.jwd-subcategory-link,
.jwd-artist-link {
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Ensure proper stacking for expanded categories */
.jwd-subcategory-container.expanded {
    position: relative;
    z-index: 1;
}/* End custom CSS */