@media (min-width: 1600px) {
  .shell {
    width: min(1560px, calc(100vw - 3rem));
  }

  .shop-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 2200px) {
  .shell {
    width: min(1960px, calc(100vw - 4rem));
  }

  .shop-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 24rem);
  }

  .home-hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-popup-peek {
    right: -0.75rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .header-actions,
  .site-nav {
    justify-content: center;
  }

  .hero-popup-peek {
    position: static;
    width: min(100%, 380px);
    margin-top: 1rem;
    transform: none;
  }

  .home-hero-layout,
  .home-vibe-grid,
  .home-story-layout {
    grid-template-columns: 1fr;
  }

  .home-hero-copy h1 {
    max-width: none;
  }

  .home-hero-copy,
  .home-hero-copy .hero-subtitle {
    text-align: center;
  }

  .hero-actions,
  .home-hero-stats {
    justify-content: center;
  }

  .home-hero-showcase {
    padding: 0;
    max-width: 30rem;
  }

  .hero-floating-note {
    position: static;
    width: 100%;
    transform: none;
  }

  .home-hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collections-grid,
  .why-grid,
  .review-grid,
  .newsletter-grid,
  .detail-layout,
  .cart-layout,
  .account-panels,
  .contact-layout,
  .admin-panels,
  .shop-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    display: none;
  }

  .checkout-steps,
  .checkout-lock-grid,
  .checkout-review-grid {
    grid-template-columns: 1fr;
  }

  .admin-matrix-shell {
    min-height: auto;
  }

  .admin-console-hero,
  .admin-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-hero-actions,
  .admin-toolbar,
  .admin-toolbar-products {
    width: 100%;
    min-width: 0;
  }

  .filter-mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 650px) {
  .hero-actions,
  .product-card-actions,
  .checkout-actions,
  .auth-inline-links,
  .form-row,
  .footer-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    padding: 2rem 1rem;
  }

  .hero-logo {
    width: min(360px, 82vw);
    margin-bottom: -1.4rem;
  }

  .home-hero-layout {
    gap: 1rem;
  }

  .home-hero-copy {
    gap: 0.95rem;
  }

  .home-hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.3rem);
  }

  .hero-actions .candy-button {
    width: 100%;
    min-width: 0;
  }

  .home-hero-stats {
    justify-content: stretch;
  }

  .home-hero-count-card {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .home-hero-trust,
  .hero-feature-actions {
    grid-template-columns: 1fr;
  }

  .home-hero-trust,
  .hero-floating-note-top {
    display: none;
  }

  .home-hero-showcase {
    max-width: 18.5rem;
  }

  .hero-feature-card {
    transform: none;
  }

  .hero-feature-media img {
    max-height: 17rem;
  }

  .home-story-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-filter-chip-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-rain {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-gate-title {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }

  .admin-login-window {
    padding: 1.1rem;
  }

  .admin-mini-grid {
    grid-template-columns: 1fr;
  }

  .admin-export-links,
  .admin-hero-button-row,
  .admin-bulk-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .shipping-method-head,
  .checkout-section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .shell {
    width: min(var(--max-width), calc(100vw - 1rem));
  }

  .product-grid,
  .gallery-thumbs,
  .filter-panel .pill-list {
    grid-template-columns: 1fr;
  }

  .site-nav a,
  .nav-pill,
  .cart-pill,
  .chip-button,
  .icon-button {
    padding: 0.7rem 0.95rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

  .home-hero-point {
    padding: 0.9rem;
  }

  .hero-feature-card {
    padding: 0.95rem;
  }

  .modal-body {
    padding: 2.4rem 1rem 1.2rem;
  }

  .audio-toggle {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
