/*
Theme Name: MyDecor Child
Theme URI: https://demo.theme-sky.com/mydecor/
Author: Theme Sky Team
Author URI: http://theme-sky.com/
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Template: mydecor
Version: 1.0.0
License: GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: mydecor-child
*/

/* Mabry Pro Font - Headings and Menu */
h1, h2, h3, h4, h5, h6,
.site-header .main-navigation ul li a,
.site-header .main-navigation ul li,
.menu-item a,
nav ul li a,
.main-menu a,
.header-menu a,
.site-navigation a,
.widget-title,
.entry-title,
.post-title,
.product-title,
.woocommerce .product_title,
.woocommerce h1.product_title,
.woocommerce h2.product_title,
/* Additional menu selectors */
#site-navigation a,
#main-navigation a,
.main-navigation a,
.navigation a,
.menu a,
.header-navigation a,
.site-header nav a,
/* Additional heading selectors */
.page-title,
.section-title,
.block-title,
.content-title,
.archive-title,
.single-title {
    font-family: 'Mabry Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

.bottom-navigacija ul {
    float: right;
    display: flex;
    align-items: center;
    gap: 30px;
}

.bottom-navigacija ul li {
    padding: 0px;  
}

@media only screen and (max-width: 600px) {
.bottom-navigacija ul {
    float: unset;
    display: flex;
    align-items: flex-start;
    gap: 17px;
    flex-wrap: wrap;
    align-content: flex-start;
}
}

/* Partners Page Styles */
.partners-filters {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

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

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

.filter-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: #0073aa;
    outline: none;
}

.reset-filters-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reset-filters-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.no-results-message {
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 30px;
    color: #666;
}

.no-results-message p {
    margin: 0;
    font-size: 16px;
}

.partners-page .partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.partner-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.3s ease;
}

.partner-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.partner-avatar {
    flex-shrink: 0;
}

.partner-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.partner-basic-info {
    flex: 1;
}

.partner-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.partner-area {
    font-size: 14px;
    color: #666;
}

.partner-area .label {
    font-weight: 600;
    margin-right: 5px;
}

.partner-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
}

.partner-badge-gold {
    background-color: #ffd700;
    color: #333;
}

.partner-badge-diamond {
    background-color: #b9f2ff;
    color: #333;
}

.partner-details {
    margin-bottom: 20px;
}

.partner-field {
    margin-bottom: 15px;
    font-size: 14px;
}

.partner-field:last-child {
    margin-bottom: 0;
}

.partner-field .field-label {
    font-weight: 600;
    color: #333;
    display: inline-block;
    min-width: 100px;
    margin-right: 10px;
}

.partner-field .field-value {
    color: #666;
}

.partner-field .field-value a {
    color: #0073aa;
    text-decoration: none;
}

.partner-field .field-value a:hover {
    text-decoration: underline;
}

