.catalog-page,
.detail-page {
  background: #fff;
}

.catalog-hero,
.detail-hero {
  padding: 54px 0 46px;
  background:
    linear-gradient(135deg, rgba(238, 249, 255, 0.95), rgba(255, 248, 204, 0.58)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.catalog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.62fr);
  align-items: end;
  gap: 44px;
}

.catalog-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.catalog-hero p:not(.eyebrow),
.detail-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.catalog-context-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.catalog-context-bar[hidden] {
  display: none;
}

.catalog-context-bar span,
.catalog-context-bar a,
.catalog-context-bar button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.catalog-context-bar span {
  color: var(--brand-blue-dark);
  background: var(--soft-blue);
}

.catalog-context-bar a,
.catalog-context-bar button {
  color: #334155;
  background: #fff;
  border: 1px solid var(--line);
}

.catalog-context-bar button {
  cursor: pointer;
}

.catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.catalog-search label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 14px;
}

.catalog-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
}

.catalog-search .primary-cta {
  min-width: 0;
  height: 48px;
}

.catalog-content {
  padding: 44px 0 64px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.filter-block h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip-list button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.filter-chip-list button.active,
.filter-chip-list button:hover {
  color: var(--brand-blue-dark);
  background: var(--soft-blue);
  border-color: rgba(7, 157, 223, 0.32);
}

.filter-chip-list img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.catalog-date-grid,
.detail-date-box {
  display: grid;
  gap: 10px;
}

.catalog-date-grid .date-cell,
.detail-date-box .date-cell {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-results {
  min-width: 0;
}

.catalog-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.catalog-result-head strong,
.catalog-result-head span {
  display: block;
}

.catalog-result-head strong {
  margin-bottom: 4px;
  font-size: 24px;
}

.catalog-result-head span {
  color: var(--muted);
  font-size: 14px;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.sort-control select {
  height: 40px;
  padding: 0 34px 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card-link {
  display: block;
}

.catalog-empty {
  padding: 48px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.catalog-empty h2 {
  margin: 0 0 8px;
}

.catalog-empty p {
  margin: 0 0 20px;
  color: var(--muted);
}

.catalog-empty .secondary-cta {
  min-width: 160px;
}

.catalog-product-card .product-image {
  height: 206px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--brand-blue-dark);
  font-weight: 800;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(460px, 1fr);
  gap: 44px;
  align-items: start;
}

.detail-gallery,
.detail-info,
.detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.05);
}

.detail-gallery {
  padding: 20px;
}

.detail-main-image {
  display: grid;
  place-items: center;
  min-height: 450px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border-radius: 8px;
}

.detail-main-image img {
  max-width: 92%;
  max-height: 420px;
  object-fit: contain;
}

.detail-main-image img.fallback-logo {
  max-height: 120px;
  opacity: 0.72;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.detail-thumbs button {
  height: 86px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-thumbs button.active {
  border-color: var(--brand-blue);
  box-shadow: inset 0 -3px 0 var(--brand-yellow);
}

.detail-thumbs img {
  max-width: 90%;
  max-height: 72px;
  object-fit: contain;
}

.detail-info {
  padding: 34px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.detail-tags span {
  padding: 6px 10px;
  color: var(--brand-blue-dark);
  background: var(--soft-blue);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-price span,
.detail-price em {
  color: var(--muted);
  font-style: normal;
}

.detail-price strong {
  color: var(--danger);
  font-size: 34px;
}

.price-planner {
  margin: 22px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-planner-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.price-planner-head strong,
.price-planner-head span {
  display: block;
}

.price-planner-head strong {
  margin-bottom: 5px;
  color: var(--brand-blue-dark);
  font-size: 18px;
}

.price-planner-head span,
.price-planner-head em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.price-curve-wrap {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.price-curve-wrap canvas {
  display: block;
  width: 100%;
  height: 210px;
}

.duration-control {
  margin-top: 14px;
}

.duration-control input {
  width: 100%;
  accent-color: var(--brand-blue);
}

.duration-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.duration-scale span:nth-child(1) {
  text-align: left;
}

.duration-scale span {
  text-align: center;
}

.duration-scale span:last-child {
  text-align: right;
}

.duration-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.duration-presets button {
  height: 34px;
  min-width: 58px;
  padding: 0 12px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-weight: 800;
}

.duration-presets button.active,
.duration-presets button:hover {
  color: var(--brand-blue-dark);
  background: var(--soft-blue);
  border-color: rgba(7, 157, 223, 0.32);
}

.fee-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.fee-card div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  background: #fff;
}

.fee-card span {
  color: var(--muted);
  font-size: 13px;
}

.fee-card strong {
  font-size: 17px;
}

.detail-actions {
  display: flex;
  gap: 14px;
}

.detail-actions .primary-cta,
.detail-actions .secondary-cta {
  flex: 1;
  min-width: 0;
}

.detail-trust {
  border-bottom: 1px solid var(--line);
}

.detail-content {
  background: #fff;
}

.detail-content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-anchor-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.04);
}

.detail-anchor-nav a {
  padding: 12px 14px;
  color: #334155;
  border-radius: 7px;
  font-weight: 800;
}

.detail-anchor-nav a:hover {
  color: var(--brand-blue-dark);
  background: var(--soft-blue);
}

.detail-content-main {
  display: grid;
  gap: 28px;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h2 {
  margin: 0 0 18px;
}

.spec-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.spec-table div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-table span,
.rule-list p {
  color: var(--muted);
}

.spec-table strong {
  font-weight: 700;
}

.rule-list {
  display: grid;
  gap: 14px;
}

.rule-list p {
  margin: 0;
  line-height: 1.7;
}

.rule-list strong {
  color: var(--ink);
}

.detail-story {
  padding: 0;
  overflow: hidden;
}

.detail-story > h2 {
  padding: 28px 28px 0;
}

#detailStory {
  display: grid;
}

.story-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-top: 1px solid var(--line);
}

.story-block:nth-child(even) {
  grid-template-columns: 0.95fr 1.05fr;
}

.story-block:nth-child(even) img {
  order: 2;
}

.story-block img {
  width: 100%;
  aspect-ratio: 1.64;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
}

.story-block h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.18;
}

.story-block p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.story-block-dark {
  color: #fff;
  background: #0b1220;
}

.story-block-dark p {
  color: rgba(255, 255, 255, 0.76);
}

.story-block-dark img {
  background: #111827;
}

.story-rich-content {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
}

.story-rich-content h2,
.story-rich-content h3,
.story-rich-content h4 {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.28;
}

.story-rich-content p {
  margin: 0;
  color: var(--muted);
}

.story-rich-content img,
.story-rich-section img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f8fafc;
}

.story-rich-section {
  display: grid;
  gap: 14px;
}

.related-section {
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.help-detail-page {
  background: #fff;
}

.help-detail-hero {
  padding: 48px 0;
  background:
    linear-gradient(135deg, rgba(238, 249, 255, 0.96), rgba(255, 248, 204, 0.62)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.help-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: end;
}

.help-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.help-breadcrumb a {
  color: var(--brand-blue-dark);
}

.help-breadcrumb em {
  color: #334155;
  font-style: normal;
}

.help-detail-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.help-detail-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.help-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.help-meta span {
  padding: 7px 11px;
  color: #334155;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.help-hero-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.help-hero-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 22px;
}

.help-hero-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.help-hero-card div,
.help-action-buttons {
  display: grid;
  gap: 10px;
}

.help-detail-content {
  background: #fff;
}

.help-detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.help-detail-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.help-sidebar-card,
.help-article,
.related-help-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.04);
}

.help-sidebar-card {
  padding: 18px;
}

.help-sidebar-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.help-article-nav,
.help-side-list {
  display: grid;
  gap: 8px;
}

.help-article-nav a,
.help-side-list a {
  padding: 11px 12px;
  color: #334155;
  background: #f8fafc;
  border-radius: 7px;
  font-weight: 800;
}

.help-article-nav a:hover,
.help-side-list a:hover {
  color: var(--brand-blue-dark);
  background: var(--soft-blue);
}

.help-article {
  overflow: hidden;
}

.help-article-body {
  display: grid;
}

.help-article-cover {
  width: 100%;
  display: block;
  background: #f8fafc;
}

.help-block {
  padding: 34px;
  border-top: 1px solid var(--line);
}

.help-block:first-child {
  border-top: 0;
}

.help-block h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
}

.help-block p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.help-qa-block {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
}

.help-qa-block > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--brand-blue-dark);
  background: var(--soft-blue);
  border: 1px solid rgba(7, 157, 223, 0.18);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}

