/* ══════════════════════════════════════════════════════════════
   RAINCROSS ARMORY — HOMEPAGE STYLES
   Hero, Carousels, Categories, CTAs
   ══════════════════════════════════════════════════════════════ */

/* ── HERO — John Wick Style ── */
.ra-hero-jw {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ra-hero-jw__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.85) 0%,
    rgba(10, 14, 26, 0.65) 50%,
    rgba(10, 14, 26, 0.80) 100%
  );
  z-index: 1;
}
.ra-hero-jw__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 60px 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ra-hero-jw__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ra-gold);
  margin-bottom: 20px;
  opacity: 0.95;
}
.ra-hero-jw__title {
  font-family: var(--ra-font-heading);
  font-size: 92px;
  line-height: 0.95;
  color: #ffffff;
  margin: 0 0 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.ra-hero-jw__gold {
  color: var(--ra-gold);
  display: block;
  font-size: 112px;
  letter-spacing: 4px;
  text-shadow: 0 0 60px rgba(201,168,76,0.45), 0 4px 24px rgba(0,0,0,0.6);
}
.ra-hero-jw__sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  max-width: 580px;
  text-align: center;
}
.ra-hero-jw__sub strong { color: var(--ra-gold); font-weight: 700; }

.ra-hero-jw__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.ra-hero-jw__badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
}
.ra-hero-jw__badges span strong { color: var(--ra-gold); }

.ra-hero-jw__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}

.ra-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--ra-gold);
  color: var(--ra-navy-dark);
  font-family: var(--ra-font-heading);
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 0 30px rgba(201,168,76,0.4), 0 4px 20px rgba(0,0,0,0.3);
  border: 2px solid var(--ra-gold);
  position: relative;
  overflow: hidden;
}
.ra-btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.ra-btn-hero-primary:hover {
  background: #e0b85a;
  box-shadow: 0 0 50px rgba(201,168,76,0.7), 0 6px 30px rgba(0,0,0,0.4);
  transform: translateY(-2px);
  color: var(--ra-navy-dark);
}
.ra-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.ra-btn-hero-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  color: #fff;
}

.ra-hero-jw__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.ra-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.ra-hero-trust-item svg { flex-shrink: 0; }

.ra-hero-jw__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  animation: ra-bounce 2s infinite;
}
@keyframes ra-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── PROMO STRIP ── */
.ra-promo-strip {
  background: var(--ra-navy-dark);
  border-top: 2px solid rgba(201,168,76,0.3);
  border-bottom: 2px solid rgba(201,168,76,0.3);
  overflow: hidden;
}
.ra-promo-strip__inner {
  display: flex;
  align-items: center;
  gap: 0;
  animation: ra-marquee 30s linear infinite;
  width: max-content;
}
.ra-promo-strip__item {
  padding: 12px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
}
@keyframes ra-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION COMMON ── */
.ra-home-section { padding: 48px 0; }
.ra-home-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.ra-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ra-section-title {
  font-family: var(--ra-font-heading);
  font-size: 26px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ra-navy-dark);
  margin: 0;
}
.ra-section-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--ra-gold);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}
.ra-section-view-all:hover { opacity: 0.7; }

/* ── CATEGORY SECTION ── */
.ra-cat-section { background: var(--ra-gray-50); padding: 48px 0 56px; }

/* ── Category Carousel Wrapper ── */
/* [REPLACED by ra-cat-grid]
.ra-cat-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
*/

/* ── Category Carousel Track ── */
/* [REPLACED by ra-cat-grid]
.ra-cat-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  flex: 1;
  padding: 4px 2px 12px;
  -webkit-scroll-snap-stop: unset;
}
*/
.ra-cat-carousel::-webkit-scrollbar { display: none; }

/* ── Category Carousel Arrow Buttons ── */
/* [REPLACED by ra-cat-grid]
.ra-cat-carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1.5px solid #dde2ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ra-navy-dark);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
}
*/
/* [REPLACED by ra-cat-grid]
.ra-cat-carousel-arrow:hover {
  background: var(--ra-gold);
  border-color: var(--ra-gold);
  color: var(--ra-navy-dark);
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}
*/

/* ── Category Slide Card ── */
/* [REPLACED by ra-cat-grid]
.ra-cat-slide {
  flex: 0 0 220px;
  min-width: 220px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #e8edf4;
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
*/
/* [REPLACED by ra-cat-grid]
.ra-cat-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26,39,68,0.14);
  border-color: var(--ra-gold);
}
*/

/* ── Hero image area ── */
/* [REPLACED by ra-cat-grid]
.ra-cat-slide__hero {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center top;
  background-color: #1a2744;
  position: relative;
  overflow: hidden;
}
*/

/* ── Overlay (always visible, stronger at bottom) ── */
/* [REPLACED by ra-cat-grid]
.ra-cat-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(10,14,22,0.72) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 14px 12px;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
*/
/* [REPLACED by ra-cat-grid]
.ra-cat-slide:hover .ra-cat-slide__overlay {
  opacity: 1;
}
*/

/* ── Sub-categories list in overlay ── */
/* [REPLACED by ra-cat-grid]
.ra-cat-slide__subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
*/
/* [REPLACED by ra-cat-grid]
.ra-cat-slide__subs li {
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  line-height: 1.35;
  padding-left: 10px;
  position: relative;
}
*/
/* [REPLACED by ra-cat-grid]
.ra-cat-slide__subs li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ra-gold);
  font-size: 10px;
}
*/

