.shop {
  --shop-bg: #f9f9fb;
  --shop-surface: #ffffff;
  --shop-surface-soft: #f4f8fb;
  --shop-border: #dbe6ef;
  --shop-border-strong: #c7d5e2;
  --shop-text: #263847;
  --shop-muted: #6d7b89;
  --shop-blue: #1f75a9;
  --shop-blue-strong: #17577e;
  --shop-blue-soft: #e7f5fd;
  --shop-coral: #fd4b33;
  background: var(--shop-bg);
  color: var(--shop-text);
  font-family:
    Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  margin: 96px auto 0;
  max-width: 1440px;
  padding: 24px;
}

.shop * {
  box-sizing: border-box;
}

.shop__hero,
.shop__sidebar,
.shop__panel {
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  box-shadow: 0 18px 50px rgba(23, 87, 126, 0.08);
}

.shop__hero {
  align-items: center;
  border-radius: 16px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.1fr);
  margin-bottom: 24px;
  overflow: hidden;
  padding: 24px 28px;
  position: relative;
}

.shop__hero::before {
  background: linear-gradient(135deg, rgba(31, 117, 169, 0.18), rgba(253, 75, 51, 0.08));
  content: "";
  inset: 0 66% 0 0;
  pointer-events: none;
  position: absolute;
}

.shop__hero-copy,
.shop__hero-actions {
  position: relative;
  z-index: 1;
}

.shop__hero h1 {
  color: var(--shop-blue-strong);
  font-family: Nunito, Roboto, sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 12px;
}

.shop__hero p {
  color: var(--shop-muted);
  font-size: 17px;
  margin: 0;
  max-width: 460px;
}

.shop__hero a,
.shop__name {
  color: var(--shop-blue);
}

.shop__hero-actions {
  display: grid;
  gap: 12px;
}

.shop__search {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
}

.shop__input,
.shop__select {
  background: #ffffff;
  border: 1px solid var(--shop-border-strong);
  border-radius: 10px;
  color: var(--shop-text);
  min-height: 44px;
  outline: none;
  padding: 10px 13px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  width: 100%;
}

.shop__input:focus,
.shop__select:focus {
  border-color: var(--shop-blue);
  box-shadow: 0 0 0 3px rgba(31, 117, 169, 0.14);
}

.shop__button,
.shop__secondary,
.shop__link-button {
  align-items: center;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}

.shop__button {
  background: #56abeb;
  border: 1px solid #56abeb;
  box-shadow: 0 10px 24px rgba(86, 171, 235, 0.28);
  color: #ffffff;
}

.shop__button:hover,
.shop__secondary:hover,
.shop__link-button:hover {
  transform: translateY(-1px);
}

.shop__secondary,
.shop__link-button {
  background: #ffffff;
  border: 1px solid var(--shop-border-strong);
  color: var(--shop-blue-strong);
}

.shop__button:disabled,
.shop__secondary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.shop__layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
}

.shop__sidebar,
.shop__panel {
  border-radius: 16px;
}

.shop__sidebar {
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 20px;
  position: sticky;
  top: 112px;
}