.partner-links .field-value {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-links .field-value a {
    display: inline-block;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.partner-links .field-value a:hover {
    background: #e0e0e0;
}

.partner-map {
    margin-top: 15px;
}

.partner-map iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 4px;
}

.partner-moodboards {
    margin-top: 20px;
}

.moodboard-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.moodboard-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.moodboard-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.moodboard-item:hover img {
    transform: scale(1.05);
}

.partner-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.partner-shop-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.partner-shop-link:hover {
    background: #005a87;
    color: #fff;
}

/* Moodboards upload in vendor dashboard */
.moodboards-upload {
    margin-top: 10px;
}

.moodboards-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.moodboard-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.moodboard-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moodboard-preview-item .remove-moodboard {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moodboard-preview-item .remove-moodboard:hover {
    background: rgba(255, 0, 0, 1);
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .filters-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .partners-page .partners-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partner-header {
        flex-direction: column;
        text-align: center;
    }
    
    .partner-avatar {
        margin: 0 auto;
    }
    
    .moodboard-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Moodboard Creator Styles */
.moodboard-creator-page {
    padding: 20px 0;
    max-width:98%;
}

.moodboard-creator-wrapper {
    max-width: 100%;
    margin: 30px 0;
}

.moodboard-step {
    display: none;
}

.moodboard-step.active {
    display: block;
}

/* Format Selection */
.format-selection {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.format-option {
    cursor: pointer;
    text-align: center;
    padding: 30px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    min-width: 30%;
}

.format-option:hover {
    border-color: #0073aa;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.format-option.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

.format-preview {
    width: 150px;
    height: 200px;
    margin: 0 auto 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.portrait-preview {
    width: 240px;
    height: 360px;
}

.landscape-preview {
    width: 360px;
    height: 240px;
}

.format-icon {
    font-size: 48px;
}

.format-option h3 {
    margin: 10px 0 5px;
    color: #333;
}

.format-option p {
    color: #666;
    margin: 0;
}

/* Moodboard Editor */
.moodboard-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.moodboard-btn {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.moodboard-btn:hover {
    background: #005a87;
}

.moodboard-layout {
    display: flex;
    gap: 20px;
    min-height: 600px;
}

/* Sidebar */
.moodboard-sidebar {
    width: 350px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    max-height: 800px;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.tab-content {
    display: none;
}

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

.products-search {
    margin-bottom: 15px;
}

.products-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.product-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    cursor: move;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.product-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-item.dragging {
    opacity: 0.5;
}

.product-item[draggable="false"] {
    cursor: default;
}

.product-select-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
}

.product-item[draggable="false"] .product-select-overlay {
    display: block;
}

.product-select-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #0073aa;
}

.mobile-only {
    display: none;
}

@media only screen and (max-width: 767px) {
    .mobile-only {
        display: block;
    }
    
    .product-item {
        cursor: default;
    }
    
    .product-item[draggable="true"] {
        cursor: move;
    }
}

.mobile-selection-bar {
    background: #0073aa;
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-selection-bar #selected-count {
    font-weight: 600;
    flex: 1;
}

.mobile-selection-bar .moodboard-btn {
    padding: 4px 8px;
    font-size: 10px;
    background: #fff;
    color: #0073aa;
    border: none;
}

.mobile-selection-bar .moodboard-btn:hover {
    background: #f0f0f0;
}

.mobile-selection-bar #selected-count {
    font-size: 12px;
}

.product-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.add-to-cart-btn {
    width: 100%;
    padding: 8px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #005a87;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.upload-area.dragover {
    border-color: #0073aa;
    background: #e6f3ff;
}

/* Canvas Container */
.moodboard-canvas-container {
    flex: 1;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

/* Right Sidebar - Image Editor */
.moodboard-right-sidebar {
    width: 250px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.moodboard-right-sidebar h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.image-editor-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.editor-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    width: 100%;
    text-align: left;
}

.editor-btn:hover {
    background: #e6f3ff;
    border-color: #0073aa;
    color: #0073aa;
}

.editor-btn .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.editor-btn .label {
    flex: 1;
    font-weight: 500;
}

.editor-btn.delete-btn {
    background: #fff5f5;
    border-color: #ffcccc;
    color: #d32f2f;
}

.editor-btn.delete-btn:hover {
    background: #ffe6e6;
    border-color: #ff9999;
    color: #b71c1c;
}

.canvas-wrapper {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    touch-action: none;
    -webkit-touch-callout: none;
}

#moodboard-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.canvas-drop-zone {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: 2px dashed #0073aa;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.canvas-drop-zone.active {
    opacity: 1;
    pointer-events: all;
}

.canvas-drop-zone p {
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
}

/* Right Sidebar - Image Editor */
.moodboard-right-sidebar {
    width: 250px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.moodboard-right-sidebar h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.image-editor-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.editor-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    width: 100%;
    text-align: left;
}

.editor-btn:hover {
    background: #e6f3ff;
    border-color: #0073aa;
    color: #0073aa;
}

.editor-btn .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.editor-btn .label {
    flex: 1;
    font-weight: 500;
}

.editor-btn.delete-btn {
    background: #fff5f5;
    border-color: #ffcccc;
    color: #d32f2f;
}

.editor-btn.delete-btn:hover {
    background: #ffe6e6;
    border-color: #ff9999;
    color: #b71c1c;
}

/* Canvas Items */
.canvas-item {
    position: absolute;
    cursor: move;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.canvas-item.selected {
    border-color: #0073aa;
}

.canvas-item img {
    display: block;
    max-width: 100%;
    height: auto;
}

.canvas-item .item-controls {
    position: absolute;
    top: -30px;
    right: 0;
    display: none;
    gap: 5px;
}

.canvas-item.selected .item-controls {
    display: flex;
}

.item-controls button {
    padding: 5px 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Added Products Section */
.added-products-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.added-products-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.filter-widget-area-button, .product-on-sale-form {
    display:none;
}

.added-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.added-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.added-product-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.added-product-item h4 {
    flex: 1;
    margin: 0;
    font-size: 13px;
    color: #333;
}

.added-product-item .add-to-cart-btn {
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.added-product-item .add-to-cart-btn:hover {
    background: #005a87;
}

/* Resize Handles */
#moodboard-canvas {
    cursor: default;
}

#moodboard-canvas[style*="cursor: move"] {
    cursor: move !important;
}

#moodboard-canvas[style*="cursor: nwse-resize"] {
    cursor: nwse-resize !important;
}

/* Responsive */
@media only screen and (max-width: 1024px) {
    .moodboard-layout {
        flex-direction: column;
    }
    
    .moodboard-sidebar {
        width: 100%;
        max-height: 400px;
    }
    
    .moodboard-right-sidebar {
        width: 100%;
        order: 2; /* Show after canvas on mobile */
        margin-top: 20px;
    }
    
    .moodboard-canvas-container {
        order: 1;
    }
    
    .added-products-list {
        max-height: 200px;
    }
    
    .image-editor-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .editor-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        padding: 10px;
        font-size: 12px;
    }
    
    .editor-btn .icon {
        font-size: 18px;
    }
    
    .products-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 480px) {
    .products-list {
        grid-template-columns: 1fr;
    }
}

/* Full-Width Filters */
.mydecor-fullwidth-filters {
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.filter-dropdown {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.filter-dropdown-toggle {
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 14px;
    gap: 10px;
}

.filter-dropdown-toggle:hover {
    background: #e9ecef;
    border-color: #0073aa;
}

.filter-dropdown-toggle.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.filter-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.filter-dropdown-toggle.active .filter-label {
    color: #fff;
}

.filter-value {
    flex: 1;
    color: #666;
    text-align: right;
}

.filter-dropdown-toggle.active .filter-value {
    color: #fff;
}

/* Filter arrow removed */

.filter-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.filter-dropdown.active .filter-dropdown-content {
    display: block;
}

.filter-dropdown-content ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.filter-dropdown-content ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Category hierarchy styles */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    position: relative;
}

.category-item.has-children {
    margin-bottom: 2px;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #666;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease;
}

.category-toggle:hover {
    color: #0073aa;
}

.toggle-icon {
    display: inline-block;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.category-item.expanded .toggle-icon {
    transform: rotate(0deg);
}

.category-spacer {
    width: 20px;
    flex-shrink: 0;
}

.category-link,
.subcategory-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-link:hover,
.subcategory-link:hover {
    background: #f0f0f0;
    color: #0073aa;
}

.category-link.active,
.subcategory-link.active {
    background: #0073aa;
    color: #fff;
}

.category-link.active .count,
.subcategory-link.active .count {
    color: #fff;
}

.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 28px;
    margin-top: 4px;
}

.subcategory-list li {
    margin-bottom: 2px;
}

.subcategory-link {
    font-size: 13px;
    padding: 6px 12px;
}

.filter-dropdown-content ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.filter-dropdown-content ul li a:hover {
    background: #f8f9fa;
}

.filter-dropdown-content ul li a.active {
    background: #0073aa;
    color: #fff;
}

.filter-dropdown-content ul li label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-dropdown-content ul li label:hover {
    background: #f8f9fa;
}

.filter-dropdown-content ul li input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.filter-dropdown-content ul li.checked {
    background: #f0f8ff;
}

.filter-dropdown-content ul li.checked label {
    font-weight: 600;
}

/* Color Swatches */
.color-list label {
    display: flex;
    align-items: center;
    width: 100%;
}

.brand-list label,
.vendor-list a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: #333;
}

.vendor-list a:hover {
    background: #f8f9fa;
}

.vendor-list a.active {
    background: #0073aa;
    color: #fff;
}

.vendor-list a.active .brand-name,
.vendor-list a.active .count {
    color: #fff;
}

.color-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.color-swatch .color-circle {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    display: block;
}

.color-swatch .color-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filter-dropdown-content ul li.checked .color-swatch {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Brand Images */
.brand-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    flex-shrink: 0;
}

.brand-image .brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.color-name,
.brand-name {
    flex: 1;
    color: #333;
    display: flex;
    align-items: center;
}

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

/* Price Filter */
.price-filter-form {
    padding: 15px;
}

.price-range-display {
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
}

.price-range-display .price-min-display,
.price-range-display .price-max-display {
    font-weight: 600;
    color: #0073aa;
}

.price-separator-display {
    margin: 0 10px;
    color: #666;
}

.price-slider-wrapper {
    position: relative;
    margin-bottom: 20px;
    padding: 20px 10px;
}

.price-slider-wrapper input[type="hidden"] {
    display: none;
}

.price-slider-container {
    position: relative;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin-bottom: 20px;
}

.price-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    pointer-events: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.price-slider::-webkit-slider-thumb:hover {
    background: #005a87;
    transform: scale(1.15);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.price-slider::-moz-range-thumb:hover {
    background: #005a87;
    transform: scale(1.15);
}

.price-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider::-ms-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.price-slider::-moz-range-track {
    background: transparent;
}

.price-slider:focus {
    outline: none;
}

.price-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

.price-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

/* Active range between sliders */
.price-slider-container {
    --min-percent: 0%;
    --max-percent: 100%;
}

.price-slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--min-percent);
    width: calc(var(--max-percent) - var(--min-percent));
    height: 6px;
    background: #0073aa;
    border-radius: 3px;
    z-index: 1;
    transition: left 0.1s ease, width 0.1s ease;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    background: #005a87;
    transform: scale(1.1);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.price-slider::-moz-range-thumb:hover {
    background: #005a87;
    transform: scale(1.1);
}

.price-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider::-ms-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

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

.price-slider:focus {
    outline: none;
}

.price-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

.price-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

.price-separator {
    color: #666;
    font-weight: 600;
}

.apply-price-filter,
.apply-color-filter,
.apply-brand-filter {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.apply-price-filter:hover,
.apply-color-filter:hover,
.apply-brand-filter:hover {
    background: #005a87;
}

.filter-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.filter-reset-btn {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-reset-btn:hover {
    background: #e9ecef;
    border-color: #0073aa;
    color: #0073aa;
}

.ts-active-filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .filters-container {
        flex-direction: column;
    }
    
    .filter-dropdown {
        min-width: 100%;
    }
    
    .filter-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .filter-reset-btn {
        width: 100%;
    }
}

/* Moodboards Admin Styles */
.moodboard-photos-admin {
    padding: 20px 0;
}

.moodboard-photo-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
}

.photo-preview {
    position: relative;
    margin-bottom: 15px;
}

.photo-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.photo-preview .remove-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.photo-preview .remove-photo:hover {
    background: #a00;
}

.photo-tags-editor {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.photo-tags-editor h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.tag-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.tag-position, .tag-product {
    margin-bottom: 10px;
}

.tag-position label, .tag-product label {
    display: inline-block;
    width: 100px;
    font-weight: 600;
    color: #333;
}

.tag-position input, .tag-product select {
    width: 200px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tag-image-editor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.tag-image-editor.active {
    display: flex;
}

.tag-image-editor-content {
    background: #fff;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
    border-radius: 8px;
}

.tag-image-editor-content .close-editor {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
}

.tag-image-editor-content .close-editor:hover {
    background: #a00;
}

.tag-image-editor-content h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.tag-image-editor-content > div {
    position: relative;
    display: inline-block;
}

.tag-image-editor-content img {
    max-width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
}

.tag-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #0073aa;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.tag-marker:hover {
    background: #005a87;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Moodboards Display Styles */
.moodboards-page {
    padding: 20px 0;
}

.moodboards-display-wrapper {
    margin: 30px 0;
}

.moodboards-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.moodboards-slider {
    display: flex;
    overflow: hidden;
    position: relative;
}

.moodboard-slide-item {
    min-width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.moodboard-slide-item.active {
    opacity: 1;
}

.moodboard-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #000;
}

.moodboard-image-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.moodboard-tags-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.moodboard-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
}

.moodboard-tag .tag-marker {
    width: 24px;
    height: 24px;
    background: #0073aa;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: moodboard-pulse 2s infinite;
}

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

.moodboard-tag:hover .tag-marker {
    background: #005a87;
    transform: translate(-50%, -50%) scale(1.2);
}

.moodboard-tag .tag-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.moodboard-tag:hover .tag-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.moodboard-tag .tag-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.moodboard-tag .tag-popup img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.moodboard-tag .tag-popup h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.moodboard-tag .product-price {
    margin: 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
}

.moodboard-tag .view-product-btn,
.moodboard-tag .add-to-cart-tag-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    background: #0073aa;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease;
}

.moodboard-tag .view-product-btn:hover,
.moodboard-tag .add-to-cart-tag-btn:hover {
    background: #005a87;
}

.moodboard-tag .add-to-cart-tag-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.moodboards-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
}

.slider-prev,
.slider-next {
    pointer-events: all;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.slider-prev:hover,
.slider-next:hover {
    background: #0073aa;
    color: #fff;
}

.moodboards-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: #0073aa;
    transform: scale(1.2);
}

/* Lightbox */
.moodboard-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.moodboard-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 1;
    z-index: 10;
    transition: transform 0.3s ease;
}

.lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-tags-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    pointer-events: all;
    background: rgba(255,255,255,0.2);
    border: 2px solid #fff;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.4);
}

.no-moodboards {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-moodboards p {
    font-size: 18px;
    margin: 0;
}

/* Responsive Moodboards */
@media only screen and (max-width: 768px) {
    .moodboard-image-wrapper {
        padding-bottom: 100%;
    }

    .portrait-preview {
        width: 120px;
        height: 180px;
    }
    
    .landscape-preview {
        width: 180px;
        height: 120px;
    }
    
    .moodboard-tag .tag-popup {
        min-width: 150px;
        padding: 10px;
    }
    
    .moodboard-tag .tag-popup h4 {
        font-size: 12px;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin: 0 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin: 0 10px;
    }
}