/* ── Shop Now CTA ── */
/* [REPLACED by ra-cat-grid]
.ra-cat-slide__cta {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ra-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}
*/

/* ── Card footer with name + count ── */
/* [REPLACED by ra-cat-grid]
.ra-cat-slide__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 13px;
  background: #ffffff;
  gap: 8px;
}
*/
/* [REPLACED by ra-cat-grid]
.ra-cat-slide__name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ra-navy-dark);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  line-height: 1.3;
}
*/
/* [REPLACED by ra-cat-grid]
.ra-cat-slide__count {
  font-size: 10px;
  color: var(--ra-gold);
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
*/

/* ── Keep old cat-card for any backward compat ── */
.ra-cat-card__name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ra-navy-dark);
  text-align: center;
  line-height: 1.3;
}

/* ── CAROUSELS WRAP ── */
.ra-carousels-wrap { padding: 16px 0 48px; }
.ra-carousel-section { margin-bottom: 48px; }
.ra-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ra-carousel-title {
  font-family: var(--ra-font-heading);
  font-size: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ra-navy-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ra-carousel-icon { font-size: 22px; }
.ra-carousel-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ra-gold);
  text-decoration: none;
  border: 1.5px solid var(--ra-gold);
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ra-carousel-view-all:hover {
  background: var(--ra-gold);
  color: var(--ra-navy-dark);
}

/* Track wrapper with arrows */
/* ── OpticsPlanet-style: viewport + transform track ── */
/* ── OpticsPlanet viewport model ── */
/* Outer wrapper: arrows are positioned relative to this, NOT the scrolling track */
.ra-carousel-outer {
  position: relative;
  padding: 0 0 4px;
}

.ra-carousel-track-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  padding: 4px 0 12px;
  -webkit-scroll-snap-stop: unset;
}
.ra-carousel-track-wrap::-webkit-scrollbar { display: none; }
.ra-carousel-track {
  display: flex;
  align-items: flex-start;   /* OpticsPlanet-style: cards keep natural height
                                 instead of stretching to the tallest sibling */
  gap: 16px;
  width: max-content;
}

/* Arrow buttons: positioned on .ra-carousel-outer (fixed, doesn't scroll) */
.ra-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  flex-shrink: 0;
}
.ra-carousel-prev { left: -18px; }
.ra-carousel-next { right: -18px; }

/* Carousel cards — fixed width cap so they stay scannable across mixed imagery.
   These rules override the shared .ra-product-card grid styling (main.css) for
   carousel contexts only; grid pages are unaffected. */
.ra-carousel-card {
  flex: 0 0 256px;
  min-width: 256px;
  max-width: 256px;
}

/* Carousel image stage — square 1:1 matches the `woocommerce_thumbnail` image
   size (300×300 cropped 1:1 server-side per WC → Settings → Products → Display).
   Image and stage share the same ratio, so `object-fit: contain` is exact and
   newly uploaded products fit the stage automatically with no per-product CSS. */
.ra-carousel-card .ra-product-card__image-wrap {
  aspect-ratio: 1 / 1;
  padding: 8px;
  box-sizing: border-box;
}
.ra-carousel-card .ra-product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Body: don't absorb slack vertically. Track-level align-items:flex-start
   handles the row, this handles the card. */
.ra-carousel-card .ra-product-card__body {
  flex: 0 0 auto;
}
/* No hover scale on carousel images — carousels already move. */
.ra-carousel-card:hover .ra-product-card__image-wrap img {
  transform: none;
}

/* Arrow buttons — visual styling (position set above in track-wrap) */
.ra-carousel-arrow {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--ra-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--ra-navy-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.ra-carousel-arrow:hover {
  background: var(--ra-gold);
  border-color: var(--ra-gold);
  color: var(--ra-navy-dark);
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
  /* keep the translateY(-50%) from base + add scale */
  transform: translateY(calc(-50% - 1px)) scale(1.08);
}
.ra-carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Infinite mode: never disable arrows */
.ra-carousel-arrow[aria-disabled="false"] {
  opacity: 1;
  pointer-events: auto;
}

/* Pulse hint animation */
@keyframes ra-arrow-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  60%  { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
.ra-arrow-hint {
  animation: ra-arrow-pulse 0.7s ease 3;
  background: var(--ra-gold) !important;
  border-color: var(--ra-gold) !important;
  color: var(--ra-navy-dark) !important;
}

/* Edge fade indicators — on track-wrap (scrolls with it correctly) */
.ra-carousel-track-wrap::before,
.ra-carousel-track-wrap::after {
  content: '';
  position: sticky;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
/* Use outer for fade overlays instead */
.ra-carousel-outer::before,
.ra-carousel-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 12px;
  width: 60px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.3s;
}
.ra-carousel-outer::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.92), transparent);
}
.ra-carousel-outer::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.92), transparent);
}
.ra-carousel-outer.ra-fade-left::before  { opacity: 1; }
.ra-carousel-outer.ra-fade-right::after  { opacity: 1; }
/* Keep old selectors working too */
.ra-carousel-track-wrap.ra-fade-left::before  { opacity: 0; }
.ra-carousel-track-wrap.ra-fade-right::after  { opacity: 0; }

