/* 
 * Lux Marketplace Main Styles
 */

/* General Layout */
.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Header & Navigation */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: 0.3s ease;
}

header.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 600;
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-trigger, .theme-toggle, .cart-trigger {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: 0.3s;
}

.search-trigger:hover, .theme-toggle:hover, .cart-trigger:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Product Card Styling */
.lux-product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lux-product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

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

.lux-product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.badge.sale { background: var(--accent-color); }
.badge.new { background: var(--secondary-color); }
.badge.hot { background: #f59e0b; }

.product-actions-overlay {
    position: absolute;
    right: -50px;
    top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.3s ease;
    z-index: 5;
}

.lux-product-card:hover .product-actions-overlay {
    right: 15px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.product-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lux-vendor-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.vendor-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.lux-vendor-badge span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-family: 'Outfit', sans-serif;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1rem;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.product-rating {
    font-size: 0.85rem;
    color: #f59e0b;
    font-weight: 600;
}

.product-card-footer .add_to_cart_button {
    width: 100%;
    justify-content: center;
}

/* Grids */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* Tabs: Featured / Most Viewed / Best Selling / Top Rated */
.tab-buttons {
    display: inline-flex;
    gap: 0.5rem;
}
.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}
.tab-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}
.tab-panels { margin-top: 1.5rem; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }

