/* RAL Japan Trading — Stock Page */

html:has(body.rj-stock-page) {
  background: #FAF8F4;
  scroll-behavior: smooth;
}

body.rj-stock-page {
  --rj-stone: #EDE8E0;
  --rj-paper: #FAF8F4;
  --rj-ink: #121212;
  --rj-muted: #5E5C56;
  --rj-line: rgba(18, 18, 18, 0.09);
  --rj-line-strong: rgba(18, 18, 18, 0.14);
  --rj-teal: #BC002D;
  --rj-teal-d: #8B0020;
  --rj-teal-soft: rgba(188, 0, 45, 0.08);
  --rj-gold: #C9982E;
  --rj-gold-light: #E8C56A;
  --rj-radius: 16px;
  --rj-radius-lg: 24px;
  --rj-shadow: 0 20px 50px rgba(18, 18, 18, 0.08);
  --rj-shadow-lg: 0 32px 64px rgba(18, 18, 18, 0.12);
  --rj-font: 'Outfit', system-ui, sans-serif;
  --rj-serif: 'Fraunces', Georgia, serif;

  margin: 0;
  padding: 0;
  font-family: var(--rj-font);
  background: var(--rj-paper);
  color: var(--rj-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.rj-stock-page,
body.rj-stock-page main.stk {
  overflow-x: clip;
}

/* ── Shell ───────────────────────────────────────────────────── */

body.rj-stock-page .topbar {
  background: var(--rj-ink);
  color: #9b9993;
  border-bottom: none;
  font-size: 0.76rem;
}

body.rj-stock-page .topbar a { color: #c8c6c0; }
body.rj-stock-page .topbar a:hover { color: var(--rj-gold-light); }
body.rj-stock-page .topbar-location { color: #9b9993; }

body.rj-stock-page .header {
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--rj-line);
}

body.rj-stock-page .navbar .nav-primary > a,
body.rj-stock-page .nav-more-btn {
  color: #3a3a38;
  font-weight: 600;
  font-size: 0.86rem;
  border-radius: 999px;
}

body.rj-stock-page .navbar .nav-primary > a:hover,
body.rj-stock-page .nav-more-btn:hover,
body.rj-stock-page .nav-more.open .nav-more-btn {
  color: var(--rj-teal);
  background: var(--rj-teal-soft);
}

body.rj-stock-page .navbar .nav-primary > a.active {
  color: var(--rj-teal);
  background: var(--rj-teal-soft);
}

body.rj-stock-page .nav-more-menu {
  border-radius: var(--rj-radius);
  border-color: var(--rj-line);
  box-shadow: var(--rj-shadow);
}

body.rj-stock-page .nav-more-menu a:hover,
body.rj-stock-page .nav-more-menu a.active {
  color: var(--rj-teal);
  background: var(--rj-teal-soft);
}

body.rj-stock-page .nav-search-bar {
  background: #fff;
  border-color: var(--rj-line-strong);
  border-radius: 999px;
}

body.rj-stock-page .nav-search-bar input { font-family: inherit; font-size: 0.82rem; }
body.rj-stock-page .nav-search-bar button { color: var(--rj-muted); }
body.rj-stock-page .nav-search-bar button:hover { color: var(--rj-teal); }

body.rj-stock-page .nav-account-btn {
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
}

body.rj-stock-page .nav-account-btn:hover,
body.rj-stock-page .nav-account-btn.active {
  color: var(--rj-teal);
  border-color: rgba(188, 0, 45, 0.25);
  background: var(--rj-teal-soft);
}

body.rj-stock-page .nav-cta.btn-primary {
  background: var(--rj-teal);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  box-shadow: none;
}

body.rj-stock-page .nav-cta.btn-primary:hover {
  background: var(--rj-teal-d);
  transform: none;
}

body.rj-stock-page .site-footer-social a:hover {
  background: var(--rj-teal);
  border-color: var(--rj-teal);
}

body.rj-stock-page .site-footer-newsletter button { background: var(--rj-teal); }
body.rj-stock-page .site-footer-newsletter button:hover { background: var(--rj-teal-d); }
body.rj-stock-page .page-loader { background: var(--rj-paper); }
body.rj-stock-page .page-loader .loader-ring { border-top-color: var(--rj-teal); }

/* ── Primitives ──────────────────────────────────────────────── */

.stk .rj-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rj-teal);
  margin: 0 0 12px;
}

.stk .rj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stk .rj-btn--solid {
  background: var(--rj-teal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(188, 0, 45, 0.22);
}

.stk .rj-btn--solid:hover {
  background: var(--rj-teal-d);
  transform: translateY(-1px);
}

.stk .rj-btn--ghost {
  background: #fff;
  color: var(--rj-ink);
  border-color: var(--rj-line-strong);
}

.stk .rj-btn--ghost:hover { border-color: var(--rj-ink); }

.stk .rj-btn--compact {
  padding: 11px 18px;
  font-size: 0.84rem;
}

.stk .rj-btn:focus-visible {
  outline: 2px solid var(--rj-teal);
  outline-offset: 3px;
}

/* ── Hero ────────────────────────────────────────────────────── */

.stk-hero {
  padding: 40px 0 0;
  background:
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(188, 0, 45, 0.07) 0%, transparent 58%),
    radial-gradient(ellipse 45% 35% at 4% 92%, rgba(185, 74, 53, 0.05) 0%, transparent 52%),
    var(--rj-paper);
}

.stk-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px 56px;
  align-items: center;
  padding-bottom: 36px;
}

