.admin-menu-toggle,
.admin-menu-button,
.admin-sidebar-backdrop {
  display: none;
}

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

@media (max-width: 920px) {
  body.storefront-body .container,
  body.storefront-body .hh-container,
  body.admin-template-body .container,
  body.admin-template-body .admin-layout {
    width: calc(100% - 24px);
  }

  body.admin-template-body .admin-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-menu-button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    background: var(--theme-surface);
    cursor: pointer;
  }

  .admin-menu-button span {
    width: 17px;
    height: 2px;
    background: var(--theme-heading);
  }

  body.admin-template-body .admin-nav.card {
    position: fixed !important;
    top: 0 !important;
    bottom: 0;
    left: 0;
    z-index: 1210;
    width: min(290px, 86vw);
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0 var(--theme-radius-md) var(--theme-radius-md) 0;
    transform: translateX(-105%);
    transition: transform var(--theme-transition);
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.48);
  }

  .admin-menu-toggle:checked ~ .page .admin-nav.card {
    transform: translateX(0);
  }

  .admin-menu-toggle:checked ~ .page .admin-sidebar-backdrop {
    display: block;
  }

  body.storefront-body .product-detail,
  body.storefront-body .account-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .theme-preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-preview-toolbar .field {
    width: 100%;
  }

  .theme-preview-grid {
    grid-template-columns: 1fr;
  }

  body.storefront-body .grid-4,
  body.storefront-body .grid-3,
  body.storefront-body .grid-2,
  body.storefront-body .filters,
  body.admin-template-body .grid-2,
  body.admin-template-body .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  body.storefront-body .container,
  body.storefront-body .hh-container,
  body.admin-template-body .container,
  body.admin-template-body .admin-layout {
    width: calc(100% - 16px);
  }

  body.storefront-body .btn,
  body.admin-template-body .btn {
    min-height: 40px;
  }
}

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

@media print {
  body.storefront-body,
  body.admin-template-body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  body.storefront-body .site-header,
  body.storefront-body footer.footer,
  body.admin-template-body .site-header,
  body.admin-template-body .admin-nav,
  body.admin-template-body .admin-menu-button,
  body.admin-template-body .btn-row,
  body.admin-template-body .section-head .btn {
    display: none !important;
  }

  body.storefront-body .page,
  body.admin-template-body .page {
    padding: 0 !important;
  }

  body.storefront-body .container,
  body.admin-template-body .container,
  body.admin-template-body .admin-layout {
    width: 100% !important;
    max-width: none !important;
  }

  body.admin-template-body .admin-layout {
    display: block !important;
  }

  body.storefront-body .card,
  body.admin-template-body .card,
  body.admin-template-body .table-wrap {
    border-color: #bbbbbb !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
}
