/* Son responsive sabitlestirme qati. Esas layout qaydalari style.css faylindadir. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
    min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

.search-box,
.product-card,
.product-body,
.page-card,
.summary,
.section-head,
.footer-grid,
.cart-row > *,
.form-grid > *,
.product-detail > * {
    min-width: 0;
}

.product-title,
.section-head h1,
.section-head h2,
.footer-grid p,
.footer-grid a,
.summary,
.cart-row,
.notification-item,
.toast__msg {
    overflow-wrap: anywhere;
}

.field input,
.field select,
.field textarea,
.btn,
.button {
    max-width: 100%;
}

.table-wrap,
.gallery-thumbs,
.catalog-menu,
.notification-list,
.horizontal-products,
.brand-rail,
.video-rail,
.category-pills {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1100px) {
    body {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        height: calc(82px + env(safe-area-inset-bottom));
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .search-results {
        top: calc(100% + 8px);
        max-height: min(62vh, 460px);
        overflow: auto;
    }
}

@media (max-width: 620px) {
    body {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    .page-card {
        margin-top: 16px;
        margin-bottom: 16px;
    }

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

    .gallery-thumbs img,
    .thumbs img {
        width: 70px;
        height: 70px;
        flex: 0 0 auto;
        object-fit: contain;
    }

    .notification-floating {
        left: 12px;
        right: 12px;
        top: 96px;
        width: auto;
    }
}

@media (max-width: 340px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .mobile-bottom-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) 74px repeat(2, minmax(0, 1fr));
    }

    .mobile-bottom-nav__cart {
        width: 74px !important;
        height: 74px !important;
    }
}


/* Service kartlarının web/mobil daşma düzəlişi */
.service-rail {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.service-rail article {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.service-rail article > div {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.service-rail strong,
.service-rail span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 620px) {
    .service-rail {
        grid-template-columns: minmax(0, 1fr) !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    .service-rail article {
        grid-template-columns: 42px minmax(0, 1fr);
        width: 100%;
    }
}
