/* ==========================================================================
   TURTLE MAARKS — RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   Seamless support for 320px, 375px, 430px, 576px, 768px, 992px, 1200px, 1400px+
   ========================================================================== */

/* Large screens (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Laptops & Desktops (992px - 1199.98px) */
@media (max-width: 1199.98px) {
  .tm-nav-link {
    padding: 0.4rem 0.55rem !important;
    font-size: 0.8125rem;
  }
}

/* Tablets (768px - 991.98px) */
@media (max-width: 991.98px) {
  .tm-hero-compact {
    padding: 2.5rem 0;
    text-align: center;
  }
  .tm-hero-p {
    margin-left: auto;
    margin-right: auto;
  }
  .tm-hero-booking-card {
    margin-top: 1rem;
  }
  .tm-cart-drawer {
    width: 100% !important;
    max-width: 420px;
  }
  .tm-product-btns {
    grid-template-columns: 1fr;
  }
}

/* Mobile Screens (576px - 767.98px) */
@media (max-width: 767.98px) {
  .tm-header .navbar {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }
  .tm-brand-logo {
    height: 52px !important;
    max-height: 52px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  .tm-hero-banner-img {
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
    object-fit: contain !important;
  }
  .tm-topbar {
    font-size: 0.75rem;
    padding: 0.3rem 0;
  }
  .tm-section-title {
    font-size: 1.55rem;
  }
  .tm-section-sub {
    font-size: 0.85rem;
  }
  .tm-hero-h1 {
    font-size: 1.85rem;
  }
  .tm-hero-p {
    font-size: 0.9rem;
  }
  .tm-trust-metric {
    gap: 0.5rem;
  }
  .tm-trust-metric-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .tm-trust-metric h6 {
    font-size: 0.8125rem;
  }
  .tm-trust-metric span {
    font-size: 0.7rem;
  }
  .tm-floating-left-wrap {
    bottom: 16px;
    left: 16px;
  }
  .tm-floating-right-wrap {
    bottom: 16px;
    right: 16px;
  }
  .tm-floating-btn {
    padding: 5px 12px 5px 6px;
    gap: 0.45rem;
  }
  .tm-floating-icon-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1rem;
  }
  .tm-floating-sub {
    font-size: 0.56rem;
  }
  .tm-floating-title {
    font-size: 0.8rem;
  }
  .tm-page-hero,
  .tm-about-hero,
  .tm-service-hero {
    padding: 1.75rem 0 1.5rem 0;
  }
  .tm-breadcrumb-pill {
    padding: 0.25rem 0.85rem !important;
    font-size: 0.73rem !important;
    gap: 0.35rem !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: inline-flex !important;
    align-items: center !important;
  }
  .tm-breadcrumb-pill::-webkit-scrollbar {
    display: none;
  }
  .tm-breadcrumb-current {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* Small Mobile Screens (320px - 575.98px) */
@media (max-width: 575.98px) {
  .tm-topbar .d-none.d-md-inline {
    display: none !important;
  }
  .tm-brand-logo {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  .tm-cat-tile {
    padding: 0.75rem 0.5rem;
  }
  .tm-cat-img-box {
    width: 48px;
    height: 48px;
  }
  .tm-cat-img-box img {
    max-height: 32px;
  }
  .tm-cat-name {
    font-size: 0.775rem;
  }
  .tm-product-media {
    height: 200px !important;
    min-height: 200px !important;
    padding: 0 !important;
    background: radial-gradient(circle at center, #FFFFFF 45%, #F8FAFC 100%) !important;
  }
  .tm-product-img-wrap {
    padding: 8px 12px !important;
  }
  .tm-product-img {
    max-height: 175px !important;
    max-width: 90% !important;
    object-fit: contain !important;
  }
  .tm-product-body {
    padding: 0.85rem;
  }
  .tm-product-title {
    font-size: 0.875rem;
  }
  .tm-product-sale-price {
    font-size: 1rem;
  }
  .tm-toast {
    min-width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
  }
  .tm-step-pill-node .node-circle {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }
  .tm-step-pill-node .node-title {
    font-size: 0.62rem;
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tm-step-pills-wrap::before {
    top: 16px;
    left: 15px;
    right: 15px;
  }
}

/* ==========================================================================
   FOOTER RESPONSIVE ADAPTATIONS
   ========================================================================== */

/* Tablets & Small Laptops (768px - 991.98px) */
@media (max-width: 991.98px) {
  .tm-footer-newsletter-card {
    padding: 1.75rem;
  }
  .tm-footer-main {
    padding: 2rem 0 2.5rem 0;
  }
}

/* Mobile Screens (576px - 767.98px) */
@media (max-width: 767.98px) {
  .tm-footer-trust-bar {
    padding: 1.25rem 0;
  }
  .tm-trust-pillar {
    padding: 0.35rem;
    gap: 0.65rem;
  }
  .tm-trust-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.1rem;
    border-radius: 8px;
  }
  .tm-trust-title {
    font-size: 0.84rem;
  }
  .tm-trust-sub {
    font-size: 0.7rem;
  }
  .tm-footer-newsletter-card {
    padding: 1.5rem 1.25rem;
  }
  .tm-footer-newsletter-card .d-flex {
    flex-direction: column;
    text-align: center;
  }
  .tm-newsletter-icon {
    margin: 0 auto;
  }
  .tm-footer-heading {
    cursor: pointer;
    padding: 0.75rem 0;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
  }
  .tm-footer-heading::after {
    display: none;
  }
  .tm-footer-links {
    padding: 0.5rem 0 0.85rem 0.25rem;
  }
  .tm-footer-bottom {
    padding: 1.25rem 0 1.75rem 0;
    text-align: center;
  }
}

/* Small Mobile Screens (< 576px) */
@media (max-width: 575.98px) {
  .tm-footer-newsletter-wrap {
    padding: 1.5rem 0 0.5rem 0;
  }
  .tm-newsletter-form .input-group {
    flex-direction: column;
    padding: 6px;
    border-radius: 12px;
  }
  .tm-newsletter-form .input-group-text {
    display: none;
  }
  .tm-newsletter-input {
    text-align: center;
    padding: 0.65rem;
  }
  .tm-newsletter-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem;
  }
  .tm-footer-social-btn {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
  .tm-brand-tag {
    font-size: 0.725rem;
    padding: 0.25rem 0.5rem;
  }
  .tm-pay-badge, .tm-cert-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  .tm-footer-cta-box {
    padding: 1rem;
  }
}

/* ==========================================================================
   HOMEPAGE COMPREHENSIVE MOBILE RESPONSIVE ENGINE (ALL 9 SECTIONS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. EXPLORE BY CATEGORY (2-Column Ultra-Clean Mobile Grid)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .tm-cat-card-lux {
    border-radius: 14px;
  }
  .tm-cat-badge-top {
    top: 6px;
    left: 6px;
    font-size: 0.58rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
  }
  .tm-cat-media-lux {
    height: 110px;
    margin: 6px 6px 0 6px;
    padding: 0.25rem;
    border-radius: 10px;
  }
  .tm-cat-img-full {
    max-height: 85px;
  }
  .tm-cat-content-lux {
    padding: 0.6rem 0.65rem 0.75rem;
  }
  .tm-cat-title-lux {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tm-cat-desc-lux {
    display: none; /* Uniform compact card height in 2-column mobile layout */
  }
  .tm-cat-footer-lux {
    padding-top: 0.4rem;
    margin-top: 0.2rem;
  }
  .tm-cat-count-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
  }
  .tm-cat-arrow-btn {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   2. FEATURED DIGITAL HEARING AIDS (Horizontal Filter Bar & Touch Cards)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .tm-filter-tabs-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.35rem !important;
    border-radius: 12px !important;
    gap: 0.35rem;
    width: 100%;
  }
  .tm-filter-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .tm-filter-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px !important;
  }
}

