/* =============================================================
   RETROELECTRO v4
   Font: NeueMontreal-Regular. Rounded shapes.
   ============================================================= */

:root {
  --re-bg:          #EDE5D8;
  --re-text:        #181210;
  --re-muted:       rgba(24, 18, 16, 0.40);
  --re-accent:      #C15322;
  --re-accent-dark: #9E3F16;
  --re-line:        rgba(24, 18, 16, 0.10);
  --re-line-dark:   rgba(24, 18, 16, 0.20);
  --re-shell:       1240px;
  --re-pad:         clamp(20px, 5vw, 64px);
  --re-bar-h:       68px;
  --re-bar-offset:  0px;
  --re-font:        'NeueMontreal-Regular', 'Neue Montreal', NeueMontreal, sans-serif;
  --re-radius:      12px;
}

/* =============================================================
   BASE
   ============================================================= */

.re-single,
.re-archive,
.re-catalog,
.re-crs,
.re-modal,
.re-interest,
.re-lb {
  font-family: var(--re-font);
}

.re-single,
.re-archive {
  background: var(--re-bg);
  color: var(--re-text);
  min-height: 60vh;
}

.re-single__shell,
.re-archive__shell {
  max-width: var(--re-shell);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--re-pad);
  display: grid;
  gap: 40px;
}

/* =============================================================
   BACK LINK
   ============================================================= */

.re-breadcrumb { margin-bottom: -24px; }

.re-back {
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--re-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  font-family: var(--re-font);
}
.re-back:hover { color: var(--re-accent); }

/* =============================================================
   KICKER
   ============================================================= */

.re-kicker {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--re-accent);
  margin-bottom: 8px;
  font-family: var(--re-font);
}

/* =============================================================
   SINGLE — HEADER
   ============================================================= */

.re-single__header {
  display: grid;
  gap: 6px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--re-line-dark);
}

.re-single__title {
  font-family: var(--re-font);
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.96;
  margin: 0;
  text-transform: uppercase;
  word-break: break-word;
}

/* =============================================================
   SINGLE — 2-COL LAYOUT
   ============================================================= */

.re-single__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 860px) {
  .re-single__layout {
    grid-template-columns: 1fr 320px;
    gap: 56px;
  }
}

/* =============================================================
   HERO IMAGE — mix-blend makes white bg disappear
   ============================================================= */

.re-single__image-box {
  background: transparent;
  border: none;
}

.re-hero-img,
.re-single__image-box img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  border-radius: var(--re-radius);
}

/* =============================================================
   PANEL (specs + actions)
   ============================================================= */

.re-single__panel {
  display: grid;
  gap: 28px;
}

@media (min-width: 860px) {
  .re-single__panel {
    position: sticky;
    top: 24px;
  }
}

.re-panel-block {
  background: transparent;
  border: none;
  padding: 0;
}

/* =============================================================
   SECTION HEADS
   ============================================================= */

.re-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.re-section-head span {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--re-muted);
  white-space: nowrap;
  font-family: var(--re-font);
}

.re-section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--re-line-dark);
}

/* =============================================================
   SPECS
   ============================================================= */

.re-specs { margin: 0; padding: 0; }

.re-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--re-line);
}
.re-spec:first-child { border-top: 1px solid var(--re-line); }

.re-spec__key {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--re-muted);
  margin: 0;
  flex-shrink: 0;
  font-family: var(--re-font);
}

.re-spec__val {
  font-family: var(--re-font);
  font-size: 15px;
  text-align: right;
  margin: 0;
}

/* =============================================================
   CTA BUTTONS (single panel)
   ============================================================= */

.re-panel-actions { display: grid; gap: 10px; }

.re-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  border: none;
  font-family: var(--re-font);
  border-radius: 100px;
}

