.elementor-1180 .elementor-element.elementor-element-e0d3b6d{--display:flex;}.elementor-1180 .elementor-element.elementor-element-8446ef6 > .elementor-widget-container{margin:0px 0px 50px 0px;}body.elementor-page-1180:not(.elementor-motion-effects-element-type-background), body.elementor-page-1180 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FCFCFC;}/* Start custom CSS for dbd_single_product, class: .elementor-element-7f5c9f9 *//* ==========================================================================
   ویجت اختصاصی صفحه محصول دست به دست
   ========================================================================== */
.dbd-single-product-app {
    direction: rtl;
    text-align: right;
    font-family: inherit;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.dbd-product-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

/* گالری تصاویر */
.dbd-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    aspect-ratio: 1/1;
}

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

.main-image-wrapper:hover img {
    transform: scale(1.03);
}

.badge-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 2;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-btn {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    width: 64px;
    height: 64px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.thumb-btn.active, .thumb-btn:hover {
    border-color: #2563eb;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* بخش فروشنده */
.dbd-vendor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.vendor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.vendor-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vendor-label {
    font-size: 10px;
    color: #64748b;
}

.vendor-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none !important;
}

.vendor-link-btn {
    font-size: 11px;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
}

/* عنوان و قیمت */
.dbd-product-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.dbd-price-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 12px;
}

.dbd-product-price {
    font-size: 18px;
    font-weight: 800;
    color: #059669;
}

.dbd-product-price del {
    font-size: 13px;
    color: #94a3b8;
    margin-left: 6px;
}