.shop__sidebar h2,
.shop__panel h2 {
  color: var(--shop-blue-strong);
  font-family: Nunito, Roboto, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.shop__sidebar h2 {
  margin-bottom: 32px;
}

.shop__category-nav {
  display: grid;
  gap: 6px;
  margin-top: 0;
}

.shop__platform-node {
  display: grid;
  gap: 4px;
}

.shop__platform {
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: none;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--shop-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
  user-select: none;
  width: 100%;
}

.shop__platform:hover,
.shop__category-item:hover {
  background: transparent;
  border-color: transparent;
  color: var(--shop-blue);
}

.shop__platform.is-active,
.shop__category-item.is-active {
  background: var(--shop-blue-soft);
  border-color: #c5e5f8;
  color: var(--shop-blue);
}

.shop__platform strong {
  background: rgba(31, 117, 169, 0.1);
  border-radius: 999px;
  color: var(--shop-muted);
  min-width: 36px;
  padding: 3px 8px;
  text-align: center;
}

.shop__platform-main {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.shop__platform-main span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop__platform-toggle {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  flex: 0 0 auto;
  height: 8px;
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
  width: 8px;
}

.shop__platform-node.is-expanded > .shop__platform .shop__platform-toggle {
  transform: rotate(45deg);
}

.shop__subcategory-list {
  display: grid;
  gap: 4px;
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
}

.shop__category-item {
  -webkit-appearance: none;
  -webkit-user-select: none;
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--shop-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  max-width: 100%;
  min-height: 36px;
  min-width: 0;
  padding: 8px 10px 8px 20px;
  text-align: left;
  text-decoration: none;
  user-select: none;
  width: 100%;
}

.shop__category-item span {
  flex: 1 1 auto;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop__category-item strong {
  color: var(--shop-muted);
  flex: 0 0 auto;
  font-weight: 800;
  min-width: 24px;
  text-align: right;
}

.shop .shop__sidebar .shop__platform,
.shop .shop__sidebar .shop__category-item {
  background-image: none;
  box-shadow: none;
}

.shop .shop__sidebar .shop__platform::selection,
.shop .shop__sidebar .shop__category-item::selection,
.shop .shop__sidebar .shop__platform *::selection,
.shop .shop__sidebar .shop__category-item *::selection {
  background: transparent;
  color: inherit;
}

.shop .shop__sidebar .shop__platform:hover,
.shop .shop__sidebar .shop__platform:focus,
.shop .shop__sidebar .shop__platform:focus-visible,
.shop .shop__sidebar .shop__platform:active,
.shop .shop__sidebar .shop__category-item:hover,
.shop .shop__sidebar .shop__category-item:focus,
.shop .shop__sidebar .shop__category-item:focus-visible,
.shop .shop__sidebar .shop__category-item:active {
  background: transparent;
  background-color: transparent;
  background-image: none;
  border-color: transparent;
  box-shadow: none;
  color: var(--shop-blue);
}

.shop .shop__sidebar .shop__platform.is-active,
.shop .shop__sidebar .shop__platform.is-active:hover,
.shop .shop__sidebar .shop__platform.is-active:focus,
.shop .shop__sidebar .shop__platform.is-active:focus-visible,
.shop .shop__sidebar .shop__platform.is-active:active,
.shop .shop__sidebar .shop__category-item.is-active,
.shop .shop__sidebar .shop__category-item.is-active:hover,
.shop .shop__sidebar .shop__category-item.is-active:focus,
.shop .shop__sidebar .shop__category-item.is-active:focus-visible,
.shop .shop__sidebar .shop__category-item.is-active:active {
  background: var(--shop-blue-soft);
  background-color: var(--shop-blue-soft);
  background-image: none;
  border-color: #c5e5f8;
  box-shadow: none;
  color: var(--shop-blue);
}

.shop.shop .shop__sidebar .shop__platform.is-active,
.shop.shop .shop__sidebar .shop__platform.is-active:hover,
.shop.shop .shop__sidebar .shop__platform.is-active:focus,
.shop.shop .shop__sidebar .shop__platform.is-active:focus-visible,
.shop.shop .shop__sidebar .shop__platform.is-active:active,
.shop.shop .shop__sidebar .shop__category-item.is-active,
.shop.shop .shop__sidebar .shop__category-item.is-active:hover,
.shop.shop .shop__sidebar .shop__category-item.is-active:focus,
.shop.shop .shop__sidebar .shop__category-item.is-active:focus-visible,
.shop.shop .shop__sidebar .shop__category-item.is-active:active {
  background: var(--shop-blue-soft);
  background-color: var(--shop-blue-soft);
  background-image: none;
  border-color: #c5e5f8;
  box-shadow: none;
  color: var(--shop-blue);
}

.shop__panel-head p {
  color: var(--shop-muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.shop__panel {
  align-self: start;
  min-width: 0;
  overflow: hidden;
}

.shop__panel-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px 26px 18px;
}

.shop__panel-head p {
  font-size: 16px;
  margin: 8px 0 0;
}

.shop__panel-head p:empty {
  display: none;
}

.shop__status {
  min-height: 0;
  padding: 0 26px;
}

.shop__loading,
.shop__empty,
.shop__error {
  background: var(--shop-surface-soft);
  border: 1px solid var(--shop-border);
  border-radius: 12px;
  margin: 10px 0 18px;
  padding: 14px;
}

.shop__error {
  align-items: center;
  color: #9f1f2f;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.shop__list-page {
  border-top: 1px solid var(--shop-border);
}

.shop__table-wrap {
  overflow-x: auto;
}

.shop__table {
  border-collapse: collapse;
  min-width: 1000px;
  width: 100%;
}

.shop__table th,
.shop__table td {
  border-top: 1px solid var(--shop-border);
  padding: 15px 14px;
  text-align: left;
  vertical-align: middle;
}

.shop__table th {
  background: #f3f8fc;
  color: #4e6578;
  font-size: 13px;
  font-weight: 800;
  position: sticky;
  top: 0;
  text-transform: uppercase;
  z-index: 2;
}

.shop__table td {
  font-weight: 650;
}

.shop__table td:first-child {
  min-width: 360px;
}

.shop__table td:last-child,
.shop__table th:last-child {
  text-align: center;
  width: 168px;
}

.shop button.shop__name {
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  padding: 0;
  text-align: left;
  user-select: none;
}

.shop button.shop__name:hover,
.shop button.shop__name:focus,
.shop button.shop__name:active {
  background: transparent;
  box-shadow: none;
  color: var(--shop-blue);
}

.shop button.shop__name::selection {
  background: transparent;
  color: var(--shop-blue);
}

.shop__category-badge,
.shop__code {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  min-height: 28px;
  padding: 4px 10px;
}

.shop__category-badge {
  background: #ffffff;
  border: 1px solid var(--shop-border-strong);
  color: var(--shop-muted);
  margin-top: 8px;
}

.shop__code {
  background: var(--shop-surface-soft);
  border: 1px solid var(--shop-border);
  color: var(--shop-text);
  white-space: nowrap;
}

.shop__cards {
  display: none;
}

.shop__card {
  background: #ffffff;
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  margin: 0 16px 12px;
  padding: 16px;
}

.shop__card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.shop__facts,
.shop__detail-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.shop__facts div,
.shop__detail-facts div {
  min-width: 0;
}

.shop__facts dt,
.shop__detail-facts dt {
  color: var(--shop-muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.shop__facts dd,
.shop__detail-facts dd {
  color: var(--shop-text);
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.shop__detail-fact--service-id dt,
.shop__detail-fact--service-id dd {
  overflow-wrap: normal;
  white-space: nowrap;
}

.shop__card-actions,
.shop__detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop__more-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.shop__more-actions .shop__button,
.shop__more-actions .shop__secondary,
.shop__card-actions .shop__button,
.shop__card-actions .shop__secondary {
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  min-height: 34px;
  padding: 7px 10px;
}

.shop__pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.shop__pagination--top {
  border-bottom: 1px solid var(--shop-border);
}

.shop__pagination--bottom {
  border-top: 1px solid var(--shop-border);
}

.shop__page-range {
  color: var(--shop-muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  align-items: center;
  white-space: nowrap;
}

.shop__pagination-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.shop__page-button {
  -webkit-appearance: none;
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--shop-border-strong);
  border-radius: 8px;
  color: var(--shop-blue-strong);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  min-width: 74px;
  padding: 7px 12px;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}

.shop__page-button:hover:not(:disabled):not(.is-active),
.shop__page-button:focus-visible:not(:disabled):not(.is-active) {
  border-color: var(--shop-blue);
  box-shadow: 0 0 0 3px rgba(31, 117, 169, 0.12);
}

.shop__page-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.shop__page-number {
  min-width: 38px;
  padding: 7px 10px;
}

.shop__page-number.is-active {
  border-color: var(--shop-blue);
  box-shadow: inset 0 0 0 1px var(--shop-blue);
  color: var(--shop-text);
  opacity: 1;
}

.shop__skeleton {
  animation: shop-skeleton 1.25s ease-in-out infinite;
  background: linear-gradient(90deg, #edf3f8 0%, #f8fbfd 42%, #edf3f8 80%);
  background-size: 240% 100%;
  border-radius: 999px;
  display: block;
}

.shop__skeleton-title {
  height: 18px;
  max-width: 540px;
  width: 76%;
}

.shop__skeleton-chip {
  height: 26px;
  margin-top: 9px;
  width: 210px;
}

.shop__skeleton-code {
  height: 28px;
  width: 72px;
}

.shop__skeleton-price {
  height: 18px;
  width: 150px;
}

.shop__skeleton-small {
  height: 18px;
  width: 58px;
}

.shop__skeleton-button {
  border-radius: 10px;
  height: 42px;
  width: 86px;
}

.shop__skeleton-actions {
  height: 34px;
  margin: 0 auto;
  width: 126px;
}

@keyframes shop-skeleton {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.shop__detail-page {
  border-top: 1px solid var(--shop-border);
  padding: 24px 26px 28px;
}

.shop__detail-hero {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.shop__detail-main {
  min-width: 0;
}

.shop__detail-title {
  color: var(--shop-blue-strong);
  font-family: Nunito, Roboto, sans-serif;
  font-size: 26px;
  line-height: 1.22;
  margin: 0 0 18px;
}

.shop__detail-section {
  border-top: 1px solid var(--shop-border);
  margin-top: 18px;
  padding-top: 18px;
}

.shop__detail-section h3 {
  color: var(--shop-blue-strong);
  font-family: Nunito, Roboto, sans-serif;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 8px;
}

.shop__description {
  color: #39485a;
  margin: 0;
  white-space: pre-wrap;
}

.shop__detail-hero .shop__detail-actions {
  justify-content: flex-end;
  min-width: 120px;
}

.shop__detail-hero .shop__button {
  min-width: 96px;
}

.shop__detail-page--skeleton {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.shop__detail-page--skeleton .shop__detail-hero {
  align-items: stretch;
}

.shop__detail-skeleton-title {
  border-radius: 10px;
  height: 32px;
  margin-bottom: 14px;
  max-width: 620px;
  width: 86%;
}

.shop__detail-skeleton-badge {
  border-radius: 8px;
  height: 28px;
  margin-bottom: 6px;
  width: 230px;
}

.shop__detail-skeleton-fact {
  background: #ffffff;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  min-height: 62px;
  padding: 12px 14px;
}

.shop__detail-skeleton-label {
  height: 12px;
  margin-bottom: 9px;
  width: 76px;
}

.shop__detail-skeleton-value {
  border-radius: 8px;
  height: 18px;
  width: 72%;
}

.shop__detail-skeleton-button {
  border-radius: 10px;
  height: 44px;
  width: 96px;
}

.shop__detail-section--skeleton {
  display: grid;
  gap: 11px;
}

.shop__detail-skeleton-heading {
  border-radius: 8px;
  height: 19px;
  width: 128px;
}

.shop__detail-skeleton-line {
  border-radius: 8px;
  height: 14px;
  max-width: 760px;
  width: 100%;
}

.shop__detail-skeleton-line--short {
  width: 62%;
}

@media (max-width: 980px) {
  .shop {
    margin-top: 82px;
    padding: 16px;
  }

  .shop__hero,
  .shop__layout {
    grid-template-columns: 1fr;
  }

  .shop__sidebar {
    max-height: none;
    position: static;
  }

  .shop__subcategory-list {
    max-height: 320px;
  }
}

@media (max-width: 760px) {
  .shop {
    margin-top: 72px;
    padding: 12px;
  }

  .shop__hero {
    border-radius: 12px;
    padding: 18px;
  }

  .shop__hero h1 {
    font-size: 32px;
  }

  .shop__hero::before {
    inset: 0 0 auto;
    min-height: 110px;
  }

  .shop__search {
    grid-template-columns: 1fr;
  }

  .shop__sidebar,
  .shop__panel {
    border-radius: 12px;
  }

  .shop__panel-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .shop__status {
    padding: 0 18px;
  }

  .shop__table-wrap {
    display: none;
  }

  .shop__cards {
    display: block;
  }

  .shop__pagination {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .shop__pagination-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .shop__page-range {
    justify-content: flex-start;
    min-width: 0;
  }

  .shop__page-button {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    width: 100%;
  }

  .shop__page-number {
    grid-row: 2;
    padding-left: 0;
    padding-right: 0;
  }

  .shop__page-button[data-shop-page-action="previous"] {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .shop__page-button[data-shop-page-action="next"] {
    grid-column: 4 / span 2;
    grid-row: 1;
  }

  .shop__card {
    margin: 0 12px 12px;
    padding: 14px;
  }

  .shop__facts,
  .shop__detail-facts {
    grid-template-columns: 1fr;
  }

  .shop__detail-page {
    padding: 18px;
  }

  .shop__detail-hero {
    grid-template-columns: 1fr;
  }

  .shop__detail-hero .shop__detail-actions,
  .shop__detail-hero .shop__button {
    width: 100%;
  }

  .shop__detail-skeleton-button {
    width: 100%;
  }
}
