/* ============================================================
   AVANT GARDE INDUSTRIES — Responsive Stylesheet
   Mobile-first: Tablet, Desktop overrides
============================================================ */

/* ---- MOBILE (< 576px) ---- */
@media (max-width: 575.98px) {
  .py-6 { padding-top: 3rem; padding-bottom: 3rem; }

  /* Navbar */
  #mainNav { padding: .75rem 0; }
  .brand-main { font-size: .9rem; }
  .navbar-collapse { background: var(--navy-dark); padding: 1rem; border-radius: 0 0 14px 14px; margin-top: .5rem; }
  .btn-quote { width: 100%; margin-top: .6rem; text-align: center; }

  /* Hero */
  .hero-section { padding-top: 2rem; }
  .hero-content { padding-top: 5.5rem; text-align: center; }
  .hero-title { font-size: 1.75rem; }
  .hero-desc { font-size: .88rem; }
  .hero-badge { font-size: .7rem; margin: 0 auto 1rem; }
  .hero-actions { display: flex; flex-direction: column; gap: .8rem; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 260px; }
  .hero-float-card { display: none; }
  .hero-visual { display: none !important; }
  .scroll-down-arrow { display: none; }

  /* Stats */
  .stat-number { font-size: 1.6rem; }

  /* Products */
  .product-card-footer { flex-wrap: wrap; }

  /* About */
  .about-features { grid-template-columns: 1fr; }
  .about-img-badge { right: .5rem; }
  .about-actions { display: flex; flex-direction: column; gap: .8rem; }
  .btn-primary-custom, .btn-outline-custom { width: 100%; text-align: center; }

  /* Section Header */
  .section-title { font-size: 1.6rem; }

  /* Floating Buttons */
  .floating-cart { bottom: 8rem; right: 1rem; width: 50px; height: 50px; font-size: 1.1rem; }
  .floating-buttons { right: 1rem; bottom: 1.5rem; }
  .floating-btn { width: 46px; height: 46px; font-size: 1.15rem; }
  .floating-tooltip { display: none; }

  /* Blog */
  .blog-excerpt { -webkit-line-clamp: 2; }

  /* Footer */
  .footer { padding-top: 3rem; padding-bottom: 2rem; }
  .footer-bottom { text-align: center; }
  .footer-copy { text-align: center !important; }
  .social-link { width: 32px; height: 32px; font-size: .9rem; }
}

/* ---- SMALL TABLET (576px – 767px) ---- */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content { padding-top: 5.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-visual { display: none !important; }
  .hero-float-card { display: none; }
  .about-features { grid-template-columns: 1fr; }
}

/* ---- TABLET (768px – 991px) ---- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title { font-size: 2.4rem; }
  .hero-visual { display: none !important; }
  .hero-float-card { display: none; }
  .py-6 { padding-top: 4rem; padding-bottom: 4rem; }
  .section-title { font-size: 1.8rem; }
  .about-img-badge { right: .5rem; }
  .about-features { grid-template-columns: 1fr; }
}

/* ---- LAPTOP (992px – 1199px) ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title { font-size: 2.7rem; }
  .hero-float-card { left: -0.5rem; width: 200px; }
  .float-card-name { font-size: .76rem; }
}

/* ---- LARGE DESKTOP (≥ 1200px) ---- */
@media (min-width: 1200px) {
  .hero-title { font-size: 3.2rem; }
}

/* ---- NO HORIZONTAL SCROLL GUARD ---- */
body { max-width: 100vw; overflow-x: hidden; }
.container-xl { max-width: 1280px; padding-left: 1.25rem; padding-right: 1.25rem; }

/* ---- PRODUCT CARD GRID RESPONSIVE ---- */
@media (max-width: 575.98px) {
  #productsGrid .col-sm-6,
  #topChoiceGrid .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
}

/* ---- CHECKOUT MODAL ---- */
@media (max-width: 767.98px) {
  .payment-options { flex-direction: row; }
  .payment-option { min-width: 80px; }
  .modal-xl { --bs-modal-width: 95vw; }
}

/* ---- TESTIMONIAL CAROUSEL ---- */
@media (max-width: 575.98px) {
  .carousel-control-prev, .carousel-control-next { display: none; }
}

/* ---- CLIENTS SLIDER ---- */
@media (max-width: 575.98px) {
  .clients-slider-wrap::before, .clients-slider-wrap::after { width: 40px; }
  .client-logo-box { width: 120px; height: 54px; font-size: .75rem; }
}

/* ---- CATEGORY GRID ---- */
@media (max-width: 575.98px) {
  .categories-grid .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
}

/* ---- BLOG SECTION ---- */
@media (max-width: 767.98px) {
  .blog-section .col-md-4 { margin-bottom: .5rem; }
}

/* ---- STATS BAR ---- */
@media (max-width: 575.98px) {
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child { border-bottom: none; }
}

/* ---- HERO SEARCH ---- */
@media (max-width: 480px) {
  .search-wrap { flex-wrap: nowrap; }
  .btn-search { font-size: .8rem; padding: .85rem .9rem; }
}

/* ---- SCROLL BARS ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