@media (max-width: 767.98px) {
  .tm-product-card {
    border-radius: 16px;
    overflow: hidden;
  }
  .tm-product-media {
    height: 215px !important;
    min-height: 215px !important;
    padding: 0 !important;
    background: radial-gradient(circle at center, #FFFFFF 40%, #F8FAFC 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    border-bottom: 1px solid #E2E8F0 !important;
  }
  .tm-product-img-wrap {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    background: transparent !important;
  }
  .tm-product-img {
    width: auto !important;
    height: auto !important;
    max-width: 90% !important;
    max-height: 185px !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
    filter: drop-shadow(0 10px 20px rgba(11, 30, 54, 0.12)) !important;
    transition: transform 0.3s ease !important;
  }
  .tm-product-card:active .tm-product-img {
    transform: scale(1.04) !important;
  }
}

@media (max-width: 575.98px) {
  .tm-product-card {
    border-radius: 16px;
  }
  .tm-product-media {
    height: 205px !important;
    min-height: 205px !important;
    padding: 0 !important;
  }
  .tm-product-img-wrap {
    padding: 8px 12px !important;
  }
  .tm-product-img {
    max-height: 175px !important;
    max-width: 88% !important;
  }
  .tm-product-body {
    padding: 0.85rem;
  }
  .tm-product-title {
    font-size: 0.92rem;
  }
  .tm-product-specs-chips {
    gap: 0.25rem;
  }
  .tm-spec-chip {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }
  .tm-product-card-footer {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.6rem;
  }
  .tm-product-btns-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .tm-product-btns-group .tm-btn {
    width: 100%;
    justify-content: center;
    padding: 0.45rem 0.25rem;
    font-size: 0.76rem;
  }
}

/* --------------------------------------------------------------------------
   3. EXPLORE BY AUTHORIZED BRANDS (Smooth Brand Scroll & Mobile Hero Pill)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .tm-brand-tabs-strip {
    padding: 0.35rem 0.15rem 0.85rem;
    gap: 0.65rem;
  }
  .tm-brand-tab-card {
    min-width: 110px;
    height: 54px;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
  }
  .tm-brand-tab-card img {
    height: 24px;
    max-width: 85px;
  }
  .tm-brand-hero-pill {
    padding: 0.85rem 1rem;
  }
  #tmBrandViewAllBtn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.35rem;
  }
}

/* --------------------------------------------------------------------------
   4. NOT SURE WHICH HEARING AID IS RIGHT FOR YOU? (Interactive Quiz)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .tm-finder-poster-wrap {
    margin-top: 1.5rem !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 20px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
  }
  .tm-finder-poster-img {
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    display: block !important;
    border: 6px solid #FFFFFF !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 36px rgba(11, 30, 54, 0.25), 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 575.98px) {
  .tm-finder-section {
    padding: 2.5rem 0;
  }
  .tm-finder-quiz-card {
    padding: 1rem 0.85rem !important;
    border-radius: 16px;
  }
  .tm-step-pills-wrap {
    gap: 0.15rem;
  }
  .tm-step-pills-wrap::before {
    top: 14px;
    left: 12px;
    right: 12px;
  }
  .tm-step-pill-node .node-circle {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    border-width: 1.5px;
  }
  .tm-step-pill-node .node-title {
    font-size: 0.56rem;
    max-width: 44px;
    line-height: 1.1;
  }
  .tm-quiz-option-card {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
    border-radius: 12px;
  }
  .tm-quiz-option-card .opt-icon-box {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.95rem;
  }
  .tm-quiz-option-card h6 {
    font-size: 0.82rem;
  }
  .tm-quiz-option-card p {
    font-size: 0.68rem;
  }
  /* Step 5 Match Result Box */
  .tm-finder-result-box {
    padding: 1rem;
    border-radius: 14px;
  }
  .tm-finder-result-box .border-start-sm {
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.85rem;
    margin-top: 0.65rem;
    text-align: center;
  }
  .tm-finder-result-box .border-start-sm .d-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   5. DIAGNOSTIC HEARING TESTS (2x2 Compact Mobile Grid)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .tm-diagnostic-showcase-section {
    padding: 2.5rem 0;
  }
  .tm-diag-service-card {
    padding: 0.75rem 0.6rem 0.95rem;
    border-radius: 14px;
  }
  .tm-diag-service-img-wrap {
    height: 90px;
    border-radius: 10px;
    margin-bottom: 0.5rem;
  }
  .tm-diag-service-title {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
  }
  .tm-diag-service-desc {
    font-size: 0.7rem;
    line-height: 1.35;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tm-diag-service-link {
    font-size: 0.74rem;
    font-weight: 700;
  }
}

/* --------------------------------------------------------------------------
   6. MEET OUR SENIOR AUDIOLOGISTS (Doctor Profiles & Reassurance Strip)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .tm-doctor-card {
    border-radius: 16px;
  }
  .tm-doctor-media {
    height: 230px;
  }
  .tm-doctor-body {
    padding: 1rem 0.9rem 0.9rem;
  }
  .tm-doctor-name {
    font-size: 1.15rem;
  }
  .tm-doctor-title {
    font-size: 0.78rem;
  }
  .tm-doctor-meta-strip {
    font-size: 0.75rem;
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .tm-doctor-bio {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
  }
  .tm-doctor-specialties {
    gap: 0.25rem;
    margin-bottom: 0.65rem;
  }
  .tm-doctor-spec-chip {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }
  .tm-doctor-avail {
    font-size: 0.72rem;
    padding: 0.4rem 0.6rem;
  }
}

/* --------------------------------------------------------------------------
   7. TRANSFORMING LIVES THROUGH CLEAR SOUND (Cinematic Patient Stories)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .tm-luxury-reels-stage {
    padding: 2.5rem 0;
  }
  .tm-cinematic-card {
    border-radius: 14px;
  }
  .tm-cinematic-play {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .tm-cinematic-body {
    padding: 0.95rem 0.9rem 0.85rem;
  }
  .tm-cinematic-topic {
    font-size: 0.7rem;
  }
  .tm-cinematic-title {
    font-size: 0.95rem;
  }
  .tm-cinematic-speaker {
    font-size: 0.76rem;
    margin-bottom: 0.5rem;
  }
  .tm-cinematic-footer {
    padding-top: 0.5rem;
    font-size: 0.72rem;
  }
}

/* --------------------------------------------------------------------------
   8. FREQUENTLY ASKED QUESTIONS (Top-Aligned Accordion on Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .tm-faq-btn {
    padding: 0.85rem 0.95rem !important;
    font-size: 0.88rem !important;
    align-items: flex-start !important;
  }
  .tm-faq-btn > span.d-flex {
    align-items: flex-start !important;
    flex-grow: 1;
    padding-right: 0.5rem;
  }
  .tm-faq-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 0.68rem;
    margin-right: 0.65rem;
    margin-top: 1px;
    border-radius: 6px;
  }
  .tm-faq-icon-circle {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 0.72rem;
    margin-top: 2px;
  }
  .tm-faq-body {
    padding: 0 0.95rem 1rem 0.95rem !important;
    font-size: 0.82rem;
    line-height: 1.55;
  }
  .tm-faq-support-card {
    padding: 1.25rem 1rem;
    margin-bottom: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   9. LATEST INSIGHTS & EXPERT GUIDES (Blog Cards on Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .tm-blog-card {
    border-radius: 14px;
  }
  .tm-blog-img-wrap {
    height: 165px;
  }
  .tm-blog-body {
    padding: 0.95rem 0.9rem 0.85rem;
  }
  .tm-blog-title {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
  }
  .tm-blog-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .tm-blog-footer {
    padding: 0.6rem 0.9rem 0.75rem;
  }
}

/* ==========================================================================
   10. PRODUCT CATALOG & FILTERS (products, category & search pages)
   ========================================================================== */
@media (max-width: 991.98px) {
  .tm-filter-sidebar-col {
    margin-bottom: 1rem;
  }
  #tmFilterPanel.offcanvas-lg {
    max-width: 320px;
  }
  #tmFilterPanel .offcanvas-body {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .tm-filter-sticky-card {
    border: none !important;
    padding: 0.5rem !important;
    box-shadow: none !important;
  }
}

