/* =====================================================
   AMAR ABID — Responsive rules
   Desktop -> Laptop -> Tablet -> Phones
   ===================================================== */

/* Tablets and below */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-detail .detail-media { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
}

/* Mobile navigation + phones */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 360px; }

  .nav-links a {
    width: 100%;
    padding: 15px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after { display: none; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
}

/* Small phones */
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-card .card-body { padding: 14px; }
  .product-card .card-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding: 40px 22px; }
  .detail-actions { max-width: 100%; }
}

/* Very small phones */
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}