/* ── Dot indicators (auto-generated by carousel engine) ── */
.ra-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 2px 0;
}
.ra-carousel-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.ra-carousel-dot--active {
  background: #b91c1c;
  transform: scale(1.3);
}

/* ── PRODUCT GRID 3-col (recently viewed) ── */
.ra-product-grid--3col {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ── VIEW ALL BOX ── */
.ra-view-all-box {
  margin-top: 20px;
  text-align: center;
}
.ra-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border: 2px solid var(--ra-navy-mid);
  color: var(--ra-navy-mid);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.ra-view-all-link:hover {
  background: var(--ra-navy-mid);
  color: var(--ra-white);
}

/* ── RECENTLY VIEWED SECTION ── */
.ra-viewed-section { background: var(--ra-gray-50); }

/* ── BOTTOM CTA BANNER ── */
.ra-cta-banner {
  background: linear-gradient(135deg, var(--ra-navy-dark) 0%, #0f1929 100%);
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.ra-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ra-cta-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.ra-cta-banner__text h2 {
  font-family: var(--ra-font-heading);
  font-size: 42px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ra-white);
  margin: 0 0 10px;
}
.ra-cta-banner__text p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}
.ra-cta-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ra-btn-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: var(--ra-gold);
  color: var(--ra-navy-dark);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.ra-btn-cta-primary:hover {
  background: #e0b85a;
  transform: translateY(-2px);
  color: var(--ra-navy-dark);
  box-shadow: 0 6px 30px rgba(201,168,76,0.5);
}
.ra-btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 24px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  transition: all 0.2s ease;
}
.ra-btn-cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE PRODUCT CARD FIXES
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Product title: allow 3 lines, larger min-height */
  .ra-product-card__title {
    font-size: 11.5px !important;
    -webkit-line-clamp: 3 !important;
    min-height: 48px !important;
    padding: 0 8px 4px !important;
  }
  .ra-product-card__brand { padding: 6px 8px 2px !important; font-size: 8px !important; }
  .ra-product-card__price { padding: 2px 8px 4px !important; }
  .ra-product-card__price .ra-price-current { font-size: 14px !important; }
  .ra-product-card__stock { padding: 0 8px 4px !important; }
  .ra-product-card__footer { padding: 4px 8px 8px !important; }
  .ra-add-to-cart-btn {
    font-size: 9px !important;
    padding: 8px 6px !important;
    letter-spacing: 0.3px !important;
    gap: 4px !important;
  }
  .ra-add-to-cart-btn svg { width: 12px !important; height: 12px !important; }

  /* OpticsPlanet mobile: flex: 0 0 70% of viewport */
  .ra-carousel-card {
    flex: 0 0 58vw !important;
    min-width: 58vw !important;
    max-width: 58vw !important;
  }
  .ra-carousel-arrow { display: none !important; }
  .ra-carousel-track { gap: 12px !important; }

  /* Hero */
  .ra-hero-jw { min-height: 100svh; }
  .ra-hero-jw__inner { padding: 80px 24px 60px; text-align: center; align-items: center; }
  .ra-hero-jw__title { font-size: 54px; letter-spacing: 2px; }
  .ra-hero-jw__gold { font-size: 68px; letter-spacing: 3px; }
  .ra-hero-jw__sub { font-size: 14px; text-align: center; }
  .ra-btn-hero-primary { padding: 16px 24px; font-size: 14px; }
  .ra-hero-jw__trust { gap: 12px; justify-content: center; }
  .ra-hero-trust-item { font-size: 11px; }
  .ra-hero-jw__badges { justify-content: center; }
  .ra-hero-jw__badges span { font-size: 10px; padding: 4px 10px; }
  .ra-hero-jw__actions { gap: 10px; justify-content: center; }

  /* Categories — carousel on mobile */
  .ra-cat-section { padding: 32px 0 40px; }

  /* Recently viewed 2-col on mobile */
  .ra-product-grid--3col { grid-template-columns: repeat(2, 1fr) !important; }

  /* Section spacing */
  .ra-home-section { padding: 32px 0; }
  .ra-home-container { padding: 0 12px; }
  .ra-section-title { font-size: 18px; }
  .ra-carousel-title { font-size: 18px; }
  .ra-carousels-wrap { padding: 8px 0 32px; }
  .ra-carousel-section { margin-bottom: 32px; }

  /* CTA banner */
  .ra-cta-banner__inner { flex-direction: column; text-align: center; }
  .ra-cta-banner__text h2 { font-size: 28px; }
  .ra-cta-banner__actions { justify-content: center; }
  .ra-cta-banner { padding: 40px 20px; }

  /* Promo strip */
  .ra-promo-strip__item { padding: 10px 20px; font-size: 10px; }
}

@media (max-width: 480px) {
  .ra-hero-jw__title { font-size: 40px; }
  .ra-hero-jw__gold  { font-size: 50px; }
  /* Small phones: same 70vw OpticsPlanet sizing */
  .ra-carousel-card {
    flex: 0 0 58vw !important;
    min-width: 58vw !important;
    max-width: 58vw !important;
  }
  /* cat grid removed — using carousel */
}

/* ── Tablet ── */
@media (min-width: 769px) and (max-width: 1100px) {
  /* cat grid removed — using carousel */
  .ra-hero-jw__title { font-size: 64px; }
  .ra-hero-jw__gold  { font-size: 78px; }
  .ra-hero-jw__inner { padding: 80px 40px 60px; }
  .ra-carousel-card  { flex: 0 0 200px; min-width: 200px; max-width: 200px; }
}
/* ══════════════════════════════════════════════════════════════
   CATEGORY CAROUSEL — responsive sizes
   ══════════════════════════════════════════════════════════════ */
