/* ════════════════════════════════════════════════════════════════ */
/* RESPONSIVE — Premium MediCare Navbar + Components                */
/* ════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .mc-nav__search {
        max-width: 220px;
    }

    .mc-nav__link {
        padding: 0.5rem 0.7rem;
        font-size: 0.88rem;
    }

    .mc-nav__inner {
        gap: 1rem;
    }
}

/* ── Below lg breakpoint (≤ 991px) — switch to mobile ── */
@media (max-width: 991px) {

    /* Hide desktop-only elements */
    .mc-nav__links,
    .mc-nav__search,
    .mc-nav__actions {
        display: none !important;
    }

    /* Show hamburger */
    .mc-hamburger {
        display: flex;
        margin-left: auto;
    }

    .mc-nav__inner {
        height: 60px;
        padding: 0 1rem;
    }

    /* Mega menu won't show on mobile — categories are in the panel */
    .mc-mega {
        display: none !important;
    }
}

/* ── Small Mobile (≤ 575px) ── */
@media (max-width: 575px) {
    body {
        padding-top: 56px;
    }

    .mc-nav__inner {
        height: 56px;
    }

    .mc-nav__logo-icon {
        width: 32px;
        height: 32px;
    }

    .mc-nav__logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .mc-nav__logo-text {
        font-size: 1.1rem;
    }

    .mc-mobile-panel {
        width: 100%;
        max-width: 100vw;
    }
}

/* ── Extra Small (≤ 375px) ── */
@media (max-width: 375px) {
    .mc-nav__logo-text {
        font-size: 1rem;
    }

    .mc-mobile-panel__link {
        padding: 0.6rem 0.75rem;
        font-size: 0.88rem;
    }

    .mc-mobile-panel__auth {
        flex-direction: column;
    }

    .mc-nav__btn {
        width: 100%;
    }
}

/* ── Landscape Mode ── */
@media (max-height: 500px) and (orientation: landscape) {
    .mc-nav__inner {
        height: 50px;
    }

    .mc-mobile-panel {
        overflow-y: auto;
    }
}

/* ════════════════════════════════════════════════════════════════ */
/* Newsletter & Cart Sidebar Responsive (Preserved)                 */
/* ════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .mc-newsletter {
        padding: 50px 0 40px;
    }

    .mc-nl-float {
        display: none;
    }

    .mc-nl-input-group {
        flex-direction: column;
        padding: 10px;
        gap: 0.6rem;
    }

    .mc-nl-input-icon {
        display: none;
    }

    .mc-nl-input {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
    }

    .mc-nl-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1rem;
    }

    .mc-nl-trust {
        gap: 0.6rem;
    }

    .mc-nl-trust-badge {
        padding: 0.55rem 0.8rem;
        font-size: 0.8rem;
    }

    .mc-cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }
}

@media (max-width: 575px) {
    .mc-newsletter {
        padding: 40px 0 32px;
    }

    .mc-nl-title {
        font-size: 1.35rem;
    }

    .mc-nl-subtitle {
        font-size: 0.9rem;
    }

    .mc-nl-icon-badge {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .mc-nl-trust-badge {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .mc-btn-view-cart,
    .mc-btn-checkout {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .mc-cart-header {
        padding: 1rem;
    }

    .mc-cart-items {
        padding: 0.8rem 1rem;
    }

    .mc-cart-footer {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 375px) {
    .mc-nl-trust {
        flex-direction: column;
        align-items: center;
    }

    .mc-nl-trust-badge {
        width: 100%;
        max-width: 240px;
    }
}

/* ── Print ── */
@media print {

    .mc-nav,
    .mc-mobile-panel,
    .mc-mobile-overlay {
        display: none;
    }

    body {
        padding-top: 0;
    }

    .mc-cart-sidebar,
    .mc-cart-overlay {
        display: none;
    }
}

/* ════════════════════════════════════════════════════════════════ */
/* FOOTER RESPONSIVE — Mobile-First Design                           */
/* ════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .mc-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .mc-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .mc-footer__copyright {
        order: 2;
    }

    .mc-footer__payments {
        order: 1;
        justify-content: center;
    }
}

/* ── Below lg breakpoint (≤ 991px) ── */
@media (max-width: 991px) {
    .mc-footer__badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .mc-footer__badge {
        gap: 0.75rem;
    }

    .mc-footer__badge-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .mc-footer__badge-text strong {
        font-size: 0.85rem;
    }

    .mc-footer__badge-text span {
        font-size: 0.75rem;
    }

    .mc-footer__main {
        padding: 2.5rem 0;
    }

    .mc-footer__grid {
        grid-template-columns: 1fr;
    }

    .mc-footer__heading {
        margin-bottom: 1rem;
    }
}