.stk-hero__crumb {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.stk-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--rj-muted);
}

.stk-breadcrumb a { color: var(--rj-muted); transition: color 0.2s; }
.stk-breadcrumb a:hover { color: var(--rj-teal); }
.stk-breadcrumb i { font-size: 0.62rem; opacity: 0.45; }
.stk-breadcrumb span { color: var(--rj-ink); font-weight: 600; }

.stk-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rj-line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rj-muted);
  margin-bottom: 22px;
}

.stk-hero__flag {
  width: 26px;
  height: 17px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--rj-line);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.stk-hero__flag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 62% 50%, #BC002D 36%, transparent 37%);
}

.stk-hero__title {
  margin: 0 0 20px;
  line-height: 0.98;
}

.stk-hero__title-line {
  display: block;
  font-family: var(--rj-serif);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--rj-ink);
}

.stk-hero__title-line--accent {
  font-style: italic;
  color: var(--rj-teal);
}

.stk-hero__lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--rj-muted);
  max-width: 48ch;
  margin: 0 0 22px;
}

.stk-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.stk-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rj-muted);
}

.stk-hero__trust i {
  color: var(--rj-gold);
  font-size: 0.85rem;
}

.stk-hero__metrics {
  display: flex;
  gap: 12px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--rj-line);
}

.stk-hero__metrics > div {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--rj-line);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(18, 18, 18, 0.03);
}

.stk-hero__metrics dt {
  font-family: var(--rj-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--rj-ink);
  margin: 0;
}

.stk-hero__metrics dd {
  margin: 8px 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rj-muted);
}

/* Spotlight */
.stk-hero__stage {
  position: relative;
  min-height: 0;
}

.stk-spotlight {
  display: block;
  color: inherit;
  text-decoration: none;
}

.stk-spotlight__frame {
  position: relative;
  border-radius: var(--rj-radius-lg);
  overflow: hidden;
  background: var(--rj-stone);
  aspect-ratio: 4 / 3;
  box-shadow: var(--rj-shadow-lg);
  border: 1px solid var(--rj-line);
}

.stk-spotlight__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.stk-spotlight:hover .stk-spotlight__frame img { transform: scale(1.03); }

.stk-spotlight__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 35%, rgba(18, 18, 18, 0.35) 100%);
  pointer-events: none;
}

.stk-spotlight__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 3rem;
  color: var(--rj-muted);
  opacity: 0.3;
}

.stk-spotlight__meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 32px rgba(18, 18, 18, 0.12);
}

.stk-spotlight--empty .stk-spotlight__meta {
  position: static;
  margin-top: 16px;
  background: #fff;
}

.stk-spotlight__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rj-teal);
  margin-bottom: 4px;
}

.stk-spotlight__meta strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.25;
}

.stk-spotlight__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rj-teal);
}

.stk-spotlight__price small {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
}

.stk-hero__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}

.stk-hero__thumb {
  flex: 0 0 92px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rj-line);
  background: #fff;
  box-shadow: 0 4px 12px rgba(18, 18, 18, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stk-hero__thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(18, 18, 18, 0.1);
}

.stk-hero__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.stk-hero__thumb span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  padding: 5px 4px 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fff;
}

/* Finder bar */
.stk-finder {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin-bottom: -28px;
  padding: 24px 28px;
  background: var(--rj-ink);
  border-radius: var(--rj-radius-lg);
  color: #fff;
  box-shadow: var(--rj-shadow-lg);
  border-top: 3px solid var(--rj-gold);
}

.stk-finder__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rj-gold-light);
  margin-bottom: 14px;
}

.stk-finder__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 10px;
  align-items: stretch;
}

