:root {
            --dpr-mob-w: calc(100vw - 30px);
}
@media (max-width: 540px) {
    :root {
        --dpr-mob-w: min(400px, calc(100vw - 30px));
    }
}
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1366px) {
    :root {
        --dpr-mob-w: calc(100vw - (max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px), 36px) * 2));
    }
}

/* === PC & MOBİL HEADER BUILDER KESİN GÖRÜNÜRLÜK KİLİDİ (ZERO COLLISION) === */
@media (min-width: 1025px) and (min-height: 561px), (min-width: 1281px) {
    html body .dpr-vis-mobile,
    html body #dpr-header-wrap .dpr-vis-mobile,
    html body #dpr-header-wrap .dpr-logo-link.dpr-vis-mobile,
    html body #dpr-header-wrap .dpr-circle-btn.dpr-vis-mobile,
    html body #dpr-header-wrap .dpr-hb-btn.dpr-vis-mobile,
    html body #dpr-header-wrap .dpr-action-group.dpr-vis-mobile,
    html body #dpr-header-wrap .dpr-hb-nav-slot.dpr-vis-mobile,
    html body #dpr-header-wrap .dpr-hb-socials.dpr-vis-mobile,
    html body #dpr-header-wrap .dpr-hb-html.dpr-vis-mobile,
    html body #hk-premium-header .dpr-vis-mobile,
    html body #hk-premium-header .dpr-hb-btn.dpr-vis-mobile,
    html body #hk-premium-header .dpr-action-group.dpr-vis-mobile,
    html body #dpr-mega-modal .dpr-vis-mobile {
        display: none !important;
    }
}
@media (max-width: 1024px), (orientation: landscape) and (max-height: 560px) and (max-width: 1280px) {
    html body .dpr-vis-desktop,
    html body #dpr-header-wrap .dpr-vis-desktop,
    html body #dpr-header-wrap .dpr-logo-link.dpr-vis-desktop,
    html body #dpr-header-wrap .dpr-circle-btn.dpr-vis-desktop,
    html body #dpr-header-wrap .dpr-hb-btn.dpr-vis-desktop,
    html body #dpr-header-wrap .dpr-action-group.dpr-vis-desktop,
    html body #dpr-header-wrap .dpr-hb-nav-slot.dpr-vis-desktop,
    html body #dpr-header-wrap .dpr-hb-socials.dpr-vis-desktop,
    html body #dpr-header-wrap .dpr-hb-html.dpr-vis-desktop,
    html body #hk-premium-header .dpr-vis-desktop,
    html body #hk-premium-header .dpr-hb-btn.dpr-vis-desktop,
    html body #hk-premium-header .dpr-action-group.dpr-vis-desktop,
    html body #dpr-mega-modal .dpr-vis-desktop {
        display: none !important;
    }
}