.dbd-stock-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.dbd-stock-badge.in-stock { background: #dcfce7; color: #15803d; }
.dbd-stock-badge.out-stock { background: #fee2e2; color: #b91c1c; }

.dbd-short-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* افزودن به سبد خرید */
.dbd-simple-add-to-cart {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.qty-picker {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: #f8fafc;
    width: 36px;
    height: 44px;
    font-weight: 700;
    cursor: pointer;
}

.qty-input {
    width: 40px;
    height: 44px;
    border: none !important;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    outline: none !important;
}

.dbd-add-cart-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dbd-add-cart-btn:hover { background: #1d4ed8; }

/* نشان‌های اطمینان */
.dbd-trust-badges {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

/* اشتراک‌گذاری شبکه پیام‌رسان‌ها */
.dbd-social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.share-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
}

.share-btn.tg { background: #229ed9; }
.share-btn.wa { background: #25d366; }
.share-btn.th { background: #000000; }
.share-btn.ei { background: #e05a00; }
.share-btn.bl { background: #11a086; }
.share-btn.rb { background: #8200d6; }
.share-btn.em { background: #64748b; }

/* پاسخ‌گویی موبایل (Mobile Responsive) */
@media (max-width: 768px) {
    .dbd-product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .dbd-single-product-app {
        padding: 16px;
    }
    .dbd-simple-add-to-cart {
        flex-direction: column;
    }
    .qty-picker {
        justify-content: center;
    }
}
/* ==========================================================================
   بهینه‌سازی مدرن موبایل، دکمه خرید و متغیرهای محصول (Fix Mobile UI/UX)
   ========================================================================== */

/* ۱. استایل‌دهی هوشمند به متغیرهای ووکامرس (رنگ، سایز و...) */
.dbd-single-product-app .variations_form {
    width: 100% !important;
}

.dbd-single-product-app table.variations {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.dbd-single-product-app table.variations tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.dbd-single-product-app table.variations td.label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155;
    padding: 0 !important;
}

.dbd-single-product-app table.variations td.value {
    padding: 0 !important;
}

/* زیباتر کردن Swatchها یا Selectboxهای ووکامرس */
.dbd-single-product-app table.variations select {
    width: 100% !important;
    height: 42px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    outline: none !important;
}

/* ۲. اصلاح لایه‌بندی بخش خرید و تعداد (هم‌راستاسازی افقی) */
.dbd-single-product-app .single_add_to_cart_button,
.dbd-single-product-app .dbd-add-cart-btn {
    min-height: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 10px 20px;
}

.dbd-single-product-app .single_add_to_cart_button:active,
.dbd-single-product-app .dbd-add-cart-btn:active {
    transform: scale(0.98);
}

/* ۳. اصلاح کادر انتخاب تعداد (Quantity Picker) در موبایل */
.dbd-single-product-app .dbd-purchase-section,
.dbd-single-product-app .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 12px !important;
}

.dbd-single-product-app .qty-picker,
.dbd-single-product-app div.quantity {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.dbd-single-product-app .qty-btn {
    width: 38px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dbd-single-product-app .qty-input,
.dbd-single-product-app div.quantity input.qty {
    width: 44px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    outline: none !important;
    padding: 0 !important;
}

/* خنثی‌سازی استایل‌های پیش‌فرض فلش‌های Input ووکامرس */
.dbd-single-product-app div.quantity input.qty::-webkit-inner-spin-button,
.dbd-single-product-app div.quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ۴. رتوش نهایی برای سایز موبایل (صفحه‌نمایش‌های زیر 640px) */
@media (max-width: 640px) {
    .dbd-single-product-app {
        padding: 16px !important;
        border-radius: 16px !important;
    }
    
    .dbd-product-title {
        font-size: 17px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }
    
    .dbd-price-stock-row {
        padding: 10px 14px !important;
        border-radius: 12px !important;
    }

    .dbd-product-price {
        font-size: 16px !important;
    }
    
    .dbd-trust-badges {
        justify-content: space-around !important;
        padding: 10px 0 !important;
    }
    
    .share-buttons {
        justify-content: flex-start !important;
    }
}/* End custom CSS */
/* Start custom CSS for dbd_related_products, class: .elementor-element-8446ef6 *//* ==========================================================================
   حل ریشه‌ای اسکرول افقی (Flexbox Width Fix)
   ========================================================================== */

/* ۱. شکستن قانون min-width: auto در والد المنتور */
.elementor-widget-dbd_related_products,
.dbd-related-products-wrapper {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.dbd-related-products-wrapper {
    direction: rtl;
    text-align: right;
    font-family: inherit;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin-top: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* ۲. لایه ایزوله‌کننده اسکرول (حیاتی برای مهار اسکرول بدنه) */
.dbd-scroll-viewport {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    position: relative;
}

/* ۳. کانتینر اصلی اسکرول */
.related-grid {
    display: flex !important;
    gap: 12px;
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    padding: 4px 2px 12px 2px;
    box-sizing: border-box;
    
    /* پشتیبانی اسکرول لمسی موبایل */
    -webkit-overflow-scrolling: touch;
    
    /* مخفی‌سازی اسکرول‌بار */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-grid::-webkit-scrollbar {
    display: none;
}

/* ۴. کارت‌ها */
.related-card-item {
    flex: 0 0 155px !important;
    width: 155px !important;
    max-width: 155px !important;
    min-width: 155px !important;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* سایر استایل‌های هدر و کارت (بدون تغییر) */
.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.header-badge {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 4px;
}

.header-title h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.slider-arrows {
    display: flex;
    flex-direction: row-reverse;
    gap: 6px;
}

.arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #f8fafc;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rel-sale-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    z-index: 2;
}

.card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rel-vendor-name {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.rel-title {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rel-title a {
    color: #1e293b;
    text-decoration: none !important;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
}

.rel-price {
    font-size: 12px;
    font-weight: 800;
    color: #059669;
}

.rel-price del {
    font-size: 10px;
    color: #94a3b8;
    display: block;
}

.rel-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

@media (min-width: 640px) {
    .related-card-item {
        flex: 0 0 200px !important;
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
    }
}/* End custom CSS */