@media (max-width: 575.98px) {
  .tm-filter-controls-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 0.85rem !important;
  }
  #tmSortSelect {
    width: 100% !important;
  }
  #tmProductsMatchCount {
    font-size: 0.78rem;
  }
  .tm-pagination {
    gap: 2px;
  }
  .tm-pagination .page-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   11. PRODUCT DETAIL SHOWCASE (product detail page)
   ========================================================================== */
@media (max-width: 991.98px) {
  .tm-pd-gallery-card {
    position: static !important;
    top: auto !important;
    margin-bottom: 1.5rem;
  }
  /* Product Detail Tabs on Mobile (Horizontal Momentum Scroll, No Text Breaking) */
  .tm-pd-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 2px solid #E2E8F0 !important;
    gap: 0.25rem !important;
    padding-bottom: 0 !important;
    margin-bottom: 1.5rem !important;
  }
  .tm-pd-tabs::-webkit-scrollbar {
    display: none;
  }
  .tm-pd-tabs .nav-item {
    flex-shrink: 0 !important;
  }
  .tm-pd-tabs .nav-link {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.65rem 0.95rem !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    background: transparent !important;
  }
  .tm-pd-tabs .nav-link.active {
    border-bottom-color: var(--tm-orange) !important;
    color: var(--tm-navy) !important;
  }
}