/* === SLIDER ALTINDAKİ WOODMART/WPBAKERY 60PX BOŞLUĞUNU TEMİZLE (PC & MOBİL) === */
html body .vc_row:has(#dprHeroSlider, .dp-showcase-slider, #dpHero1350),
html body [class*="wd-rs-"]:has(#dprHeroSlider, .dp-showcase-slider, #dpHero1350),
html body .wpb_content_element:has(#dprHeroSlider, .dp-showcase-slider, #dpHero1350),
html body .wpb_wrapper:has(> #dprHeroSlider, > .dp-showcase-slider, > #dpHero1350),
html body .elementor-widget:has(#dprHeroSlider, .dp-showcase-slider, #dpHero1350) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
html body #dpHero1350 {
    margin-bottom: 14px !important;
}
@media (max-width: 1024px) {
    html body #dpHero1350 {
        margin-bottom: 10px !important;
    }
}

/* === PC GENİŞLİĞİ: SABİT PX (WOODMART'I DİNLEMEZ!) === */
@media (min-width: 1025px) {
    :root {
        --wd-container-w: calc(var(--dpr-pc-max) + 30px) !important;
        --wd-site-width: calc(var(--dpr-pc-max) + 30px) !important;
    }
    html body .main-page-wrapper > .container,
    html body .main-page-wrapper > .wd-container,
    html body .main-page-wrapper > .wd-content-layout,
    html body .page-title > .container,
    html body .wd-page-title > .container,
    html body .website-wrapper > .container,
    html body .site-content > .container,
    html body .wd-prefooter > .container,
    html body .woocommerce-notices-wrapper {
        width: 100% !important;
        max-width: calc(var(--dpr-pc-max) + 30px) !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    html body .main-page-wrapper .container .container,
    html body .main-page-wrapper .wd-container .container,
    html body .main-page-wrapper .container .woocommerce-notices-wrapper {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    html body .elementor-section.elementor-section-boxed > .elementor-container,
    html body .e-con.e-con-boxed > .e-con-inner {
        max-width: var(--dpr-pc-max) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Header 1, Marquee, Mega Modal, Header 2, Sliderlar, Footer 1 & 2 -> TAM px */
    html body #dpr-marquee-outer,
    html body #dpr-header-wrap.dpr-is-overlay:not(.dpr-scrolled),
    html body #dpr-header-wrap.dpr-is-solid,
    html body #dpr-header-wrap.dpr-scrolled {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    html body #dpr-marquee-bar,
    html body #dpr-header-wrap .dpr-header-capsule,
    html body #dpr-header3-wrap .dprh3-bar,
    html body #dpr-header4-wrap .dprh4-bar,
    html body #dpr-mega-modal {
        width: 100% !important;
        max-width: var(--dpr-pc-max) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    html body #hk-premium-header .hk-top .hk-inner {
        width: min(var(--dpr-pc-max), calc(100vw - 30px)) !important;
        max-width: var(--dpr-pc-max) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    html body #hk-premium-header:not(.hk-is-sticky) .hk-main {
        width: min(var(--dpr-pc-max), calc(100vw - 30px)) !important;
        max-width: var(--dpr-pc-max) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    html body #dprHeroSlider,
    html body #dpHero1350,
    html body .dp-showcase-slider,
    html body .dpr-story-root,
    html body .dpr-ww-shell,
    html body .dpr-kd-shell,
    html body #dpKevserFooter {
        width: min(var(--dpr-pc-max), calc(100vw - 30px)) !important;
        max-width: var(--dpr-pc-max) !important;
    }
    html body #dprFooter3 {
        width: min(1300px, calc(100vw - 30px)) !important;
        max-width: 1300px !important;
    }
    html body #hz3Footer .hz3-inner {
        width: min(var(--dpr-pc-max), calc(100vw - 30px)) !important;
        max-width: var(--dpr-pc-max) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* === MOBİL EŞİT GENİŞLİK: HEADER + SLİDER + İÇERİK + FOOTER TAM 400PX (14 PRO MAX 430PX) === */
@media (max-width: 1024px) {
    /* 1. Header 1 (Kayan Şerit, Overlay Kapsül, Kaydırılmış Kapsül, Mega Menü) */
    html body #dpr-marquee-outer,
    html body #dpr-header-wrap.dpr-is-overlay:not(.dpr-scrolled),
    html body #dpr-header-wrap.dpr-is-solid,
    html body #dpr-header-wrap.dpr-scrolled {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    html body #dpr-marquee-bar,
    html body #dpr-header-wrap .dpr-header-capsule,
    html body #dpr-header3-wrap .dprh3-bar,
    html body #dpr-header4-wrap .dprh4-bar {
        width: var(--dpr-mob-w) !important;
        max-width: var(--dpr-mob-w) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    html body #dpr-mega-modal {
        width: var(--dpr-mob-w) !important;
        max-width: var(--dpr-mob-w) !important;
    }
    /* 2. Header 2 (Logo sol kenarı & hamburger sağ kenarı 400px hizasında) */
    html body #hk-premium-header#hk-premium-header .hk-main-wrap .hk-main {
        padding-left: max(15px, calc((100vw - var(--dpr-mob-w)) / 2)) !important;
        padding-right: max(15px, calc((100vw - var(--dpr-mob-w)) / 2)) !important;
    }
    /* 3. Sliderlar (Klasik, Vitrin & Harici) */
    html body #dprHeroSlider,
    html body #dpHero1350,
    html body .dp-showcase-slider,
    html body .dpr-story-root,
    html body .dpr-ww-shell,
    html body .dpr-kd-shell {
        width: var(--dpr-mob-w) !important;
        max-width: var(--dpr-mob-w) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* 4. Footer 1 & Footer 2 */
    html body #dpKevserFooter,
    html body #dprFooter3 {
        width: var(--dpr-mob-w) !important;
        max-width: var(--dpr-mob-w) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    html body #hz3Footer .hz3-inner {
        width: var(--dpr-mob-w) !important;
        max-width: var(--dpr-mob-w) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* 5. İç Sayfalar & Tüm Sayfa İçerikleri (WoodMart + WooCommerce + Elementor) */
    html body .main-page-wrapper > .container,
    html body .main-page-wrapper > .wd-container,
    html body .main-page-wrapper > .wd-content-layout,
    html body .page-title > .container,
    html body .wd-page-title > .container,
    html body .website-wrapper > .container,
    html body .wd-prefooter > .container,
    html body .woocommerce-notices-wrapper {
        width: var(--dpr-mob-w) !important;
        max-width: var(--dpr-mob-w) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    html body .main-page-wrapper > .container > .row,
    html body .main-page-wrapper > .container > .wd-content-layout,
    html body .main-page-wrapper .site-content,
    html body .main-page-wrapper .wd-content-area,
    html body .main-page-wrapper .container .container,
    html body .main-page-wrapper .wd-container .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    html body .elementor-section.elementor-section-boxed > .elementor-container,
    html body .e-con.e-con-boxed > .e-con-inner {
        width: var(--dpr-mob-w) !important;
        max-width: var(--dpr-mob-w) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
@media (max-width: 767px) {
    /* WPBakery çift yatay padding'ini sıfırla -> iç sayfalar 390px yerine tam 400px olur */
    html body .vc_row:not([data-vc-full-width="true"]) {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    html body .vc_row:not([data-vc-full-width="true"]) > .vc_column_container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    html body .vc_row:not([data-vc-full-width="true"]) > .vc_column_container > .vc_column-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    html body .vc_row:not([data-vc-full-width="true"]):has(> [class*="vc_col-xs-"]:not(.vc_col-xs-12)) {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }
    html body .vc_row:not([data-vc-full-width="true"]):has(> [class*="vc_col-xs-"]:not(.vc_col-xs-12)) > .vc_column_container > .vc_column-inner {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    html body .vc_row[data-vc-full-width="true"]:not([data-vc-stretch-content="true"]) > .vc_column_container > .vc_column-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
