/* =========================================================================
   LMX Deals — Product Comparison Page Styles
   Scoped under .lmx-cmp (all comparison pages) + .lmx-cmp-baton (this specific page)
   Load via wp_enqueue_style in functions.php, OR append to style.css
   ========================================================================= */

/* ═══ GOOGLE FONTS IMPORT ═══ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ═══ SCOPED RESET + VARIABLES ═══ */
.lmx-cmp {
  --c-navy: #0e1e3d;
  --c-navy-deep: #080f1f;
  --c-gold: #f0a500;
  --c-gold-light: #ffd666;
  --c-gold-dim: #c58800;
  --c-white: #ffffff;
  --c-gray-200: #d4d8de;
  --c-gray-400: #8892a0;
  --c-gray-600: #4a5568;
  --c-red-sale: #e53e3e;
  --c-ultra: #4ecdc4;
  --c-pro: #ff8c42;
  --f-display: 'Syne', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pad-section: clamp(56px, 9vw, 110px);

  position: relative;
  background: var(--c-navy-deep);
  color: var(--c-white);
  font-family: var(--f-display);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}
.lmx-cmp *,
.lmx-cmp *::before,
.lmx-cmp *::after { box-sizing: border-box; }
.lmx-cmp img { max-width: 100%; height: auto; display: block; }
.lmx-cmp a { text-decoration: none; color: inherit; }
.lmx-cmp h1, .lmx-cmp h2, .lmx-cmp h3,
.lmx-cmp p, .lmx-cmp ul, .lmx-cmp table {
  margin: 0; padding: 0; color: inherit;
}
.lmx-cmp ul { list-style: none; }
.lmx-cmp .lmx-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

/* ═══ HERO BANNER ═══ */
.lmx-cmp .lmx-hero {
  position: relative; width: 100%; min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--c-navy-deep);
  padding: 60px 0;
}
.lmx-cmp .lmx-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.lmx-cmp .lmx-hero-content {
  position: relative; z-index: 2; text-align: center; padding: 40px 24px;
}
.lmx-cmp .lmx-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 100px;
  border: 1px solid rgba(240,165,0,.3); background: rgba(240,165,0,.06);
  color: var(--c-gold); font-family: var(--f-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 32px;
}
.lmx-cmp .lmx-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-gold); animation: lmx-pulse 2s infinite;
}
@keyframes lmx-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.lmx-cmp .lmx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0; margin: 32px auto 0; max-width: 960px; position: relative;
}
/* Contained vertical split line — only within the product cards area */
.lmx-cmp .lmx-split::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1.5px; transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgba(240,165,0,0) 0%,
    rgba(240,165,0,.6) 30%,
    rgba(240,165,0,1) 50%,
    rgba(240,165,0,.6) 70%,
    rgba(240,165,0,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.lmx-cmp .lmx-side {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 32px; position: relative; z-index: 2;
  min-width: 0; /* allow grid cell to shrink */
}
.lmx-cmp .lmx-side.lmx-ultra {
  background: linear-gradient(135deg, rgba(78,205,196,.08) 0%, rgba(78,205,196,.02) 100%);
  border-radius: 20px 0 0 20px;
  border: 1px solid rgba(78,205,196,.15); border-right: none;
}
.lmx-cmp .lmx-side.lmx-pro {
  background: linear-gradient(135deg, rgba(255,140,66,.08) 0%, rgba(255,140,66,.02) 100%);
  border-radius: 0 20px 20px 0;
  border: 1px solid rgba(255,140,66,.15); border-left: none;
}
.lmx-cmp .lmx-side-img {
  width: 220px; height: 320px; object-fit: contain; margin-bottom: 20px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.6));
  transition: transform .4s;
}
.lmx-cmp .lmx-side:hover .lmx-side-img {
  transform: translateY(-8px) scale(1.03);
}
.lmx-cmp .lmx-side-name {
  font-size: 22px; font-weight: 800; margin-bottom: 8px;
  font-family: var(--f-display);
}
.lmx-cmp .lmx-side-name.lmx-u { color: var(--c-ultra); }
.lmx-cmp .lmx-side-name.lmx-p { color: var(--c-pro); }

