.mobi-catalog {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  flex: 1;
  padding: 34px 24px 90px;
  margin: 0 auto;
  color: #1a1a1a;
}

.mobi-catalog__heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.mobi-catalog__title {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: normal;
}

.mobi-catalog-search {
  box-sizing: content-box;
  display: flex;
  width: 280px;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #f4f4f4;
  color: #8a8a8a;
}

.mobi-catalog-search:focus-within { border-color: #d81c22; }

.mobi-catalog-search input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
}

.mobi-catalog-search input::placeholder,
.mobi-brand-device-search input::placeholder { color: #8a8a8a; opacity: 1; }

.mobi-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.mobi-catalog .brand-card {
  box-sizing: content-box;
  display: flex;
  height: 150px;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  overflow: visible;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fff;
  color: #444;
  cursor: pointer;
  text-decoration: none;
  transition: none;
}

.mobi-catalog .brand-card:hover,
.mobi-catalog .brand-card:focus-visible {
  border-color: #c9c9c9;
  box-shadow: none;
  transform: none;
}
.mobi-catalog .brand-card[hidden] { display: none; }

.mobi-brand-logo {
  display: inline-flex;
  width: min(104px, 100%);
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobi-brand-logo img,
.mobi-brand-logo svg { display: block; width: auto; max-width: 104px; height: 40px; object-fit: contain; }
.mobi-brand-logo--bundled img { height: 32.8px; }
.mobi-brand-logo--apple svg { height: 40px; }
.mobi-brand-logo--google svg,
.mobi-brand-logo--xiaomi svg,
.mobi-brand-logo--motorola svg,
.mobi-brand-logo--oneplus svg { width: 40px; height: 40px; }
.mobi-brand-logo strong { color: #111; font-family: Arial, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.mobi-brand-logo--nothing strong { font-family: "Courier New", monospace; font-size: 17px; font-weight: 600; letter-spacing: 3px; }
.mobi-brand-logo i { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: #f4f4f4; color: #555; font-size: 16px; font-style: normal; font-weight: 600; }

.mobi-catalog .brand-card__title {
  margin: 0;
  color: #444;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: normal;
  text-wrap: wrap;
}

.mobi-catalog-empty {
  margin: 44px 0 0;
  color: #8a8a8a;
  font-size: 16px;
  font-weight: 300;
}

.mobi-catalog-empty[hidden] { display: none; }

.mobi-catalog-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #666;
  font-size: 15px;
  text-decoration: none;
}

.mobi-catalog-back:hover,
.mobi-catalog-back:focus-visible { color: #d81c22; }

.mobi-brand-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.mobi-brand-identity .mobi-brand-logo { width: auto; height: 40px; }
.mobi-brand-identity .mobi-brand-logo img,
.mobi-brand-identity .mobi-brand-logo svg { height: 38px; }
.mobi-brand-identity .mobi-brand-logo--bundled img { height: 31.16px; }
.mobi-brand-identity .mobi-brand-logo--google svg,
.mobi-brand-identity .mobi-brand-logo--xiaomi svg,
.mobi-brand-identity .mobi-brand-logo--motorola svg,
.mobi-brand-identity .mobi-brand-logo--oneplus svg { width: 38px; }
.mobi-brand-identity .mobi-brand-logo strong { font-size: 16px; }

.mobi-brand-identity h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: normal;
}

.mobi-brand-identity--devices h1 { font-size: 34px; }

.mobi-brand-categories {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.mobi-brand-categories > a,
.mobi-brand-categories > span {
  display: block;
  padding: 28px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
}

.mobi-brand-categories > a:hover,
.mobi-brand-categories > a:focus-visible { border-color: #c9c9c9; }
.mobi-brand-categories > .is-disabled { opacity: .45; }
.mobi-brand-categories strong { display: block; font-size: 20px; font-weight: 600; }
.mobi-brand-categories span span,
.mobi-brand-categories a span { display: block; margin-top: 6px; color: #999; font-size: 14px; }

.mobi-brand-tabs {
  display: flex;
  gap: clamp(18px, 4vw, 34px);
  margin-top: 30px;
  border-bottom: 1px solid #ececec;
}

.mobi-brand-tabs button {
  padding: 12px 2px;
  margin: 0 0 -1px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: #8a8a8a;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

.mobi-brand-tabs button:hover,
.mobi-brand-tabs button:focus-visible,
.mobi-brand-tabs button.is-current { color: #1a1a1a; }
.mobi-brand-tabs button.is-current { border-bottom-color: #d81c22; font-weight: 600; }

.mobi-brand-devices.is-enhanced .mobi-brand-panel:not(.is-current) { display: none; }
.mobi-brand-panel { outline: none; }

.mobi-brand-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.mobi-brand-device-search {
  box-sizing: border-box;
  display: flex;
  width: min(300px, 100%);
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f4f4f4;
  color: #8a8a8a;
}

.mobi-brand-device-search input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; background: transparent; color: #1a1a1a; font: inherit; font-size: 14px; }

.mobi-year-picker { position: relative; }
.mobi-year-picker > button,
.mobi-brand-control-pills > button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.mobi-year-picker > button.is-filtered,
.mobi-brand-control-pills > button.is-current,
.mobi-brand-control-pills > button.is-comparing { border-color: #d81c22; background: rgb(216 28 34 / 5%); color: #d81c22; }
.mobi-year-picker > button[aria-expanded="true"] svg { transform: rotate(180deg); }

.mobi-year-picker > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  min-width: 140px;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
}

.mobi-year-picker > div button { display: block; width: 100%; padding: 10px 16px; border: 0; background: #fff; color: #1a1a1a; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.mobi-year-picker > div button:hover,
.mobi-year-picker > div button:focus-visible { background: #f7f7f7; }
.mobi-year-picker > div button.is-current { color: #d81c22; font-weight: 600; }

.mobi-brand-control-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.mobi-brand-compare-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  margin-top: 20px;
  border-radius: 14px;
  background: #f4f4f4;
}

.mobi-brand-compare-bar[hidden] { display: none; }
.mobi-brand-compare-bar p { margin: 0; color: #555; font-size: 14px; }
.mobi-brand-compare-bar a { display: flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; background: #d81c22; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }
.mobi-brand-compare-bar a[hidden] { display: none; }

.mobi-brand-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.mobi-brand-device-card {
  position: relative;
  padding: 20px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
}

.mobi-brand-device-card:hover,
.mobi-brand-device-card:focus-within { border-color: #c9c9c9; }
.mobi-brand-device-card[hidden] { display: none; }
.mobi-brand-device-card > a { display: flex; align-items: center; gap: 18px; color: #1a1a1a; text-decoration: none; }

.mobi-brand-device-thumb {
  position: relative;
  display: block;
  width: 46px;
  height: 68px;
  flex: 0 0 46px;
  border-radius: 10px;
}

.mobi-brand-device-thumb i { position: absolute; top: 6px; left: 6px; width: 10px; height: 10px; border: 1.5px solid rgb(255 255 255 / 45%); border-radius: 50%; background: #111; }

.mobi-brand-device-copy { display: block; min-width: 0; flex: 1; }
.mobi-brand-device-copy strong { display: block; overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mobi-brand-device-copy small { display: block; margin-top: 4px; overflow: hidden; color: #999; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mobi-brand-device-copy b { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; }

.mobi-brand-device-card > button {
  position: absolute;
  top: 20px;
  right: 20px;
  display: none;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #c9c9c9;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  cursor: pointer;
}

.mobi-brand-devices.is-comparing .mobi-brand-device-card > button { display: flex; }
.mobi-brand-devices.is-comparing .mobi-brand-device-card > a { padding-right: 30px; }
.mobi-brand-device-card > button[aria-pressed="true"] { border-color: #d81c22; background: #d81c22; color: #fff; }

.mobi-catalog-ad {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px;
  margin-top: 32px;
  border: 1px dashed #dcdcdc;
  border-radius: 14px;
}

.mobi-catalog-ad--small { min-height: 70px; padding: 22px; margin-top: 26px; }
.mobi-catalog-ad > span { padding: 2px 6px; border: 1px solid #e6e6e6; border-radius: 4px; color: #b0b0b0; font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.mobi-catalog-ad > p { margin: 0; color: #b0b0b0; font-size: 14px; }

.mobi-brand-news,
.mobi-brand-upcoming { margin-top: 12px; }
.mobi-brand-news > a { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding: 18px 4px; border-bottom: 1px solid #f0f0f0; color: #1a1a1a; text-decoration: none; }
.mobi-brand-news > a:hover,
.mobi-brand-news > a:focus-visible { background: #fafafa; }
.mobi-brand-news img { width: 120px; height: 80px; border-radius: 12px; object-fit: cover; }
.mobi-brand-news a > span { min-width: 200px; flex: 1; }
.mobi-brand-news span > small { color: #d81c22; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; }
.mobi-brand-news__date { margin-left: 12px; color: #b0b0b0; font-size: 13px; }
.mobi-brand-news span > strong { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; }
.mobi-brand-news .mobi-catalog-empty,
.mobi-brand-upcoming .mobi-catalog-empty { padding: 24px 0; margin: 0; font-size: 15px; }

.mobi-brand-upcoming article { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 20px 4px; border-bottom: 1px solid #f0f0f0; }
.mobi-brand-upcoming article > div { min-width: 220px; flex: 1; }
.mobi-brand-upcoming article strong { font-size: 17px; font-weight: 600; }
.mobi-brand-upcoming article > div > span { padding: 3px 7px; margin-left: 12px; border-radius: 4px; background: #fdf6e3; color: #b0851f; font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.mobi-brand-upcoming article p { margin: 6px 0 0; color: #8a8a8a; font-size: 14px; }
.mobi-brand-upcoming__date { color: #d81c22; font-size: 14px; font-weight: 500; }
.mobi-brand-upcoming__notice { margin: 14px 0 0; color: #b0b0b0; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .mobi-brand-tabs button,
  .mobi-year-picker svg { transition: none; }
}

@media (forced-colors: active) {
  .mobi-catalog-search,
  .mobi-catalog .brand-card,
  .mobi-brand-categories > a,
  .mobi-brand-categories > span,
  .mobi-brand-device-card { border: 1px solid CanvasText; }
}
