/* ==========================================================================
   VISHAL ENTERPRISES, WASHIM - RESPONSIVE STYLESHEET
   Mobile-First Breakpoint Adjustments & Touch Optimisations
   ========================================================================== */

/* 1. TABLET & BELOW (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 72px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* 2. TABLET / MOBILE NAVIGATION SWITCH POINT (<= 860px) */
@media (max-width: 860px) {
  .main-nav,
  .header-actions .btn-quote-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-drawer-backdrop {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }

  .divisions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* 3. MOBILE ACTION BAR ACTIVATION & MOBILE LAYOUT (<= 768px) */
@media (max-width: 768px) {
  :root {
    --space-2xl: 3.5rem;
    --space-3xl: 4rem;
  }

  .mobile-action-bar {
    display: block;
  }

  .top-info-strip {
    display: none; /* Keep clean on small mobile */
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-body {
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .assistant-card {
    padding: 1.5rem;
  }

  .assistant-pills {
    gap: 0.5rem;
  }

  .assistant-pill-btn {
    font-size: var(--text-xs);
    padding: 0.5rem 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .lightbox-nav-btn {
    display: none; /* Hide edge arrows on small mobile, swipe/tap enabled */
  }
}

/* 4. SMALL MOBILE DEVICES (<= 520px) */
@media (max-width: 520px) {
  :root {
    --header-height: 64px;
    --space-xl: 2.25rem;
    --space-2xl: 2.75rem;
  }

  .header-logo-img {
    height: 40px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .product-card-actions {
    flex-direction: column;
  }

  .product-card-actions .btn {
    width: 100%;
  }

  .modal-dialog {
    padding: 1.5rem;
  }
}

/* 5. EXTRA SMALL MOBILE (320px - 360px) */
@media (max-width: 360px) {
  .header-logo-img {
    height: 36px;
  }

  .btn {
    padding: 0.75rem 1.1rem;
    font-size: 0.825rem;
  }

  .division-card {
    padding: 1.25rem;
  }
}
