/* ================= SHOP BY RIDING STYLE STYLES ================= */
:root {
  --bg-main: #050811;
  --bg-card: rgba(13, 19, 33, 0.85);
  --bg-card-hover: rgba(19, 27, 47, 0.95);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-green: rgba(34, 197, 94, 0.35);

  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.4);
  --green-glow-subtle: rgba(34, 197, 94, 0.15);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.35);
  --blue: #38bdf8;
  --amber: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #050811;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.style-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
.style-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 17, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

.style-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.style-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.style-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}
.nav-btn-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
}

.nav-btn-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.nav-btn-highlight:hover {
  background: var(--green);
  color: var(--text-dark);
  box-shadow: 0 4px 18px var(--green-glow);
}

/* ================= HERO ================= */
.style-hero {
  position: relative;
  padding: 50px 0 35px;
  text-align: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 75% 70%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
  margin-bottom: 12px;
}

.pulse-spark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Category Pills Filter Bar */
.style-pills-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.style-pill {
  background: rgba(13, 19, 33, 0.9);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.style-pill,
.style-pill:hover,
.style-pill:focus,
.style-pill:focus-visible,
.style-pill:active {
  text-decoration: none;
}
.style-pill:hover {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
}
.style-pill.active {
  background: var(--green);
  color: var(--text-dark);
  border-color: var(--green);
  box-shadow: 0 4px 18px var(--green-glow);
}

/* ================= CATEGORIES SECTION ================= */
.style-categories-section {
  padding: 20px 0 40px;
}

.section-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.dot-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.badge-subtle {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Big Ride Style Cards Grid */
.styles-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.style-cat-card {
  position: relative;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #0a0f1d;
  cursor: pointer;
  transition: all var(--transition-smooth);
}
.style-cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 24px var(--green-glow-subtle);
}
.style-cat-card.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green), 0 12px 30px rgba(0, 0, 0, 0.6);
}

.style-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  filter: brightness(0.65) saturate(1.1);
}
.style-cat-card:hover .style-card-bg {
  transform: scale(1.06);
}

.style-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.15) 0%, rgba(5, 8, 17, 0.45) 50%, rgba(5, 8, 17, 0.95) 100%);
}

.style-card-content {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.style-card-size-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: auto;
}

.style-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.style-card-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.35;
}

.style-card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}

/* ================= TYRES SHOWCASE SECTION ================= */
.tyres-showcase-section {
  padding: 20px 0 70px;
}

.select-filter {
  background: rgba(13, 19, 33, 0.9);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}
.select-filter option {
  background: #0a0f1d;
  color: #fff;
}

.style-tyres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.style-tyre-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}
.style-tyre-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.tyre-img-box {
  position: relative;
  height: 200px;
  background: #090e1a;
  overflow: hidden;
  cursor: pointer;
}
.tyre-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.style-tyre-card:hover .tyre-img-box img {
  transform: scale(1.05);
}

.tyre-brand-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.tyre-size-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.tyre-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tyre-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tyre-style-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tyre-price-tag {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #86efac;
}

