.breadcrumbs {
  padding: 30px 0;
  color: var(--text-sec);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #000;
}

.breadcrumbs span {
  margin: 0 8px;
  opacity: 0.4;
}

.cp-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.cp-title-wrap h1 {
  margin-bottom: 12px;
  color: #000;
  font-size: 32px;
  font-weight: 800;
}

.cp-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  background: #f5f5f7;
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.cp-actions {
  display: flex;
  gap: 12px;
}

.cp-btn-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s;
}

.cp-btn-action svg {
  width: 16px;
  height: 16px;
}

.cp-btn-action:hover {
  border-color: #000;
}

.cp-btn-action:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

#compareWrapper {
  --compare-card-width: 250px;
}

.cp-grid-row,
.cp-row,
.cp-column-headers {
  display: grid;
  grid-template-columns: 240px repeat(var(--compare-columns), var(--compare-card-width));
  gap: 24px;
  justify-content: start;
}

.cp-columns-1 { --compare-columns: 1; }
.cp-columns-2 { --compare-columns: 2; }
.cp-columns-3 { --compare-columns: 3; }
.cp-columns-4 { --compare-columns: 4; }

.cp-grid-row {
  align-items: start;
  min-height: 480px;
  margin-bottom: 30px;
}

.cp-grid-row > .card-wrapper {
  width: var(--compare-card-width);
  margin: 0;
}

.cp-info-box {
  display: flex;
  height: var(--card-base-height, 460px);
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border-radius: 20px;
  background: #f9f9f9;
}

.cp-info-box svg {
  width: 32px;
  height: 32px;
  margin: -20px 0 20px;
  color: #111;
}

.cp-info-box h2 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.cp-info-box p {
  color: #86868b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.buy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.cp-table {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.cp-row {
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cp-spec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.cp-spec-label svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #86868b;
}

.cp-spec-val {
  color: #444;
  font-size: 12px;
  font-weight: 500;
}

.cp-state {
  padding: 100px 0;
  color: #86868b;
  text-align: center;
}

.cp-state--error {
  color: #c62828;
}

.cp-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: #ccc;
}

.cp-empty-title {
  margin-bottom: 10px;
  color: #111;
  font-size: 24px;
  font-weight: 800;
}

.cp-empty-text {
  margin-bottom: 30px;
  color: #86868b;
}

.cp-empty-link {
  display: inline-flex;
  width: auto;
  background: #000;
  color: #fff;
}

.cp-empty-link:hover {
  border-color: #000;
}


.cp-values { display: contents; }
.cp-desktop-label { display: flex; align-items: center; gap: 12px; }
.cp-scroll-cue, .cp-mobile-controls, .cp-spec-toggle { display: none; }
.cp-row[hidden], .cp-values[hidden] { display: none; }

@media (min-width: 768px) and (max-width: 1350px) {
  #compareWrapper { overflow-x: auto; }
}

@media (max-width: 767px) {
  .compare-page main > .container { padding-inline: var(--mobile-gutter, 16px); }
  .compare-page .breadcrumbs { padding: 18px 0 12px; font-size: 9px; }
  .compare-page .breadcrumbs span { margin: 0 4px; }
  .cp-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-bottom: 18px; }
  .cp-title-wrap { display: contents; }
  .cp-title-wrap h1 { grid-column: 1 / -1; margin: 0; font-size: clamp(21px, 5.8vw, 28px); letter-spacing: -.045em; line-height: 1.15; }
  .cp-badge { justify-self: start; padding: 7px 11px; font-size: 10px; border-radius: 20px; }
  .cp-btn-action { min-height: 36px; padding: 8px 11px; font-size: 10px; border-radius: 10px; }
  .cp-btn-action svg { width: 14px; height: 14px; }
  #compareWrapper { --cp-column: calc((100% - 12px) / 2); --cp-gap: 12px; min-width: 0; }
  #compareWrapper.cp-columns-1 { --cp-column: minmax(0, 1fr); }
  .cp-grid-row, .cp-values {
    display: grid;
    grid-template-columns: repeat(var(--compare-columns), var(--cp-column));
    gap: var(--cp-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    min-width: 0;
  }
  [data-cp-scroll]::-webkit-scrollbar { display: none; }
  .cp-grid-row { align-items: stretch; min-height: 0; margin-bottom: 18px; padding-bottom: 2px; }
  .cp-grid-row > .card-wrapper { width: auto; height: auto; min-width: 0; }
  .cp-info-box { display: none; }
  .compare-page .cp-card-remove svg { width: 16px; height: 16px; }
  .cp-scroll-cue { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 0 0 16px; color: #8c8c95; font-size: 9px; }
  .cp-scroll-cue[hidden] { display: none; }
  .cp-scroll-track { height: 3px; width: 100%; border-radius: 5px; background: #eeeef2; overflow: hidden; }
  .cp-scroll-track > span { display: block; width: 30%; height: 100%; border-radius: inherit; background: #9c9ca6; transform: translateX(calc(var(--cp-progress, 0) * 233.333%)); }
  .cp-mobile-controls { display: block; margin-bottom: 4px; }
  .cp-mobile-controls h2 { margin-bottom: 10px; font-size: 15px; letter-spacing: -.025em; }
  .cp-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #f4f4f6; }
  .cp-mode-switch button { min-height: 38px; border-radius: 9px; padding: 7px; background: transparent; color: #6d6d76; font-size: 10px; font-weight: 500; }
  .cp-mode-switch button[aria-pressed="true"] { background: #161618; color: #fff; box-shadow: 0 2px 5px #0001; }
  .cp-filter-note { margin: 12px 0; padding: 11px 12px; background: #f7f7f9; border-radius: 10px; font-size: 10px; color: #84848c; line-height: 1.5; }
  .cp-table { margin-bottom: 28px; }
  .cp-row { display: block; padding: 0 0 15px; margin-top: 8px; border-bottom: 1px solid #ededf1; }
  .cp-row[hidden], .cp-values[hidden] { display: none; }
  .cp-desktop-label { display: none; }
  .cp-spec-label { display: block; }
  .cp-spec-toggle { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px; padding: 8px 0; background: transparent; font-size: 11px; font-weight: 600; text-align: left; }
  .cp-spec-toggle svg { color: #52525d; width: 17px; height: 17px; }
  .cp-spec-toggle .cp-chevron { margin-left: auto; width: 12px; height: 12px; }
  .cp-spec-toggle[aria-expanded="false"] .cp-chevron { transform: rotate(-90deg); }
  .cp-spec-val { min-width: 0; padding: 10px 8px; font-size: 11px; line-height: 1.55; font-weight: 400; color: #54545e; overflow-wrap: anywhere; border-left: 1px solid #eeeef1; }
  .cp-spec-val:first-child { border-left: 0; }
  :is(.cp-columns-3, .cp-columns-4) .cp-spec-val { text-align: center; font-size: 10px; }
  .cp-differences .cp-spec-val { background: #fbf7ee; border-radius: 8px; border-color: transparent; }
  .cp-state { padding: 48px 14px; font-size: 13px; line-height: 1.6; }
  .cp-empty-title { font-size: 22px; }

}

@media (prefers-reduced-motion: reduce) {
  .compare-page *, .compare-page *::before, .compare-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
