/**
 * LuxShop — Responsive breakpoints
 */

@media (max-width: 1100px) {
  .lux-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lux-footer__col--brand {
    grid-column: 1 / -1;
  }

  .lux-categories__grid,
  .lux-features__grid,
  .lux-values-grid,
  .lux-team-grid,
  .lux-achievements,
  ul.products,
  .lux-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lux-instagram__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lux-offers__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .lux-offer--large {
    grid-row: auto;
    min-height: 320px;
  }

  .lux-newsletter__panel {
    flex-direction: column;
    align-items: stretch;
  }

  .lux-newsletter-form {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .lux-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .lux-nav {
    display: none;
  }

  .lux-header__toggle {
    display: inline-flex;
  }

  .lux-header__brand {
    justify-self: center;
  }

  .lux-shop-layout,
  .lux-product,
  .lux-cart,
  .lux-checkout__grid,
  .lux-contact__grid,
  .lux-about__story,
  .lux-about__mv-grid,
  .lux-quick-view__grid,
  .lux-testimonials__grid,
  .lux-posts-grid {
    grid-template-columns: 1fr;
  }

  .lux-shop-sidebar {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.45);
  }

  .lux-shop-sidebar.is-open,
  body.filters-open .lux-shop-sidebar {
    display: block;
  }

  .lux-shop-sidebar__inner {
    width: min(100%, 360px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: var(--lux-bg);
    border-radius: var(--lux-radius-lg);
    padding: 1rem;
    box-shadow: var(--lux-shadow-lg);
  }

  .lux-filter-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .lux-container {
    width: min(100% - 1.5rem, var(--lux-container));
  }

  .lux-hero {
    min-height: 78vh;
  }

  .lux-hero__title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .lux-features__grid,
  .lux-categories__grid,
  .lux-values-grid,
  .lux-team-grid,
  .lux-achievements,
  ul.products,
  .lux-products-grid,
  .lux-footer__grid {
    grid-template-columns: 1fr;
  }

  .lux-instagram__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lux-section__header--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lux-newsletter-form,
  .lux-search-form,
  .lux-hero__cta,
  .lux-product__extra-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lux-btn,
  .lux-newsletter-form .lux-btn,
  .lux-search-form .lux-btn {
    width: 100%;
  }

  .lux-header__wishlist {
    display: none;
  }

  .lux-table thead {
    display: none;
  }

  .lux-table tr {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--lux-border);
  }

  .lux-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: none;
    padding: 0.35rem 0;
  }

  .lux-map {
    aspect-ratio: 4 / 3;
  }

  .lux-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

@media (min-width: 901px) {
  .lux-shop-sidebar {
    display: block !important;
    position: sticky;
    top: calc(var(--lux-header-h) + 1rem);
    inset: auto;
    background: transparent;
    padding: 0;
    z-index: auto;
  }
}
