/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
  .grid-2 {
    gap: var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .product-detail-grid {
    gap: var(--space-xl);
  }

  .contact-grid {
    gap: var(--space-xl);
  }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.6rem;
    --text-2xl: 1.35rem;
    --header-height: 60px;
  }

  /* Header */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-card);
    border-top: 1px solid var(--color-border);
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 55vh;
  }

  .hero-slim {
    min-height: 45vh;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero-tagline {
    font-size: var(--text-xl);
  }

  .hero-bg,
  .story-banner-bg {
    background-image: url('../images/brick-bg-mobile.jpg');
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-panel-inner {
    padding: var(--space-2xl) var(--space-md) var(--space-lg);
  }

  /* Trust Strip */
  .trust-items {
    gap: var(--space-md);
    justify-content: center;
  }

  .trust-item {
    font-size: var(--text-xs);
    gap: 6px;
  }

  .trust-item svg {
    width: 18px;
    height: 18px;
  }

  .trust-strip-inline .trust-items {
    gap: var(--space-sm) var(--space-md);
  }

  /* Story banner */
  .story-stats {
    gap: var(--space-md);
  }

  .story-stat-number {
    font-size: var(--text-2xl);
  }

  .story-stat-divider {
    height: 28px;
  }

  /* Grids */
  .grid-products {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
  }

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

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

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

  /* Product Cards */
  .product-card-body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .product-card-name {
    font-size: var(--text-base);
  }

  .product-card-desc {
    display: none;
  }

  /* Product Detail */
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Cart Drawer */
  .cart-drawer {
    width: 100%;
  }

  /* Section spacing */
  .section {
    padding-block: var(--space-2xl);
  }

  .container {
    padding-inline: var(--space-md);
  }

  /* Category pills scroll */
  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }
}

/* ===== SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  .grid-products {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .product-card-actions select {
    font-size: var(--text-xs);
  }

  .add-to-cart-row {
    flex-direction: column;
  }

  .qty-control {
    width: 100%;
    justify-content: center;
  }

  .btn-add-cart {
    width: 100%;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