.lmx-cmp .lmx-price-row {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px;
}
.lmx-cmp .lmx-price-sale {
  font-size: 32px; font-weight: 900; color: var(--c-red-sale);
  font-family: var(--f-mono);
}
.lmx-cmp .lmx-price-orig {
  font-size: 16px; color: var(--c-gray-400); text-decoration: line-through;
  font-family: var(--f-mono);
}
.lmx-cmp .lmx-save-tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  background: rgba(229,62,62,.15); color: var(--c-red-sale);
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  font-family: var(--f-mono);
}
.lmx-cmp .lmx-stat-row {
  display: flex; gap: 16px; margin-top: 12px;
}
.lmx-cmp .lmx-stat-item { text-align: center; }
.lmx-cmp .lmx-stat-val {
  font-size: 18px; font-weight: 800; font-family: var(--f-mono);
}
.lmx-cmp .lmx-stat-label {
  font-size: 10px; color: var(--c-gray-400);
  text-transform: uppercase; letter-spacing: 1px;
  font-family: var(--f-mono);
}

/* Hero-embedded buy button — same as verdict button, slightly smaller */
.lmx-cmp .lmx-side .lmx-btn-buy {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 13px;
  width: auto;
  min-width: 200px;
}

.lmx-cmp .lmx-vs {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%); z-index: 5;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--c-navy-deep); border: 2px solid var(--c-gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(240,165,0,.25), 0 0 80px rgba(240,165,0,.1);
}
.lmx-cmp .lmx-vs span {
  font-size: 22px; font-weight: 900; color: var(--c-gold);
  letter-spacing: 2px; font-family: var(--f-display);
}

.lmx-cmp .lmx-hero-bottom { margin-top: 32px; text-align: center; }
.lmx-cmp .lmx-hero-sub {
  font-size: clamp(15px,1.8vw,18px); color: var(--c-gray-400);
  max-width: 600px; margin: 0 auto 20px; line-height: 1.6;
}
.lmx-cmp .lmx-sale-notice {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  background: rgba(240,165,0,.08); border: 1px solid rgba(240,165,0,.2);
  font-size: 13px; color: var(--c-gold); font-weight: 600;
}

/* ═══ INTRO ═══ */
.lmx-cmp .lmx-intro {
  padding: var(--pad-section) 0; background: var(--c-navy); position: relative;
}
.lmx-cmp .lmx-intro::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}
.lmx-cmp .lmx-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.lmx-cmp .lmx-intro h2 {
  font-size: clamp(28px,4vw,44px); font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -1px;
}
.lmx-cmp .lmx-intro p {
  font-size: 16px; line-height: 1.75; color: var(--c-gray-200); margin-bottom: 16px;
}
.lmx-cmp .lmx-intro-img {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
}
.lmx-cmp .lmx-intro-img img { width: 100%; display: block; }

.lmx-cmp .lmx-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(78,205,196,.08), rgba(255,140,66,.08));
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(255,255,255,.1);
  font-size: 13px; color: var(--c-gray-400); text-align: center; padding: 20px;
}

