/* ============================================================
   RASMUSSEN JEWELERS — SALE PAGE
   Paste at the bottom of the Global Stylesheet.
   Everything is scoped to #rj-sale-page, so it won't touch
   any other page. Change the colors in the variables below.
   ============================================================ */
#rj-sale-page {
  --rj-accent: #9e1b32;      /* sale badge + sale price */
  --rj-ink: #222;
  --rj-muted: #777;
  --rj-line: #e6e2dc;
  --rj-bg-soft: #f7f5f2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 15px 60px;
  color: var(--rj-ink);
}

/* Hero */
#rj-sale-page .rj-sale__hero { text-align: center; padding: 30px 0 25px; }
#rj-sale-page .rj-sale__eyebrow {
  text-transform: uppercase; letter-spacing: .2em; font-size: 13px;
  color: var(--rj-accent); margin: 0 0 8px; font-weight: 600;
}
#rj-sale-page .rj-sale__title { font-size: clamp(32px, 5vw, 52px); margin: 0 0 10px; }
#rj-sale-page .rj-sale__sub { color: var(--rj-muted); margin: 0 auto; max-width: 560px; }

/* Toolbar */
#rj-sale-page .rj-sale__toolbar {
  display: flex; flex-wrap: wrap; gap: 15px; align-items: center;
  justify-content: space-between; border-top: 1px solid var(--rj-line);
  border-bottom: 1px solid var(--rj-line); padding: 15px 0; margin-top: 10px;
}
#rj-sale-page .rj-sale__chips { display: flex; flex-wrap: wrap; gap: 8px; }
#rj-sale-page .rj-sale__chip {
  border: 1px solid var(--rj-line); background: #fff; color: var(--rj-ink);
  border-radius: 999px; padding: 7px 16px; font-size: 14px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
#rj-sale-page .rj-sale__chip:hover { border-color: var(--rj-ink); }
#rj-sale-page .rj-sale__chip.is-active { background: var(--rj-ink); color: #fff; border-color: var(--rj-ink); }
#rj-sale-page .rj-sale__chip span { opacity: .6; margin-left: 4px; font-size: 12px; }
#rj-sale-page .rj-sale__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
#rj-sale-page .rj-sale__sort label { margin: 0; color: var(--rj-muted); }
#rj-sale-page .rj-sale__sort select {
  border: 1px solid var(--rj-line); padding: 7px 10px; border-radius: 4px; background: #fff;
}

#rj-sale-page .rj-sale__count { color: var(--rj-muted); font-size: 14px; margin: 18px 0; }

/* Grid */
#rj-sale-page .rj-sale__grid {
  display: grid; gap: 28px 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 991px) { #rj-sale-page .rj-sale__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  #rj-sale-page .rj-sale__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  #rj-sale-page .rj-sale__toolbar { flex-direction: column; align-items: stretch; }
  #rj-sale-page .rj-sale__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  #rj-sale-page .rj-sale__chip { white-space: nowrap; }
}

/* Card */
#rj-sale-page .rj-sale__card { display: block; color: inherit; text-decoration: none; }
#rj-sale-page .rj-sale__img {
  position: relative; aspect-ratio: 1 / 1; background: var(--rj-bg-soft);
  overflow: hidden; margin-bottom: 12px;
}
#rj-sale-page .rj-sale__img img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .35s ease;
}
#rj-sale-page .rj-sale__card:hover .rj-sale__img img { transform: scale(1.05); }
#rj-sale-page .rj-sale__badge {
  position: absolute; top: 10px; left: 10px; background: var(--rj-accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 4px 9px; border-radius: 2px;
}
#rj-sale-page .rj-sale__name {
  font-size: 15px; line-height: 1.35; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#rj-sale-page .rj-sale__card:hover .rj-sale__name { text-decoration: underline; }
#rj-sale-page .rj-sale__prices { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
#rj-sale-page .rj-sale__price-sale { color: var(--rj-accent); font-weight: 700; font-size: 16px; }
#rj-sale-page .rj-sale__price-was { color: var(--rj-muted); text-decoration: line-through; font-size: 14px; }

/* Loading skeleton */
#rj-sale-page .rj-sale__skel .rj-sale__img { animation: rjPulse 1.2s ease-in-out infinite; }
#rj-sale-page .rj-sale__skel-line { height: 12px; background: var(--rj-bg-soft); margin: 6px 0; width: 80%; }
@keyframes rjPulse { 50% { opacity: .55; } }

/* Show more */
#rj-sale-page .rj-sale__more-wrap { text-align: center; margin-top: 40px; }
#rj-sale-page .rj-sale__more {
  background: var(--rj-ink); color: #fff; border: 0; padding: 13px 38px;
  text-transform: uppercase; letter-spacing: .12em; font-size: 13px; cursor: pointer;
}
#rj-sale-page .rj-sale__more:hover { opacity: .85; }

#rj-sale-page .rj-sale__empty { grid-column: 1 / -1; text-align: center; padding: 50px 0; color: var(--rj-muted); }

/* Red SALE link in main nav */
.rj-nav-sale > .nav-link,
.nav-link.rj-nav-sale {
  color: #b3122e !important;
  font-weight: 700;
}
.rj-nav-sale > .nav-link:hover,
.nav-link.rj-nav-sale:hover {
  color: #7d0c20 !important;
}
