/* ELGHAZAWY Global Foundation | intentional layout transitions only */

@media (max-width: 1023px) {
  body.elg-site .woocommerce :where(ul.products, .wc-block-grid__products) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.elg-site .elg-section__head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767px) {
  :root { --elg-gutter: 1rem; --elg-section-space: 2.25rem; --elg-header-main-height: 4rem; }
  body.elg-site { font-size: 15px; }
  body.elg-site :where(.ct-header, #header) { position: relative; }
  body.elg-site .woocommerce :where(ul.products, .wc-block-grid__products) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--elg-space-3); }
  body.elg-site .woocommerce :where(ul.products, .wc-block-grid__products) > :where(li.product, .wc-block-grid__product) { padding: var(--elg-space-3); }
  body.elg-site :is(.wp-element-button, .elg-button) { min-block-size: 2.75rem; }
  body.elg-site .woocommerce :where(table.shop_table, table.woocommerce-table) { display: block; overflow-inline: auto; white-space: nowrap; }
  body.elg-site .woocommerce .woocommerce-MyAccount-navigation { margin-block-end: var(--elg-space-4); }
}

@media (max-width: 389px) {
  body.elg-site .woocommerce :where(ul.products, .wc-block-grid__products) { grid-template-columns: 1fr; }
  body.elg-site .elg-section__head { gap: var(--elg-space-3); }
}

@media (prefers-reduced-motion: reduce) {
  body.elg-site *, body.elg-site *::before, body.elg-site *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