/* Keep these classes for potential reuse elsewhere */
.ra-cat-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px 12px;
}
.ra-cat-card__count {
  font-size: 9px;
  color: #c9a84c;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   BRANDS SHOWCASE SECTION — Carousel Style
   ══════════════════════════════════════════════════════════════ */
.ra-brands-section {
  background: var(--ra-gray-50, #f8f9fa);
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 40px 0 48px;
}
.ra-brands-section .ra-section-title {
  color: var(--ra-navy-dark, #1a2744) !important;
}
.ra-brands-section .ra-section-header {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 16px;
  margin-bottom: 0;
}

/* ── Brands Carousel Outer (full-width, edge-to-edge) ── */
.ra-brands-carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 16px 8px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Scroll Track ── */
.ra-brands-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  flex: 1;
  padding: 6px 2px 10px;
  align-items: stretch;
  -webkit-scroll-snap-stop: unset;
}
.ra-brands-track::-webkit-scrollbar { display: none; }

/* ── Brand Tile Card ── */
.ra-brand-tile {
  flex: 0 0 160px;
  min-width: 160px;
  max-width: 160px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}
.ra-brand-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(201,168,76,0.08);
  opacity: 0;
  transition: opacity 0.22s ease;
  border-radius: 8px;
}
.ra-brand-tile:hover {
  border-color: #c9a84c;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  text-decoration: none;
}
.ra-brand-tile:hover::before { opacity: 1; }

/* ── Brand Tile Image ── */
.ra-brand-tile img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.2s ease;
  display: block;
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
}
.ra-brand-tile:hover img {
  transform: scale(1.06);
}

/* ── Light logo variant — white/near-white logos get navy bg so they're visible ── */
.ra-brand-tile--dark {
  background: #1a2744;
  border-color: #2a3a6a;
}
.ra-brand-tile--dark:hover {
  border-color: #c9a84c;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.ra-brand-tile--dark img {
  mix-blend-mode: normal;
  filter: brightness(1.1);
}
.ra-brand-tile--dark:hover img {
  filter: brightness(1.15) drop-shadow(0 0 4px rgba(201,168,76,0.4));
}
.ra-brand-tile--dark .ra-brand-tile__fallback {
  color: rgba(255,255,255,0.85);
}
.ra-brand-tile--dark:hover .ra-brand-tile__fallback {
  color: #c9a84c;
}

/* ── Brand Tile Text Fallback ── */
.ra-brand-tile__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0 4px;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}
.ra-brand-tile:hover .ra-brand-tile__fallback {
  color: #9a7a20;
}

/* ── Brand Arrow Buttons ── */
.ra-brands-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a2744;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.ra-brands-arrow:hover {
  background: #1a2744;
  border-color: #1a2744;
  color: #c9a84c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* ══════════════════════════════════════════════════════════════
   FFL TRANSFER INFO SECTION
   ══════════════════════════════════════════════════════════════ */
.ra-ffl-section {
  background: linear-gradient(135deg, #0a0e16 0%, #111827 50%, #0a0e16 100%);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 60px 0;
}

.ra-ffl-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.ra-ffl-icon-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  animation: ra-ffl-pulse 3s ease-in-out infinite;
}

@keyframes ra-ffl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 0 12px rgba(201,168,76,0.08); }
}

.ra-ffl-content {
  flex: 1;
}

.ra-ffl-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.ra-ffl-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: #c9a84c;
  margin-top: 10px;
}

.ra-ffl-desc {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 560px;
}

.ra-ffl-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.ra-ffl-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ra-ffl-step__num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #c9a84c;
  letter-spacing: 0;
}

.ra-ffl-step__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
}

.ra-ffl-step__text strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.ra-ffl-step__text span {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

.ra-ffl-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
}

.ra-ffl-contact__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1d5db;
  font-size: 13px;
}

.ra-ffl-contact__item a {
  color: #c9a84c;
  text-decoration: none;
  font-weight: 600;
}

.ra-ffl-contact__item a:hover {
  text-decoration: underline;
}

.ra-ffl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c9a84c;
  color: #0a0e16;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.ra-ffl-cta-btn:hover {
  background: #e0c068;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
  color: #0a0e16;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — New Sections
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Category carousel — smaller cards */
  /* [REPLACED by ra-cat-grid]
.ra-cat-slide {
    flex: 0 0 170px;
    min-width: 170px;
    max-width: 170px;
  }
*/
  /* [REPLACED by ra-cat-grid]
.ra-cat-slide__hero { height: 140px; }
*/
  /* [REPLACED by ra-cat-grid]
.ra-cat-slide__name { font-size: 11px; }
*/
  /* [REPLACED by ra-cat-grid]
.ra-cat-carousel-arrow { display: none; }
*/

  /* Brands — smaller tiles */
  .ra-brand-tile {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
    height: 70px;
  }
  .ra-brand-tile img { max-height: 44px; }
  .ra-brands-arrow { display: none; }
  .ra-brands-carousel-outer { padding: 16px 12px 4px; }

  /* FFL section */
  .ra-ffl-section { padding: 40px 0; }
  .ra-ffl-inner { flex-direction: column; gap: 24px; align-items: center; }
  .ra-ffl-icon-wrap { width: 80px; height: 80px; }
  .ra-ffl-title { font-size: 22px; text-align: center; }
  .ra-ffl-title::after { margin: 10px auto 0; }
  .ra-ffl-desc { text-align: center; }
  .ra-ffl-contact { flex-direction: column; gap: 10px; }
  .ra-ffl-cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  /* [REPLACED by ra-cat-grid]
.ra-cat-slide {
    flex: 0 0 150px;
    min-width: 150px;
    max-width: 150px;
  }
*/
  /* [REPLACED by ra-cat-grid]
.ra-cat-slide__hero { height: 120px; }
*/
  .ra-brand-tile {
    flex: 0 0 108px;
    min-width: 108px;
    max-width: 108px;
    height: 62px;
  }
}
/* ══════════════════════════════════════════════════════════════
   OUT-OF-STOCK NOTIFY ME BUTTON (product pages)
   ══════════════════════════════════════════════════════════════ */
