/* Frontend styles are deliberately scoped to the market root. */
.shm-market {
  --shm-text: #18253b;
  --shm-muted: #637189;
  --shm-line: #e3e8f1;
  --shm-blue: #285de5;
  --shm-soft: #f5f8fd;
  --shm-shadow: 0 5px 24px rgba(28, 50, 92, .055);
  box-sizing: border-box;
  color: var(--shm-text);
  font-family: inherit;
  line-height: 1.55;
}
.shm-market *, .shm-market *::before, .shm-market *::after { box-sizing: border-box; }
.shm-market a { text-decoration: none; }
.shm-market button, .shm-market input, .shm-market select { font: inherit; }
.shm-shell { width: min(1240px, calc(100% - 40px)); margin: 14px auto 48px; }
.shm-market h1, .shm-market h2, .shm-market h3 { color: var(--shm-text); letter-spacing: -.025em; line-height: 1.22; }
.shm-market h1 { font-size: clamp(29px, 3.6vw, 47px); margin: 7px 0 10px; font-weight: 760; }
.shm-market h2 { font-size: clamp(21px, 2vw, 26px); margin: 0 0 18px; font-weight: 730; }
.shm-market h3 { font-size: 19px; margin: 0; font-weight: 720; }
.shm-eyebrow { color: var(--shm-blue); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.shm-hero { padding: 24px clamp(20px, 3vw, 36px); background: linear-gradient(112deg, #eef4ff 0%, #f8fbff 65%, #f4f7ff 100%); border: 1px solid #e1eaf9; border-radius: 21px; margin-bottom: 14px; }
.shm-hero p { margin: 0; max-width: 690px; color: #4c5d78; font-size: clamp(15px, 1.6vw, 18px); }
.shm-hero .shm-category-description { margin-top: 10px; font-size: 15px; }
.shm-search-panel { padding: 16px 18px; border: 1px solid var(--shm-line); box-shadow: var(--shm-shadow); border-radius: 18px; background: #fff; margin-bottom: 17px; }
.shm-filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0; }
.shm-field { display: flex; flex-direction: column; flex: 1 1 145px; min-width: 0; gap: 6px; }
.shm-field--search { flex: 2 1 220px; }
.shm-field>span { font-weight: 650; color: #374762; font-size: 13px; }
.shm-field input, .shm-field select { appearance: auto; width: 100%; height: 43px; border: 1px solid #d6dfed; border-radius: 10px; background: #fff; color: var(--shm-text); padding: 0 12px; font-size: 14px; margin: 0; box-shadow: none; }
.shm-field input:focus, .shm-field select:focus { outline: 2px solid #a9c1fc; outline-offset: 1px; border-color: var(--shm-blue); }
.shm-filter-actions { display: flex; flex: 0 1 auto; align-items: center; gap: 10px; min-height: 43px; }
.shm-market .shm-button { min-height: 43px; padding: 10px 20px; border-radius: 11px; font-size: 14px; line-height: 1.3; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .15s; border: 1px solid transparent; }
.shm-market .shm-button--primary { background: var(--shm-blue); color: #fff; }
.shm-market .shm-button--primary:hover, .shm-market .shm-button--primary:focus { background: #1847c0; color: #fff; }
.shm-market .shm-button--secondary { background: #fff; color: var(--shm-blue); border-color: #b9caf7; }
.shm-market .shm-button--secondary:hover { background: #f0f5ff; color: #1847c0; }
.shm-market .shm-button--full { width: 100%; }
.shm-reset { font-size: 13px; color: var(--shm-muted); white-space: nowrap; }
.shm-market .shm-reset:hover { color: var(--shm-blue); }
.shm-categories { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 33px; }
.shm-market .shm-category-tab { color: #56677f; background: #f2f5fa; padding: 8px 16px; border: 1px solid transparent; border-radius: 50px; font-size: 13px; font-weight: 650; }
.shm-market .shm-category-tab:hover { background: #eaf0fb; color: var(--shm-blue); }
.shm-market .shm-category-tab.is-active { color: var(--shm-blue); border-color: #c4d5ff; background: #eaf1ff; }
.shm-list-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.shm-list-heading h2 { margin: 0; }
.shm-list-heading span { font-size: 13px; color: var(--shm-muted); }
.shm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shm-card { min-width: 0; border: 1px solid var(--shm-line); border-radius: 19px; background: #fff; box-shadow: var(--shm-shadow); transition: box-shadow .16s, transform .16s, border-color .16s; }
.shm-card:hover { border-color: #b5c7e6; box-shadow: 0 11px 30px #263b661c; transform: translateY(-2px); }
.shm-market .shm-card__link { display: flex; flex-direction: column; min-height: 276px; height: 100%; padding: 22px; color: var(--shm-text); }
.shm-market .shm-card__link:hover { color: var(--shm-text); }
.shm-card__top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.shm-card__icon { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; border: 1px solid #e7ecf5; border-radius: 15px; background: #f7f9fe; overflow: hidden; }
.shm-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.shm-card__icon>span, .shm-product-icon>span { font-size: 32px; color: #95a8c5; }
.shm-card__intro { min-width: 0; }
.shm-card__intro h3 { font-size: 19px; overflow-wrap: anywhere; }
.shm-card__developer { color: var(--shm-muted); font-size: 13px; margin: 4px 0 0; overflow-wrap: anywhere; }
.shm-card__badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; }
.shm-chip { display: inline-flex; color: #2154c8; background: #eaf0fe; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
.shm-chip--muted { color: #68758a; background: #f0f3f7; }
.shm-chip--region { color: #1b675d; background: #e9f6f2; }
.shm-card__description { font-size: 14px; color: #5c6b81; line-height: 1.55; margin: 16px 0 20px; overflow-wrap: anywhere; }
.shm-card__footer { margin-top: auto; padding-top: 16px; border-top: 1px solid #edf0f5; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.shm-card__price { font-size: 14px; color: #1d2c44; }
.shm-card__more { color: var(--shm-blue); font-size: 13px; font-weight: 720; white-space: nowrap; }
.shm-pagination { margin: 34px 0; }
.shm-pagination ul { display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.shm-pagination li { list-style: none; margin: 0; }
.shm-market .shm-pagination a, .shm-market .shm-pagination span { padding: 8px 13px; display: inline-block; color: #3d4f69; background: #f3f6fb; border-radius: 8px; text-decoration: none; }
.shm-market .shm-pagination span.current { color: #fff; background: var(--shm-blue); }
.shm-empty { border: 1px dashed #c8d6eb; background: #f7f9fd; border-radius: 18px; padding: 46px 24px; text-align: center; }
.shm-empty p { color: var(--shm-muted); }
.shm-disclaimer { color: #8490a4; font-size: 12px; line-height: 1.65; margin: 34px 0 0; }
/* Product detail */
.shm-breadcrumbs { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--shm-muted); font-size: 13px; margin: 0 0 30px; }
.shm-market .shm-breadcrumbs a { color: var(--shm-blue); }
.shm-product-head { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 25px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--shm-line); }
.shm-product-heading { display: flex; gap: 23px; align-items: flex-start; }
.shm-product-icon { width: 128px; height: 128px; flex: 0 0 128px; display: grid; place-items: center; background: #f6f9fe; border: 1px solid #e5ebf5; border-radius: 23px; overflow: hidden; }
.shm-product-icon img { width: 100%; height: 100%; object-fit: contain; }
.shm-product-title { min-width: 0; }
.shm-product-title h1 { font-size: clamp(26px, 3vw, 42px); overflow-wrap: anywhere; margin: 10px 0 12px; }
.shm-product-developer { color: var(--shm-muted); margin: 0; }
.shm-product-title .shm-card__badges { margin-top: 20px; }
.shm-action-card { background: #fff; border: 1px solid var(--shm-line); border-radius: 19px; box-shadow: var(--shm-shadow); padding: 20px; display: flex; flex-direction: column; gap: 11px; }
.shm-action-caption { color: var(--shm-muted); font-size: 12px; }
.shm-action-price { font-size: 23px; margin-top: -8px; overflow-wrap: anywhere; }
.shm-action-note, .shm-no-link { font-size: 12px; color: var(--shm-muted); line-height: 1.55; }
.shm-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; margin-top: 36px; }
.shm-single-content { min-width: 0; }
.shm-content-section { margin-bottom: 40px; }
.shm-screenshots { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shm-screenshot { display: block; flex: 0 0 auto; width: min(290px, 80%); border: 1px solid var(--shm-line); border-radius: 14px; overflow: hidden; background: #f7f9fd; scroll-snap-align: start; }
.shm-screenshot img { width: 100%; height: 210px; object-fit: contain; display: block; }
.shm-prose { overflow-wrap: anywhere; color: #33445e; font-size: 16px; }
.shm-prose p { margin: 0 0 1.15em; }
.shm-prose ul, .shm-prose ol { padding-left: 1.5em; }
.shm-prose a { color: var(--shm-blue); text-decoration: underline; }
.shm-prose img { max-width: 100%; height: auto; }
.shm-specs { align-self: start; background: #f7f9fd; border: 1px solid #e7ecf5; border-radius: 18px; padding: 22px; }
.shm-specs h2 { font-size: 18px; margin-bottom: 13px; }
.shm-specs>div { border-top: 1px solid #e5ebf4; padding: 13px 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.shm-specs>div>span { color: var(--shm-muted); font-size: 12px; }
.shm-specs>div>strong { font-size: 14px; font-weight: 650; }
@media (max-width: 980px) {
  .shm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shm-filter-actions { flex: 1 1 100%; }
  .shm-product-head, .shm-single-layout { grid-template-columns: minmax(0, 1fr); }
  .shm-action-card { max-width: 450px; }
}
@media (max-width: 650px) {
  .shm-shell { width: min(100% - 24px, 1240px); margin: 12px auto 34px; }
  .shm-hero { border-radius: 17px; padding: 19px 18px; }
  .shm-search-panel { padding: 14px; border-radius: 15px; }
  .shm-field, .shm-field--search { flex: 1 1 100%; }
  .shm-grid { grid-template-columns: 1fr; gap: 13px; }
  .shm-market .shm-card__link { min-height: 248px; padding: 19px; }
  .shm-product-heading { gap: 16px; }
  .shm-product-icon { flex-basis: 82px; width: 82px; height: 82px; border-radius: 16px; }
  .shm-product-head { gap: 20px; }
  .shm-single-layout { margin-top: 25px; gap: 20px; }
}