.help-note-block {
  background: linear-gradient(135deg, #f6fbff, #fffdf0);
}

.help-step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: help-step;
}

.help-step-list li {
  counter-increment: help-step;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334155;
  font-weight: 800;
}

.help-step-list li::before {
  content: counter(help-step, decimal-leading-zero);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--brand-blue);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.related-help-section {
  background: #f7fbff;
}

.related-help-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-help-card {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.related-help-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.related-help-card span {
  color: var(--brand-blue-dark);
  font-weight: 900;
}

.help-action-section {
  padding-top: 0;
}

.help-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 30px;
  background: linear-gradient(135deg, #eaf8ff, #fff8c7);
  border-radius: 8px;
}

.help-action-panel h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.22;
}

.help-action-panel p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .catalog-hero-grid,
  .catalog-layout,
  .detail-shell,
  .detail-content-layout,
  .help-detail-hero-grid,
  .help-detail-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .detail-anchor-nav,
  .help-detail-sidebar {
    position: static;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-block,
  .story-block:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .story-block:nth-child(even) img {
    order: 0;
  }

  .help-detail-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .related-help-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .catalog-hero,
  .detail-hero {
    padding: 32px 0;
  }

  .catalog-search,
  .catalog-result-head,
  .detail-actions,
  .fee-card,
  .help-action-panel {
    grid-template-columns: 1fr;
  }

  .catalog-search,
  .catalog-result-head,
  .detail-actions,
  .help-action-panel {
    display: grid;
  }

  .catalog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .detail-gallery,
  .detail-info,
  .detail-panel,
  .filter-panel,
  .help-block {
    padding: 18px;
  }

  .detail-main-image {
    min-height: 300px;
  }

  .detail-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .price-planner-head {
    display: grid;
  }

  .price-curve-wrap canvas {
    height: 170px;
  }

  .story-block {
    padding: 18px;
  }

  .detail-story > h2 {
    padding: 18px 18px 0;
  }

  .help-detail-hero {
    padding: 32px 0;
  }

  .help-detail-sidebar,
  .related-help-list {
    grid-template-columns: 1fr;
  }

  .help-qa-block {
    grid-template-columns: 1fr;
  }

  .help-action-panel {
    padding: 22px;
  }
}
