/* IM DECOR - Artisanal Luxury Heritage Responsive Styles */

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

@media (max-width: 991px) {
  :root {
    --header-h: 72px;
  }

  .header-search {
    display: none;
  }

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

  .products-sidebar-card,
  .filters {
    position: static;
    margin-bottom: 20px;
  }

  .pdp-wrap {
    padding: 24px;
  }

  .pdp-actions {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1200;
    overflow-y: auto;
    border-top: 1px solid var(--border-hairline);
  }

  .menu.open,
  .menu.is-open {
    transform: translateX(0);
  }

  .menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px;
  }

  .nav-item {
    width: 100%;
    height: auto;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--surface-cream);
    color: var(--primary);
  }

  .nav-link::after {
    display: none;
  }

  .mega-menu {
    display: none !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  .member-shell {
    grid-template-columns: 1fr !important;
  }

  .member-sidebar {
    position: static !important;
  }
}

@media (max-width: 768px) {
  .hero,
  .hero-banner {
    min-height: auto;
  }

  .hero-content,
  .hero-copy {
    padding: 36px 24px;
  }

  .hero-content h1,
  .hero-copy h1 {
    font-size: 32px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .card-body {
    padding: 14px;
  }

  .card-footer {
    padding: 10px 14px 14px;
  }

  .pdp-actions {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
  }

  .cart-item-actions {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .category-subnav-links {
    gap: 16px;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stat {
    min-width: 100%;
  }

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

  .products-toolbar .right {
    justify-content: space-between;
  }
}