.stk-finder__bar select,
.stk-finder__bar input {
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
}

.stk-finder__bar select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' fill-opacity='0.7' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.stk-finder__bar select option { color: var(--rj-ink); background: #fff; }

.stk-finder__bar select:focus,
.stk-finder__bar input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.stk-finder__bar input::placeholder { color: rgba(255, 255, 255, 0.42); }

.stk-finder .rj-btn--solid {
  background: var(--rj-gold);
  color: var(--rj-ink);
  box-shadow: none;
  align-self: stretch;
}

.stk-finder .rj-btn--solid:hover {
  background: var(--rj-gold-light);
  transform: none;
}

/* ── Filter ribbon ───────────────────────────────────────────── */

.stk-ribbon {
  padding: 52px 0 28px;
  background: var(--rj-paper);
}

.stk-ribbon__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.stk-ribbon__row:last-child { margin-bottom: 0; }

.stk-ribbon__label {
  flex-shrink: 0;
  width: 48px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rj-muted);
}

.stk-ribbon__track {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent);
}

.stk-ribbon__track::-webkit-scrollbar { display: none; }

.stk-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rj-line);
  color: var(--rj-ink);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.stk-pill em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rj-muted);
}

.stk-pill:hover,
.stk-pill.active {
  background: var(--rj-teal-soft);
  border-color: rgba(188, 0, 45, 0.28);
  color: var(--rj-teal);
  box-shadow: 0 2px 8px rgba(188, 0, 45, 0.08);
}

.stk-pill.active em { color: var(--rj-teal); opacity: 0.75; }

/* ── Main layout ─────────────────────────────────────────────── */

body.rj-stock-page .stock-page,
.stk-body {
  background: transparent;
  padding: 8px 0 64px;
}

body.rj-stock-page .stock-layout {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar filters ─────────────────────────────────────────── */

body.rj-stock-page .stock-filters {
  position: sticky;
  top: 88px;
  background: #fff;
  border-radius: var(--rj-radius-lg);
  border: 1px solid var(--rj-line);
  box-shadow: 0 4px 24px rgba(18, 18, 18, 0.04);
  overflow: hidden;
}

.stk-sidebar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--rj-line);
  background: linear-gradient(180deg, var(--rj-paper) 0%, #fff 100%);
}

.stk-sidebar__kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rj-teal);
  margin: 0 0 4px;
}

.stk-sidebar__head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--rj-ink);
}

.stk-sidebar__close { display: none; }

body.rj-stock-page .stock-filters-form {
  padding: 0;
}

.stk-sidebar__section {
  padding: 20px 22px;
  border-bottom: 1px solid var(--rj-line);
}

.stk-sidebar__section:last-of-type {
  border-bottom: none;
}

.stk-sidebar__section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rj-muted);
  margin: 0 0 14px;
}

body.rj-stock-page .stock-filter-group { margin-bottom: 14px; }
body.rj-stock-page .stock-filter-group:last-child { margin-bottom: 0; }

body.rj-stock-page .stock-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.rj-stock-page .stock-filter-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rj-muted);
  margin-bottom: 8px;
}

body.rj-stock-page .stock-filter-input-wrap { position: relative; }

body.rj-stock-page .stock-filter-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rj-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

body.rj-stock-page .stock-filter-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--rj-line-strong);
  background: var(--rj-paper);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--rj-ink);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

body.rj-stock-page .stock-filter-input-wrap .stock-filter-input { padding-left: 40px; }

body.rj-stock-page .stock-filter-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--rj-teal);
  box-shadow: 0 0 0 3px var(--rj-teal-soft);
}

body.rj-stock-page select.stock-filter-input {
  padding-right: 40px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235E5C56' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.stk-sidebar__actions {
  padding: 18px 22px 22px;
  display: grid;
  gap: 10px;
  background: var(--rj-paper);
  border-top: 1px solid var(--rj-line);
}

body.rj-stock-page .stock-filter-apply {
  width: 100%;
  border: none;
}

body.rj-stock-page .stock-filter-clear {
  width: 100%;
}

/* ── Toolbar ─────────────────────────────────────────────────── */

body.rj-stock-page .stock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--rj-line);
  border-radius: var(--rj-radius-lg);
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(18, 18, 18, 0.03);
}

body.rj-stock-page .stock-toolbar-left,
body.rj-stock-page .stock-toolbar-right,
.stk-toolbar__left,
.stk-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.rj-stock-page .stock-mobile-filters,
.stk-toolbar__filters {
  display: none;
}

body.rj-stock-page .stock-results-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