.ra-oos-notify {
  margin: 16px 0;
  padding: 16px 20px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
}

.ra-oos-notify__text {
  color: #d1d5db;
  font-size: 14px;
  margin: 0 0 10px;
}

.ra-oos-notify__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid #c9a84c;
  color: #c9a84c;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.ra-oos-notify__btn:hover {
  background: #c9a84c;
  color: #0a0e16;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.25);
}

/* ═══════════════════════════════════════════════════════════════
   MEGA DROPDOWN NAVIGATION — OpticsPlant-style hover subcategories
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DESKTOP MEGA DROPDOWN — Clean, Professional, Proportional
   ═══════════════════════════════════════════════════════════════ */

/* Nav item wrapper */
.ra-nav-item {
  position: static;
  display: inline-flex;
  align-items: stretch;
}
.ra-nav-item--has-dropdown {
  position: relative;
}

/* Chevron arrow */
.ra-nav-chevron {
  margin-left: 3px;
  transition: transform 0.2s ease;
  opacity: 0.65;
  flex-shrink: 0;
}
.ra-nav-item--has-dropdown:hover .ra-nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Mega dropdown panel ── */
.ra-mega-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 560px;
  max-width: 1000px;
  width: max-content;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #c9a84c;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  pointer-events: none;
}
.ra-nav-item--has-dropdown:hover .ra-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
  pointer-events: auto;
}

/* ── Dropdown inner ── */
.ra-mega-dropdown__inner {
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
}

/* ── Header bar: Category title + View All button ── */
.ra-mega-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 13px;
  background: linear-gradient(135deg, #1a2744 0%, #0f1929 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 16px;
}
.ra-mega-dropdown__title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.ra-mega-dropdown__count {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: none;
  letter-spacing: 0;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 4px;
}
.ra-mega-dropdown__view-all {
  font-size: 11px;
  font-weight: 700;
  color: #c9a84c;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid rgba(201,168,76,0.6);
  padding: 5px 13px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.ra-mega-dropdown__view-all:hover {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #0f1929;
}

/* ── Columns layout ── */
.ra-mega-dropdown__cols {
  display: flex;
  gap: 0;
  padding: 18px 22px 20px;
  background: #ffffff;
}
.ra-mega-dropdown__col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 170px;
  max-width: 240px;
  padding-right: 20px;
}
.ra-mega-dropdown__col + .ra-mega-dropdown__col {
  padding-left: 18px;
  padding-right: 20px;
  border-left: 1px solid #f0f2f5;
}
.ra-mega-dropdown__col:last-child {
  padding-right: 0;
}

/* ── Sub-category group header (bold link) ── */
.ra-mega-dropdown__sub-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 7px 0 6px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #1a2744 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1.5px solid #e8eaee !important;
  margin-bottom: 4px !important;
  margin-top: 8px !important;
  line-height: 1.3 !important;
  transition: color 0.13s ease !important;
}
.ra-mega-dropdown__col > .ra-mega-dropdown__sub-header:first-child {
  margin-top: 0 !important;
}
.ra-mega-dropdown__sub-header:hover {
  color: #c9a84c !important;
}
.ra-mega-dropdown__sub-count {
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  margin-left: 4px;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Child category links ── */
.ra-mega-dropdown__children {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}
.ra-mega-dropdown__child-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 4px 0 4px 10px !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: #4b5563 !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  transition: color 0.13s ease, padding-left 0.13s ease !important;
  position: relative !important;
}
.ra-mega-dropdown__child-link::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #c9a84c;
  font-size: 11px;
  line-height: inherit;
}
.ra-mega-dropdown__child-link:hover {
  color: #1a2744 !important;
  padding-left: 14px !important;
}
.ra-mega-dropdown__child-count {
  font-size: 10px;
  color: #c4c9d4;
  flex-shrink: 0;
  margin-left: 4px;
}

/* ── Sub-category link (top-level items without children) ── */
.ra-mega-dropdown__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color 0.13s ease, padding-left 0.13s ease;
  line-height: 1.4;
}
.ra-mega-dropdown__link:hover {
  color: #c9a84c;
  padding-left: 4px;
}