/* Vendors grid and vendor card styles (moved from inline) */
.vendors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.vendor-card { padding: 2rem; border-radius: 20px; text-align: center; border: 1px solid var(--border-color); }
.vendor-card img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 1rem; border: 3px solid var(--primary-color); object-fit: cover; }
.vendor-card h3 { margin-bottom: 0.5rem; }
.vendor-rating { color: #f59e0b; margin-bottom: 1rem; }
.vendor-card .lux-btn.btn-small { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* Section header row */
.section-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

/* Promo banner moved from inline */
.promo-banner { background: var(--primary-gradient); padding: 4rem; border-radius: 30px; color: white; text-align: center; }
.promo-title { color: white; font-size: 3rem; }
.promo-subtitle { font-size: 1.5rem; margin-bottom: 2rem; }
.promo-cta { background: white; color: var(--primary-color) !important; }

/* Single Product Layout */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 2.5rem;
    align-items: start;
}

.product-gallery {
    background: transparent;
}

.product-gallery .woocommerce-product-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.product-gallery .woocommerce-product-gallery__image img,
.product-gallery .woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-summary {
    padding: 0;
}

.product-summary .product_title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.product-summary .price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.product-summary .stock {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-summary .sku_wrapper {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.product-summary .woocommerce-product-rating { margin-bottom: 0.75rem; }

.vendor-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.vendor-box .vendor-avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.vendor-box .vendor-name { font-weight: 700; color: var(--text-main); }
.vendor-box .vendor-rating { color: #f59e0b; }

/* Tabs styling (WooCommerce) */
.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
.woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

.woocommerce-Tabs-panel { padding: 1rem 0; }

/* Sticky Add-to-Cart bar for mobile */
.sticky-add-to-cart {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sticky-add-to-cart .sat-info { display: flex; gap: 0.75rem; align-items: center; }
.sticky-add-to-cart .sat-info .sat-title { font-weight: 700; }
.sticky-add-to-cart .sat-cta .button { padding: 0.6rem 1rem; border-radius: 10px; }

@media (max-width: 768px) {
    .single-product-layout { grid-template-columns: 1fr; }
    .sticky-add-to-cart { display: flex; }
    .product-gallery .woocommerce-product-gallery__image img { max-height: 420px; object-fit: cover; }
}

/* Small refinements */
.single-product-layout .product-summary .button {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
}


/* Category Cards */
.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.category-card:hover img {
    transform: scale(1.1);
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* Dark Mode Overrides */
[data-theme="dark"] .lux-product-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .action-btn {
    background: #334155;
}

/* Shop Specific Styling */
.shop-header {
    background: var(--bg-card);
    border-radius: 0 0 50px 50px;
    margin-bottom: 2rem;
    text-align: center;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.shop-title {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shop-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

body.rtl .shop-layout {
    grid-template-columns: 1fr 300px;
}

body.rtl .shop-sidebar {
    order: 2;
}

body.rtl .shop-main-content {
    order: 1;
}

/* Sidebar Widgets */
.sidebar-inner {
    position: sticky;
    top: 100px;
}

.filter-widget {
    padding: 2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
}

/* Ensure Start Selling button remains visible across themes */
.btn-start-selling {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.65rem 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
}

[data-theme="dark"] .btn-start-selling {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gradient);
}

.category-list-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list-wrapper li {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list-wrapper li a {
    color: var(--text-main);
    font-weight: 500;
}

.category-list-wrapper li .count {
    background: var(--border-color);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Shop Toolbar & Mobile Filters */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

#mobile-filter-toggle {
    display: none; /* Hidden by default, shown on mobile */
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    background: var(--bg-card);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-tag {
    background: var(--border-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.filter-tag i {
    cursor: pointer;
    font-size: 0.75rem;
}

/* Skeleton Loader */
.lux-skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-body) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

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

.products-loading-overlay {
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.shop-main-content.loading .products-loading-overlay {
    opacity: 1;
    visibility: visible;
}

/* Responsive Shop Layout */
@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr !important;
    }

    #mobile-filter-toggle {
        display: flex;
    }

    .shop-sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        width: 300px;
        background: var(--bg-card);
        z-index: 2000;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .shop-sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

.woocommerce-result-count {
    margin: 0;
    font-weight: 600;
}

.woocommerce-ordering select {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--text-main);
    outline: none;
}

/* Products Grid Layout */
.shop-main-content ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
}

.shop-main-content ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 4rem;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination ul li span, 
.woocommerce-pagination ul li a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 700;
}

.woocommerce-pagination ul li span.current {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.woocommerce-pagination ul li a:hover {
    background: var(--primary-color);
    color: white;
}

.lux-followed-vendors-header {
    margin-bottom: 2rem;
}

.lux-followed-vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.lux-followed-vendor-card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.lux-followed-vendor-cover {
    display: block;
    min-height: 130px;
    background-color: var(--bg-body);
    background-position: center;
    background-size: cover;
}

.lux-followed-vendor-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.lux-followed-vendor-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.lux-followed-vendor-info h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.25;
}

.lux-followed-vendor-info h2 a {
    color: var(--text-main);
}

.lux-followed-vendor-meta {
    display: flex;
    gap: 0.85rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lux-followed-vendor-meta i {
    color: var(--primary-color);
}

.lux-followed-vendor-link {
    margin: 0 1rem 1rem;
}

.lux-empty-state {
    max-width: 640px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
}

.lux-empty-state p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

#vs-contact-modal[style*="display: block"],
#vs-contact-modal[style*="display:block"] {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

#vs-contact-modal .vs-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

#vs-contact-modal .vs-modal {
    position: relative !important;
    z-index: 100002 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    color: #111827 !important;
}

#vs-contact-modal .vs-modal h3,
#vs-contact-modal .vs-modal p,
#vs-contact-modal .vs-modal textarea {
    color: #111827 !important;
}

.lux-store-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 1.25rem;
}

/* ── store search ── */
.lux-store-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    min-width: 200px;
    max-width: 280px;
}
.lux-store-search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted, #888);
    pointer-events: none;
    display: flex;
    align-items: center;
}
#lux-store-search-input {
    width: 100%;
    height: 38px;
    padding: 0 2rem 0 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.18s;
}
#lux-store-search-input:focus {
    border-color: var(--primary-color);
}
#lux-store-search-input::-webkit-search-cancel-button { display: none; }
.lux-store-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted, #888);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
    line-height: 1;
}
.lux-store-search-clear:hover { color: var(--text-main); }
.lux-search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted, #888);
}
@media (max-width: 540px) {
    .lux-store-search-wrap { margin-left: 0; width: 100%; max-width: 100%; }
}