.tyre-offer-text {
  font-size: 0.78rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tyre-actions-row {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.btn-tyre-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-tyre-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--green-glow);
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

/* Empty State */
.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 50px 20px;
  text-align: center;
  max-width: 540px;
  margin: 20px auto;
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.btn-wa-action {
  display: inline-flex;
  background: var(--green);
  color: var(--text-dark);
  font-weight: 800;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
}

/* Modal */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
}
.modal-content {
  position: relative;
  z-index: 2;
  background: #0d1321;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.modal-content img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.modal-info {
  padding: 20px;
}
.modal-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.modal-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.btn-wa-modal {
  display: block;
  text-align: center;
  background: var(--green);
  color: var(--text-dark);
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* Footer */
.style-footer {
  margin-top: auto;
  background: rgba(5, 8, 17, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-right {
  display: flex;
  gap: 16px;
}
.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-right a:hover {
  color: #fff;
}

/* ============================================================
   ROUND 6 · INLINE EXPAND WORKFLOW (0fr→1fr), CASCADE STEPS,
   OUTCOME REVEALS, BG TEXTURES, PULSE RING, MAGNETIC
   ============================================================ */

/* ---- dynamic background textures (very faint) ---- */
.bg-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.rs-bg-gravel .bg-gravel { opacity: 0.5; }
body.rs-bg-asphalt .bg-asphalt { opacity: 0.55; }
.bg-gravel {
  background:
    radial-gradient(2px 1.5px at 12% 22%, rgba(148, 134, 111, 0.4), transparent 60%),
    radial-gradient(1.5px 2px at 31% 64%, rgba(163, 148, 120, 0.35), transparent 60%),
    radial-gradient(2.5px 1.8px at 47% 18%, rgba(132, 118, 96, 0.3), transparent 60%),
    radial-gradient(1.8px 2.2px at 58% 77%, rgba(155, 141, 115, 0.35), transparent 60%),
    radial-gradient(2px 2px at 72% 33%, rgba(140, 126, 102, 0.3), transparent 60%),
    radial-gradient(2.2px 1.6px at 86% 62%, rgba(149, 135, 110, 0.35), transparent 60%),
    radial-gradient(1.6px 2px at 22% 86%, rgba(158, 144, 118, 0.3), transparent 60%),
    radial-gradient(2.4px 2px at 66% 91%, rgba(136, 122, 99, 0.35), transparent 60%),
    radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(5, 8, 17, 0.85) 100%);
  background-size: 260px 260px, 320px 320px, 240px 240px, 360px 360px, 280px 280px, 300px 300px, 260px 260px, 340px 340px, cover;
}
.bg-asphalt {
  background:
    repeating-linear-gradient(0deg, rgba(20, 24, 32, 0.5) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(26, 30, 40, 0.45) 0 3px, transparent 3px 6px),
    radial-gradient(1.5px 1px at 18% 34%, rgba(150, 160, 175, 0.25), transparent 60%),
    radial-gradient(1px 1.5px at 64% 71%, rgba(150, 160, 175, 0.2), transparent 60%),
    radial-gradient(ellipse at 50% 40%, transparent 25%, rgba(5, 8, 17, 0.88) 100%);
  background-size: 90px 90px, 120px 120px, 340px 340px, 300px 300px, cover;
}

/* ---- inline expand panel (grid-rows 0fr → 1fr) ---- */
.style-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 0;
}
.style-expand.open {
  grid-template-rows: 1fr;
  margin-top: 20px;
}
.style-expand-inner {
  overflow: hidden;
  min-height: 0;
}
.rs-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 15, 27, 0.98), rgba(7, 11, 21, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 26px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 197, 94, 0.08);
  overflow: hidden;
}
.rs-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rs-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--green);
}
.rs-panel-head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 2px;
}
.rs-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.rs-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

/* ---- cascading steps ---- */
.rs-step {
  animation: stepSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rs-step[data-hidden-step] { display: none; }
.rs-step.step-visible { display: block; }
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: none; }
}
.rs-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.rs-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.rs-step.done .rs-step-num {
  background: var(--green);
  color: var(--text-dark);
  border-color: var(--green);
  box-shadow: 0 0 14px var(--green-glow);
}
.rs-step-head strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  display: block;
}
.rs-step-head p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.rs-step + .rs-step { margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, 0.07); }

/* bike search */
.rs-bike-search {
  position: relative;
}
.rs-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}
#rs-bike-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 14px 12px 38px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#rs-bike-input:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 0 22px rgba(34, 197, 94, 0.22);
}
.rs-bike-list {
  position: fixed;
  max-height: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0b1120;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  z-index: 5000;
  display: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.rs-bike-list.open { display: block; }
.rs-bike-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: rsItemIn 0.3s ease both;
}
@keyframes rsItemIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.rs-bike-item:hover, .rs-bike-item.hl {
  background: rgba(34, 197, 94, 0.12);
  color: #fff;
}
.rs-bike-empty {
  padding: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* size chips */
.rs-size-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .rs-size-groups { grid-template-columns: 1fr; }
}
.rs-size-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.rs-size-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.rs-sg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
}
.rs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rs-inch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--glass-border);
}
.rs-inch-tab {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  background: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.rs-inch-tab:hover {
  background: #334155;
}
.rs-inch-tab.active {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #0f172a !important;
  box-shadow: 0 6px 22px var(--green-glow);
  font-weight: 800;
}
@media (max-width: 767px) {
  .rs-inch-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rs-inch-tabs::-webkit-scrollbar { display: none; }
  .rs-inch-tab { flex-shrink: 0; }
}
.rs-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.rs-chip:hover {
  border-color: rgba(34, 197, 94, 0.5);
  color: #fff;
}
.rs-chip.active {
  background: var(--green);
  color: #050811 !important; /* Force dark text for contrast */
  border-color: var(--green);
  box-shadow: 0 4px 16px var(--green-glow);
  font-weight: 800;
}
.rs-chip.pick-pop {
  animation: chipPop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes chipPop {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* location selects */
.rs-loc-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
}
@media (max-width: 640px) {
  .rs-loc-selects { grid-template-columns: 1fr; }
}
.rs-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rs-select:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 0 22px rgba(34, 197, 94, 0.22);
}
.rs-select:disabled { opacity: 0.45; cursor: not-allowed; }
.rs-select option { background: #0b1120; color: #fff; }

/* ---- outcome: success flash ---- */
.rs-flash {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0 8px;
  animation: flashFade 0.9s ease both;
}
@keyframes flashFade {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 1; }
}
.rs-flash-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: ringPulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 30px var(--green-glow);
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.rs-flash-ring svg {
  width: 28px;
  height: 28px;
  color: #4ade80;
  animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes checkPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.rs-flash h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 12px;
}
.rs-flash p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3px;
}