.re-cta--primary { background: var(--re-accent); color: #fff; }
.re-cta--primary:hover { background: var(--re-accent-dark); color: #fff; }
.re-cta__arrow { font-style: normal; }

.re-cta--secondary {
  background: transparent;
  color: var(--re-text);
  border: 1.5px solid var(--re-line-dark);
  border-radius: 100px;
}
.re-cta--secondary:hover { background: rgba(0,0,0,0.04); }

/* =============================================================
   DESCRIPTION
   ============================================================= */

.re-single__desc {
  background: transparent;
  border: none;
  padding: 0;
}

.re-richtext :where(p, ul, ol) { margin: 0 0 12px; }
.re-richtext :where(ul, ol)    { padding-left: 1.3em; }
.re-richtext :where(li)        { margin: 0 0 5px; }
.re-richtext :where(h2, h3)    { margin: 18px 0 10px; }
.re-richtext > :last-child     { margin-bottom: 0; }

/* =============================================================
   GALLERY
   ============================================================= */

.re-single__gallery { display: grid; }

.re-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 580px) {
  .re-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.re-gallery-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border-radius: 8px;
}

.re-gallery-img,
.re-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  transition: transform 0.24s ease;
}
.re-gallery-thumb:hover img { transform: scale(1.07); }

/* =============================================================
   ARCHIVE HEADER
   ============================================================= */

.re-archive__header {
  display: grid;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--re-line-dark);
}

.re-archive__title {
  font-family: var(--re-font);
  font-size: clamp(32px, 5vw, 64px);
  text-transform: uppercase;
  margin: 0;
  line-height: 0.96;
}

.re-archive__sub {
  font-size: 13px;
  color: var(--re-muted);
  margin: 0;
  font-family: var(--re-font);
}

/* =============================================================
   CATALOG SHORTCODE
   ============================================================= */

.re-catalog { display: grid; gap: 48px; }

/* =============================================================
   SHARED CARD GRID
   ============================================================= */

.re-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) { .re-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 800px) { .re-card__photo { height: 200px; } }
@media (max-width: 440px) { .re-catalog-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .re-card__photo { height: 220px; } }

/* =============================================================
   CARD
   ============================================================= */

.re-card {
  background: rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.22s ease;
}
.re-card:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.11);
}

/* Kill any theme-injected pseudo icons on links inside cards */
.re-card a::before,
.re-card a::after { display: none !important; content: '' !important; }

.re-card__link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.re-card__photo {
  height: 320px;
  overflow: hidden;
  background: transparent;
  position: relative;
}

.re-card__img,
.re-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  display: block;
  mix-blend-mode: multiply;
  transition: transform 0.30s ease;
}

.re-card:hover .re-card__img,
.re-card:hover .re-card__photo img { transform: scale(1.05); }

.re-card__photo-empty {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.04);
}

.re-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--re-accent);
  color: #fff;
  font-family: var(--re-font);
  font-size: 11px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
}

.re-card__body {
  padding: 14px 18px 20px;
  border-top: 2px solid var(--re-accent);
}

.re-card__name {
  font-family: var(--re-font);
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 5px;
  color: var(--re-text);
}

.re-card__meta {
  font-family: var(--re-font);
  font-size: 12px;
  color: var(--re-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================
   LOAD MORE
   ============================================================= */

.re-catalog__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.re-load-more {
  padding: 14px 40px;
  background: transparent;
  color: var(--re-text);
  border: 1.5px solid var(--re-line-dark);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--re-font);
  transition: background 0.18s;
  border-radius: 100px;
}
.re-load-more:hover { background: rgba(0,0,0,0.05); }
.re-load-more.is-loading { opacity: 0.5; pointer-events: none; }
.re-catalog__note { font-size: 13px; color: var(--re-muted); font-family: var(--re-font); }

/* =============================================================
   PAGINATION
   ============================================================= */

.re-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.re-page a, .re-page span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--re-line-dark);
  text-decoration: none;
  color: var(--re-text);
  font-size: 12px;
  transition: background 0.15s;
  border-radius: 100px;
  font-family: var(--re-font);
}
.re-page a:hover { background: rgba(0,0,0,0.06); }
.re-page .current { background: var(--re-accent); color: #fff; border-color: var(--re-accent); }

/* =============================================================
   CAROUSEL
   ============================================================= */

.re-crs { display: grid; gap: 12px; font-family: var(--re-font); }
.re-crs__top { display: flex; justify-content: flex-end; }
.re-crs__controls { display: inline-flex; gap: 6px; }

.re-crs__btn {
  appearance: none;
  border: 1.5px solid var(--re-line-dark);
  background: transparent;
  color: var(--re-text);
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--re-font);
  border-radius: 100px;
}
.re-crs__btn:hover { background: rgba(0,0,0,0.05); }
.re-crs__btn:disabled { opacity: 0.28; cursor: default; }