.lux-store-filter-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
}

.lux-store-filter-tabs button.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.lux-store-filter-tabs button:disabled {
    cursor: wait;
    opacity: 0.72;
}

#lux-stores-dynamic-results {
    transition: opacity 0.18s ease;
}

#lux-stores-dynamic-results.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.lux-store-directory-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.lux-store-directory-btn:hover {
    background: #1e40af;
    color: #fff;
}

.lux-share-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0.45rem;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lux-share-store-btn:hover {
    background: #15803d;
}

.lux-share-store-msg {
    display: none;
    margin-left: 6px;
    color: #10b981;
    font-weight: 600;
}

.lux-following-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.lux-following-badge.is-following {
    background: #dcfce7;
    color: #166534;
}

.lux-following-badge.is-not-following {
    background: #fee2e2;
    color: #991b1b;
}

.follow-vendor-btn {
    position: relative;
    min-width: 136px;
    min-height: 44px;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(255,255,255,0.22) !important;
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(37,99,235,0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.follow-vendor-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37,99,235,0.36);
}

.follow-vendor-btn.is-following {
    border-color: rgba(16,185,129,0.38) !important;
    background: rgba(236,253,245,0.95) !important;
    color: #047857 !important;
    box-shadow: 0 10px 24px rgba(16,185,129,0.18);
}

.follow-vendor-btn.is-following:hover,
.follow-vendor-btn.is-following.is-unfollow-hover {
    border-color: rgba(248,113,113,0.45) !important;
    background: rgba(254,242,242,0.98) !important;
    color: #b91c1c !important;
    box-shadow: 0 12px 28px rgba(239,68,68,0.18);
}

.follow-vendor-btn.is-loading {
    cursor: wait;
    opacity: 0.82;
    transform: none;
}

.follow-vendor-btn i,
.follow-vendor-btn span {
    position: relative;
    z-index: 1;
}

/* ══ Live Shop Filter Bar ═══════════════════════════════════════════════════ */
#lux-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

/* Search */
.lux-filter-search {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0 14px;
    gap: 8px;
    transition: border-color .2s;
}
.lux-filter-search:focus-within {
    border-color: var(--primary);
}
.lux-fi-icon {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    flex-shrink: 0;
}
#lux-shop-search {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.88rem;
    padding: 9px 0;
    outline: none;
}
#lux-search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .2s;
}
#lux-search-clear:hover { color: var(--primary); }

/* Category select */
.lux-filter-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23888' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 0.88rem;
    padding: 9px 32px 9px 16px;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    min-width: 180px;
}
.lux-filter-select-wrap select:focus { border-color: var(--primary); }

/* Price range */
.lux-filter-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
    flex: 1;
}
.lux-price-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
#lux-price-display {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}
.lux-range-wrap {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
}
.lux-range-track {
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    pointer-events: none;
}
.lux-range-fill {
    position: absolute;
    top: 0; bottom: 0;
    background: var(--primary);
    border-radius: 4px;
}
.lux-range-wrap input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    outline: none;
}
.lux-range-wrap input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-card);
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
    cursor: pointer;
    pointer-events: all;
}
.lux-range-wrap input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-card);
    cursor: pointer;
    pointer-events: all;
}

/* Reset button */
#lux-filter-reset {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
#lux-filter-reset:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Spinner */
.lux-spinner {
    display: inline-block;
    width: 32px; height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: lux-spin .7s linear infinite;
}
@keyframes lux-spin { to { transform: rotate(360deg); } }

/* Grid opacity transition */
#lux-products-grid { transition: opacity .25s ease; }

/* Responsive */
@media (max-width: 768px) {
    #lux-filter-bar { flex-direction: column; align-items: stretch; }
    .lux-filter-search { max-width: 100%; }
    .lux-filter-select-wrap select { width: 100%; }
}