body.rj-stock-page .stock-results-count strong {
  font-family: var(--rj-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rj-ink);
  line-height: 1;
}

body.rj-stock-page .stock-results-count span {
  font-size: 0.88rem;
  color: var(--rj-muted);
}

body.rj-stock-page .stock-results-count em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--rj-muted);
}

body.rj-stock-page .stock-view-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--rj-line-strong);
  background: var(--rj-paper);
  overflow: hidden;
}

body.rj-stock-page .stock-view-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--rj-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

body.rj-stock-page .stock-view-btn.active {
  background: var(--rj-teal);
  color: #fff;
}

body.rj-stock-page .stock-sort-select {
  min-width: 170px;
  padding: 11px 40px 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--rj-line-strong);
  background-color: var(--rj-paper);
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--rj-ink);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235E5C56' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

body.rj-stock-page .stock-sort-select:focus {
  outline: none;
  border-color: var(--rj-teal);
  box-shadow: 0 0 0 3px var(--rj-teal-soft);
}

.stk-toolbar__save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--rj-line-strong);
  background: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rj-ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.stk-toolbar__save:hover {
  border-color: var(--rj-teal);
  color: var(--rj-teal);
  background: var(--rj-teal-soft);
}

/* ── Filter chips ────────────────────────────────────────────── */

body.rj-stock-page .stock-active-filters,
body.rj-stock-page .stock-saved-searches,
.stk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

body.rj-stock-page .stock-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(188, 0, 45, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rj-teal);
  transition: background 0.2s;
}

body.rj-stock-page .stock-filter-chip:hover { background: var(--rj-teal-soft); }

body.rj-stock-page .stock-filter-chip-clear {
  color: var(--rj-muted);
  border-color: var(--rj-line-strong);
}

/* ── Results grid ────────────────────────────────────────────── */

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

.stk-results-grid.list-view {
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ── Vehicle cards ───────────────────────────────────────────── */

.stk-unit {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--rj-radius);
  border: 1px solid var(--rj-line);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.stk-unit:hover {
  transform: translateY(-2px);
  box-shadow: var(--rj-shadow);
  border-color: var(--rj-line-strong);
}

.stk-unit__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rj-stone);
}

.stk-unit__img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.stk-unit__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.stk-unit:hover .stk-unit__media img { transform: scale(1.04); }

.stk-unit__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--rj-ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}

.stk-unit__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.stk-unit__fav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rj-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18, 18, 18, 0.12);
  transition: color 0.2s, transform 0.2s;
}

.stk-unit__fav:hover,
.stk-unit__fav.active { color: var(--rj-teal); }

.stk-unit__compare {
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rj-ink);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18, 18, 18, 0.12);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s, background 0.2s;
}

.stk-unit:hover .stk-unit__compare {
  opacity: 1;
  transform: translateY(0);
}

.stk-unit__compare:hover {
  color: var(--rj-teal);
  background: #fff;
}

.stk-unit__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.stk-unit__stock {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rj-muted);
  margin: 0 0 6px;
}

.stk-unit__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.stk-unit__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.stk-unit__title a:hover { color: var(--rj-teal); }

.stk-unit__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.stk-unit__specs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--rj-muted);
  background: var(--rj-stone);
  padding: 5px 11px;
  border-radius: 999px;
}

.stk-unit__specs li i {
  font-size: 0.68rem;
  color: var(--rj-teal);
  opacity: 0.85;
}

.stk-unit__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rj-line);
}

.stk-unit__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rj-teal);
  letter-spacing: -0.02em;
}

.stk-unit__price small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-left: 2px;
}

.stk-unit__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rj-teal);
  text-decoration: none;
  transition: gap 0.2s;
}

.stk-unit__link:hover { gap: 10px; }

/* List view */
.stk-results-grid.list-view .stk-unit {
  flex-direction: row;
  border-radius: var(--rj-radius-lg);
}

.stk-results-grid.list-view .stk-unit__media {
  flex: 0 0 300px;
  width: 300px;
  aspect-ratio: auto;
  min-height: 220px;
}

.stk-results-grid.list-view .stk-unit__compare {
  opacity: 1;
  transform: none;
}

.stk-results-grid.list-view .stk-unit__body {
  padding: 22px 24px;
}

.stk-results-grid.list-view .stk-unit__specs { margin-bottom: auto; }

/* ── Empty state ─────────────────────────────────────────────── */

body.rj-stock-page .stock-empty,
.stk-empty {
  text-align: center;
  padding: 64px 32px;
  background: #fff;
  border: 1px solid var(--rj-line);
  border-radius: var(--rj-radius-lg);
  box-shadow: 0 4px 20px rgba(18, 18, 18, 0.04);
}

