/**
 * کانتینر سراسری سایت — 1400px، عرض 100%
 * Bootstrap .container، HPB، ماژول‌ها، CTA
 */

:root {
    --hpb-site-container-max: 1400px;
    --hpb-site-container-padding-inline: 24px;
}

/* فونت: site-typography.css + FontLibraryManager — نه این فایل */
/* اعداد فارسی: اسکریپت hpb-persian-digits.js — استثنا: .no-persian-digits یا data-latin-digits */

/* ─── کانتینرهای HPB / shop — بدون override سراسری روی .container وودمارت ─── */
.hpb-container,
.hpb-lb-row-inner,
.hpb-fb-row-inner,
.hpb-footer-builder .hpb-fb-inner-wrap,
.hpb-cta__inner,
.hpb-cta-solutions__panels,
.hpb-module,
.hamta-latest-news-section,
.hamta-shop,
.hamta-single-product,
.hamta-wc-native-single-wrap,
.hamta-wc-native-catalog-wrap,
.hamta-content-inner,
.hamta-footer-container,
.hamta-orders,
.hamta-order-details,
.hpb-archive-main,
.hamta-cart.container:not(.container-fluid),
.hamta-checkout.container:not(.container-fluid),
.hpb-header-builder .container:not(.container-fluid),
.hpb-footer-builder .container:not(.container-fluid),
.hamta-shop .container:not(.container-fluid) {
    width: 100% !important;
    max-width: var(--hpb-site-container-max, 1400px) !important;
    margin-inline: auto;
    box-sizing: border-box;
}

/* هدر/فوتر — متغیر مشترک با بیلدر */
.hpb-header-builder,
.hpb-footer-builder,
.hpb-header-builder.hpb-lb-sticky-bottom-host {
    --hpb-lb-desktop-max-width: var(--hpb-site-container-max, 1400px);
}

/* Elementor باکس‌شده (صفحات و سکشن‌ها) */
.elementor-section.elementor-section-boxed > .elementor-container {
    width: 100% !important;
    max-width: var(--hpb-site-container-max, 1400px) !important;
    margin-inline: auto;
    box-sizing: border-box;
}

/* ─── استثنا: تمام‌عرض یا محتوای خاص ─── */
.container-fluid,
body.hd-single-post-layout .site-content > .container,
.hd-single-shortcode-root .site-content > .container,
.hpb-header-builder .ns_home_menu .the_mega_block,
.hpb-header-builder .ns_home_menu .the_mega_block .elementor,
.hpb-header-builder .ns_home_menu .the_mega_block .elementor-section,
.hpb-header-builder .ns_home_menu .the_mega_block .elementor-container,
.hpb-header-builder .ns_home_menu .the_mega_block .e-con {
    max-width: none !important;
}

body.hd-single-post-layout .site-content > .container,
.hd-single-shortcode-root .site-content > .container {
    width: 100% !important;
}
