/* ============================================================
   ELEVATE CHEATS - RESPONSIVE / MOBILE CSS
   Comprehensive mobile-first responsive overrides
   ============================================================ */

/* ── Global Mobile Fixes ───────────────────────────────────── */
@media (max-width: 767px) {

  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Reduce global padding on mobile */
  .px-32 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-20 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .py-5-nav {
    padding-top: calc(64px + 1rem);
    padding-bottom: 1rem;
  }

  /* ── Hero Section ─────────────────────────────────────────── */
  .hero .container {
    padding: 2.5rem 1rem !important;
  }

  .hero .content h1 {
    font-size: 1.75rem !important;
    margin-bottom: 1rem;
  }

  .hero .content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero .content a {
    margin-bottom: 1.5rem;
  }

  .hero .fake-searchbar {
    max-width: 100%;
  }

  .hero .fake-searchbar input,
  .hero .search-modal .searchbar input {
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 0.9rem;
  }

  /* ── Section Titles ───────────────────────────────────────── */
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-title h1,
  .section-title h2 {
    font-size: 1.35rem !important;
  }

  .section-title p {
    padding-left: 0 !important;
    border-left: none !important;
  }

  /* ── Product Cards Grid ───────────────────────────────────── */
  .products .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.75rem;
  }

  .products .card .card-title {
    font-size: 0.95rem;
  }

  .products .card .info {
    font-size: 0.8rem;
  }

  .products .card .card-body {
    padding: 0.75rem;
  }

  /* ── Product Detail Page ──────────────────────────────────── */
  .product-wrapper {
    min-height: auto;
  }

  .product-wrapper .thumbnails {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .product-wrapper .buy-buttons {
    flex-direction: column;
  }

  .product-wrapper .buy-buttons .btn {
    width: 100% !important;
  }

  /* ── Features Section ─────────────────────────────────────── */
  .features .list .feature {
    padding: 1rem;
  }

  .features .list .feature i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .features .list .feature svg {
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
  }

  .features .list .feature .title {
    font-size: 1rem;
  }

  .features .list .feature .description {
    padding: 0;
    font-size: 0.82rem;
  }

  /* ── Socials Section ──────────────────────────────────────── */
  .socials {
    padding: 2.5rem 0 !important;
  }

  /* ── CTA Sections ─────────────────────────────────────────── */
  .cta-text-image .content {
    padding: 2rem 1rem !important;
  }

  .cta-text-image .content .title {
    font-size: 1.75rem !important;
  }

  .cta-text-center .content {
    padding: 2.5rem 1rem !important;
  }

  .cta-text-center .content .title {
    font-size: 1.5rem !important;
  }

  /* ── Testimonials ─────────────────────────────────────────── */
  .testimonial .header {
    padding: 0.75rem 1rem 0 1rem;
  }

  .testimonial .content {
    padding: 0 1rem;
  }

  .testimonial .footer {
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* ── Footer ───────────────────────────────────────────────── */
  footer.footer {
    padding: 2rem 1rem !important;
  }

  footer.footer .row > div {
    margin-bottom: 1.5rem;
  }

  .footer .logo {
    margin-bottom: 1rem;
  }

  .footer .logo img {
    max-height: 2.25rem;
  }

  .footer h5 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  /* ── Chips / Filter Buttons ───────────────────────────────── */
  .chips {
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chips .btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
  }

  /* ── Variants ─────────────────────────────────────────────── */
  .variants .variant {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* ── Container padding fix ────────────────────────────────── */
  .container, .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* ── Sales notification popup ─────────────────────────────── */
  .notification-popup,
  [id*="notification"] {
    max-width: calc(100vw - 32px) !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    width: auto !important;
  }

  /* ── Bootstrap utilities fix ──────────────────────────────── */
  .row {
    --bs-gutter-x: 0.75rem;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* ── Product card redesign (popular products) ─────────────── */
  .popular-product-card {
    border-radius: 14px;
  }

  /* ── Modals ───────────────────────────────────────────────── */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-content {
    border-radius: 12px;
  }
}

/* ── Small Phones (< 400px) ────────────────────────────────── */
@media (max-width: 399px) {
  .hero .content h1 {
    font-size: 1.5rem !important;
  }

  .section-title h1,
  .section-title h2 {
    font-size: 1.2rem !important;
  }

  .products .card .card-title {
    font-size: 0.85rem;
  }

  .catalyst-brand strong {
    font-size: 12px !important;
  }

  .popular-products-header h2 {
    font-size: 1.65rem !important;
  }
}

/* ── Tablet Landscape (768 - 991px) ────────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
  .px-32 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .hero .container {
    padding: 4rem 1.5rem;
  }

  .hero .content h1 {
    font-size: 2.25rem;
  }
}