/* ═══ SHOWCASE ═══ */
.lmx-cmp .lmx-showcase { padding: var(--pad-section) 0; position: relative; }
.lmx-cmp .lmx-showcase.lmx-alt { background: var(--c-navy); }
.lmx-cmp .lmx-showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.lmx-cmp .lmx-showcase-grid.lmx-reverse { direction: rtl; }
.lmx-cmp .lmx-showcase-grid.lmx-reverse > * { direction: ltr; }
.lmx-cmp .lmx-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--c-gold); margin-bottom: 16px;
  font-family: var(--f-mono);
}
.lmx-cmp .lmx-showcase h3 {
  font-size: clamp(26px,3.5vw,40px); font-weight: 800;
  line-height: 1.15; margin-bottom: 16px; letter-spacing: -.5px;
}
.lmx-cmp .lmx-showcase p {
  font-size: 15px; line-height: 1.75; color: var(--c-gray-200); margin-bottom: 12px;
}
.lmx-cmp .lmx-showcase-img {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.lmx-cmp .lmx-showcase-img img { width: 100%; display: block; }

/* ═══ SPEC TABLE ═══ */
.lmx-cmp .lmx-specs {
  padding: var(--pad-section) 0; background: var(--c-navy-deep);
}
.lmx-cmp .lmx-specs h2 {
  text-align: center; font-size: clamp(28px,4vw,44px);
  font-weight: 800; margin-bottom: 12px; letter-spacing: -1px;
}
.lmx-cmp .lmx-specs .lmx-sub {
  text-align: center; color: var(--c-gray-400);
  font-size: 15px; margin-bottom: 48px;
}
.lmx-cmp .lmx-specs-table {
  width: 100%; border-collapse: collapse;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.lmx-cmp .lmx-specs-table thead th {
  padding: 18px 20px; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--f-mono);
}
.lmx-cmp .lmx-specs-table thead th:first-child { text-align: left; color: var(--c-gray-400); }
.lmx-cmp .lmx-specs-table thead th.lmx-col-u { color: var(--c-ultra); text-align: center; }
.lmx-cmp .lmx-specs-table thead th.lmx-col-p { color: var(--c-pro); text-align: center; }
.lmx-cmp .lmx-specs-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .2s;
}
.lmx-cmp .lmx-specs-table tbody tr:hover { background: rgba(255,255,255,.02); }
.lmx-cmp .lmx-specs-table tbody td {
  padding: 14px 20px; font-size: 14px; vertical-align: middle;
}
.lmx-cmp .lmx-specs-table tbody td:first-child {
  font-weight: 600; color: var(--c-gray-200);
}
.lmx-cmp .lmx-specs-table tbody td:nth-child(2),
.lmx-cmp .lmx-specs-table tbody td:nth-child(3) {
  text-align: center; color: var(--c-white);
}
.lmx-cmp .lmx-winner { font-weight: 700; position: relative; }
.lmx-cmp .lmx-winner.lmx-u { color: var(--c-ultra); }
.lmx-cmp .lmx-winner.lmx-p { color: var(--c-pro); }
.lmx-cmp .lmx-winner::after {
  content: '★'; margin-left: 6px; font-size: 10px; vertical-align: super;
}

/* ═══ BEAM SHOTS ═══ */
.lmx-cmp .lmx-beam {
  padding: var(--pad-section) 0; background: var(--c-navy);
}
.lmx-cmp .lmx-beam h2 {
  text-align: center; font-size: clamp(28px,4vw,44px);
  font-weight: 800; margin-bottom: 12px; letter-spacing: -1px;
}
.lmx-cmp .lmx-beam .lmx-sub {
  text-align: center; color: var(--c-gray-400);
  font-size: 15px; margin-bottom: 48px;
}
.lmx-cmp .lmx-beam-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.lmx-cmp .lmx-beam-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.3); transition: transform .3s;
}
.lmx-cmp .lmx-beam-card:hover { transform: scale(1.02); }
.lmx-cmp .lmx-beam-card img {
  width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover;
}
.lmx-cmp .lmx-beam-label {
  padding: 16px 20px; display: flex;
  justify-content: space-between; align-items: center;
}
.lmx-cmp .lmx-beam-label .lmx-name { font-weight: 700; font-size: 15px; }
.lmx-cmp .lmx-beam-label .lmx-stat {
  font-family: var(--f-mono); font-size: 13px; color: var(--c-gray-400);
}

/* ═══ GALLERY ═══ */
.lmx-cmp .lmx-gallery {
  padding: var(--pad-section) 0; background: var(--c-navy-deep);
}
.lmx-cmp .lmx-gallery h2 {
  text-align: center; font-size: clamp(28px,4vw,44px);
  font-weight: 800; margin-bottom: 48px; letter-spacing: -1px;
}
.lmx-cmp .lmx-gallery-scroll {
  display: flex; gap: 20px; overflow-x: auto; padding: 0 24px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.lmx-cmp .lmx-gallery-scroll::-webkit-scrollbar { height: 6px; }
.lmx-cmp .lmx-gallery-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,.03); border-radius: 3px;
}
.lmx-cmp .lmx-gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--c-gold-dim); border-radius: 3px;
}
.lmx-cmp .lmx-gallery-item {
  flex: 0 0 360px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  scroll-snap-align: start; transition: transform .3s;
}
.lmx-cmp .lmx-gallery-item:hover { transform: translateY(-4px); }
.lmx-cmp .lmx-gallery-item img {
  width: 100%; height: 240px; object-fit: cover; display: block;
}

