/* ═══ Theme Store — horizontal categories, 4/5 grid, AJAX load more ═══ */

.ts-store {
  background: linear-gradient(180deg, #f8faf9 0%, #f1f5f3 100%);
  padding-bottom: 0;
}

.ts-store__container {
  max-width: 1680px;
}

/* ── Header ── */
.ts-store__head {
  background: #fff;
  border-bottom: 1px solid #e8ece9;
  padding: 1.25rem 0 1.35rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}
.ts-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: #94a3b8;
  margin-bottom: .85rem;
}
.ts-breadcrumb a {
  color: var(--primary-mid, #1e7040);
  text-decoration: none;
  font-weight: 600;
}
.ts-breadcrumb a:hover { text-decoration: underline; }
.ts-store__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ts-store__head h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--text-dark, #0f172a);
  letter-spacing: -.02em;
}
.ts-store__head p {
  margin: 0;
  font-size: .92rem;
  color: var(--text-muted, #64748b);
  max-width: 36rem;
  line-height: 1.5;
}

.ts-search {
  display: flex;
  align-items: center;
  min-width: min(100%, 280px);
  max-width: 360px;
  flex: 1;
  background: #f8fafc;
  border: 1px solid #dfe5e1;
  border-radius: 8px;
  padding: 0 .85rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ts-search:focus-within {
  background: #fff;
  border-color: var(--primary-light, #2d9957);
  box-shadow: 0 0 0 3px rgba(45, 153, 87, .1);
}
.ts-search i { color: #94a3b8; font-size: .82rem; margin-right: .45rem; flex-shrink: 0; }
.ts-search input {
  flex: 1;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  font-size: .88rem;
  padding: .62rem 0;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ts-search input::-webkit-search-decoration,
.ts-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.ts-store__body {
  padding-top: 1.35rem;
  padding-bottom: 2.75rem;
  /* Giữ padding ngang của .container — không dùng shorthand 0 ở trục X */
}

/* ── Horizontal category bar ── */
.ts-cat-bar {
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: 8px;
  padding: .85rem .85rem .75rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}
.ts-cat-bar__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -.15rem;
  padding: 0 .15rem .15rem;
}
.ts-cat-bar__scroll::-webkit-scrollbar { display: none; }

.ts-cat-pills {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: nowrap;
  min-width: min-content;
}
.ts-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  border-radius: 999px;
  padding: .48rem .95rem;
  font-size: .82rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s, box-shadow .12s;
}
.ts-cat-pill em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 800;
  color: #94a3b8;
  background: #fff;
  border-radius: 999px;
  padding: .12rem .45rem;
  min-width: 1.4rem;
  text-align: center;
}
.ts-cat-pill:hover {
  background: #f0f7f3;
  border-color: #c8e6d2;
  color: var(--primary, #15522f);
}
.ts-cat-pill.is-active {
  background: var(--primary, #15522f);
  border-color: var(--primary, #15522f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21, 82, 47, .22);
}
.ts-cat-pill.is-active em {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.ts-cat-sub {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px dashed #e8ece9;
}
.ts-cat-sub.is-visible { display: flex; }

.ts-cat-sub__all,
.ts-cat-sub__item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  padding: .38rem .72rem;
  font-size: .78rem;
  font-weight: 600;
  color: #64748b;
  transition: background .12s, color .12s;
}
.ts-cat-sub__all {
  font-weight: 800;
  color: var(--primary-mid, #1e7040);
  margin-right: .25rem;
}
.ts-cat-sub__item em {
  font-style: normal;
  font-size: .65rem;
  font-weight: 700;
  color: #94a3b8;
}
.ts-cat-sub__all:hover,
.ts-cat-sub__item:hover {
  background: #f0f7f3;
  color: var(--primary, #15522f);
}
.ts-cat-sub__all.is-active,
.ts-cat-sub__item.is-active {
  background: var(--primary-pale-2, #e8f5ed);
  color: var(--primary, #15522f);
  border-color: #c8e6d2;
}
.ts-cat-sub__item.is-active em { color: var(--primary-mid, #1e7040); }

/* ── Main bar ── */
.ts-main__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.ts-main__title {
  flex: 1 1 auto;
  min-width: min(100%, 200px);
}
.ts-main__title h2 {
  margin: 0 0 .15rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
}
.ts-main__count {
  margin: 0;
  font-size: .8rem;
  color: #94a3b8;
}
.ts-main__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  max-width: 100%;
}
.ts-main__filters {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.ts-tabs {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.ts-tab {
  border: none;
  background: transparent;
  padding: .34rem .62rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.ts-tab.is-active {
  background: var(--primary, #15522f);
  color: #fff;
  box-shadow: 0 2px 8px rgba(21, 82, 47, .18);
}
.ts-tab:not(.is-active):hover {
  color: var(--primary, #15522f);
  background: #f0f7f3;
}

.ts-main__filters .ts-sort-wrap {
  width: 148px;
  flex-shrink: 0;
}
.ts-type-wrap {
  width: 158px;
}

/* SDW — đồng bộ 2 dropdown + mũi tên (trang public không load Line Awesome) */
.ts-store .sdw {
  width: 100%;
}
.ts-store .sdw-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px 0 12px;
  border: 1px solid #e8ece9 !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.ts-store .sdw-trigger:hover {
  border-color: #c8e6d2 !important;
}
.ts-store .sdw-trigger-content {
  flex: 1;
  min-width: 0;
  gap: 0;
}
.ts-store .sdw-trigger-icon {
  display: none !important;
}
.ts-store .sdw-trigger-label {
  font-size: .75rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
}
.ts-store .sdw-trigger-label.sdw--placeholder {
  color: #64748b;
  font-weight: 600;
}
.ts-store .sdw-clear {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  padding: 0;
}
.ts-store .sdw-clear i {
  font-size: 12px;
}
.ts-store .sdw-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #94a3b8;
  margin-left: 2px;
  transition: transform .18s ease;
}
.ts-store .sdw-arrow i {
  display: none !important;
}
.ts-store .sdw-arrow::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.ts-store .sdw.sdw--open .sdw-arrow {
  transform: rotate(180deg);
}
.ts-store .sdw.sdw--open:not(.sdw--drop-up) .sdw-trigger {
  border-color: var(--primary-light, #2d9957) !important;
  box-shadow: 0 0 0 3px rgba(45, 153, 87, .1);
  border-radius: 8px 8px 0 0 !important;
}
.ts-store .sdw.sdw--open.sdw--drop-up .sdw-trigger {
  border-color: var(--primary-light, #2d9957) !important;
  box-shadow: 0 0 0 3px rgba(45, 153, 87, .1);
  border-radius: 0 0 8px 8px !important;
}

.ts-card__ph[hidden] { display: none !important; }

.ts-grid-wrap { position: relative; min-height: 140px; }

/* 4 cột ≤1650px, 5 cột >1650px */
.ts-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  transition: opacity .15s ease;
}
@media (min-width: 1651px) {
  .ts-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.15rem; }
}
@media (max-width: 1200px) {
  .ts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ts-grid { grid-template-columns: 1fr; }
}

.ts-grid.is-loading {
  opacity: .55;
  pointer-events: none;
}

/* ── Card ── */
.ts-card {
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, border-color .22s, transform .22s;
}
.ts-card:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, .09);
  border-color: #b8dcc8;
  transform: translateY(-2px);
}

.ts-card__media { position: relative; }
.ts-card__thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2ef;
}
.ts-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.ts-card:hover .ts-card__thumb img { transform: scale(1.05); }

.ts-card__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-card__ph[data-hue="0"] { background: linear-gradient(135deg, #e8f5ed, #d1ebe0); }
.ts-card__ph[data-hue="1"] { background: linear-gradient(135deg, #ecfdf5, #bbf7d0); }
.ts-card__ph[data-hue="2"] { background: linear-gradient(135deg, #f0fdf4, #86efac); }
.ts-card__ph[data-hue="3"] { background: linear-gradient(135deg, #eff6ff, #93c5fd); }
.ts-card__ph[data-hue="4"] { background: linear-gradient(135deg, #faf5ff, #c4b5fd); }
.ts-card__ph[data-hue="5"] { background: linear-gradient(135deg, #fff7ed, #fdba74); }
.ts-card__ph span {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: var(--primary, #15522f);
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.ts-card__hover {
  position: absolute;
  inset: 0;
  background: rgba(12, 51, 32, .52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.ts-card__hover span {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .45rem .9rem;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 8px;
}
.ts-card:hover .ts-card__hover { opacity: 1; }

.ts-card__flags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
  max-width: calc(100% - 16px);
}
.ts-card__type {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
}
.ts-card__flag {
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.ts-card__flag--hot { background: #fee2e2; color: #b91c1c; }
.ts-card__flag--pop { background: #fef3c7; color: #92400e; }
.ts-card__flag--free { background: #ecfdf5; color: #15803d; }
.ts-card__flag--sale { background: #fff7ed; color: #c2410c; }
.ts-card__flag--type {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.ts-card__flag--cat-ecommerce { background: rgba(219, 234, 254, .95); color: #1d4ed8; }
.ts-card__flag--cat-landing { background: rgba(254, 243, 199, .95); color: #b45309; }
.ts-card__flag--cat-corporate { background: rgba(224, 231, 255, .95); color: #4338ca; }
.ts-card__flag--cat-blog { background: rgba(243, 232, 255, .95); color: #7e22ce; }
.ts-card__flag--cat-education { background: rgba(204, 251, 241, .95); color: #0f766e; }
.ts-card__flag--cat-other { background: rgba(241, 245, 249, .95); color: #475569; }

.ts-card__info {
  padding: .8rem .9rem .85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
}
.ts-card__name {
  margin: 0;
  font-size: .88rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-card__cat {
  margin: .15rem 0 0;
  font-size: .7rem;
  color: #94a3b8;
  font-weight: 600;
}
.ts-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  margin-top: auto;
  padding-top: .45rem;
  border-top: 1px solid #f1f5f3;
}
.ts-card__price { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.ts-price {
  font-size: .86rem;
  font-weight: 800;
  color: var(--primary, #15522f);
}
.ts-price.is-free { color: #15803d; }
.ts-price.is-old {
  font-size: .7rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.ts-card__thumb--static { cursor: default; display: block; }

.ts-card__actions {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}
.ts-card__demo {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  color: #475569;
  padding: .32rem .55rem;
  border: 1px solid #dfe5e1;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
  transition: background .15s, color .15s, border-color .15s;
}
.ts-card__demo:hover {
  background: #f8fafc;
  color: var(--primary, #15522f);
  border-color: #cbd5e1;
}

.ts-card__pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  padding: .34rem .65rem;
  border-radius: 8px;
  border: none;
  background: var(--primary, #15522f);
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, opacity .12s;
  min-width: 58px;
}
.ts-card__pick:hover:not(:disabled) {
  background: var(--primary-dark, #0c3320);
  color: #fff;
}
.ts-card__pick:disabled,
.ts-card__pick.is-loading {
  opacity: .65;
  cursor: wait;
}

/* ── Footer / load more ── */
.ts-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: .5rem;
}
.ts-footer:empty { display: none; }
.ts-footer__info {
  margin: 0;
  font-size: .82rem;
  color: #94a3b8;
}
.ts-footer__info strong { color: #64748b; font-weight: 800; }

.ts-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 220px;
  padding: .72rem 1.35rem;
  border: 1.5px solid #c8e6d2;
  border-radius: 8px;
  background: #fff;
  color: var(--primary, #15522f);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(21, 82, 47, .06);
}
.ts-load-more em {
  font-style: normal;
  font-size: .75rem;
  font-weight: 700;
  color: #64748b;
}
.ts-load-more:hover:not(:disabled) {
  background: var(--primary-pale-2, #e8f5ed);
  border-color: var(--primary-light, #2d9957);
  box-shadow: 0 4px 16px rgba(21, 82, 47, .12);
}
.ts-load-more:disabled,
.ts-load-more.is-loading {
  opacity: .65;
  cursor: wait;
}
.ts-load-more.is-loading .ts-load-more__label::after {
  content: '…';
}

/* Modal thanh toán theme (public store) */
.tm-pay-overlay {
  position: fixed; inset: 0; z-index: 10050;
  background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.tm-pay-modal {
  width: 100%; max-width: 420px; background: #fff; border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .2); overflow: hidden;
}
.tm-pay-modal__head {
  padding: 18px 20px 12px; border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.tm-pay-modal__title { margin: 0; font-size: 17px; font-weight: 700; color: #0f172a; }
.tm-pay-modal__sub { margin: 4px 0 0; font-size: 12px; color: #64748b; }
.tm-pay-modal__close {
  border: none; background: #f8fafc; width: 32px; height: 32px; border-radius: 8px;
  font-size: 20px; line-height: 1; cursor: pointer; color: #64748b;
}
.tm-pay-modal__body { padding: 16px 20px 20px; }
.tm-pay-amount {
  text-align: center; font-size: 28px; font-weight: 800; color: #4338ca; margin-bottom: 12px;
}
.tm-pay-qr { display: flex; justify-content: center; margin-bottom: 14px; }
.tm-pay-qr img {
  width: 200px; height: 200px; object-fit: contain; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #fff;
}
.tm-pay-bank {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 12px 14px; font-size: 13px; color: #334155; line-height: 1.6;
}
.tm-pay-bank strong { color: #0f172a; }
.tm-pay-ref {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #eef2ff; border: 1px dashed #c7d2fe;
  font-size: 12px; color: #3730a3; text-align: center;
}
.tm-pay-ref code {
  display: block; margin-top: 4px; font-size: 15px; font-weight: 800; letter-spacing: .5px;
}
.tm-pay-hint {
  margin-top: 12px; font-size: 11px; color: #94a3b8; text-align: center; line-height: 1.45;
}
.tm-pay-modal__foot {
  padding: 0 20px 18px; display: flex; gap: 8px; justify-content: flex-end;
}
.fe-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .45rem .85rem; border-radius: 8px; font-size: .82rem; font-weight: 700;
  cursor: pointer; border: none; font-family: inherit;
}
.fe-btn--ghost { background: #f1f5f9; color: #475569; }
.fe-btn--primary { background: #4338ca; color: #fff; }
.fe-btn--ghost:hover { background: #e2e8f0; }
.fe-btn--primary:hover { background: #3730a3; }

/* ── Empty ── */
.ts-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  color: #94a3b8;
  background: #fff;
  border: 1px dashed #e2e8f0;
  border-radius: 8px;
}
.ts-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto .85rem;
  border-radius: 8px;
  background: #eef2ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #cbd5e1;
}
.ts-empty p { margin: 0 0 .85rem; font-size: .92rem; }
.ts-link-btn {
  border: none;
  background: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary, #15522f);
  cursor: pointer;
  text-decoration: underline;
}

/* ── CTA ── */
.ts-cta.cta-section { padding: 2.75rem 0; }
.ts-cta.cta-section .container { text-align: left; }
.ts-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ts-cta__copy {
  flex: 1;
  min-width: min(100%, 280px);
}
.ts-cta.cta-section h2 {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  margin: 0 0 .4rem;
  line-height: 1.3;
}
.ts-cta.cta-section p {
  color: rgba(255, 255, 255, .88);
  font-size: .92rem;
  margin: 0;
  max-width: 32rem;
  line-height: 1.55;
}
.ts-cta__actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ts-cta .btn-outline-white:hover { color: #fff; }

@media (max-width: 900px) {
  .ts-main__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .ts-main__actions {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .ts-main__actions::-webkit-scrollbar { display: none; }
}

@media (max-width: 640px) {
  .ts-store__head-row { flex-direction: column; align-items: stretch; }
  .ts-search { max-width: none; }
  .ts-main__actions {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
  }
  .ts-main__filters {
    width: 100%;
    flex-direction: column;
  }
  .ts-tabs { width: 100%; justify-content: space-between; }
  .ts-sort-wrap,
  .ts-type-wrap { width: 100%; }
  .ts-cat-pill { padding: .42rem .8rem; font-size: .78rem; }
  .ts-load-more { width: 100%; min-width: 0; }
}