.re-crs__viewport {
  overflow-x: auto; overflow-y: hidden; outline: none;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.re-crs__viewport::-webkit-scrollbar { display: none; }

.re-crs__track { display: flex; gap: 12px; }

.re-crs__slide { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 580px)  { .re-crs__slide { flex-basis: calc((100% - 12px)  / 2); } }
@media (min-width: 900px)  { .re-crs__slide { flex-basis: calc((100% - 24px)  / 3); } }
@media (min-width: 1200px) { .re-crs__slide { flex-basis: calc((100% - 36px)  / 4); } }

.re-crs__link { display: block; text-decoration: none; color: inherit; }

.re-crs__photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--re-radius);
}

.re-crs__img, .re-crs__photo img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  mix-blend-mode: multiply;
  transition: transform 0.28s ease;
}
.re-crs__img--empty { aspect-ratio: 3/2; background: rgba(0,0,0,0.04); }
.re-crs__link:hover .re-crs__img,
.re-crs__link:hover .re-crs__photo img { transform: scale(1.05); }

.re-crs__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 2px;
  border-top: 2px solid var(--re-accent);
  gap: 10px;
}
.re-crs__name {
  font-size: 13px;
  font-family: var(--re-font);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.re-crs__arr { font-size: 16px; color: var(--re-accent); flex-shrink: 0; }

/* =============================================================
   INTEREST BAR
   ============================================================= */

.re-interest {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 9990;
  transform: translateY(var(--re-bar-offset, 0px));
  transition: transform 0.18s ease;
  pointer-events: none;
}

body.re-has-bar .re-single__shell {
  padding-bottom: calc(var(--re-bar-h) + 40px);
}

.re-interest__inner {
  pointer-events: auto;
  max-width: var(--re-shell);
  margin: 0 auto;
  padding: 10px var(--re-pad);
}

.re-interest__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  background: var(--re-accent);
  box-shadow: 0 -6px 32px rgba(0,0,0,0.18);
  border-radius: 16px 16px 0 0;
}

.re-interest__text { display: grid; gap: 2px; flex: 1; min-width: 0; }

.re-interest__headline {
  font-size: 13px;
  text-transform: uppercase;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--re-font);
}

.re-interest__sub {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  font-family: var(--re-font);
}

.re-interest__btns { display: flex; gap: 8px; flex-shrink: 0; }

.re-interest__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--re-font);
  border-radius: 100px;
}

.re-interest__btn--primary { background: #fff; color: var(--re-accent); border-color: #fff; }
.re-interest__btn--primary:hover { background: rgba(255,255,255,0.88); }
.re-interest__btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.re-interest__btn--ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.8); color: #fff; }

@media (max-width: 600px) {
  :root { --re-bar-h: 128px; }
  .re-interest__bar { flex-direction: column; align-items: stretch; gap: 12px; border-radius: 12px 12px 0 0; }
  .re-interest__btns { flex-direction: column; gap: 8px; }
  .re-interest__btn { width: 100%; }
}

/* =============================================================
   MODAL
   ============================================================= */

.re-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.re-modal.is-open { display: block; }

.re-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}

.re-modal__dialog {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.re-modal__card {
  width: min(720px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--re-bg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.30);
  border-radius: 20px;
}

.re-modal__head {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--re-line-dark);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--re-bg);
  border-radius: 20px 20px 0 0;
  z-index: 1;
}

.re-modal__car-name {
  font-family: var(--re-font);
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1.2;
}

.re-modal__sub {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--re-muted);
  margin-top: 4px;
  font-family: var(--re-font);
}

.re-modal__close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.07);
  border: none;
  color: var(--re-text);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  border-radius: 100px;
  font-family: inherit;
}
.re-modal__close:hover { background: rgba(0,0,0,0.14); }

.re-modal__body { padding: 28px 28px 32px; }

/* =============================================================
   FORMIDABLE FORM (inside modal)
   ============================================================= */

.re-modal__body .frm_forms,
.re-modal__body form {
  font-family: var(--re-font) !important;
}

