/* TINTX mobile overflow / accidental zoom fix */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

#app, main, section, header, footer, nav {
  min-width: 0;
  max-width: 100%;
}

/* Hero: bigger product banner, cleaner smaller headline */
.hero-media img {
  height: 500px;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.04;
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }

  .site-header, .hero, .section, .page-wrap, .site-footer, .fitment-banner {
    width: 100%;
    max-width: 100%;
  }

  .hero, .section, .page-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Smaller "Privacy on demand. Comfort every drive." headline */
  .hero h1 {
    font-size: clamp(32px, 9.5vw, 42px);
    line-height: 1.06;
    letter-spacing: -.055em;
    margin: 10px 0 14px;
  }

  /* Make the hero banner/image noticeably larger */
  .hero-media {
    width: 100%;
    min-width: 0;
  }

  .hero-media img {
    width: 100%;
    height: 340px;
    object-fit: cover;
  }

  .hero h1, .page-title, .detail-copy h2, .section h2 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-media, .fabric-photo, .detail-main, .product-card, .fit-card, .form-card, .filters, .order-summary {
    min-width: 0;
    max-width: 100%;
  }

  .hero-media img, .fabric-photo img, .detail-main img, .material-grid img, .product-image img {
    max-width: 100%;
  }

  .trust-strip {
    width: calc(100% - 24px);
    max-width: 100%;
  }

  .trust-strip div { min-width: 0; }

  .fitment-banner, .section-heading, .catalogue-head, .shop-toolbar, .button-row, .qty-row, .cod-box {
    min-width: 0;
    max-width: 100%;
  }

  .shop-toolbar, .section-heading, .catalogue-head, .fitment-banner { flex-wrap: wrap; }

  .shop-toolbar input, .shop-toolbar select, .shop-search, .field, .form-field, .fit-fields select {
    min-width: 0;
    max-width: 100%;
  }

  .shop-layout, .detail-grid, .checkout-grid, .cart-grid, .fabric-section, .material-grid, .form-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit-fields, .fit-points { grid-template-columns: minmax(0, 1fr); }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 18px;
    padding-right: 18px;
  }

  .copyright { grid-column: 1 / -1; }
  .ai-panel { max-width: calc(100vw - 20px); }
  #chatzy-shadow-host { max-width: calc(100vw - 28px) !important; }
}

@media (max-width: 480px) {
  .product-grid, .site-footer { grid-template-columns: minmax(0, 1fr); }

  .hero h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.06;
  }

  .hero-media img { height: 330px; }

  .section, .page-wrap { padding-top: 70px; padding-bottom: 70px; }
  .hero { padding-top: 38px; padding-bottom: 42px; }

  .fitment-banner {
    margin-left: 12px;
    margin-right: 12px;
    width: calc(100% - 24px);
    padding: 24px 18px;
  }
}


/* Mobile-only hero banner enlargement */
@media (max-width: 760px) {
  .exact-hero-mobile-art {
    height: clamp(330px, 92vw, 400px);
  }
}


/* Make the actual lower hero artwork larger on mobile */
@media (max-width: 760px) {
  .exact-hero-mobile-art img {
    transform: scale(1.22);
    transform-origin: center center;
  }
}


/* Full-bleed lower hero image on mobile */
@media (max-width: 760px) {
  .exact-hero {
    padding: 0 !important;
  }

  .exact-hero-mobile-art {
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .exact-hero-mobile-art img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }
}


/* Keep the complete mobile hero artwork visible — no crop or zoom */
@media (max-width: 760px) {
  .exact-hero-mobile-art {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
  }

  .exact-hero-mobile-art img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    transform: none !important;
  }
}


/* Allow users to swipe or drag the logo marquee manually on mobile */
@media (max-width: 760px) {
  .brand-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .brand-marquee::-webkit-scrollbar {
    display: none;
  }

  .brand-marquee.is-dragging {
    cursor: grabbing;
  }

  .brand-marquee.is-dragging .brand-track {
    animation-play-state: paused !important;
  }
}