/* ── Brand Logos Row ── */
.ra-mega-dropdown__brands {
  border-top: 1px solid #f0f2f5;
  padding: 14px 22px 18px;
  background: #f8f9fc;
  border-radius: 0 0 10px 10px;
}
.ra-mega-dropdown__brands-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.ra-mega-dropdown__brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ra-brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  min-width: 100px;
  max-width: 160px;
  height: 56px;
  flex-shrink: 0;
}
.ra-brand-logo-item:hover {
  border-color: #c9a84c;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.ra-brand-logo-item img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── Mobile: hide mega dropdown ── */
@media (max-width: 1024px) {
  .ra-mega-dropdown { display: none !important; }
  .ra-nav-chevron { display: none !important; }
  .ra-nav-item { display: inline-flex; }
}

/* ══════════════════════════════════════════════════════════════════
   DROPDOWN POSITIONING — left/right edge handling
   ══════════════════════════════════════════════════════════════════ */

/* Default: align to left edge of the nav item */
.ra-mega-dropdown {
  left: 0 !important;
  right: auto !important;
}

/* For items in the second half of the nav, anchor to right edge */
.ra-nav-item--has-dropdown:nth-child(n+5) .ra-mega-dropdown {
  left: auto !important;
  right: 0 !important;
}

/* Bridge between nav link and dropdown to prevent hover gap */
.ra-nav-item--has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 9998;
}

/* Ensure category nav container is overflow-visible */
.ra-category-nav,
.ra-category-nav__inner {
  overflow: visible !important;
  contain: layout style !important;
}

/* Category nav z-index */
.ra-category-nav {
  z-index: 100 !important;
}

/* Mobile 3-level accordion (existing mobile nav) */
.ra-mob-cat-group {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ra-mob-cat-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ra-mob-cat-group__link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 8px 13px 20px;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: color 0.15s;
}
.ra-mob-cat-group__link:hover,
.ra-mob-cat-group__link.active { color: #c9a84c; }
.ra-mob-cat-group__link svg { opacity: 0.7; flex-shrink: 0; transition: opacity 0.15s; }
.ra-mob-cat-group__link:hover svg { opacity: 1; }
.ra-mob-cat-group__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 13px 16px 13px 8px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  transition: color 0.15s;
  flex-shrink: 0;
}
.ra-mob-cat-group__toggle:hover { color: #c9a84c; }
.ra-mob-cat-group__toggle[aria-expanded="true"] .ra-mob-chevron { transform: rotate(180deg); }
.ra-mob-chevron { transition: transform 0.2s ease; }
.ra-mob-cat-group__panel {
  display: none;
  background: rgba(0,0,0,0.18);
  padding: 4px 0 8px;
}
.ra-mob-cat-group__panel.open { display: block; }
.ra-mob-sub-link {
  display: block;
  padding: 9px 20px 9px 36px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.13s, background 0.13s;
}
.ra-mob-sub-link:hover { color: #c9a84c; background: rgba(201,168,76,0.07); }
.ra-mob-sub-group { border-bottom: 1px solid rgba(255,255,255,0.05); }
.ra-mob-sub-group__header { display: flex; align-items: center; }
.ra-mob-sub-group__link {
  flex: 1;
  padding: 9px 8px 9px 36px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.13s;
}
.ra-mob-sub-group__link:hover { color: #c9a84c; }
.ra-mob-sub-group__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 16px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  transition: color 0.13s;
  flex-shrink: 0;
}
.ra-mob-sub-group__toggle:hover { color: #c9a84c; }
.ra-mob-sub-group__toggle[aria-expanded="true"] .ra-mob-chevron { transform: rotate(180deg); }
.ra-mob-sub-group__panel {
  display: none;
  background: rgba(0,0,0,0.15);
  padding: 2px 0 6px;
}
.ra-mob-sub-group__panel.open { display: block; }
.ra-mob-child-link {
  display: block;
  padding: 8px 20px 8px 52px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.13s, background 0.13s;
  position: relative;
}
.ra-mob-child-link::before {
  content: "–";
  position: absolute;
  left: 38px;
  color: #c9a84c;
  font-size: 11px;
}
.ra-mob-child-link:hover { color: #c9a84c; background: rgba(201,168,76,0.07); }

/* ══════════════════════════════════════════════════════════════════════════════
   SHOP BY CATEGORY — MidwayUSA-style Grid
   ══════════════════════════════════════════════════════════════════════════════ */

/* Grid container */
.ra-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Card */
.ra-cat-card {
    position: relative;
}

.ra-cat-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease;
    cursor: pointer;
}

.ra-cat-card__link:hover {
    transform: translateY(-4px);
}

/* Image figure */
.ra-cat-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #1a2332;
    margin: 0;
    position: relative;
}

.ra-cat-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ra-cat-card__link:hover .ra-cat-media img {
    transform: scale(1.06);
}

/* Label */
.ra-cat-label {
    display: none;
}

/* Item count badge */
.ra-cat-count {
    display: none;
}

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

/* 6-column at 1280px */
@media (max-width: 1280px) {
    .ra-cat-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

/* 5-column at 1024px */
@media (max-width: 1024px) {
    .ra-cat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

/* 4-column at 768px */
@media (max-width: 768px) {
    .ra-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* 3-column at 480px */
@media (max-width: 480px) {
    .ra-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* Horizontal scroll rail on very small screens */
@media (max-width: 360px) {
    .ra-cat-section .ra-home-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ra-cat-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 8px;
    }
    .ra-cat-card {
        flex: 0 0 80px;
    }
}
/* ══════════════════════════════════════════════════════════════════════════════
   END SHOP BY CATEGORY GRID
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   CATEGORY GRID v2 — Gold Halo + Click/Press Animations + Text Alignment
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Override: square aspect ratio for the new 1024x1024 images ── */
.ra-cat-media {
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    background: #0d1520 !important;
    /* Gold halo — layered box-shadow */
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, 0.55),
        0 0 10px 3px rgba(212, 175, 55, 0.30),
        0 0 22px 6px rgba(212, 175, 55, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.5) !important;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease !important;
}

/* Halo intensifies on hover */
.ra-cat-card__link:hover .ra-cat-media {
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, 0.90),
        0 0 18px 6px rgba(212, 175, 55, 0.55),
        0 0 40px 12px rgba(212, 175, 55, 0.22),
        0 6px 24px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-2px);
}

/* ── Text block: fixed min-height so all cards align ── */
.ra-cat-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
    width: 100%;
    padding: 0 2px;
    gap: 2px;
}

.ra-cat-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #1a2332 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.ra-cat-count {
    font-size: 0.65rem !important;
    color: #8a9bb0 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* ── Card link: keep consistent vertical rhythm ── */
.ra-cat-card__link {
    gap: 6px !important;
    align-items: center !important;
}

/* ── Desktop: ripple click animation ── */
.ra-cat-card {
    position: relative;
    overflow: visible;
}

.ra-cat-card__link {
    position: relative;
    overflow: hidden;
}

/* Ripple element (injected by JS) */
.ra-cat-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.55) 0%, rgba(212,175,55,0) 70%);
    transform: scale(0);
    animation: ra-ripple-expand 0.55s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes ra-ripple-expand {
    0%   { transform: scale(0); opacity: 1; }
    60%  { transform: scale(2.5); opacity: 0.7; }
    100% { transform: scale(4); opacity: 0; }
}