.re-modal__body .frm_form_field {
  margin-bottom: 14px !important;
}

.re-modal__body .frm_primary_label,
.re-modal__body label {
  font-family: var(--re-font) !important;
  font-size: 11px !important;
  text-transform: uppercase;
  color: var(--re-muted) !important;
  display: block;
  margin-bottom: 6px !important;
}

.re-modal__body input[type="text"],
.re-modal__body input[type="email"],
.re-modal__body input[type="tel"],
.re-modal__body input[type="number"],
.re-modal__body input[type="url"],
.re-modal__body textarea,
.re-modal__body select,
.re-modal__body .with_frm_style input[type="text"],
.re-modal__body .with_frm_style input[type="email"],
.re-modal__body .with_frm_style input[type="tel"],
.re-modal__body .with_frm_style textarea,
.re-modal__body .with_frm_style select {
  font-family: var(--re-font) !important;
  font-size: 15px !important;
  background: rgba(255,255,255,0.70) !important;
  border: 1.5px solid var(--re-line-dark) !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  color: var(--re-text) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s, background 0.15s !important;
  outline: none !important;
  box-shadow: none !important;
}

.re-modal__body input[type="text"]:focus,
.re-modal__body input[type="email"]:focus,
.re-modal__body input[type="tel"]:focus,
.re-modal__body textarea:focus,
.re-modal__body .with_frm_style input:focus,
.re-modal__body .with_frm_style textarea:focus {
  border-color: var(--re-accent) !important;
  background: rgba(255,255,255,0.92) !important;
}

.re-modal__body textarea,
.re-modal__body .with_frm_style textarea {
  min-height: 100px;
  resize: vertical;
}

.re-modal__body .frm_submit {
  margin-top: 20px !important;
}

.re-modal__body .frm_submit button[type="submit"],
.re-modal__body .frm_submit input[type="submit"],
.re-modal__body button[type="submit"],
.re-modal__body input[type="submit"] {
  font-family: var(--re-font) !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  background: var(--re-accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 15px 36px !important;
  cursor: pointer !important;
  border-radius: 100px !important;
  transition: background 0.18s !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: none !important;
}
.re-modal__body .frm_submit button[type="submit"]:hover,
.re-modal__body .frm_submit input[type="submit"]:hover,
.re-modal__body button[type="submit"]:hover,
.re-modal__body input[type="submit"]:hover {
  background: var(--re-accent-dark) !important;
}

.re-modal__body .frm_error,
.re-modal__body .frm_error_style {
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
  font-family: var(--re-font);
}

.re-modal__body .frm_message {
  font-family: var(--re-font);
  color: var(--re-text);
  padding: 16px 0;
}

/* =============================================================
   LIGHTBOX
   ============================================================= */

.re-lb { position: fixed; inset: 0; z-index: 99999; display: none; }
.re-lb.is-open { display: block; }
.re-lb__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(4px); }
.re-lb__dialog { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; }
.re-lb__inner { position: relative; width: min(1100px, 92vw); max-height: 88vh; }
.re-lb__figure { margin: 0; background: var(--re-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; }
.re-lb__img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; }

.re-lb__btn {
  position: absolute;
  background: rgba(237,229,216,0.94);
  color: var(--re-text);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  border: none;
  line-height: 1;
  z-index: 1;
  transition: background 0.14s;
  font-family: var(--re-font);
  border-radius: 100px;
}
.re-lb__btn:hover { background: var(--re-bg); }

.re-lb__close { top: 12px; right: 12px; }
.re-lb__prev, .re-lb__next { top: 50%; transform: translateY(-50%); }
.re-lb__prev { left: 12px; }
.re-lb__next { right: 12px; }
.re-lb__count {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(237,229,216,0.88);
  padding: 5px 12px;
  font-size: 11px;
  border-radius: 100px;
  font-family: var(--re-font);
}

@media (max-width: 600px) {
  .re-lb__prev, .re-lb__next { top: auto; transform: none; bottom: 12px; }
}

/* =============================================================
   MISC
   ============================================================= */

.re-muted { color: var(--re-muted); }

/* =============================================================
   THEME OVERRIDES
   ============================================================= */

@media (max-width: 767px) {
  .u-header { min-height: 50px !important; }
}
