/* CELIKPEN - mobil taşma ve küçük ekran düzeltmeleri (ön yüz).
   celikpen.css'ten sonra yüklenir. */

/* Yatay kaydırmayı engelle (overflow-x: clip taşmayı kaydırılabilir alana eklemez) */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body.cp-body img,
body.cp-body video,
body.cp-body iframe,
body.cp-body svg {
    max-width: 100%;
}

body.cp-body img {
    height: 50px;
}

/* Kapalı yan sepet ekran dışında kalır; görünmez yap (taşmayı tetiklemesin) */
.side-cart-wrapper:not(.active) {
    visibility: hidden;
    pointer-events: none;
}

/* Üst şerit: metinler kırılmasın, küçük ekranda gizlenenler gerçekten gizlensin */
body.cp-body .cp-topbar a {
    white-space: nowrap;
}

@media (max-width: 720px) {
    body.cp-body .cp-hide-sm {
        display: none !important;
    }

    body.cp-body .cp-topbar__items {
        gap: 14px;
        min-width: 0;
    }

    body.cp-body .cp-topbar {
        font-size: 12px;
    }

    body.cp-body .cp-wrap {
        width: calc(100% - 32px);
    }

    body.cp-body .cp-pagehead {
        padding: 40px 0 36px;
    }

    body.cp-body .cp-crumbs {
        flex-wrap: wrap;
        font-size: 13px;
    }

    body.cp-body .cp-product-detail__media {
        aspect-ratio: 4 / 3;
    }

    body.cp-body .cp-calc__form,
    body.cp-body .cp-calc__result {
        padding: 18px;
    }

    body.cp-body .cp-calc__types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.cp-body .cp-cat-banner img {
        max-height: 220px;
    }

    body.cp-body .cp-contact-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.cp-body .cp-band a {
        width: 100%;
        justify-content: center;
    }
}
