/* Mobile catalog controls: filter + sort in one row, round search button */
@media (max-width: 767.98px) {
  body.app-theme .site-header-v3__mobile-search-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
  }

  body.app-theme .site-header-v3__mobile-search-wrap .site-header-v2__search {
    min-height: 2.55rem;
    border-radius: 999px;
  }

  body.app-theme .site-header-v3__mobile-search-wrap .site-header-v2__search-btn {
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
    min-height: 2.55rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.app-theme .catalog-toolbar--single-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.1rem;
  }

  body.app-theme .catalog-filter-dropdown {
    flex: 0 0 auto;
  }

  body.app-theme .catalog-filter-dropdown__summary {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }

  body.app-theme .catalog-toolbar__pills {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    grid-template-columns: none;
  }

  body.app-theme .catalog-sort-pill {
    flex: 0 0 auto;
    min-width: 2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    min-height: 2.2rem;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }

  body.app-theme .catalog-sort-pill__text {
    display: none;
  }

  body.app-theme .catalog-toolbar--single-row::-webkit-scrollbar,
  body.app-theme .catalog-toolbar__pills::-webkit-scrollbar {
    display: none;
  }
}

/* Mobile bottom nav 2026: active section highlighted with circular marker */
body.app-theme .mobile-nav-mint {
  background: #ffffff;
  backdrop-filter: none;
  border-top: 1px solid #dce4f8;
  box-shadow: 0 -6px 18px rgba(31, 111, 232, 0.08);
}

body.app-theme .mobile-nav-mint ul {
  background: transparent;
}

body.app-theme .mobile-nav-mint-link {
  gap: 0.24rem;
  color: #64748b;
  background: transparent;
  border: 0;
}

body.app-theme .mobile-nav-mint-link__icon {
  width: 2.1rem;
  height: 2.1rem;
  min-width: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #dde5fb;
  background: #ffffff;
  transition: all 0.2s ease;
}

body.app-theme .mobile-nav-mint-link__icon svg {
  width: 18px;
  height: 18px;
}

body.app-theme .mobile-nav-mint-link.is-active {
  color: var(--pf-brand);
  font-weight: 700;
}

body.app-theme .mobile-nav-mint-link.is-active .mobile-nav-mint-link__icon {
  background: var(--pf-brand-soft);
  border-color: color-mix(in srgb, var(--pf-brand) 35%, white);
  box-shadow: 0 6px 14px rgba(31, 111, 232, 0.18);
}

body.app-theme .mobile-nav-mint-link:hover .mobile-nav-mint-link__icon {
  background: #f8faff;
  border-color: #ccd7fb;
}

body.app-theme .mobile-cart-icon-wrap,
body.app-theme .mobile-cart-icon-wrap .mobile-nav-mint-link__icon {
  background-image: none;
}

/* Catalog filter behavior: desktop dropdown, mobile modal */
body.app-theme .catalog-filter-dropdown {
  position: relative;
}

body.app-theme .catalog-filter-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

body.app-theme .catalog-filter-dropdown__head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #111827;
}

body.app-theme .catalog-filter-dropdown__close {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  border: 1px solid #dbe4ff;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.app-theme .catalog-filter-dropdown__backdrop {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  body.app-theme .catalog-filter-dropdown__backdrop,
  body.app-theme .catalog-filter-dropdown__close,
  body.app-theme .catalog-filter-dropdown__head {
    display: none;
  }

  body.app-theme .catalog-filter-dropdown[open] .catalog-filter-dropdown__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    width: min(760px, 94vw);
    z-index: 60;
    background: #fff;
    border: 1px solid #dbe4ff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  }
}

@media (max-width: 767.98px) {
  body.app-theme .catalog-filter-dropdown[open] .catalog-filter-dropdown__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.36);
    z-index: 70;
  }

  body.app-theme .catalog-filter-dropdown[open] .catalog-filter-dropdown__panel {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    top: auto;
    max-height: min(82vh, 720px);
    overflow: auto;
    z-index: 80;
    border-radius: 1.05rem;
    background: #fff;
    border: 1px solid #dbe4ff;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.26);
    padding-top: 0.85rem;
  }

  body.app-theme .catalog-filter-dropdown__actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 0.5rem;
    border-top: 1px solid #eaf3ff;
  }
}

/* Product card cart button: circular + no warm tint */
body.app-theme .cart-control--icon .add,
body.app-theme .cart-control--icon .add.btn-sm,
body.app-theme .product-card__footer .cart-control .add {
  width: 2.45rem;
  min-width: 2.45rem;
  height: 2.45rem;
  min-height: 2.45rem;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a8cff 0%, #1a5dcb 100%);
  border-color: #1f6fe8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 111, 232, 0.2);
}

/* Remove any warm/brown artifacts around navbar search and mobile footer */
body.app-theme .site-header-v3,
body.app-theme .site-header-v3 .container,
body.app-theme .site-header-v3__row,
body.app-theme .site-header-v3__search,
body.app-theme .site-header-v2__search-wrap,
body.app-theme .site-header-v3__mobile-search-wrap {
  background: #ffffff;
  background-image: none;
  box-shadow: none;
}

body.app-theme .site-header-v3 {
  border-bottom: 1px solid #dce4f8;
}

body.app-theme .mobile-nav-mint,
body.app-theme .mobile-nav-mint-link,
body.app-theme .mobile-nav-mint-link__icon {
  background-image: none;
}

/* Product card responsive hardening (prevents layout drift on narrow screens incl. Pixel 7) */