@media (max-width: 767.98px) {
  .tm-pd-image-stage {
    height: 320px !important;
  }
  .tm-pd-main-img {
    max-height: 260px !important;
  }
  .tm-pd-thumbs-wrap {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .tm-pd-thumbs-wrap::-webkit-scrollbar {
    display: none;
  }
  .tm-pd-thumb-btn {
    width: 62px !important;
    height: 62px !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 575.98px) {
  .tm-pd-image-stage {
    height: 270px !important;
    border-radius: 14px !important;
  }
  .tm-pd-main-img {
    max-height: 220px !important;
  }
  .tm-zoom-badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.55rem !important;
    bottom: 8px !important;
  }
  .tm-pd-spec-grid-item {
    padding: 0.6rem 0.75rem !important;
    gap: 0.5rem !important;
  }
  .tm-pd-spec-grid-item .spec-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }
  .tm-why-order-box {
    padding: 0.85rem !important;
    border-radius: 14px !important;
  }
  .tm-why-feature-row {
    gap: 0.6rem !important;
    margin-bottom: 0.65rem !important;
  }
  .tm-why-feature-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   12. CART, CHECKOUT & ORDER CONFIRMATION (cart & checkout pages)
   ========================================================================== */
@media (max-width: 767.98px) {
  .tm-cart-table th,
  .tm-cart-table td {
    padding: 0.65rem 0.45rem !important;
    font-size: 0.82rem;
  }
  .tm-cart-item-img {
    width: 50px !important;
    height: 50px !important;
  }
  .tm-cart-free-shipping-box {
    padding: 0.75rem 0.85rem !important;
    gap: 0.5rem !important;
  }
  /* Cart Stepper - tighter gap & smaller text */
  .tm-cart-step-nav {
    gap: 0.65rem !important;
    margin-bottom: 1rem !important;
  }
  .tm-cart-step-item {
    gap: 0.3rem !important;
    font-size: 0.78rem !important;
  }
  .tm-cart-step-num {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.68rem !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .tm-cart-table thead {
    display: none;
  }
  .tm-cart-table,
  .tm-cart-table tbody,
  .tm-cart-table tr,
  .tm-cart-table td {
    display: block;
    width: 100%;
  }
  .tm-cart-table tr {
    margin-bottom: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem;
    background: #FFFFFF;
  }
  .tm-cart-table td {
    padding: 0.35rem 0 !important;
    border: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .tm-cart-table td:first-child {
    display: block;
    padding-bottom: 0.6rem !important;
    border-bottom: 1px dashed #E2E8F0 !important;
    margin-bottom: 0.4rem;
  }
  .tm-checkout-summary-card {
    position: static !important;
    top: auto !important;
    margin-top: 1rem;
  }
  /* Stepper extra compact on small phones */
  .tm-cart-step-nav {
    gap: 0.4rem !important;
  }
  .tm-cart-step-item {
    font-size: 0.72rem !important;
  }
  .tm-cart-step-item span:last-child {
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   13. APPOINTMENT BOOKING WIZARD (book-appointment page)
   ========================================================================== */
@media (max-width: 767.98px) {
  .tm-booking-card-main {
    border-radius: 16px !important;
    overflow: hidden;
  }
  .tm-booking-stepper-bar {
    padding: 0.75rem 0.85rem !important;
    gap: 0.4rem !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
  }
  .tm-booking-stepper-bar::-webkit-scrollbar {
    display: none;
  }
  .tm-booking-step-tab {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
  }
  .tm-booking-step-tab .tm-step-badge {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }
  .tm-booking-option-card {
    padding: 0.85rem 0.75rem !important;
    border-radius: 12px !important;
  }
  .tm-booking-opt-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .tm-time-slot-btn {
    padding: 0.45rem 0.35rem !important;
    font-size: 0.76rem !important;
  }
  .tm-booking-summary-sidebar {
    position: static !important;
    border-top: 1px solid #E2E8F0;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   14. CLINICAL & DIAGNOSTIC SERVICES (services & diagnostic pages)
   ========================================================================== */
@media (max-width: 767.98px) {
  .tm-service-tabs-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start !important;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem !important;
  }
  .tm-service-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .tm-service-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
  }
  .tm-service-hub-card {
    border-radius: 16px !important;
  }
  .tm-service-hub-img-wrap {
    height: 180px !important;
  }
  .tm-service-hub-body {
    padding: 1.15rem 1rem !important;
  }
  .tm-service-hub-title {
    font-size: 1.1rem !important;
  }
}

/* ==========================================================================
   15. INFORMATIONAL & CONTENT PAGES (about, contact, blogs & gallery pages)
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Contact page */
  .tm-contact-info-card {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
    height: 100%;
  }
  .tm-contact-icon-circle {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
  }
  #tmContactMapSection iframe {
    height: 280px !important;
    border-radius: 14px !important;
  }

  /* About page */
  .tm-about-hero-img-wrap {
    margin-top: 1.5rem;
    max-height: 280px;
    border-radius: 16px;
    overflow: hidden;
  }
  .tm-senior-clean-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 16px !important;
  }

  /* Blog detail */
  .tm-blog-detail-article {
    padding: 1rem 0.85rem !important;
    border-radius: 16px !important;
  }
  .tm-blog-detail-article h2 {
    font-size: 1.35rem !important;
  }
  .tm-blog-detail-article h3 {
    font-size: 1.15rem !important;
  }
  .tm-blog-detail-article p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }
  .tm-blog-detail-sidebar {
    position: static !important;
    top: auto !important;
  }

  /* Gallery */
  .tm-gallery-card {
    border-radius: 14px !important;
  }
}

/* ==========================================================================
   16. PATIENT ACCOUNT PORTAL (account, login & register pages)
   ========================================================================== */
@media (max-width: 991.98px) {
  .tm-account-nav-wrap {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem !important;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
  }
  .tm-account-nav-wrap::-webkit-scrollbar {
    display: none;
  }
  .tm-account-nav-link {
    white-space: nowrap !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
  }
  .tm-account-nav-link i.bi-chevron-right {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .tm-account-stat-card {
    padding: 0.85rem !important;
    border-radius: 12px !important;
  }
  .tm-account-table th,
  .tm-account-table td {
    padding: 0.55rem 0.4rem !important;
    font-size: 0.78rem !important;
  }
}

/* ==========================================================================
   17. GLOBAL MOBILE FIXES (Tables, Inputs, Form Elements, No Horizontal Scroll)
   ========================================================================== */
@media (max-width: 767.98px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  /* Prevent iOS zoom on input focus */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
  /* Modals on mobile */
  .modal-dialog {
    margin: 0.5rem !important;
  }
  .modal-content {
    border-radius: 16px !important;
  }
}