/* ═══ VERDICT ═══ */
.lmx-cmp .lmx-verdict {
  padding: var(--pad-section) 0; background: var(--c-navy); position: relative;
}
.lmx-cmp .lmx-verdict::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}
.lmx-cmp .lmx-verdict-text { text-align: center; margin-bottom: 48px; }
.lmx-cmp .lmx-verdict-text h2 {
  font-size: clamp(28px,4vw,44px); font-weight: 800;
  margin-bottom: 20px; letter-spacing: -1px;
}
.lmx-cmp .lmx-verdict-text p {
  font-size: 16px; line-height: 1.75; color: var(--c-gray-200);
  max-width: 720px; margin: 0 auto 16px;
}
.lmx-cmp .lmx-verdict-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.lmx-cmp .lmx-verdict-card {
  padding: 40px 32px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  transition: border-color .3s, transform .3s;
}
.lmx-cmp .lmx-verdict-card:hover { transform: translateY(-4px); }
.lmx-cmp .lmx-verdict-card.lmx-card-u:hover { border-color: rgba(78,205,196,.4); }
.lmx-cmp .lmx-verdict-card.lmx-card-p:hover { border-color: rgba(255,140,66,.4); }
.lmx-cmp .lmx-verdict-card h3 {
  font-size: 24px; font-weight: 800; margin-bottom: 8px;
}
.lmx-cmp .lmx-verdict-card .lmx-price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.lmx-cmp .lmx-verdict-card .lmx-price {
  font-size: 32px; font-weight: 900; color: var(--c-red-sale);
  font-family: var(--f-mono);
}
.lmx-cmp .lmx-verdict-card .lmx-price-orig {
  font-size: 16px; color: var(--c-gray-400);
  text-decoration: line-through; font-family: var(--f-mono);
}
.lmx-cmp .lmx-verdict-card .lmx-price-note {
  font-size: 13px; color: var(--c-gray-400); width: 100%;
  margin-bottom: 20px;
}
.lmx-cmp .lmx-verdict-card ul { margin-bottom: 24px; }
.lmx-cmp .lmx-verdict-card ul li {
  padding: 8px 0; font-size: 14px; color: var(--c-gray-200);
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.lmx-cmp .lmx-verdict-card ul li::before {
  content: '✓'; color: var(--c-gold); font-weight: 700; flex-shrink: 0;
}
.lmx-cmp .lmx-btn-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-align: center;
  transition: all .25s; font-family: var(--f-display);
}
.lmx-cmp .lmx-btn-buy.lmx-btn-u { background: var(--c-ultra); color: var(--c-navy); }
.lmx-cmp .lmx-btn-buy.lmx-btn-u:hover {
  background: #3dbdb5; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78,205,196,.3);
}
.lmx-cmp .lmx-btn-buy.lmx-btn-p { background: var(--c-pro); color: var(--c-navy); }
.lmx-cmp .lmx-btn-buy.lmx-btn-p:hover {
  background: #e07830; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,140,66,.3);
}

/* ═══ DISCLOSURE ═══ */
.lmx-cmp .lmx-disclosure {
  padding: 32px 24px; text-align: center;
  border-top: 1px solid rgba(255,255,255,.04);
  background: var(--c-navy-deep);
}
.lmx-cmp .lmx-disclosure p {
  font-size: 11px; color: var(--c-gray-600);
  max-width: 700px; margin: 0 auto; line-height: 1.6;
}