/* ── Small Mobile (≤ 768px) ── */
@media (max-width: 768px) {
    .mc-footer {
        padding-bottom: 4rem;
    }

    .mc-footer__badges {
        padding: 2rem 0;
    }

    .mc-footer__badges-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .mc-footer__badge {
        gap: 1rem;
        padding: 0.75rem;
        background: rgba(14, 165, 233, 0.05);
        border-radius: 10px;
        border: 1px solid rgba(14, 165, 233, 0.1);
    }

    .mc-footer__main {
        padding: 2rem 0;
    }

    .mc-footer__grid {
        gap: 2rem;
    }

    .mc-footer__brand {
        text-align: center;
    }

    .mc-footer__logo {
        justify-content: center;
    }

    .mc-footer__desc {
        font-size: 0.85rem;
    }

    .mc-footer__socials {
        justify-content: center;
    }

    .mc-footer__social {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .mc-footer__heading {
        text-align: center;
        padding-bottom: 0.5rem;
    }

    .mc-footer__heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .mc-footer__links {
        text-align: center;
    }

    .mc-footer__links li a {
        justify-content: center;
        flex-wrap: wrap;
    }

    .mc-footer__contact {
        text-align: center;
    }

    .mc-footer__contact-item {
        justify-content: center;
    }

    .mc-footer__bottom {
        padding: 1.5rem 0;
    }

    .mc-footer__bottom-inner {
        gap: 1rem;
    }

    .mc-footer__copyright p {
        font-size: 0.8rem;
    }

    .mc-footer__payments-label {
        font-size: 0.75rem;
    }

    .mc-footer__payments-icons {
        font-size: 1.5rem;
    }

    .mc-footer__back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1rem;
    }
}

/* ── Extra Small Mobile (≤ 576px) ── */
@media (max-width: 576px) {
    .mc-footer {
        padding-bottom: 3.5rem;
    }

    .mc-footer__badges {
        padding: 1.5rem 0;
    }

    .mc-footer__badge {
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .mc-footer__badge-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .mc-footer__badge-text strong {
        font-size: 0.8rem;
    }

    .mc-footer__badge-text span {
        font-size: 0.7rem;
    }

    .mc-footer__main {
        padding: 1.5rem 0;
    }

    .mc-footer__grid {
        gap: 1.5rem;
    }

    .mc-footer__logo {
        font-size: 1.1rem;
    }

    .mc-footer__logo span {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .mc-footer__desc {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .mc-footer__social {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .mc-footer__heading {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .mc-footer__links {
        gap: 0.5rem;
    }

    .mc-footer__links li a {
        font-size: 0.85rem;
    }

    .mc-footer__contact-item {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .mc-footer__bottom {
        padding: 1rem 0;
    }

    .mc-footer__copyright p {
        font-size: 0.75rem;
    }

    .mc-footer__payments-icons {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .mc-footer__back-to-top {
        width: 36px;
        height: 36px;
        bottom: 1rem;
        right: 1rem;
        font-size: 0.9rem;
    }
}

/* ── Mobile Portrait (≤ 375px) ── */
@media (max-width: 375px) {
    .mc-footer__badge {
        padding: 0.4rem;
    }

    .mc-footer__logo {
        font-size: 1rem;
    }

    .mc-footer__logo span {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .mc-footer__desc {
        font-size: 0.75rem;
    }

    .mc-footer__heading {
        font-size: 0.9rem;
    }

    .mc-footer__links li a {
        font-size: 0.8rem;
    }

    .mc-footer__contact-item {
        font-size: 0.8rem;
    }

    .mc-footer__copyright p {
        font-size: 0.7rem;
    }

    .mc-footer__payments-icons {
        font-size: 1.2rem;
    }

    .mc-footer__back-to-top {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* ── Landscape Mode ── */
@media (max-height: 500px) and (orientation: landscape) {
    .mc-footer__back-to-top {
        bottom: 1rem;
    }
}

/* ════════════════════════════════════════════════════════════════ */
/* GLOBAL RESPONSIVE — Mobile Usability Improvements               */
/* ════════════════════════════════════════════════════════════════ */

/* ── Prevent horizontal overflow everywhere ── */
html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Minimum touch target sizes (44px per WCAG) ── */
@media (max-width: 991px) {

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

/* ── Auth pages — stack form nicely on mobile ── */
@media (max-width: 575px) {

    .auth-container,
    .login-card,
    .register-card {
        margin: 1rem;
        padding: 1.25rem;
        border-radius: 14px;
    }

    .auth-container {
        max-width: 100%;
    }
}

/* ── Search results page on mobile ── */
@media (max-width: 575px) {
    .search-results {
        padding: 1rem 0;
    }

    .search-results h1 {
        font-size: 1.2rem;
    }
}

/* ── User dashboard tables on mobile ── */
@media (max-width: 575px) {
    .table-responsive {
        font-size: 0.82rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
}

/* ── Location banner on mobile ── */
@media (max-width: 575px) {

    .location-bar,
    .geo-banner {
        flex-wrap: wrap;
        padding: 0.7rem;
        font-size: 0.82rem;
    }
}