/* ── Active/press state (desktop click + mobile touch) ── */
.ra-cat-card__link:active .ra-cat-media {
    transform: scale(0.95) !important;
    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 1.0),
        0 0 25px 8px rgba(212, 175, 55, 0.65),
        0 0 50px 15px rgba(212, 175, 55, 0.30),
        0 2px 8px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}

/* ── Mobile: touch press glow pulse ── */
@media (hover: none) and (pointer: coarse) {
    .ra-cat-card__link:active .ra-cat-media {
        transform: scale(0.93) !important;
        box-shadow:
            0 0 0 3px rgba(212, 175, 55, 1.0),
            0 0 30px 10px rgba(212, 175, 55, 0.70),
            0 0 60px 20px rgba(212, 175, 55, 0.35) !important;
    }
}

/* ── Responsive: keep square images on smaller screens ── */
@media (max-width: 768px) {
    .ra-cat-text-block {
        min-height: 44px;
    }
    .ra-cat-count {
        font-size: 0.60rem !important;
    }
}

@media (max-width: 480px) {
    .ra-cat-text-block {
        min-height: 38px;
    }
}
/* ══════════════════════════════════════════════════════════════════════════════
   END CATEGORY GRID v2
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   CATEGORY GRID v2.1 — Fixed-height label area for perfect count alignment
   ══════════════════════════════════════════════════════════════════════════════ */

/* Reserve exactly 3 lines for the label so counts always align */
.ra-cat-text-block {
    min-height: 68px !important;
    justify-content: flex-start !important;
    padding-top: 4px !important;
}

.ra-cat-label {
    /* Reserve 3 lines of space always — flex-grow pushes count to same row */
    min-height: calc(0.72rem * 1.25 * 3) !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex-grow: 0 !important;
}

.ra-cat-count {
    margin-top: auto !important;
    padding-top: 2px !important;
}

@media (max-width: 768px) {
    .ra-cat-text-block {
        min-height: 60px !important;
    }
    .ra-cat-label {
        min-height: calc(0.65rem * 1.25 * 3) !important;
    }
}

@media (max-width: 480px) {
    .ra-cat-text-block {
        min-height: 52px !important;
    }
    .ra-cat-label {
        min-height: calc(0.60rem * 1.25 * 3) !important;
    }
}
/* ══════════════════════════════════════════════════════════════════════════════
   END CATEGORY GRID v2.1
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   CATEGORY GRID v2.2 — Tighter text spacing, counts locked to bottom of block
   ══════════════════════════════════════════════════════════════════════════════ */

/* Fixed-height text block: label area + count pinned at bottom */
.ra-cat-text-block {
    display: grid !important;
    grid-template-rows: 1fr auto !important;
    min-height: 62px !important;
    align-items: start !important;
    padding: 4px 2px 2px !important;
    gap: 0 !important;
}

.ra-cat-label {
    align-self: start !important;
    min-height: unset !important;
    display: block !important;
}

.ra-cat-count {
    align-self: end !important;
    padding-top: 3px !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .ra-cat-text-block {
        min-height: 54px !important;
    }
}

@media (max-width: 480px) {
    .ra-cat-text-block {
        min-height: 46px !important;
    }
}
/* ══════════════════════════════════════════════════════════════════════════════
   END CATEGORY GRID v2.2
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   CATEGORY GRID v2.3 — Final text spacing refinement
   ══════════════════════════════════════════════════════════════════════════════ */

