/* Bakkalcım public pages: final responsive layer loaded after the legacy theme. */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.mobile-nav-icon {
    display: none;
}

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

@media (max-width: 991.98px) {
    body > *,
    .page-wrapper,
    .main-content,
    .hero,
    section,
    footer {
        max-width: 100%;
    }

    .hero,
    section,
    footer {
        overflow-x: hidden;
    }

    .row,
    [class*="col-"] {
        min-width: 0;
    }

    .navbar-custom {
        min-height: 64px;
        padding: 0 !important;
        background: rgba(255, 255, 255, .96) !important;
        border-bottom: 1px solid rgba(148, 163, 184, .2) !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .08) !important;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .navbar-custom .navbar-header {
        min-height: 64px;
    }

    .navbar-custom .navbar-toggle[aria-expanded="true"] {
        color: #fff !important;
        background: #6366f1 !important;
        border-color: #6366f1 !important;
        box-shadow: 0 8px 18px rgba(99, 102, 241, .28);
    }

    .navbar-custom .right-nav {
        text-align: left !important;
    }

    .navbar-custom .navbar-nav {
        width: 100%;
    }

    .navbar-custom .navbar-nav > li + li {
        margin-top: 3px;
    }

    .navbar-custom .nav-btn .user-info {
        width: 100%;
    }

    .navbar-custom .container,
    .hero .container,
    main .container,
    section .container,
    footer .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .navbar-custom .row,
    .hero .row,
    section > .container > .row,
    footer > .container > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-custom .navbar-collapse {
        width: 100%;
    }

    .blog .post-col,
    .blog .side-post,
    .pricing-table,
    .contact-form,
    .contact-info {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    h2,
    h3,
    h4 {
        overflow-wrap: anywhere;
    }

    p,
    li {
        overflow-wrap: anywhere;
    }

    .sec-pad,
    .sec-pad-lg {
        padding-top: 46px !important;
        padding-bottom: 46px !important;
    }

    .sec-pad-sm {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    .hero .row > [class*="col-"],
    .blog .row > [class*="col-"],
    .footer-widget > [class*="col-"] {
        width: 100%;
        float: none;
    }

    .hero .intro-text,
    .hero .img-pre {
        width: 100%;
    }

    .hero .img-pre img {
        max-height: 340px;
        object-fit: contain;
    }

    .col-feat .item,
    .post-col,
    .side-post {
        border-radius: 16px;
    }

    .blog .post-col {
        overflow: hidden;
        background: #fff;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    }

    .blog .post-col > a > img,
    .blog .post-col > img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: cover;
    }

    .blog .post-content {
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 20px;
    }

    .blog .post-content img,
    .blog .post-content video,
    .blog .post-content iframe {
        height: auto;
        border-radius: 12px;
    }

    .blog .post-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog .side-post {
        margin-top: 18px;
        padding: 20px;
    }

    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .login-overlay {
        min-height: auto !important;
        padding: 24px 12px 42px !important;
    }

    .login-card {
        max-width: 100% !important;
        padding: 26px 18px !important;
        border-radius: 16px !important;
    }

    .form-control,
    select,
    textarea,
    input {
        max-width: 100%;
        font-size: 16px !important;
    }

    .btn,
    .navbar-toggle,
    input[type="submit"] {
        min-height: 44px;
    }

    .footer-wrapper .footer-widget {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 479.98px) {
    .navbar-custom .container,
    .hero .container,
    main .container,
    section .container,
    footer .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .account-type-grid {
        gap: 8px !important;
    }

    .hero-kpi-row {
        grid-template-columns: 1fr !important;
    }

    .count-section .count-over .row > div[class*="col-"] {
        width: 50% !important;
    }
}