.stk-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--rj-teal-soft);
  color: var(--rj-teal);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.rj-stock-page .stock-empty h3 {
  font-family: var(--rj-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--rj-ink);
}

body.rj-stock-page .stock-empty p {
  color: var(--rj-muted);
  max-width: 42ch;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.stk-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Pagination ──────────────────────────────────────────────── */

body.rj-stock-page .stock-pagination,
.stk-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
}

body.rj-stock-page .stock-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rj-line-strong);
  background: #fff;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--rj-ink);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

body.rj-stock-page .stock-page-btn:hover,
body.rj-stock-page .stock-page-btn.active {
  background: var(--rj-teal);
  border-color: var(--rj-teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(188, 0, 45, 0.25);
}

body.rj-stock-page .stock-page-ellipsis {
  color: var(--rj-muted);
  padding: 0 4px;
}

/* ── CTA strip ───────────────────────────────────────────────── */

.stk-cta {
  padding: 0 0 80px;
}

.stk-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  border-radius: var(--rj-radius-lg);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(201, 152, 46, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, var(--rj-ink) 0%, #1a1a1a 100%);
  color: #fff;
  box-shadow: var(--rj-shadow-lg);
}

.stk-cta__copy .rj-kicker { color: var(--rj-gold-light); }

.stk-cta__copy h2 {
  font-family: var(--rj-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  line-height: 1.1;
}

.stk-cta__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 48ch;
}

.stk-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.stk-cta .rj-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.stk-cta .rj-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ── Filter drawer backdrop ──────────────────────────────────── */

body.rj-stock-page .stock-filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.rj-stock-page .stock-filter-backdrop.show { display: block; }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .stk-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  body.rj-stock-page .nav-search-bar { display: none; }

  body.rj-stock-page .stock-layout {
    grid-template-columns: 252px 1fr;
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .stk-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 28px;
  }

  .stk-hero__stage {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .stk-hero__thumbs {
    justify-content: center;
  }

  .stk-finder__bar {
    grid-template-columns: 1fr 1fr;
  }

  .stk-finder__bar input { grid-column: 1 / -1; }
  .stk-finder__bar .rj-btn { grid-column: 1 / -1; }

  .stk-hero__metrics {
    flex-direction: row;
  }

  body.rj-stock-page .stock-layout {
    grid-template-columns: 1fr;
  }

  body.rj-stock-page .stock-filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(380px, 92vw);
    z-index: 1101;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  body.rj-stock-page .stock-filters.open {
    transform: translateX(0);
  }

  .stk-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--rj-line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--rj-ink);
    cursor: pointer;
    flex-shrink: 0;
  }

  body.rj-stock-page .stock-mobile-filters,
  .stk-toolbar__filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--rj-line-strong);
    background: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--rj-ink);
    cursor: pointer;
  }

  body.rj-stock-page .stock-toolbar-right,
  .stk-toolbar__right {
    width: 100%;
  }

  body.rj-stock-page .stock-sort-form {
    flex: 1;
    min-width: 0;
  }

  body.rj-stock-page .stock-sort-select {
    width: 100%;
    min-width: 0;
  }

  .stk-toolbar__save span { display: none; }

  .stk-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .stk-cta__actions { width: 100%; }
  .stk-cta__actions .rj-btn { flex: 1; min-width: 0; justify-content: center; }
}

@media (max-width: 640px) {
  .stk-hero { padding-top: 20px; }

  .stk-hero__title-line {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .stk-hero__trust {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 18px;
  }

  .stk-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-direction: unset;
    gap: 8px;
    padding-top: 18px;
  }

  .stk-hero__thumbs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stk-hero__thumb {
    flex: 0 0 calc(50% - 5px);
    max-width: 120px;
  }

  .stk-finder {
    margin-bottom: -20px;
    padding: 18px 16px;
    border-radius: var(--rj-radius);
  }

  .stk-finder__bar {
    grid-template-columns: 1fr;
  }

  .stk-ribbon { padding-top: 40px; }

  .stk-results-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .stk-results-grid.list-view .stk-unit {
    flex-direction: column;
  }

  .stk-results-grid.list-view .stk-unit__media {
    flex: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .stk-unit:hover { transform: none; box-shadow: none; }
  .stk-unit__compare { opacity: 1; transform: none; }

  body.rj-stock-page .stock-filter-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stk-unit,
  .stk-unit__media img,
  .stk-pill,
  .rj-btn { transition: none; }
}
