/* ==========================================================
   Responsive fixes - loaded last so it overrides theme CSS
   Breakpoints: 1199 / 991 / 767 / 575 / 400
   ========================================================== */

/* ---------- Global safety ---------- */
html { height: auto; min-height: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* body must NOT be its own scroll box (it was: height:100% + overflow-x:hidden) */
body { height: auto; min-height: 100%; overflow-x: clip; overflow-wrap: break-word; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
iframe { max-width: 100%; border: 0; }

/* ---------- Large screens ---------- */
@media (min-width: 1600px) {
    .container { max-width: 1400px; }
}

/* ---------- Header menu: avoid wrapping on small laptops (992 - 1199px) ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
    .main_menu nav > ul > li > a { padding-left: 12px; padding-right: 12px; font-size: 14px; }
}

/* ---------- Tablet & below (<= 991px) ---------- */
@media (max-width: 991px) {
    .container { padding-left: 16px; padding-right: 16px; }

    /* rows that are stacked (column-reverse) must use the full width */
    .product-details .row > *,
    .home_about_section .row > * {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    .product-details .row > .col-md-4 { margin-top: 30px; }
}

/* ---------- Mobile (<= 767px) ---------- */
@media (max-width: 767px) {
    h1 { line-height: 1.25; }
    h2, h3 { line-height: 1.3; }

    /* forms: touch-friendly, no iOS zoom */
    input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
    select, textarea, .form-control {
        font-size: 16px;
        min-height: 46px;
    }
    textarea { min-height: 120px; }
    button, .btn, input[type="submit"] { min-height: 44px; }

    /* footer links: easier to tap */
    footer a, .footer_widgets a { display: inline-block; padding: 4px 0; }

    /* map / embeds */
    iframe { width: 100%; min-height: 280px; }

    /* breadcrumb banner not too tall */
    .breadcrum-section .breadcrum-image { min-height: 180px; }
}

/* ---------- Small phones (<= 400px) ---------- */
@media (max-width: 400px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .slider_content h1 { font-size: 26px !important; line-height: 1.3 !important; }
}

/* ---------- Short landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) {
    .slider_section .single_slider { min-height: 300px !important; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