/* ---- outcome: cascade cards ---- */
.rs-results {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .rs-results { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .rs-results { grid-template-columns: repeat(4, 1fr); }
}

.rs-result-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rsCardUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none !important;
}
@keyframes rsCardUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.rs-result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(34, 197, 94, 0.12);
}
.rs-result-img-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  aspect-ratio: 1 / 1;
  background: #090e1a;
}
.rs-result-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 14px;
  border: none;
  background: none;
  cursor: zoom-in;
  line-height: 0;
  box-sizing: border-box;
}
.rs-result-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.45s ease;
}
.rs-result-zoom img.loaded { opacity: 1; }
.rs-result-card:hover .rs-result-zoom img { transform: scale(1.05); }
.rs-result-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.rs-result-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.rs-result-size {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}
.rs-result-size span {
  font-size: 0.7rem;
  font-weight: 800;
  color: #86efac;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}
.rs-result-brand {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.rs-result-wa {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.rs-result-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--green-glow);
}
.rs-result-wa svg { flex-shrink: 0; }

/* ---- outcome: soft pivot (out of stock) ---- */
.rs-pivot {
  text-align: center;
  padding: 26px 18px 8px;
  animation: flashFade 0.9s ease both;
}
.rs-pivot-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
}
.rs-pivot h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.rs-pivot h4 em {
  color: #4ade80;
  font-style: normal;
}
.rs-pivot p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 480px;
  margin: 0 auto 20px;
}
.wa-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  z-index: 1;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.wa-pulse:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--green-glow);
}
.wa-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 2px solid rgba(34, 197, 94, 0.75);
  animation: waRing 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: -1;
}
@keyframes waRing {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}
.rs-reset-btn {
  display: block;
  margin: 22px auto 0;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.rs-reset-btn:hover {
  border-color: rgba(34, 197, 94, 0.5);
  color: #fff;
}

/* ---- selected card state ---- */
.styles-cards-grid:has(.style-cat-card.selected) .style-cat-card:not(.selected) {
  opacity: 0.55;
  filter: saturate(0.6);
}

/* ---- lazy image crossfade (page-wide) ---- */
img.lazy-fade { opacity: 0; transition: opacity 0.5s ease; }
img.lazy-fade.loaded { opacity: 1; }

/* ---- reduced motion kill switch ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- mobile header: icon-only nav buttons ---- */
@media (max-width: 640px) {
  .nav-btn-link span,
  .nav-btn-highlight span {
    display: none;
  }
  .nav-btn-link,
  .nav-btn-highlight {
    padding: 8px;
  }
  .nav-btn-link svg,
  .nav-btn-highlight svg {
    width: 19px;
    height: 19px;
    margin: 0;
  }
  .header-actions {
    gap: 6px;
  }
}

/* ---- image lightbox ---- */
.rs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rs-lightbox.hidden { display: none; }
.rs-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.rs-lightbox-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  background: #0d1424;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rs-lightbox-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(3, 6, 12, 0.75);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rs-lightbox-img-wrap {
  background: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 92vh;
}
.rs-lightbox-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  display: block;
}
@media (max-width: 767px) {
  .rs-lightbox { padding: 10px; }
  .rs-lightbox-card { max-width: 90vw; }
}
