/* Mobile navigation + compact collection filters.
   Loaded after the established site styles so desktop styling stays intact. */

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 680px) {
  /* Compact mobile header. It hides on downward scroll and returns on upward scroll. */
  .site-header {
    width: calc(100% - 20px);
    margin-top: 8px;
    padding: 11px 13px;
    top: 8px;
    border-radius: 22px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    transition: transform 220ms ease, opacity 180ms ease;
    will-change: transform;
  }

  .site-header.mobile-header-hidden {
    transform: translateY(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
  }

  .site-logo {
    min-width: 0;
    max-width: calc(100% - 86px);
    font-size: clamp(18px, 5.4vw, 23px);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-logo::after {
    width: 58px;
    margin-top: 4px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(226, 199, 121, 0.34);
    border-radius: 999px;
    background: rgba(255, 248, 237, 0.07);
    color: var(--gold-soft);
    font: 700 10px Arial, sans-serif;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-nav-icon {
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
  }

  .site-header .site-nav {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 199, 121, 0.18);
  }

  .site-header.mobile-menu-open .site-nav {
    display: grid;
  }

  .site-header .site-nav a {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  /* Keep the Art controls compact instead of a very long one-column strip. */
  .catalog-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
    border-radius: 22px;
  }

  .catalog-filter {
    min-width: 0;
  }

  .catalog-toolbar label {
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 0.10em;
  }

  .catalog-toolbar select,
  .catalog-toolbar input {
    min-width: 0;
    min-height: 42px;
    padding: 8px 9px;
    font-size: 12px;
  }

  .catalog-clear,
  .advanced-filters {
    grid-column: 1 / -1;
  }

  .catalog-clear {
    min-height: 42px;
  }

  .advanced-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .advanced-filters summary {
    padding: 4px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}