/* ═══════════════════════════════════════════════
   FIX : Dashboard Sidebar — Mode Mobile
   Problème : clic sur icône → tout cache / tout affiche
   Solution : sidebar toujours visible, toggle seulement les LABELS
═══════════════════════════════════════════════ */

/* ── Sidebar container : toujours visible en mobile ── */
@media (max-width: 768px) {

    /* Dokan */
    .dokan-dash-sidebar,
    .dokan-dashboard-wrap .dokan-dash-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        width: 60px !important;          /* mode icônes seules */
        z-index: 9999 !important;
        overflow: hidden !important;
        transition: width 0.25s ease !important;
        display: block !important;       /* jamais caché */
    }

    /* Quand le sidebar est "ouvert" (labels visibles) */
    .dokan-dash-sidebar.sidebar-open,
    .dokan-dash-sidebar:not(.sidebar-collapsed) {
        width: 220px !important;
    }

    /* Les textes/labels : cachés par défaut en mobile */
    .dokan-dash-sidebar ul li a span,
    .dokan-dash-sidebar ul li a .menu-label,
    .dokan-dash-sidebar .dokan-dash-menu > li > a > span:not(.icon) {
        opacity: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        transition: opacity 0.2s ease, width 0.25s ease !important;
    }

    /* Labels visibles quand ouvert */
    .dokan-dash-sidebar.sidebar-open ul li a span,
    .dokan-dash-sidebar.sidebar-open ul li a .menu-label,
    .dokan-dash-sidebar.sidebar-open .dokan-dash-menu > li > a > span:not(.icon) {
        opacity: 1 !important;
        width: auto !important;
    }

    /* Les icônes toujours visibles */
    .dokan-dash-sidebar ul li a i,
    .dokan-dash-sidebar ul li a .icon,
    .dokan-dash-sidebar ul li a svg {
        flex-shrink: 0 !important;
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Contenu principal : marge gauche pour ne pas être caché sous le sidebar */
    .dokan-dashboard-wrap .dokan-dashboard-content,
    .dokan-dashboard-content {
        margin-left: 65px !important;
        width: calc(100% - 65px) !important;
        transition: margin-left 0.25s ease !important;
    }

    /* Quand sidebar ouvert : overlay semi-transparent derrière */
    .dokan-dash-sidebar.sidebar-open ~ .dokan-dashboard-content::before,
    .sidebar-backdrop {
        content: '' !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0,0,0,0.4) !important;
        z-index: 9998 !important;
    }

    /* ── WCFM (autre plugin dashboard) ── */
    #wcfm_menu,
    .wcfm_menu_wrap {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        width: 60px !important;
        z-index: 9999 !important;
        overflow: hidden !important;
        transition: width 0.25s ease !important;
        display: block !important;
    }

    #wcfm_menu.wcfm-menu-open,
    .wcfm_menu_wrap.wcfm-menu-open {
        width: 220px !important;
    }

    #wcfm_menu .wcfm_menu_item span,
    #wcfm_menu .wcfm_menu_item .wcfm-menu-label {
        opacity: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        transition: opacity 0.2s, width 0.25s !important;
    }

    #wcfm_menu.wcfm-menu-open .wcfm_menu_item span,
    #wcfm_menu.wcfm-menu-open .wcfm_menu_item .wcfm-menu-label {
        opacity: 1 !important;
        width: auto !important;
    }

    /* ── WC Vendors ── */
    .wcv-dashboard-navigation {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        width: 60px !important;
        z-index: 9999 !important;
        overflow: hidden !important;
        transition: width 0.25s ease !important;
        display: block !important;
    }

    .wcv-dashboard-navigation.nav-open {
        width: 220px !important;
    }
}

/* ── Script de toggle injecté via CSS content trick ── */
/* (voir aussi le JS ci-dessous dans functions.php) */