/* Use table layout for perfect cross-browser baseline alignment */
.ra-cat-text-block {
    display: block !important;
    min-height: unset !important;
    padding: 5px 0 0 !important;
    text-align: center !important;
}

.ra-cat-label {
    display: block !important;
    min-height: 2.7em !important;   /* reserves 2 lines always */
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #1a2332 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ra-cat-count {
    display: block !important;
    font-size: 0.64rem !important;
    color: #8a9bb0 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .ra-cat-label  { min-height: 2.5em !important; font-size: 0.65rem !important; }
    .ra-cat-count  { font-size: 0.60rem !important; }
}
@media (max-width: 480px) {
    .ra-cat-label  { min-height: 2.3em !important; font-size: 0.60rem !important; }
}
/* ══════════════════════════════════════════════════════════════════════════════
   END CATEGORY GRID v2.3
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   CATEGORY GRID v3 — Halo fix + green count + dark pill background
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Image container: clip halo to the image box only ── */
.ra-cat-card {
    overflow: visible !important;
}

/* The media figure itself gets the halo — contained within the figure */
.ra-cat-media {
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    background: #0d1520 !important;
    overflow: hidden !important;
    /* Contained gold halo — stays inside the image boundary */
    outline: 2px solid rgba(212, 175, 55, 0.60) !important;
    outline-offset: 0px !important;
    box-shadow:
        inset 0 0 0 1px rgba(212, 175, 55, 0.25),
        0 0 8px 2px rgba(212, 175, 55, 0.28),
        0 0 18px 4px rgba(212, 175, 55, 0.12),
        0 4px 14px rgba(0,0,0,0.55) !important;
    transition: outline-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
    position: relative !important;
}

/* Hover: intensify halo — still contained */
.ra-cat-card__link:hover .ra-cat-media {
    outline-color: rgba(212, 175, 55, 0.95) !important;
    box-shadow:
        inset 0 0 0 1px rgba(212, 175, 55, 0.40),
        0 0 14px 5px rgba(212, 175, 55, 0.50),
        0 0 32px 10px rgba(212, 175, 55, 0.20),
        0 6px 20px rgba(0,0,0,0.65) !important;
    transform: translateY(-3px) !important;
}

/* Active/press: bright contained flash */
.ra-cat-card__link:active .ra-cat-media {
    transform: scale(0.95) !important;
    outline-color: rgba(212, 175, 55, 1.0) !important;
    box-shadow:
        inset 0 0 0 2px rgba(212, 175, 55, 0.60),
        0 0 20px 7px rgba(212, 175, 55, 0.65),
        0 0 40px 12px rgba(212, 175, 55, 0.28) !important;
    transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}

/* Mobile touch */
@media (hover: none) and (pointer: coarse) {
    .ra-cat-card__link:active .ra-cat-media {
        transform: scale(0.93) !important;
        outline-color: rgba(212, 175, 55, 1.0) !important;
        box-shadow:
            inset 0 0 0 2px rgba(212, 175, 55, 0.70),
            0 0 28px 9px rgba(212, 175, 55, 0.70),
            0 0 55px 16px rgba(212, 175, 55, 0.32) !important;
    }
}

/* ── Count: green text + dark grey pill ── */
.ra-cat-count {
    display: inline-block !important;
    font-size: 0.64rem !important;
    font-weight: 600 !important;
    color: #D4AF37 !important;          /* WooCommerce in-stock green */
    background: rgba(10,18,35,0.82) !important;  /* subtle dark grey pill */
    border-radius: 20px !important;
    padding: 1px 6px !important;
    margin: 2px auto 0 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
}

/* ── Label: keep clean dark navy ── */
.ra-cat-label {
    color: #1a2332 !important;
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    line-height: 1.3 !important;
    min-height: 2.7em !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
}

/* ── Text block: consistent vertical rhythm ── */
.ra-cat-text-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 5px 2px 2px !important;
    gap: 0 !important;
    min-height: unset !important;
}

@media (max-width: 768px) {
    .ra-cat-label  { font-size: 0.64rem !important; min-height: 2.5em !important; }
    .ra-cat-count  { font-size: 0.60rem !important; }
}
@media (max-width: 480px) {
    .ra-cat-label  { font-size: 0.59rem !important; min-height: 2.3em !important; }
    .ra-cat-count  { font-size: 0.57rem !important; padding: 1px 5px !important; }
}
/* ══════════════════════════════════════════════════════════════════════════════
   END CATEGORY GRID v3
   ══════════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════
   CAT GRID v4 — Gold pill + CLASS III title fix
   ═══════════════════════════════════════════════════════════ */

/* Count pill — gold text on deep navy, matches gold halo */
.ra-cat-count {
    display: inline-block !important;
    color: #D4AF37 !important;
    background: rgba(10, 18, 35, 0.82) !important;
    border: 1px solid rgba(212, 175, 55, 0.30) !important;
    border-radius: 20px !important;
    padding: 1px 8px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
}

/* Label — ensure 2-line min-height so pill stays aligned
   even for short names like RIFLES / HANDGUNS */
.ra-cat-label {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.8em !important;
    max-height: 3.6em !important;
    line-height: 1.2em !important;
    text-align: center !important;
    word-break: break-word !important;
    hyphens: auto !important;
    font-size: 0.62rem !important;
}

/* Text block — flex column, items centered */
.ra-cat-text-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 5px 3px 4px !important;
    gap: 3px !important;
    min-height: 52px !important;
}
