/* FoxiWorld V1121 — compact mobile catalogue header and one canonical dock. */
@media (max-width: 900px) {
  /* Categories already have a permanent entry in the bottom navigation. */
  body.foxi-mobile-app .v12-category-nav-wrap,
  body.foxi-mobile-app .fw-nav,
  body.foxi-mobile-app .fw-mega-nav,
  body:not(.admin-body).foxi-mobile-app .fw-nav-wrap,
  body:not(.admin-body).foxi-mobile-app .fw-nav.fw-mega-nav {
    display: none !important;
    visibility: hidden !important;
  }

  /* Keep the catalogue identity visible, but reclaim vertical space. */
  body.catalog-page .v12-catalog-main {
    padding-top: 7px !important;
  }

  body.catalog-page .v12-breadcrumbs,
  body.catalog-page .v12-catalog-header .v12-eyebrow {
    display: none !important;
  }

  body.catalog-page .v12-catalog-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px 12px !important;
    min-height: 0 !important;
    margin: 0 0 7px !important;
    padding: 2px 0 !important;
  }

  body.catalog-page .v12-catalog-header h1 {
    margin: 0 !important;
    font-size: clamp(21px, 4vw, 27px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.8px !important;
  }

  body.catalog-page .v12-catalog-header p {
    margin: 3px 0 0 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  body.catalog-page .v12-catalog-controls {
    display: grid !important;
    grid-template-columns: 88px minmax(150px, 190px) !important;
    gap: 6px !important;
    width: auto !important;
    margin: 0 !important;
  }

  body.catalog-page .v128-filter-trigger,
  body.catalog-page .v12-sort {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
  }

  body.catalog-page .v128-filter-trigger {
    padding: 0 9px !important;
    gap: 5px !important;
  }

  body.catalog-page .v128-filter-trigger b,
  body.catalog-page .v12-sort select {
    font-size: 11px !important;
  }

  body.catalog-page .v12-sort {
    padding: 0 9px !important;
  }

  body.catalog-page .v12-sort span {
    display: none !important;
  }

  body.catalog-page .v12-chips {
    gap: 6px !important;
    margin: 0 0 8px !important;
    padding: 2px 0 4px !important;
  }

  body.catalog-page .v12-chips button,
  body.catalog-page .v1103-availability-switch {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 9px !important;
  }

  /* On authentication screens the form is the first and most important block. */
  body.customer-auth-body.foxi-mobile-app .customer-auth-header {
    padding: 9px 0 !important;
  }

  body.customer-auth-body.foxi-mobile-app .customer-auth-shell {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 13px !important;
    min-height: 0 !important;
    max-width: 650px !important;
    padding-top: 7px !important;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-form-card {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-showcase {
    order: 2 !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 24px !important;
    border-radius: 22px !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-showcase h1 {
    margin: 3px 0 0 !important;
    font-size: clamp(28px, 7vw, 38px) !important;
    line-height: 1.06 !important;
    letter-spacing: -1.2px !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-showcase > p {
    margin: 10px 0 16px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-benefits {
    gap: 8px !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-benefits > div {
    padding: 10px 12px !important;
    border-radius: 13px !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-pet-art {
    display: none !important;
  }
}

@media (max-width: 560px) {
  body.catalog-page .v12-catalog-header {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  body.catalog-page .v12-catalog-controls {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    width: 100% !important;
  }

  body.catalog-page .v12-catalog-header h1 {
    font-size: clamp(20px, 6vw, 25px) !important;
  }

  body.customer-auth-body.foxi-mobile-app .customer-auth-header-inner {
    gap: 10px !important;
  }

  body.customer-auth-body.foxi-mobile-app .brand-name {
    font-size: 20px !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-back-link {
    font-size: 11px !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-form-card {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  body.customer-auth-body.foxi-mobile-app .auth-showcase {
    padding: 19px 17px !important;
    border-radius: 18px !important;
  }
}
