/* Mobile: every page text + image. Desktop unchanged. */

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  html, body, #root {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .clp-body,
  .home-section,
  .b2b-home-shell,
  .products-page,
  .search-page,
  .contact-page,
  .donate-page,
  .store-page,
  .hireteam-page,
  .about-founder-page,
  .product-detail,
  .cart-page {
    min-width: 0;
    max-width: 100%;
  }

  h1, h2, h3, h4, h5, p, li, label, td, th,
  .section-title, .section-subtitle, .clp-title, .clp-subtitle,
  .hero-subtitle, .hero-badge, .hero-stat-label, .hero-stat-num,
  .gradient-text, .page-header h1, .sp-header h1,
  .contact-header h1, .donate-header h1, .pd-title,
  .content-card-title, .content-card-excerpt, .content-card-brand,
  .product-card-title, .product-card-desc, .brand-name,
  .talked-info h4, .b2b-card h2, .b2b-card p, .video-card strong,
  .store-card h2, .store-card p, .svc-card h3, .svc-card p,
  .af-hero-text h1, .af-bio, .hireteam-hero h1, .hireteam-hero-sub,
  .cat-banner-info h2, .cat-banner-info p, .footer-brand p,
  .footer-col a, .footer-contact p, .logo-text {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  img, video, canvas, iframe, svg {
    max-width: 100% !important;
  }
  img:not(.logo-image):not(.cat-chip-logo):not(.brand-chip-logo):not(.footer-logo-image) {
    height: auto;
  }
  .logo-image,
  .footer-logo-image {
    width: auto !important;
    max-width: min(140px, 42vw) !important;
    height: 32px !important;
    object-fit: contain !important;
  }
  .cat-chip-logo,
  .brand-chip-logo,
  .sp-brand-chip img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    flex-shrink: 0;
  }
  .brand-card img,
  .brand-letter {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
  }
  .wechat-qr,
  .wechat-qr-image {
    width: min(132px, 100%) !important;
    height: auto !important;
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: contain !important;
  }
  .af-photo {
    width: min(160px, 70vw) !important;
    height: auto !important;
    aspect-ratio: 1;
    object-fit: cover !important;
    max-width: 100%;
  }
  .af-cert-thumb,
  .project-mini-image,
  .pd-thumbnail img,
  .pd-related-card img,
  .blog-card-img img,
  .content-card-thumb img,
  .product-card-img img,
  .pd-image img,
  .cat-banner-img,
  .cat-banner-logo {
    max-width: 100% !important;
    object-fit: contain;
  }
  .video-card img,
  .video-thumb-video,
  .video-thumb-placeholder {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover !important;
  }
  .video-modal { padding: 10px !important; }
  .video-modal-panel {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: 12px !important;
  }
  .video-modal-panel iframe,
  .video-modal-panel video {
    width: 100% !important;
    height: 100% !important;
  }
  .pd-content img,
  .pd-content video,
  .pd-content iframe,
  .pd-description img,
  .pd-description video,
  .pd-description iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .pd-image img,
  .pd-placeholder {
    height: auto !important;
    min-height: 180px;
    max-height: 240px;
    padding: 12px !important;
  }

  .content-grid,
  .clp-loading,
  .sp-grid,
  .sp-loading,
  .sp-product-list,
  .hireteam-expertise-grid,
  .af-edu-list,
  .af-cards,
  .af-cert-grid,
  .pd-related-grid,
  .donate-grid,
  .services-grid,
  .store-grid,
  .blog-grid,
  .categories-grid,
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .hero { padding: 92px 0 36px !important; }
  .hero h1 { font-size: clamp(22px, 6.4vw, 30px) !important; line-height: 1.22 !important; }
  .hero-subtitle { font-size: 14px !important; line-height: 1.6 !important; }
  .hero-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 7px 12px !important;
  }
  .hero-search { width: 100% !important; max-width: 100% !important; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn,
  .page-header .btn,
  .empty-state .btn,
  .pd-actions .btn,
  .contact-form button,
  .contact-form .btn,
  .hireteam-form-footer .btn,
  .filter-toggle,
  .supplier-request-form button,
  .supplier-request-form .btn {
    width: 100%;
  }
  .section-title { font-size: 22px !important; line-height: 1.3 !important; }
  .clp-title, .sp-header h1, .contact-header h1, .donate-header h1 { font-size: 22px !important; }
  .pd-title { font-size: 20px !important; }

  .navbar-inner { gap: 6px !important; }
  .navbar-logo { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .logo-text { font-size: 16px !important; }
  .navbar-actions { flex-shrink: 0; }

  .clp-search { min-width: 0 !important; width: 100% !important; }
  .clp-header-inner { flex-direction: column; align-items: stretch !important; }
  .clp-body { padding: 20px 0 !important; }
  .clp-filters { flex-direction: column; align-items: stretch !important; }
  .clp-sort { width: 100%; }
  .clp-sort select { width: 100%; }

  .sp-form { flex-wrap: wrap; width: 100%; max-width: 100%; padding: 10px !important; }
  .sp-form input { min-width: 0; flex: 1 1 140px; font-size: 16px !important; }
  .sp-submit { width: 100%; min-height: 44px; }

  .products-layout { display: block !important; }
  .cat-banner { flex-direction: column; text-align: center; align-items: center; }
  .cat-banner-img { width: min(160px, 70vw) !important; height: auto !important; }

  .contact-body { grid-template-columns: 1fr !important; }
  .cf-row, .form-row { flex-direction: column; grid-template-columns: 1fr !important; }
  .contact-form { padding: 18px 14px !important; }
  .contact-card { min-width: 100% !important; }

  .hireteam-why-inner,
  .hireteam-form-grid { grid-template-columns: 1fr !important; }
  .hireteam-form { padding: 18px 14px !important; }

  .pd-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .pd-features ul { grid-template-columns: 1fr !important; }
  .pd-actions { flex-direction: column; }
  .pd-content, .pd-description { overflow-x: auto; }
  .pd-content table,
  .pd-description table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-layout { grid-template-columns: 1fr !important; }
  .cart-item {
    flex-wrap: wrap;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .cart-item img { width: 72px; height: 72px; object-fit: contain; }
  .cart-item-price { min-width: 0 !important; text-align: left !important; }

  .footer { padding: 36px 0 20px !important; margin-top: 40px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 22px !important; }
  .footer-logo { flex-wrap: wrap; }

  .product-card-actions {
    opacity: 1 !important;
    transform: none !important;
  }

  .floating-contact {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    max-width: calc(100vw - 24px);
  }
  .fc-popup { width: min(280px, calc(100vw - 24px)) !important; }
  .fc-fab { min-height: 48px; }

  .booking-modal-overlay { padding: 12px !important; }
  .booking-modal { padding: 18px 14px !important; max-height: 92dvh; }

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

  .talked-item { align-items: flex-start; }
  .talked-meta { flex-wrap: wrap; gap: 8px; }

  .b2b-card { padding: 16px !important; }
  .b2b-card h2 { font-size: 18px !important; }

  .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .coverage-map { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  .donate-crypto,
  .donate-thanks { padding: 18px 14px !important; }
  .donate-methods { flex-direction: column; }
  .donate-method { width: 100%; overflow-wrap: anywhere; }

  .auth-card { padding: 22px 16px !important; }
}

@media (max-width: 420px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .hero h1 { font-size: 22px !important; }
  .section-title, .clp-title, .sp-header h1 { font-size: 20px !important; }
  .logo-text { font-size: 14px !important; }
  .logo-image,
  .footer-logo-image {
    max-width: min(96px, 36vw) !important;
    height: 26px !important;
  }
  .fc-fab span { display: none; }
  .fc-fab { width: 48px; min-width: 48px; padding: 0 !important; border-radius: 50%; }
  .hero-stats { gap: 10px !important; }
  .brand-name { font-size: 11px; }
  .page-btn, .clp-page-btn { width: 36px; height: 36px; }
}