/* ═══ REVEAL ANIMATION ═══ */
.lmx-cmp .lmx-reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.lmx-cmp .lmx-reveal.lmx-visible { opacity: 1; transform: translateY(0); }

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
  .lmx-cmp .lmx-intro-grid,
  .lmx-cmp .lmx-showcase-grid,
  .lmx-cmp .lmx-beam-grid,
  .lmx-cmp .lmx-verdict-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .lmx-cmp .lmx-showcase-grid.lmx-reverse { direction: ltr !important; }

  /* Hero split: stack vertically instead of 2-column grid */
  .lmx-cmp .lmx-split {
    grid-template-columns: 1fr !important;
    max-width: none !important;
    width: 100% !important;
    gap: 0 !important;
  }
  /* Hide the vertical line on mobile */
  .lmx-cmp .lmx-split::before {
    display: none !important;
  }
  /* Round corners: top card = rounded top, bottom card = rounded bottom */
  .lmx-cmp .lmx-side.lmx-ultra {
    border-radius: 20px 20px 0 0 !important;
    border: 1px solid rgba(78,205,196,.15) !important;
    border-bottom: none !important;
    padding: 28px 14px !important;
  }
  .lmx-cmp .lmx-side.lmx-pro {
    border-radius: 0 0 20px 20px !important;
    border: 1px solid rgba(255,140,66,.15) !important;
    border-top: none !important;
    padding: 28px 14px !important;
  }
  /* VS circle: reposition to sit between the two stacked cards */
  .lmx-cmp .lmx-vs {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: -36px auto !important;
    grid-column: 1 !important;
    justify-self: center !important;
    z-index: 10 !important;
  }
  /* Keep images visible and appropriately sized */
  .lmx-cmp .lmx-side-img {
    width: 180px !important;
    height: 180px !important;
    object-fit: contain !important;
  }
  /* Hero content padding */
  .lmx-cmp .lmx-hero {
    min-height: auto;
    padding: 40px 0 60px;
  }
  /* Hero content padding */
  .lmx-cmp .lmx-hero-content {
    padding: 20px 8px !important;
    width: 100% !important;
  }
  /* Container padding: reduce */
  .lmx-cmp .lmx-container {
    padding: 0 12px !important;
  }
  /* Badge smaller */
  .lmx-cmp .lmx-badge {
    margin-bottom: 24px;
    font-size: 11px;
    padding: 5px 14px;
  }
  /* Price row: let it wrap if needed */
  .lmx-cmp .lmx-price-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .lmx-cmp .lmx-price-sale { font-size: 28px; }
  /* Stats row: keep horizontal, smaller */
  .lmx-cmp .lmx-stat-row {
    gap: 24px;
    margin-top: 16px;
    justify-content: center;
  }
  .lmx-cmp .lmx-stat-val { font-size: 16px; }
  /* Buy buttons: full width on mobile */
  .lmx-cmp .lmx-side .lmx-btn-buy {
    width: 100%;
    min-width: 0;
    margin-top: 16px;
  }
  /* Hero bottom text */
  .lmx-cmp .lmx-hero-sub {
    font-size: 14px;
    padding: 0 8px;
  }
  .lmx-cmp .lmx-sale-notice {
    font-size: 12px;
    padding: 8px 14px;
    max-width: 100%;
  }
  /* Intro heading smaller */
  .lmx-cmp .lmx-intro h2 {
    font-size: 28px;
    line-height: 1.2;
  }
  .lmx-cmp .lmx-showcase h3 {
    font-size: 24px;
    line-height: 1.2;
  }
  /* Gallery: smaller cards */
  .lmx-cmp .lmx-gallery-item {
    flex: 0 0 260px;
  }
  .lmx-cmp .lmx-gallery-item img {
    height: 200px;
  }
  /* Specs table: make scrollable horizontally if needed */
  .lmx-cmp .lmx-specs > .lmx-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lmx-cmp .lmx-specs-table {
    font-size: 12px;
    min-width: 480px;
  }
  .lmx-cmp .lmx-specs-table thead th,
  .lmx-cmp .lmx-specs-table tbody td {
    padding: 10px 10px;
  }
  .lmx-cmp .lmx-specs-table thead th {
    font-size: 11px;
    letter-spacing: 1px;
  }
  /* Verdict cards: smaller padding */
  .lmx-cmp .lmx-verdict-card {
    padding: 28px 20px;
  }
  .lmx-cmp .lmx-verdict-card h3 {
    font-size: 22px;
  }
  .lmx-cmp .lmx-verdict-card .lmx-price {
    font-size: 28px;
  }
  /* Beam cards: full width stack */
  .lmx-cmp .lmx-beam-card img {
    aspect-ratio: 16/10;
  }
}

