/* Order pages — extends homepage design tokens */
.order-page .order-main {
  padding-block: 1.25rem 3rem;
}

.order-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr) min(22rem, 34%);
    gap: 2.5rem;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-hover);
}

.order-article {
  max-width: 42rem;
}

.order-article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.order-h1 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.order-platform-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.order-hero-icon {
  margin: 0 0 1rem;
  max-width: 180px;
}

.order-hero-icon img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.platform-hub-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.platform-hub-list li {
  margin: 0;
}

.platform-hub-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.platform-hub-list a:hover,
.platform-hub-list a:focus-visible {
  text-decoration: none;
}

.platform-hub-list__name {
  color: var(--link);
  font-weight: 600;
}

.platform-hub-list__price {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.order-article h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.order-article h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.order-article .lede {
  font-size: 1.05rem;
  color: var(--text);
}

.order-article p,
.order-article li {
  color: var(--text-muted);
}

.order-article strong {
  color: var(--text);
}

.order-article a {
  color: var(--accent-hover);
}

.catalog-facts,
.related-list {
  padding-left: 1.2rem;
}

.order-article .muted {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.order-aside {
  position: relative;
}

@media (min-width: 960px) {
  .order-aside {
    position: sticky;
    top: 1rem;
  }
}

.order-form {
  position: relative;
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.order-form__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--order-accent, var(--accent));
}

.order-form__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.order-form__price {
  margin: 0;
  color: var(--accent-hover);
  font-weight: 600;
}

.order-form__limits {
  margin: 0.15rem 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.order-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.order-field input,
.order-field select {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.order-field input:focus-visible,
.order-field select:focus-visible {
  outline: 2px solid var(--order-accent, var(--accent));
  outline-offset: 1px;
}

.order-total {
  margin: 0.5rem 0 1rem;
  font-size: 1.05rem;
}

.order-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.order-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.site-footer a {
  color: var(--link);
}

.site-footer a:visited {
  color: var(--link-visited);
}

.order-article a {
  color: var(--link);
}

.order-article a:visited {
  color: var(--link-visited);
}
