.elementor-3219 .elementor-element.elementor-element-9bea4e6{--display:flex;}/* Start custom CSS for dbd_category_products, class: .elementor-element-70bf2f8 *//* کانتینر اصلی آرشیو دسته‌بندی */
.dbd-cat-archive-app {
    direction: rtl;
    font-family: inherit;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* نوار افقی چیپ‌های زیردسته (Subcategory Chips) */
.dbd-subcats-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.dbd-subcats-bar::-webkit-scrollbar {
    height: 4px;
}

.dbd-subcats-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dbd-subcat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: inherit;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dbd-subcat-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.dbd-subcat-chip.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.subcat-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 11px;
    opacity: 0.9;
}

.dbd-subcat-chip.active .subcat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* نوار کنترل اصلی */
.dbd-controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.dbd-search-field {
    position: relative;
    flex: 1 1 260px;
}

.dbd-search-field .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.dbd-search-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.dbd-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dbd-controls-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

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

.dbd-select-input {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: inherit;
    padding: 10px 14px 10px 36px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dbd-select-input:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dbd-dropdown-wrapper .select-arrow {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.6;
}

.dbd-toggle-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: inherit;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dbd-toggle-filters-btn:hover,
.dbd-toggle-filters-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* پانل فیلتر پیشرفته */
.dbd-advanced-filters-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

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

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

.filter-label {
    display: block;
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.dbd-range-input {
    width: 100%;
    accent-color: #3b82f6;
    cursor: pointer;
}

.switches-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dbd-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
}

.dbd-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dbd-switch .slider {
    width: 36px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 20px;
    position: relative;
}

.dbd-switch .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.dbd-switch input:checked + .slider {
    background-color: #3b82f6;
}

.dbd-switch input:checked + .slider:before {
    transform: translateX(16px);
}

/* شبکه کارت محصولات */
.dokan-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.dokan-product-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.dokan-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dokan-product-card:hover .card-thumb img {
    transform: scale(1.06);
}

/* برچسب غرفه/فروشنده */
.card-vendor-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.card-vendor-badge .vendor-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-vendor-badge .vendor-link:hover {
    color: #3b82f6;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.card-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
}

.stock-status.in-stock { color: #10b981; }
.stock-status.out-of-stock { color: #ef4444; }

.card-footer-stacked {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-footer-stacked .price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
}

.action-box-block {
    width: 100%;
}

.dbd-block-btn {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.dbd-block-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.dbd-block-qty {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-sizing: border-box;
}

.dbd-block-qty .qty-btn {
    width: 30px;
    height: 30px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.dbd-block-qty .qty-btn:hover {
    background: #2563eb;
}

.dbd-block-qty .qty-number {
    font-size: 12px;
    font-weight: 600;
    color: inherit;
}

.dbd-badge-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.dbd-badge-status.status-outofstock {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.dbd-badge-status.status-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* انیمیشن لودینگ بدون تغییر اندازه */
.dbd-btn-loading {
    position: relative !important;
    pointer-events: none !important;
}

.dbd-btn-loading > * {
    opacity: 0 !important;
    visibility: hidden !important;
}

.dbd-btn-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin-top: -8px !important;
    margin-left: -8px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: dbd-spin 0.6s linear infinite !important;
    box-sizing: border-box !important;
}

.wishlist-btn.dbd-btn-loading::after {
    border: 2px solid rgba(239, 68, 68, 0.3) !important;
    border-top-color: #ef4444 !important;
}

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

/* استایل مدال ویژگی‌ها */
.dbd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dbd-modal-content {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.dbd-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
}

.dbd-modal-title {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 600;
}

.dbd-attr-group {
    margin-bottom: 12px;
}

.dbd-attr-label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.dbd-attr-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.dbd-attr-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.dbd-attr-pill:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.dbd-attr-pill.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #fff;
    font-weight: bold;
}

.dbd-attr-pill.pill-color {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.dbd-attr-pill.pill-color .color-checkmark {
    display: none;
    color: #fff;
    font-size: 12px;
}

.dbd-attr-pill.pill-color.active {
    transform: scale(1.15);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #3b82f6;
}

.dbd-attr-pill.pill-color.active .color-checkmark {
    display: block;
}

.selected-val-name {
    color: #3b82f6;
    font-weight: 600;
    margin-right: 4px;
}

.dbd-modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.dbd-btn-primary {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}

.dbd-pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

.page-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.dbd-no-results {
    text-align: center;
    padding: 50px 20px;
    opacity: 0.6;
    font-size: 14px;
}

@media (max-width: 600px) {
    .dbd-controls-bar, .dbd-controls-group {
        flex-direction: column;
        align-items: stretch;
    }
    .dbd-dropdown-wrapper, .dbd-select-input, .dbd-toggle-filters-btn {
        width: 100%;
    }
    .dokan-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}/* End custom CSS */