/* ═══ SMALL MOBILE (iPhone SE / narrow) ═══ */
@media (max-width: 400px) {
  .lmx-cmp .lmx-side-img {
    width: 150px;
    height: 150px;
  }
  .lmx-cmp .lmx-stat-row {
    gap: 16px;
  }
  .lmx-cmp .lmx-price-sale { font-size: 24px; }
  .lmx-cmp .lmx-price-orig { font-size: 14px; }
  .lmx-cmp .lmx-side-name { font-size: 20px; }
}

/* ═══ Override for full-bleed layout when used in Blocksy container ═══ */
/* If your theme wraps pages in a narrow container, this breaks out. */
.entry-content .lmx-cmp,
.ct-container .lmx-cmp,
.wp-block-post-content .lmx-cmp {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE OVERRIDE (APPENDED — HIGHEST PRIORITY)
   Appended at end of file so these rules cascade-win over anything earlier.
   Uses body-scoped selectors for higher specificity than any other mobile rule.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body .lmx-cmp .lmx-split {
    grid-template-columns: 1fr !important;
    max-width: none !important;
    width: 100% !important;
    gap: 0 !important;
  }
  body .lmx-cmp .lmx-split::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  body .lmx-cmp .lmx-side {
    padding: 28px 14px !important;
  }
  body .lmx-cmp .lmx-side.lmx-ultra {
    border-radius: 20px 20px 0 0 !important;
    border: 1px solid rgba(78,205,196,.15) !important;
    border-bottom: none !important;
  }
  body .lmx-cmp .lmx-side.lmx-pro {
    border-radius: 0 0 20px 20px !important;
    border: 1px solid rgba(255,140,66,.15) !important;
    border-top: none !important;
  }
  body .lmx-cmp .lmx-vs {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: -36px auto !important;
    justify-self: center !important;
    z-index: 10 !important;
  }
  body .lmx-cmp .lmx-hero {
    min-height: auto !important;
    padding: 40px 0 60px !important;
  }
  body .lmx-cmp .lmx-hero-content {
    padding: 20px 8px !important;
    width: 100% !important;
  }
  body .lmx-cmp .lmx-side-img {
    width: 180px !important;
    height: 180px !important;
    object-fit: contain !important;
  }
  body .lmx-cmp .lmx-stat-row {
    gap: 24px !important;
    justify-content: center !important;
  }
  body .lmx-cmp .lmx-stat-val { font-size: 16px !important; }
  body .lmx-cmp .lmx-price-row {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  body .lmx-cmp .lmx-price-sale { font-size: 28px !important; }
  body .lmx-cmp .lmx-side .lmx-btn-buy {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 16px !important;
  }
  body .lmx-cmp .lmx-intro-grid,
  body .lmx-cmp .lmx-showcase-grid,
  body .lmx-cmp .lmx-beam-grid,
  body .lmx-cmp .lmx-verdict-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  body .lmx-cmp .lmx-showcase-grid.lmx-reverse { direction: ltr !important; }
  body .lmx-cmp .lmx-container { padding: 0 12px !important; }
  body .lmx-cmp .lmx-specs > .lmx-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body .lmx-cmp .lmx-specs-table {
    font-size: 12px !important;
    min-width: 480px !important;
  }
  body .lmx-cmp .lmx-specs-table thead th,
  body .lmx-cmp .lmx-specs-table tbody td {
    padding: 10px !important;
  }
  body .lmx-cmp .lmx-verdict-card {
    padding: 28px 20px !important;
  }
  body .lmx-cmp .lmx-gallery-item {
    flex: 0 0 260px !important;
  }
}
@media (max-width: 400px) {
  body .lmx-cmp .lmx-side-img {
    width: 150px !important;
    height: 150px !important;
  }
  body .lmx-cmp .lmx-price-sale { font-size: 24px !important; }
  body .lmx-cmp .lmx-side-name { font-size: 20px !important; }
}
