@import url('/assets/fonts/fonts.css');

.catalog-experience {
  --catalog-bg: #0b0f17;
  --catalog-panel: #0e1420;
  --catalog-ink: #f8fafc;
  --catalog-muted: #94a3b8;
  --catalog-line: rgba(148, 163, 184, 0.18);
  --catalog-signal: #c6ff00;
  position: relative;
  isolation: isolate;
  background: #0b0f17;
  color: #e2e8f0;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: clip;
}
.catalog-experience[data-locale='en'] {
  font-family: 'Plus Jakarta Sans', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}
.catalog-experience *, .catalog-experience *::before, .catalog-experience *::after { box-sizing: border-box; }
.catalog-experience button, .catalog-experience input, .catalog-experience select, .catalog-experience textarea { font: inherit; }
.catalog-experience img { max-width: 100%; }

.bg-tech-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
}
.bg-tech-dots {
  background-size: 24px 24px;
  background-image: radial-gradient(rgba(198,255,0,.15) 1.5px, transparent 1.5px);
}
.glow-green { box-shadow: 0 0 25px -5px rgba(198,255,0,.35); }
.glow-green-sm { box-shadow: 0 0 12px -2px rgba(198,255,0,.25); }
.text-glow { text-shadow: 0 0 20px rgba(198,255,0,.5); }
.glass-panel {
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
}
.glass-card {
  background: rgba(26,35,50,.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.06);
}
.radial-glow { background: radial-gradient(circle at 50% 30%, rgba(198,255,0,.15), transparent 70%); }

/* Catalog motion layer: scan, reveal and restrained depth. */
.catalog-experience::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(198,255,0,.08), transparent 26rem),
    radial-gradient(circle at 88% 48%, rgba(198,255,0,.06), transparent 28rem);
}
.catalog-experience [class*='rounded-2xl'],
.catalog-experience [class*='rounded-xl'] { transform-style: preserve-3d; }
.catalog-experience img { transition: transform .7s cubic-bezier(.2,.75,.2,1), filter .5s ease; }
.catalog-experience button { transition-property: transform, box-shadow, border-color, background-color, color, opacity; transition-duration: .28s; }
.catalog-experience button:not(.catalog-v1-brand-card):hover { transform: translateY(-2px); }
.catalog-experience .catalog-scanline {
  position: absolute; inset-inline: 0; top: 0; height: 1px; opacity: .35;
  background: linear-gradient(90deg, transparent, #c6ff00, transparent);
  animation: catalog-scan 7s linear infinite;
  pointer-events: none;
}
@keyframes catalog-scan { from { transform: translateY(0); } to { transform: translateY(78vh); } }

@media (max-width: 760px) {
  .catalog-experience { overflow-x: hidden; }
  .catalog-experience .catalog-scanline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-experience *, .catalog-experience *::before, .catalog-experience *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .catalog-experience button:hover { transform: none; }
}

/* Brand/product integration layer. */
.catalog-brand-tile {
  perspective: 900px;
  transform: translateZ(0) rotateX(0) rotateY(0);
  box-shadow: 0 14px 34px -28px rgba(198,255,0,.7);
}
.catalog-brand-tile:hover,
.catalog-brand-tile:focus-visible {
  transform: translateY(-5px) rotateX(4deg) rotateY(-3deg) scale(1.025);
  box-shadow: 0 24px 50px -28px rgba(198,255,0,.8);
}
.catalog-brand-spotlight { min-height: 250px; }
@media (prefers-reduced-motion: reduce) {
  .catalog-brand-tile:hover,
  .catalog-brand-tile:focus-visible { transform: none; }
}



/* Unified product discovery: Home category → Brand coverflow → Products. */
.catalog-category-catalog {
  background: radial-gradient(circle at 8% 0%,rgba(198,255,0,.055),transparent 24rem),#0b0f17;
  color:#e8edf5; padding:42px 0 58px;
}
.catalog-discovery-shell { width:min(1280px,calc(100% - 40px)); margin:0 auto; }
.catalog-discovery-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,420px); gap:18px; align-items:center; padding:14px 16px; border:1px solid #20314a; border-radius:17px; background:linear-gradient(135deg,rgba(14,24,40,.96),rgba(10,18,31,.93)); box-shadow:0 16px 38px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.035); overflow:hidden; }
.catalog-discovery-head #catalog-discovery-title { margin:0; color:#fff; font-size:clamp(1.45rem,2.25vw,2.15rem); line-height:1.2; font-weight:900; letter-spacing:-.02em; }
.catalog-discovery-head p { margin:0; color:#94a3b8; font-size:.76rem; line-height:1.75; }
.catalog-eyebrow { display:inline-flex; align-items:center; gap:7px; color:#c6ff00; font-size:.66rem; font-weight:900; }
.catalog-searchbox { width:100%; min-width:0; height:46px; display:flex; align-items:center; gap:9px; padding:0 13px; border:1px solid #2a3952; background:#0c1524; border-radius:13px; color:#8ea0ba; box-sizing:border-box; }
.catalog-searchbox:focus-within { border-color:rgba(198,255,0,.65); box-shadow:0 0 0 3px rgba(198,255,0,.07); }
.catalog-searchbox input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:#eef3fa; font-size:.75rem; }
.catalog-category-tabs { display:flex; gap:8px; overflow-x:auto; padding:15px 1px 8px; scrollbar-width:none; }
.catalog-category-tabs::-webkit-scrollbar { display:none; }
.catalog-category-tabs a { display:flex; flex-direction:column; justify-content:center; text-decoration:none; flex:0 0 auto; min-width:110px; min-height:54px; padding:8px 12px; border:1px solid #26344c; border-radius:13px; background:#10192a; color:#cbd5e1; text-align:inherit; cursor:pointer; transition:.24s ease; }
.catalog-category-tabs a strong,.catalog-category-tabs a span { display:block; }
.catalog-category-tabs a strong { font-size:.72rem; font-weight:900; }
.catalog-category-tabs a span { margin-top:2px; color:#71819a; font-size:.56rem; }
.catalog-category-tabs a:hover { border-color:rgba(198,255,0,.46); background:#131f31; transform:translateY(-2px); }
.catalog-category-tabs a.is-active { border-color:#c6ff00; background:#c6ff00; color:#07101a; box-shadow:0 11px 28px rgba(198,255,0,.15); transform:translateY(-2px); }
.catalog-category-tabs a.is-active span { color:#2d3a00; }
.catalog-category-stage { margin-top:12px; padding:18px; border:1px solid #203049; border-radius:22px; background:linear-gradient(180deg,#0f1827,#0b1320); box-shadow:0 26px 70px rgba(0,0,0,.22); }
.catalog-category-stage__title {
  position:relative;
  height:auto;
  top:auto;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 0 10px;
  padding:13px 15px;
  border:1px solid rgba(255,255,255,.68);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(7,16,26,.88),rgba(19,38,31,.72));
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 14px 30px rgba(7,16,26,.18),inset 0 1px 0 rgba(255,255,255,.18);
}
.catalog-category-stage__title span { color:#c6ff00; font-size:.62rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.catalog-category-stage__title h2 { margin:4px 0 0; color:#fff; font-size:clamp(1.25rem,1.9vw,1.75rem); font-weight:900; text-shadow:0 2px 18px rgba(0,0,0,.28); }
.catalog-category-stage__title p { margin:0; color:#d9e4ef; font-size:.71rem; line-height:1.7; }

.catalog-brand-zone {
  position:relative;
  overflow:hidden;
  border:1px solid rgba(198,255,0,.20);
  border-radius:22px;
  padding:14px 14px 8px;
  background:linear-gradient(rgb(255 255 255 / 56%),rgb(255 255 255 / 82%));
  backdrop-filter:blur(18px) saturate(1.08);
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
  color:#081426;
  box-shadow:0 22px 70px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.72);
}
.catalog-brand-zone::before { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 50% 16%,rgba(198,255,0,.19),transparent 28%),linear-gradient(rgba(8,25,19,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(8,25,19,.035) 1px,transparent 1px); background-size:auto,30px 30px,30px 30px; }
.catalog-brand-zone::after { content:""; position:absolute; width:2px; height:22px; left:50%; bottom:-1px; background:linear-gradient(#c6ff00,transparent); box-shadow:0 0 13px rgba(198,255,0,.55); pointer-events:none; }
.catalog-brand-coverflow { position:relative; z-index:2; min-height:338px; outline:none; user-select:none; touch-action:pan-y; }
.catalog-brand-coverflow__grid { position:absolute; left:12%; right:12%; bottom:45px; height:78px; border-radius:50%; background:radial-gradient(ellipse,rgba(12,28,21,.22),rgba(12,28,21,.035) 54%,transparent 73%); transform:perspective(360px) rotateX(69deg); pointer-events:none; }
.catalog-brand-coverflow__tilt { position:absolute; inset:0 0 38px; transform-style:preserve-3d; transition:transform .5s cubic-bezier(.22,1,.36,1); }
.catalog-brand-coverflow__stage { position:absolute; inset:0; min-height:290px; perspective:1600px; transform-style:preserve-3d; overflow:visible; }
.catalog-v1-brand-card {
  --card-x:0px; --card-y:0px; --card-z:0px; --card-ry:0deg; --card-scale:1; --brand-c1:#8fdc3f; --brand-c2:#3f7d00;
  position:absolute; left:50%; top:55%; width:210px; height:282px; margin:0; padding:0; border:0; border-radius:28px; cursor:pointer; color:#fff; transform-style:preserve-3d; isolation:isolate;
  background:linear-gradient(160deg,var(--brand-c1),var(--brand-c2));
  transform:translate(-50%,-50%) translate3d(var(--card-x),var(--card-y),var(--card-z)) rotateY(var(--card-ry)) scale(var(--card-scale));
  box-shadow:0 34px 54px -26px rgba(15,22,45,.5),inset 0 1px 0 rgba(255,255,255,.42);
  filter:saturate(.9) brightness(.94);
  transition:transform .62s cubic-bezier(.22,1,.36,1),opacity .48s ease,filter .5s ease,box-shadow .5s ease;
}
.catalog-experience .catalog-v1-brand-card:hover {
  filter:saturate(1.02) brightness(1);
  transform:translate(-50%,-50%) translate3d(var(--card-x),calc(var(--card-y) - 3px),var(--card-z)) rotateY(var(--card-ry)) scale(var(--card-scale));
}
.catalog-v1-brand-card.is-active {
  filter:none;
  cursor:default;
  box-shadow:rgba(15,22,45,.54) 0px 39px 62px -20px,rgba(198,255,0,.85) 0px 0px 14px 7px,rgba(198,255,0,.18) 0px 0px 30px 3px,rgba(255,255,255,.48) 0px 1px 5px -4px inset;
}
.catalog-v1-brand-card__inner { position:absolute; inset:0; border-radius:inherit; overflow:hidden; z-index:-1; }
.catalog-v1-brand-card__texture { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.11; mix-blend-mode:soft-light; filter:saturate(.45) contrast(1.15); }
.catalog-v1-brand-card__sheen { position:absolute; inset:0; background:radial-gradient(120% 90% at 30% 0%,rgba(255,255,255,.42),transparent 54%),radial-gradient(140% 110% at 85% 110%,rgba(0,0,20,.32),transparent 60%); }
.catalog-v1-brand-card__daze { position:absolute; inset:0; border-radius:inherit; background:rgba(8,10,26,0); pointer-events:none; transition:background .6s; }
.catalog-v1-brand-card.is-active .catalog-v1-brand-card__daze { background:rgba(8,10,26,.1); }
.catalog-v1-brand-card__foot { position:absolute; left:5%; right:5%; bottom:-42px; height:55px; border-radius:50%; background:radial-gradient(50% 100% at 50% 0%,rgba(10,15,35,.32),transparent 70%); opacity:.32; transition:opacity .55s; }
.catalog-v1-brand-card.is-active .catalog-v1-brand-card__foot { opacity:1; }
.catalog-brand-mascot { position:absolute; left:50%; top:-78px; width:134px; height:146px; z-index:7; pointer-events:none; transform:translateX(-50%) scale(.72); opacity:.9; transition:transform .62s cubic-bezier(.22,1,.36,1),opacity .5s; }
.catalog-brand-mascot.is-active { transform:translateX(-50%) translateY(-7px) scale(.93); opacity:1; }
.catalog-brand-mascot__bob { transform-origin:center; animation:catalogMascotBob 3.1s ease-in-out infinite; }
.catalog-brand-mascot.is-active .catalog-brand-mascot__bob { animation:catalogMascotAlive 2.4s ease-in-out infinite; }
.catalog-brand-mascot__eye { transform-origin:center; animation:catalogMascotBlink 4.8s ease-in-out infinite; }
.catalog-brand-mascot.is-active .catalog-brand-mascot__eye { animation:catalogMascotBlink 3.6s ease-in-out infinite, catalogMascotGlow 1.9s ease-in-out infinite alternate; }
.catalog-brand-mascot__limbs { transform-origin:center; animation:catalogMascotLimbs 3.2s ease-in-out infinite; }
@keyframes catalogMascotBob { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-6px) rotate(.7deg); } }
@keyframes catalogMascotAlive { 0%,100% { transform:translateY(0) rotate(-1deg); } 30% { transform:translateY(-8px) rotate(1.2deg); } 65% { transform:translateY(-3px) rotate(-.4deg); } }
@keyframes catalogMascotBlink { 0%,44%,48%,100% { transform:scaleY(1); } 46% { transform:scaleY(.18); } }
@keyframes catalogMascotGlow { from { filter:drop-shadow(0 0 0 rgba(198,255,0,0)); } to { filter:drop-shadow(0 0 7px rgba(198,255,0,.72)); } }
@keyframes catalogMascotLimbs { 0%,100% { transform:rotate(0deg); } 50% { transform:rotate(.8deg); } }
.catalog-v1-brand-card__name { position:absolute; left:16px; right:16px; top:56%; transform:translateY(-50%) translateZ(28px); font-size:1.18rem; line-height:1.05; font-weight:900; text-align:center; letter-spacing:.02em; text-shadow:0 2px 12px rgba(0,0,0,.25); }
.catalog-v1-brand-card__meta { position:absolute; left:14px; right:14px; bottom:48px; transform:translateZ(18px); font-size:.58rem; line-height:1.35; text-align:center; opacity:.9; color:rgb(255 255 255); background:#00000036; border-radius:10px; min-height:6%; padding:2px 13px; display:flex; align-items:center; justify-content:center; }
.catalog-v1-brand-card__status { position:absolute; left:50%; bottom:17px; transform:translateX(-50%) translateZ(20px); padding:4px 9px; border-radius:999px; background:rgba(5,12,20,.42); border:1px solid rgba(198,255,0,.34); color:#c6ff00; font-size:.55rem; font-weight:850; white-space:nowrap; }
.catalog-v1-brand-card.is-active .catalog-v1-brand-card__status { color:#07101a; background:#c6ff00; border-color:#c6ff00; font-weight:900; }
.catalog-brand-coverflow__controls { position:absolute; z-index:8; left:50%; bottom:3px; transform:translateX(-50%); display:flex; justify-content:center; align-items:center; gap:12px; }
.catalog-brand-coverflow__controls>button { width:32px; height:32px; border:1px solid rgba(17,34,26,.14); background:#fff; color:#15241d; border-radius:10px; font:900 1.05rem/1 sans-serif; cursor:pointer; box-shadow:0 8px 22px rgba(15,31,24,.08); }
.catalog-brand-coverflow__controls>button:disabled { opacity:.27; cursor:default; }
.catalog-brand-coverflow__dots { display:flex; gap:5px; align-items:center; }
.catalog-brand-coverflow__dots i { width:5px; height:5px; border-radius:99px; background:#9aac9f; transition:.25s; }
.catalog-brand-coverflow__dots i.is-active { width:24px; background:#c6ff00; box-shadow:0 0 12px rgba(198,255,0,.45); }
.catalog-results-head { display:flex; justify-content:space-between; align-items:center; margin:15px 0 9px; }
.catalog-results-head div { display:flex; gap:9px; align-items:center; }
.catalog-results-head strong { font-size:.78rem; color:#f3f7fb; }
.catalog-results-head span { color:#c6ff00; font-size:.6rem; }
.catalog-product-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(245px,300px)); gap:14px; align-items:start; justify-content:start; }
.catalog-empty-category { display:flex; flex-direction:column; align-items:center; gap:6px; min-height:124px; justify-content:center; border:1px dashed #31405a; color:#8898ae; border-radius:15px; padding:21px; text-align:center; }
.catalog-empty-category strong { color:#d9e1ec; font-size:.78rem; }
.catalog-empty-category span { font-size:.65rem; }
.catalog-empty-category button { margin-top:6px; border:0; border-radius:9px; background:#c6ff00; color:#07101a; padding:8px 12px; font-size:.64rem; font-weight:900; cursor:pointer; }
.catalog-bom-banner { margin-top:17px; display:flex; align-items:center; justify-content:space-between; gap:22px; border:1px solid rgba(198,255,0,.18); border-radius:16px; padding:16px 18px; background:linear-gradient(90deg,rgba(198,255,0,.055),#0d1624); }
.catalog-bom-banner h3 { margin:0; color:#fff; font-size:.92rem; }
.catalog-bom-banner p { margin:4px 0 0; color:#8997aa; font-size:.66rem; }
.catalog-bom-banner button { border:0; border-radius:10px; background:#c6ff00; color:#07101a; min-height:38px; padding:0 14px; display:flex; align-items:center; gap:6px; font-size:.64rem; font-weight:900; cursor:pointer; }

/* Shared Hero: same interaction/hover quality in FA and EN. */
.catalog-hero__glow { position:absolute; width:26rem; height:26rem; border-radius:50%; filter:blur(54px); pointer-events:none; }
.catalog-hero__glow--a { top:-15rem; left:-10rem; background:rgba(198,255,0,.13); }
.catalog-hero__glow--b { top:35%; right:-13rem; background:rgba(198,255,0,.08); }
.catalog-hero__primary,.catalog-hero__secondary { min-height:48px; border-radius:12px; padding:0 20px; display:inline-flex; align-items:center; gap:8px; font-size:.78rem; font-weight:900; cursor:pointer; transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s,border-color .28s,background .28s; }
.catalog-hero__primary { border:0; background:#c6ff00; color:#07101a; box-shadow:0 15px 34px rgba(198,255,0,.18); }
.catalog-hero__secondary { border:1px solid #33435d; background:#10192a; color:#e5edf7; }
.catalog-hero__primary:hover,.catalog-hero__secondary:hover { transform:translateY(-3px); }
.catalog-hero__primary:hover { box-shadow:0 18px 38px rgba(198,255,0,.31); }
.catalog-hero__secondary:hover { border-color:rgba(198,255,0,.45); background:#142033; }
.catalog-hero__stat { border:1px solid #22314a; background:#0f1828; border-radius:12px; padding:10px 11px; }
.catalog-hero__stat span,.catalog-hero__stat strong { display:block; }
.catalog-hero__stat span { color:#77869c; font-size:.57rem; }
.catalog-hero__stat strong { margin-top:3px; color:#c6ff00; font-size:.72rem; }
.catalog-hero__visual-card { border:1px solid #22314a; border-radius:18px; background:#101827; padding:12px; box-shadow:0 28px 70px rgba(0,0,0,.28); }
.catalog-hero__media { position:relative; height:260px; border-radius:14px; overflow:hidden; }
.catalog-hero__media img { width:100%; height:100%; object-fit:cover; transition:transform .65s cubic-bezier(.2,.8,.2,1),filter .45s; }
.catalog-hero__media:hover img { transform:scale(1.045); filter:saturate(1.08); }
.catalog-hero__media-overlay { position:absolute; inset:0; background:linear-gradient(180deg,transparent 50%,rgba(4,10,18,.75)); }
.catalog-hero__media-tag { position:absolute; bottom:12px; inset-inline-end:12px; display:flex; align-items:center; gap:6px; color:#dff0d7; font-size:.6rem; border:1px solid rgba(198,255,0,.35); background:rgba(4,10,16,.72); border-radius:999px; padding:6px 9px; backdrop-filter:blur(8px); }
.catalog-hero__serial { margin-top:10px; border:1px solid #25334a; border-radius:13px; padding:10px; background:#0c1421; }
.catalog-hero__serial-head { display:flex; justify-content:space-between; align-items:center; gap:8px; color:#dce6f3; font-size:.61rem; }
.catalog-hero__serial-head span { display:flex; align-items:center; gap:5px; font-weight:800; }
.catalog-hero__serial-head small { color:#c6ff00; }
.catalog-hero__serial-row { display:flex; gap:7px; margin-top:8px; }
.catalog-hero__serial-row input { flex:1; min-width:0; border:1px solid #263650; background:#111c2f; border-radius:9px; color:#e5eef9; padding:8px 9px; font-size:.65rem; outline:0; }
.catalog-hero__serial-row button { border:0; border-radius:9px; background:#c6ff00; color:#07101a; padding:0 11px; font-size:.62rem; font-weight:900; cursor:pointer; }
.catalog-hero__serial p { margin:7px 0 0; color:#718198; font-size:.57rem; }
.catalog-hero__controls { margin-top:22px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #1e2a3d; padding-top:14px; }
.catalog-hero__dots { display:flex; align-items:center; gap:5px; }
.catalog-hero__dots button { width:6px; height:6px; padding:0; border:0; border-radius:99px; background:#40516b; cursor:pointer; }
.catalog-hero__dots button.is-active { width:26px; background:#c6ff00; }
.catalog-hero__arrows { display:flex; gap:6px; }
.catalog-hero__arrows button { width:32px; height:30px; display:grid; place-items:center; border:1px solid #283851; background:#111b2b; color:#dbe7f5; border-radius:8px; cursor:pointer; }
.catalog-hero__arrows button:hover { border-color:#c6ff00; color:#c6ff00; }

@media (max-width:760px) {
  .catalog-hero__controls { border-top:0; }
  .catalog-detail-body { gap:16px; padding:16px; }
  .catalog-detail-body img { height:170px; object-fit:contain; }
  .catalog-detail-info { display:flex; flex-direction:column; gap:16px; }
  .catalog-detail-info > * { margin:0; }
  .catalog-detail-specs { order:-1; }
  .catalog-brand-zone .catalog-category-stage__title { display:block; }
  .catalog-brand-zone .catalog-category-stage__title p { position:static; margin-top:8px; }
  .catalog-brand-coverflow { margin-top:22px; }
  .locale .catalog-experience .catalog-v1-brand-card__name { top:52% !important; font-size:18px !important; }
  .locale .catalog-experience .catalog-v1-brand-card__meta { bottom:48px !important; font-size:11px !important; line-height:1.5 !important; }
  .catalog-brand-coverflow__controls>button { width:44px; height:44px; }
}

/* Product cards use one geometry and hover system in FA/EN. */
.catalog-product-card { width:100%; max-width:300px; display:flex; flex-direction:column; overflow:hidden; border:1px solid #26354e; border-radius:15px; background:#101827; transition:transform .28s cubic-bezier(.2,.8,.2,1),border-color .28s,box-shadow .28s; }
.catalog-product-card:hover { transform:translateY(-5px); border-color:rgba(198,255,0,.58); box-shadow:0 18px 40px rgba(0,0,0,.28),0 0 0 1px rgba(198,255,0,.08); }
.catalog-product-card__media { position:relative; width:100%; height:168px; border:0; padding:0; background:#0a111c; overflow:hidden; cursor:pointer; }
.catalog-product-card__media img { width:100%; height:100%; object-fit:cover; transition:transform .42s ease; }
.catalog-product-card:hover .catalog-product-card__media img { transform:scale(1.045); }
.catalog-product-card__brand,.catalog-product-card__stock { position:absolute; top:9px; border-radius:7px; padding:4px 7px; font-size:.52rem; font-weight:900; }
.catalog-product-card__brand { inset-inline-start:9px; background:rgba(7,13,21,.78); color:#c6ff00; border:1px solid rgba(198,255,0,.24); }
.catalog-product-card__stock { inset-inline-end:9px; display:flex; align-items:center; gap:4px; background:rgba(7,13,21,.78); color:#c6ff00; }
.catalog-product-card__body { padding:12px 12px 9px; flex:1; }
.catalog-product-card__badges { display:flex; flex-wrap:wrap; gap:5px; min-height:18px; }
.catalog-product-card__badges span { padding:3px 6px; border-radius:999px; background:#172236; color:#9aacbf; font-size:.48rem; }
.catalog-product-card__title { display:block; width:100%; margin:7px 0 0; padding:0; border:0; background:transparent; color:#f3f6fb; text-align:inherit; font-size:.8rem; line-height:1.5; font-weight:900; cursor:pointer; }
.catalog-product-card__body>p { margin:5px 0 8px; color:#8998ad; font-size:.6rem; line-height:1.65; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.catalog-product-card__specs { display:grid; gap:4px; }
.catalog-product-card__specs div { display:flex; justify-content:space-between; gap:10px; border-radius:7px; background:#0c1421; padding:5px 7px; font-size:.51rem; }
.catalog-product-card__specs span { color:#718097; }
.catalog-product-card__specs strong { color:#d7e0eb; text-align:end; }
.catalog-product-card__warranty { margin-top:8px; display:flex; align-items:center; gap:5px; color:#c6ff00; font-size:.52rem; }
.catalog-product-card__actions { display:grid; grid-template-columns:1fr 1.15fr; gap:6px; padding:9px 10px 11px; }
.catalog-product-card__actions button { min-height:34px; border:1px solid #2b3950; background:#131d2d; color:#c7d1dd; border-radius:8px; display:flex; justify-content:center; align-items:center; gap:4px; font-size:.53rem; font-weight:800; cursor:pointer; }
.catalog-product-card__actions button.primary { border-color:#c6ff00; background:#c6ff00; color:#07101a; }
.catalog-product-card__actions button:hover { transform:translateY(-1px); }

/* Lower product-page sections keep the TSRP signal color. */
.catalog-restored-lower-sections { background:#090e16; }
.catalog-restored-lower-sections [class*="emerald"] { color:inherit; }

/* English lower content follows the same section order. */
.catalog-lower-en { background:#090e16; color:#e8edf5; padding:1px 0 42px; }
.catalog-lower-section { width:min(1120px,calc(100% - 40px)); margin:38px auto 0; border:1px solid #1f2c42; border-radius:18px; padding:26px; background:#0e1624; }
.catalog-lower-section--alt { background:linear-gradient(135deg,#0c1522,#0b111a); }
.catalog-lower-section header>span { color:#c6ff00; font-size:.66rem; font-weight:900; }
.catalog-lower-section h2 { margin:6px 0; color:#fff; font-size:clamp(1.4rem,2.2vw,2rem); }
.catalog-lower-section header>p { max-width:760px; margin:0; color:#8998ad; font-size:.75rem; line-height:1.8; }
.catalog-lower-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:20px; }
.catalog-lower-grid article { border:1px solid #26334a; border-radius:14px; padding:17px; background:#111a29; }
.catalog-lower-grid article i { color:#c6ff00; font-size:.58rem; font-style:normal; font-weight:900; }
.catalog-lower-grid article h3 { margin:8px 0 5px; color:#fff; font-size:.88rem; }
.catalog-lower-grid article p { margin:0; color:#8392a7; font-size:.66rem; line-height:1.7; }
.catalog-lower-grid article button,.catalog-lower-cta { margin-top:13px; border:0; border-radius:9px; background:#c6ff00; color:#07101a; padding:9px 12px; font-size:.62rem; font-weight:900; cursor:pointer; }
.catalog-lower-steps,.catalog-lower-facts { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-top:20px; }
.catalog-lower-steps div,.catalog-lower-facts div { border:1px solid #26334a; border-radius:12px; background:#111a29; padding:13px; }
.catalog-lower-steps b,.catalog-lower-facts strong,.catalog-lower-steps strong,.catalog-lower-facts span { display:block; }
.catalog-lower-steps b,.catalog-lower-facts strong { color:#c6ff00; }
.catalog-lower-steps strong,.catalog-lower-facts span { margin-top:4px; color:#cbd5e1; font-size:.64rem; }
.catalog-lower-facts { grid-template-columns:repeat(3,1fr); }
.catalog-lower-facts strong { font-size:1.35rem; }

.locale-en .catalog-product-card__title,.locale-en .catalog-product-card__body>p { text-align:left; direction:ltr; }

@media (max-width:900px) {
  .catalog-discovery-head { grid-template-columns:1fr; gap:13px; }
  .catalog-category-stage__title,.catalog-bom-banner { align-items:flex-start; flex-direction:column; }
  .catalog-brand-coverflow { min-height:306px; overflow:hidden; }
  .catalog-brand-coverflow__tilt { transform:none!important; }
  .catalog-brand-coverflow__stage { min-height:258px; }
  .catalog-v1-brand-card { width:190px; height:255px; }
  .catalog-brand-mascot { width:116px; height:128px; top:-67px; }
  .catalog-lower-grid { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  .catalog-category-catalog { padding:32px 0 40px; }
  .catalog-discovery-shell { width:min(100% - 22px,1280px); }
  .catalog-category-stage { padding:12px; border-radius:17px; }
  .catalog-category-tabs a { min-width:103px; min-height:54px; }
  .catalog-brand-zone { padding:11px 8px 7px; border-radius:16px; }
  .catalog-brand-coverflow { min-height:284px; }
  .catalog-brand-coverflow__stage { min-height:236px; }
  .catalog-v1-brand-card { width:176px; height:236px; border-radius:24px; }
  .catalog-brand-mascot { width:104px; height:116px; top:-61px; }
  .catalog-v1-brand-card__name { font-size:1rem; }
  .catalog-product-grid { grid-template-columns:1fr; }
  .catalog-product-card { max-width:none; }
  .catalog-hero__media { height:220px; }
  .catalog-lower-section { width:calc(100% - 22px); margin-top:24px; padding:18px; }
  .catalog-lower-steps,.catalog-lower-facts { grid-template-columns:1fr 1fr; }
}

/* Stage 3A.2: one integrated Products hero composition on phones. */
@media (max-width:760px) {
  .catalog-hero > .relative { padding-top:22px; padding-bottom:24px; }
  .catalog-hero > .relative > .grid {
    position:relative;
    min-height:720px;
    display:grid;
    grid-template:"hero" 1fr / 1fr;
  }
  .catalog-hero__copy,
  .catalog-hero__visual { grid-area:hero; }
  .catalog-hero__visual { min-width:0; align-self:stretch; height:100%; z-index:1; }
  .catalog-hero__visual-card {
    position:absolute;
    inset:0;
    padding:0;
    overflow:hidden;
    border-radius:22px;
  }
  .catalog-hero__media { height:100%; border-radius:0; }
  .catalog-hero__media img { object-position:center; }
  .catalog-hero__media-overlay {
    background:linear-gradient(180deg,rgba(4,10,18,.24),rgba(4,10,18,.72) 48%,rgba(4,10,18,.98) 82%);
  }
  .catalog-hero__media-tag { top:14px; bottom:auto; max-width:calc(100% - 28px); }
  .catalog-hero__copy {
    align-self:end;
    padding:60px 20px 188px;
    pointer-events:none;
  }
  .catalog-hero__copy button { pointer-events:auto; }
  .catalog-hero__copy > .grid { display:none; }
  .catalog-hero__serial {
    position:absolute;
    z-index:12;
    inset-inline:14px;
    bottom:54px;
    margin:0;
    background:rgba(7,16,28,.9);
    backdrop-filter:blur(12px);
  }
  .catalog-hero__controls { position:absolute; z-index:14; inset-inline:16px; bottom:12px; margin:0; }
}
@media (prefers-reduced-motion:reduce) {
  .catalog-v1-brand-card,.catalog-brand-mascot,.catalog-brand-coverflow__tilt,.catalog-brand-coverflow__dots i,.catalog-product-card,.catalog-hero__media img,.catalog-brand-mascot__bob { transition:none!important; animation:none!important; }
}

/* Final brand-stage geometry: keep the mascot and full vertical card visible. */
.catalog-brand-coverflow { min-height:390px; }
.catalog-brand-coverflow__tilt { inset:0 0 42px; }
.catalog-brand-coverflow__stage { min-height:340px; }
.catalog-v1-brand-card { top:64%; width:216px; height:292px; }
.catalog-brand-mascot { top:-74px; }
.catalog-v1-brand-card__name { top:57%; }
@media (max-width:900px) {
  .catalog-brand-coverflow { min-height:342px; }
  .catalog-brand-coverflow__stage { min-height:296px; }
  .catalog-v1-brand-card { top:62%; width:190px; height:255px; }
}
@media (max-width:560px) {
  .catalog-brand-coverflow { min-height:316px; }
  .catalog-brand-coverflow__stage { min-height:270px; }
  .catalog-v1-brand-card { top:62%; width:176px; height:236px; }
}

/* S03-B8: reserve headroom inside the clipped phone coverflow, including
   antenna/crown silhouettes and the existing upward bob. Keep stage geometry. */
@media (max-width:560px) {
  .catalog-brand-coverflow { min-height:364px; }
  .catalog-brand-coverflow__tilt { inset:48px 0 42px; }
}

/* Global typography bridge for product page surfaces. */
.locale-fa, .locale-fa button, .locale-fa input, .locale-fa textarea, .locale-fa select { font-family:'Vazirmatn',-apple-system,BlinkMacSystemFont,sans-serif; }
.locale-en, .locale-en button, .locale-en input, .locale-en textarea, .locale-en select { font-family:'Plus Jakarta Sans','Vazirmatn',-apple-system,BlinkMacSystemFont,sans-serif; }

/* ===== Reference 28 — ONIKUMA product-banner carousel translated to TSRP ===== */
.catalog-product-spotlight {
  width:min(1280px,calc(100% - 44px));
  margin:38px auto 10px;
  padding:0;
}
.catalog-product-spotlight__head {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(260px,.95fr);
  gap:28px;
  align-items:end;
  margin-bottom:16px;
}
.catalog-product-spotlight__head span {
  display:block;
  color:#c6ff00;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.14em;
}
.catalog-product-spotlight__head h2 {
  margin:7px 0 0;
  color:#f6f8fb;
  font-size:clamp(1.2rem,2.15vw,1.9rem);
  line-height:1.35;
}
.catalog-product-spotlight__head p {
  margin:0;
  color:#8e9db0;
  font-size:.72rem;
  line-height:1.9;
}
.catalog-product-spotlight__viewport {
  position:relative;
  min-height:340px;
  overflow:hidden;
  border:1px solid #243249;
  border-radius:24px;
  background:#0a101a;
  box-shadow:0 22px 64px rgba(0,0,0,.22);
  isolation:isolate;
}
.catalog-product-spotlight__slide {
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(1.025);
  pointer-events:none;
  transition:opacity .55s ease,transform 1.15s cubic-bezier(.2,.8,.2,1);
}
.catalog-product-spotlight__slide.is-active {
  opacity:1;
  transform:scale(1);
  pointer-events:auto;
}
.catalog-product-spotlight__slide img {
  width:100%;
  height:100%;
  min-height:340px;
  object-fit:cover;
  object-position:center;
}
.catalog-product-spotlight__shade {
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(5,10,17,.92) 0%,rgba(5,10,17,.68) 35%,rgba(5,10,17,.18) 68%,rgba(5,10,17,.08) 100%),
    linear-gradient(0deg,rgba(5,10,17,.44),transparent 55%);
}
.locale-fa .catalog-product-spotlight__shade {
  background:
    linear-gradient(270deg,rgba(5,10,17,.92) 0%,rgba(5,10,17,.68) 35%,rgba(5,10,17,.18) 68%,rgba(5,10,17,.08) 100%),
    linear-gradient(0deg,rgba(5,10,17,.44),transparent 55%);
}
.catalog-product-spotlight__copy {
  position:absolute;
  inset-block-end:48px;
  inset-inline-start:42px;
  z-index:2;
  width:min(470px,calc(100% - 84px));
}
.catalog-product-spotlight__copy>span {
  display:inline-flex;
  padding:6px 10px;
  border:1px solid rgba(198,255,0,.36);
  border-radius:999px;
  background:rgba(6,14,23,.66);
  color:#c6ff00;
  font-size:.57rem;
  font-weight:900;
  backdrop-filter:blur(8px);
}
.catalog-product-spotlight__copy h3 {
  margin:10px 0 6px;
  color:#fff;
  font-size:clamp(1.35rem,2.45vw,2.25rem);
  line-height:1.25;
}
.catalog-product-spotlight__copy p {
  max-width:430px;
  margin:0;
  color:#c4ceda;
  font-size:.74rem;
  line-height:1.85;
}
.catalog-product-spotlight__controls {
  position:absolute;
  z-index:3;
  inset-inline-end:18px;
  inset-block-end:18px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  background:rgba(5,11,18,.72);
  backdrop-filter:blur(10px);
}
.catalog-product-spotlight__controls>button {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid #344359;
  border-radius:50%;
  background:#111b2a;
  color:#e6edf6;
  font-size:1.15rem;
  cursor:pointer;
  transition:border-color .2s,color .2s,transform .2s;
}
.catalog-product-spotlight__controls>button:hover,
.catalog-product-spotlight__controls>button:focus-visible {
  border-color:#c6ff00;
  color:#c6ff00;
  transform:translateY(-1px);
}
.catalog-product-spotlight__dots {
  display:flex;
  align-items:center;
  gap:5px;
}
.catalog-product-spotlight__dots button {
  width:7px;
  height:7px;
  padding:0;
  border:0;
  border-radius:99px;
  background:#56657a;
  cursor:pointer;
  transition:width .25s ease,background-color .25s ease;
}
.catalog-product-spotlight__dots button.is-active {
  width:25px;
  background:#c6ff00;
}
@media(max-width:760px) {
  .catalog-product-spotlight { width:calc(100% - 22px); margin-top:26px; }
  .catalog-product-spotlight__head { grid-template-columns:1fr; gap:8px; }
  .catalog-product-spotlight__viewport { min-height:390px; border-radius:19px; }
  .catalog-product-spotlight__slide img { min-height:390px; }
  .catalog-product-spotlight__shade,
  .locale-fa .catalog-product-spotlight__shade {
    background:linear-gradient(0deg,rgba(5,10,17,.96) 0%,rgba(5,10,17,.62) 46%,rgba(5,10,17,.08) 78%);
  }
  .catalog-product-spotlight__copy { inset-inline:18px; inset-block-end:70px; width:auto; }
  .catalog-product-spotlight__controls { inset-inline-end:12px; inset-block-end:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .catalog-product-spotlight__slide,
  .catalog-product-spotlight__controls>button,
  .catalog-product-spotlight__dots button { transition:none!important; }
}

/* ===== Reference 32 — Smart Choice translated: quick infrastructure selector ===== */
.catalog-quick-choice{width:min(1240px,calc(100% - 36px));margin:34px auto 44px;padding:30px;border:1px solid rgba(148,163,184,.18);border-radius:28px;background:linear-gradient(145deg,#fff,#f4f7f8);box-shadow:0 20px 54px rgba(7,20,38,.08)}
.catalog-quick-choice__head{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:40px;align-items:end;margin-bottom:24px}
.catalog-quick-choice__head span{display:block;margin-bottom:9px;color:#6e8d00;font-size:11px;font-weight:900;letter-spacing:.08em}
.catalog-quick-choice__head h2{margin:0;color:#071426;font-size:clamp(28px,3.1vw,44px);line-height:1.15;letter-spacing:-.035em}
.catalog-quick-choice__head p{margin:0;color:#667586;font-size:13px;line-height:1.9}
.catalog-quick-choice__tabs{display:flex;gap:9px;overflow-x:auto;padding:3px 2px 14px;scroll-snap-type:x proximity;scrollbar-width:none}
.catalog-quick-choice__tabs::-webkit-scrollbar{display:none}
.catalog-quick-choice__tabs button{flex:0 0 auto;min-height:43px;padding:0 18px;border:1px solid rgba(74,96,118,.18);border-radius:999px;background:#fff;color:#344456;font:800 12px/1 var(--tsrp-font-en);cursor:pointer;scroll-snap-align:start;transition:transform .22s ease,border-color .22s ease,background-color .22s ease,color .22s ease,box-shadow .22s ease}
.catalog-quick-choice__tabs button:hover,.catalog-quick-choice__tabs button:focus-visible{transform:translateY(-2px);border-color:rgba(198,255,0,.7);box-shadow:0 8px 20px rgba(7,20,38,.07)}
.catalog-quick-choice__tabs button.is-active{border-color:#c6ff00;background:#071426;color:#fff;box-shadow:inset 0 -3px #c6ff00,0 8px 24px rgba(7,20,38,.14)}
.catalog-quick-choice__panel{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);min-height:310px;overflow:hidden;border:1px solid rgba(89,111,131,.14);border-radius:24px;background:#fff}
.catalog-quick-choice__panel figure{position:relative;min-height:310px;margin:0;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#f7f9f9,#eaf0f1)}
.catalog-quick-choice__panel figure::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(198,255,0,.09),transparent 45%);pointer-events:none}
.catalog-quick-choice__panel figure img{position:relative;z-index:1;max-width:82%;max-height:220px;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(7,20,38,.17));transition:transform .35s cubic-bezier(.22,1,.36,1)}
.catalog-quick-choice__panel:hover figure img{transform:scale(1.035)}
.catalog-quick-choice__panel figure span{position:absolute;z-index:2;inset-inline-start:18px;bottom:16px;padding:7px 10px;border-radius:999px;background:#071426;color:#c6ff00;font:800 10px/1 var(--tsrp-font-en);letter-spacing:.06em}
.catalog-quick-choice__content{padding:34px;display:flex;flex-direction:column;justify-content:center}
.catalog-quick-choice__content small{color:#769600;font-size:10px;font-weight:900;letter-spacing:.09em}
.catalog-quick-choice__content h3{margin:10px 0 10px;color:#071426;font-size:clamp(25px,2.4vw,36px);line-height:1.2}
.catalog-quick-choice__content p{max-width:680px;margin:0;color:#687687;font-size:13px;line-height:1.9}
.catalog-quick-choice__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.catalog-quick-choice__actions button{min-height:43px;padding:0 18px;border:1px solid #071426;border-radius:12px;background:#071426;color:#fff;font:850 12px/1 inherit;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease,border-color .2s ease}
.catalog-quick-choice__actions button:hover,.catalog-quick-choice__actions button:focus-visible{transform:translateY(-2px);box-shadow:0 10px 24px rgba(7,20,38,.14)}
.catalog-quick-choice__actions button.is-ghost{border-color:rgba(7,20,38,.18);background:#fff;color:#071426}
.catalog-quick-choice__actions button.is-ghost:hover,.catalog-quick-choice__actions button.is-ghost:focus-visible{border-color:#c6ff00;background:#faffea}
@media(max-width:860px){.catalog-quick-choice{width:calc(100% - 22px);padding:20px;border-radius:22px}.catalog-quick-choice__head{grid-template-columns:1fr;gap:10px}.catalog-quick-choice__panel{grid-template-columns:1fr}.catalog-quick-choice__panel figure{min-height:230px}.catalog-quick-choice__content{padding:24px}}
@media(max-width:560px){.catalog-quick-choice__head h2{font-size:30px}.catalog-quick-choice__tabs{margin-inline:-4px}.catalog-quick-choice__panel figure{min-height:205px}.catalog-quick-choice__panel figure img{max-height:150px}.catalog-quick-choice__content{padding:20px}.catalog-quick-choice__actions{display:grid;grid-template-columns:1fr}.catalog-quick-choice__actions button{width:100%}}
@media(prefers-reduced-motion:reduce){.catalog-quick-choice__tabs button,.catalog-quick-choice__panel figure img,.catalog-quick-choice__actions button{transition:none!important}.catalog-quick-choice__tabs button:hover,.catalog-quick-choice__tabs button:focus-visible,.catalog-quick-choice__panel:hover figure img,.catalog-quick-choice__actions button:hover,.catalog-quick-choice__actions button:focus-visible{transform:none!important}}

/* ===== Real same-category comparison matrix — final fix ===== */
.catalog-compare-dock {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(7,14,24,.98), rgba(9,18,30,.98));
}
.catalog-compare-workspace {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}
.catalog-compare-summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,.72fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(198,255,0,.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(198,255,0,.08), transparent 28rem),
    #0b1422;
}
.catalog-compare-summary > div:first-child { min-width: 0; }
.catalog-compare-summary > div:first-child > span {
  display: inline-flex;
  color: #c6ff00;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.catalog-compare-summary h3 {
  margin: 6px 0 7px;
  color: #f7fafc;
  font-size: 1rem;
  line-height: 1.5;
}
.catalog-compare-summary p {
  max-width: 820px;
  margin: 0;
  color: #9cabbd;
  font-size: .68rem;
  line-height: 1.85;
}
.catalog-compare-ranking {
  display: grid;
  gap: 6px;
  align-content: center;
}
.catalog-compare-ranking > div {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #25344a;
  border-radius: 10px;
  background: #0d1726;
}
.catalog-compare-ranking > div.is-winner {
  border-color: rgba(198,255,0,.5);
  background: linear-gradient(90deg, rgba(198,255,0,.09), #0d1726 55%);
}
.catalog-compare-ranking b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #172236;
  color: #c6ff00;
  font-size: .6rem;
}
.catalog-compare-ranking span {
  min-width: 0;
  overflow: hidden;
  color: #dbe4ef;
  font-size: .59rem;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.catalog-compare-ranking strong {
  color: #f5f8fc;
  font-size: .68rem;
}
.catalog-compare-matrix-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(84,105,134,.27);
  border-radius: 15px;
  background: #09111d;
  scrollbar-color: rgba(198,255,0,.42) transparent;
}
.catalog-compare-matrix {
  display: grid;
  align-items: stretch;
  min-width: 820px;
}
.catalog-compare-matrix__corner,
.catalog-compare-matrix__product,
.catalog-compare-matrix__label,
.catalog-compare-matrix__value {
  min-width: 0;
  border-inline-end: 1px solid rgba(84,105,134,.19);
  border-bottom: 1px solid rgba(84,105,134,.19);
}
.catalog-compare-matrix__corner {
  position: sticky;
  inset-inline-start: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 210px;
  padding: 16px;
  background: #0c1624;
}
.catalog-compare-matrix__corner span {
  color: #c6ff00;
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.catalog-compare-matrix__corner strong {
  color: #e6edf6;
  font-size: .72rem;
}
.catalog-compare-matrix__product {
  position: relative;
  min-height: 210px;
  padding: 12px;
  background: linear-gradient(180deg,#0f1a2a,#0b1421);
}
.catalog-compare-matrix__product.is-winner {
  background: linear-gradient(180deg,rgba(198,255,0,.09),#0b1421 58%);
  box-shadow: inset 0 3px 0 #c6ff00;
}
.catalog-compare-matrix__media {
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 0 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2f4;
}
.catalog-compare-matrix__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.catalog-compare-matrix__product > span {
  color: #c6ff00;
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .05em;
}
.catalog-compare-matrix__product h3 {
  min-height: 42px;
  margin: 5px 24px 7px 0;
  color: #f3f7fb;
  font-size: .66rem;
  line-height: 1.6;
}
.locale-fa .catalog-compare-matrix__product h3 { margin: 5px 0 7px 24px; }
.catalog-compare-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 7px 0;
}
.catalog-compare-score b {
  color: #fff;
  font: 900 1.25rem/1 var(--tsrp-font-en);
}
.catalog-compare-score span {
  color: #7f90a7;
  font-size: .48rem;
}
.catalog-compare-matrix__product em {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(198,255,0,.42);
  border-radius: 999px;
  background: rgba(198,255,0,.09);
  color: #c6ff00;
  font-size: .48rem;
  font-style: normal;
  font-weight: 900;
}
.catalog-compare-matrix__product small {
  display: block;
  margin: 4px 0 9px;
  color: #6f8198;
  font-size: .46rem;
  line-height: 1.55;
}
.catalog-compare-matrix__product > button:last-child {
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid rgba(198,255,0,.32);
  border-radius: 8px;
  background: transparent;
  color: #c6ff00;
  font-size: .54rem;
  font-weight: 850;
  cursor: pointer;
}
.catalog-compare-matrix__label {
  position: sticky;
  inset-inline-start: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 13px;
  background: #0c1624;
  color: #8fa0b5;
  font-size: .58rem;
  font-weight: 800;
}
.catalog-compare-matrix__value {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  background: #0a1320;
  color: #dce5ef;
  font-size: .59rem;
  line-height: 1.55;
}
.catalog-compare-matrix__value.is-winner {
  background: rgba(198,255,0,.045);
  color: #f7fafc;
}
.catalog-compare-matrix > :nth-last-child(-n + 4) { border-bottom: 0; }

@media (max-width: 900px) {
  .catalog-compare-summary { grid-template-columns: 1fr; }
  .catalog-compare-matrix { min-width: 760px; }
}
@media (max-width: 640px) {
  .catalog-compare-workspace { padding-inline: 8px; }
  .catalog-compare-summary { padding: 11px; }
  .catalog-compare-matrix { min-width: 700px; }
  .catalog-compare-matrix__corner { min-height: 188px; }
  .catalog-compare-matrix__product { min-height: 188px; padding: 9px; }
  .catalog-compare-matrix__media { height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-compare-matrix-wrap *,
  .catalog-compare-summary * { transition: none !important; animation: none !important; }
}

/* ===== Final comparison and product-card UI refinement ===== */
.catalog-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 270px));
  gap: 16px;
}
.catalog-product-card {
  max-width: 270px;
  border-radius: 18px;
  background: linear-gradient(180deg, #101826, #0d1522);
  box-shadow: 0 18px 34px rgba(2, 8, 18, .18);
}
.catalog-product-card__media {
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(84, 105, 134, .18);
  background: radial-gradient(circle at 50% 20%, rgba(198,255,0,.12), transparent 36%), linear-gradient(160deg, #eef2f6, #dfe7ec 58%, #eef3f7);
}
.catalog-product-card__media img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
}
.catalog-product-card__overlay {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7,14,24,.14), rgba(7,14,24,.88));
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.catalog-product-card__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(198,255,0,.12);
  color: #c6ff00;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.catalog-product-card__headline {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #f7fafc;
  font-size: .78rem;
  line-height: 1.5;
  font-weight: 900;
  text-align: inherit;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.catalog-product-card__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #d7e0ea;
  font-size: .56rem;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.catalog-product-card__body {
  padding: 10px 12px 8px;
}
.catalog-product-card__badges {
  min-height: 0;
  margin-bottom: 8px;
}
.catalog-product-card__badges span {
  background: rgba(22, 34, 52, .9);
  color: #94a6be;
  font-size: .46rem;
  font-weight: 800;
}
.catalog-product-card__specs {
  gap: 5px;
}
.catalog-product-card__specs div {
  min-height: 30px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(84,105,134,.12);
  background: rgba(12, 20, 33, .82);
}
.catalog-product-card__specs span,
.catalog-product-card__specs strong {
  line-height: 1.5;
}
.catalog-product-card__warranty {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(198,255,0,.06);
}
.catalog-product-card__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 12px;
}
.catalog-product-card__actions button {
  min-height: 36px;
  border-radius: 10px;
  font-size: .54rem;
}
.catalog-product-card__actions button.primary {
  grid-column: 1 / -1;
}
.catalog-product-card__actions button.compare[disabled] {
  opacity: .48;
  cursor: not-allowed;
}

.catalog-compare-dock {
  margin-top: 22px;
  border: 1px solid rgba(198,255,0,.16);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #09111d, #0a1421 48%, #08111a);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .24);
}
.catalog-compare-dock__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(84,105,134,.22);
  background: radial-gradient(circle at 10% 0%, rgba(198,255,0,.12), transparent 26rem), linear-gradient(180deg, rgba(9,18,30,.98), rgba(8,15,25,.96));
}
.catalog-compare-dock__bar > div:first-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.catalog-compare-dock__bar > div:first-child > span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(198,255,0,.22);
  background: rgba(198,255,0,.07);
  color: #c6ff00;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.catalog-compare-dock__bar strong {
  color: #f7fafc;
  font-size: 1rem;
  line-height: 1.45;
}
.catalog-compare-dock__bar small {
  color: #8da0b6;
  font-size: .66rem;
  line-height: 1.8;
}
.catalog-compare-dock__bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.catalog-compare-dock__bar-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(84,105,134,.42);
  border-radius: 12px;
  background: #101b2c;
  color: #e9eff6;
  font-size: .61rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}
.catalog-compare-dock__bar-actions button:hover,
.catalog-compare-dock__bar-actions button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(198,255,0,.42);
}
.catalog-compare-dock__bar-actions button.ghost {
  background: rgba(198,255,0,.08);
  color: #c6ff00;
  border-color: rgba(198,255,0,.22);
}
.catalog-compare-workspace {
  gap: 16px;
  padding: 16px;
}
.catalog-compare-summary {
  border-radius: 18px;
  padding: 16px;
}
.catalog-compare-summary h3 {
  font-size: 1.08rem;
}
.catalog-compare-ranking > div {
  min-height: 48px;
  border-radius: 12px;
}
.catalog-compare-matrix-wrap {
  border-radius: 18px;
}
.catalog-compare-matrix__corner {
  min-height: 310px;
  padding: 18px;
  justify-content: flex-start;
}
.catalog-compare-matrix__corner strong {
  font-size: .82rem;
  line-height: 1.6;
}
.catalog-compare-matrix__product {
  min-height: 310px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.catalog-compare-card__remove {
  position: absolute;
  inset-inline-end: 10px;
  top: 10px;
  z-index: 4;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(7,14,24,.78);
  color: #f4f7fb;
  font-size: .84rem;
  cursor: pointer;
}
.catalog-compare-matrix__media {
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 170px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 20%, rgba(198,255,0,.12), transparent 38%), linear-gradient(160deg, #f0f4f6, #dde5ea 58%, #eef2f5);
}
.catalog-compare-matrix__media img {
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
}
.catalog-compare-matrix__overlay {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7,14,24,.12), rgba(7,14,24,.9));
  backdrop-filter: blur(14px);
}
.catalog-compare-matrix__brand {
  display: inline-flex;
  width: fit-content;
  padding: 0 8px;
  min-height: 20px;
  align-items: center;
  border-radius: 999px;
  background: rgba(198,255,0,.12);
  color: #c6ff00;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .05em;
}
.catalog-compare-matrix__overlay h3 {
  min-height: 0;
  margin: 0;
  color: #f8fbff;
  font-size: .66rem;
  line-height: 1.58;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.locale-fa .catalog-compare-matrix__overlay h3 {
  margin: 0;
}
.catalog-compare-score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}
.catalog-compare-score b {
  font-size: 1.18rem;
}
.catalog-compare-score span {
  font-size: .47rem;
}
.catalog-compare-matrix__overlay small {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #a9b7c8;
  font-size: .46rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.catalog-compare-matrix__media em {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 3;
  margin: 0;
}
.catalog-compare-matrix__actions {
  margin-top: auto;
  display: flex;
}
.catalog-compare-matrix__actions button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(198,255,0,.32);
  border-radius: 10px;
  background: rgba(198,255,0,.06);
  color: #c6ff00;
  font-size: .55rem;
  font-weight: 850;
  cursor: pointer;
}
.catalog-compare-matrix__label {
  min-height: 58px;
  padding: 11px 14px;
  background: #0c1624;
  color: #9fb0c3;
  font-size: .6rem;
}
.catalog-compare-matrix__value {
  min-height: 58px;
  padding: 11px 13px;
  font-size: .6rem;
}

@media (max-width: 900px) {
  .catalog-compare-dock__bar {
    grid-template-columns: 1fr;
  }
  .catalog-compare-dock__bar-actions {
    justify-content: flex-start;
  }
  .catalog-compare-workspace {
    padding: 12px;
  }
  .catalog-compare-matrix__corner,
  .catalog-compare-matrix__product {
    min-height: 280px;
  }
}
@media (max-width: 640px) {
  .catalog-product-grid {
    grid-template-columns: 1fr;
  }
  .catalog-product-card {
    max-width: none;
  }
  .catalog-product-card__media img,
  .catalog-compare-matrix__media img {
    padding: 14px;
  }
  .catalog-compare-matrix__corner,
  .catalog-compare-matrix__product {
    min-height: 248px;
  }
  .catalog-compare-matrix__media {
    min-height: 148px;
  }
}

/* === FINAL PRODUCT CARD GEOMETRY + IMAGE NORMALIZATION === */
.catalog-product-card__overlay {
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  gap: 4px;
  border: 0;
  border-radius: 16px 16px 0 0;
}

.catalog-product-card__summary {
  font-size: 0.50rem;
}

.catalog-product-card__media {
  aspect-ratio: 1 / 1;
  border-bottom: 0;
  background: #eef2f5;
}

.catalog-product-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

/* Center the whole product set and keep every visible card on a stable footprint. */
.catalog-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 300px));
  justify-content: center;
  justify-items: stretch;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.catalog-product-card {
  width: 100%;
  max-width: 300px;
  height: 100%;
  min-height: 100%;
  justify-self: center;
}

.catalog-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.catalog-product-card__specs {
  min-height: 100px;
}

.catalog-product-card__warranty {
  margin-top: auto;
}

.catalog-product-card__actions {
  margin-top: auto;
}

/* The comparison workspace follows the same normalized 1:1 product image rule. */
.catalog-compare-matrix__media {
  aspect-ratio: 1 / 1;
  background: #eef2f5;
}

.catalog-compare-matrix__media img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 680px) {
  .catalog-product-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .catalog-product-card {
    max-width: none;
  }
}

/* === FINAL PRODUCT GRID: 4 cards per row on desktop === */
.catalog-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.catalog-product-card {
  width: 100%;
  max-width: none;
  height: 100%;
}

@media (max-width: 1100px) {
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .catalog-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* === PRODUCT CARD HOVER CLEANUP — scoped only to catalog product cards === */
.catalog-product-card__media {
  border-bottom: 0;
}

.catalog-product-card__media img {
  display: block;
  transition: none;
  transform: none;
}

.catalog-product-card:hover .catalog-product-card__media img {
  transform: none;
}

.catalog-product-card__body {
  position: relative;
  z-index: 1;
  margin-top: -1px;
}

/* =========================================================
   PRODUCT CARD HOVER — restored from original Update 30/32
   Only two intentional differences from the old version:
   1) vertical lift uses `top` instead of parent transform to avoid the media/body seam;
   2) the image/button itself has zero hover animation.
   ========================================================= */

.catalog-product-card {
  position: relative;
  top: 0;
  overflow: hidden;
  border: 1px solid #26354e;
  border-radius: 15px;
  background: #101827;
  transition:
    top .28s cubic-bezier(.2,.8,.2,1),
    border-color .28s,
    box-shadow .28s;
}

.catalog-product-card:hover {
  top: -5px;
  transform: none;
  border-color: rgba(198,255,0,.58);
  box-shadow:
    0 28px 50px rgba(0,0,0,.28),
    0 0 0 3px rgba(198,255,0,.08);
}

/* The media is a button in the component. Neutralize every button-state
   so the image itself never zooms, shifts, filters, glows or draws a line. */
.catalog-product-card__media,
.catalog-product-card__media:hover,
.catalog-product-card__media:active,
.catalog-product-card__media:focus {
  border: 0 !important;
  border-bottom: 0 !important;
  outline: 0;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  margin-bottom: 0;
}

.catalog-product-card__media img,
.catalog-product-card__media:hover img,
.catalog-product-card__media:active img,
.catalog-product-card__media:focus img,
.catalog-product-card:hover .catalog-product-card__media img {
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

/* Remove all previous seam/overlap experiments. */
.catalog-product-card__body {
  position: relative;
  z-index: auto;
  margin-top: 0;
  border-top: 0;
  box-shadow: none;
}

/* Keyboard focus stays visible on the outer card, not as an effect on the image. */
.catalog-product-card:has(.catalog-product-card__media:focus-visible) {
  outline: 2px solid rgba(198,255,0,.72);
  outline-offset: 3px;
}

/* S03-B3: listing cards only. Desktop media/overlay/hover rules above are retained. */
.catalog-product-card__mobile-info { display:none; }
.catalog-product-card__mobile-spec-label { display:none; }
@media (max-width:650px) {
  .catalog-product-grid { grid-auto-rows:auto; gap:12px; }
  .catalog-product-card {
    display:grid; grid-template-columns:clamp(105px,30vw,135px) minmax(0,1fr);
    grid-template-areas:"media info" "actions actions"; align-items:center;
    gap:10px; padding:12px; height:auto; min-height:0;
  }
  .catalog-product-card:hover { top:0; transform:none; }
  .catalog-product-card__media { grid-area:media; height:auto; aspect-ratio:1; border-radius:11px; align-self:center; }
  .catalog-product-card__media img { padding:5px; object-fit:contain; }
  .catalog-product-card__media .catalog-product-card__overlay,
  .catalog-product-card__media .catalog-product-card__brand,
  .catalog-product-card__media .catalog-product-card__stock,
  .catalog-product-card__badges,
  .catalog-product-card__warranty,
  .catalog-product-card__specs > div:nth-child(n+3) { display:none; }
  .catalog-product-card__body { grid-area:info; min-width:0; padding:0; gap:8px; }
  .catalog-product-card__mobile-info { display:grid; gap:5px; }
  .catalog-product-card__mobile-brand { color:#c6ff00; font-size:11px; font-weight:900; letter-spacing:.05em; }
  .catalog-product-card__mobile-info h3 {
    margin:0; color:#f3f7fb; font-size:14px; line-height:1.5; font-weight:800;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3;
    overflow:hidden; overflow-wrap:anywhere; unicode-bidi:plaintext;
  }
  .catalog-product-card__mobile-status { display:flex; align-items:center; gap:4px; color:#b8c7d8; font-size:11px; line-height:1.5; }
  .catalog-product-card__specs { min-height:0; gap:6px; }
  .catalog-product-card__specs > div { display:grid; gap:2px; min-width:0; min-height:0; padding:0; background:none; border:0; }
  .catalog-product-card__specs span { color:#98aac0; font-size:11px; }
  .catalog-product-card__desktop-spec-label { display:none; }
  .catalog-product-card__mobile-spec-label { display:inline; }
  .catalog-product-card__specs strong { color:#e0e8f2; text-align:start; font-size:12px; line-height:1.5; overflow-wrap:anywhere; unicode-bidi:plaintext; }
  .catalog-product-card__actions { grid-area:actions; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); gap:6px; padding:0; margin:0; }
  .catalog-product-card__actions button { min-width:0; min-height:44px; font-size:12px; line-height:1.35; padding:4px; }
  .catalog-product-card__actions button.primary { grid-column:auto; }
  .catalog-experience .catalog-product-card__actions button:hover { transform:none; }
  .catalog-product-card__actions button:focus-visible { outline:2px solid #c6ff00; outline-offset:-3px; }
}

/* S03-B2: mobile selection tray only; existing desktop/workspace styles stay intact. */
.catalog-mobile-compare-tray { display:none; }
@media (max-width:650px) {
  .catalog-compare-dock.is-mobile-collapsed { display:none; }
  .catalog-compare-dock { scroll-margin-top:96px; }
  .catalog-mobile-compare-tray {
    position:fixed; inset-inline:0; bottom:0; z-index:45;
    display:grid; gap:4px; padding:4px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    color:#edf3fa; background:#0b1422; border-top:1px solid #394c63;
    box-shadow:0 -8px 24px #0004; font-family:var(--tsrp-font-en),var(--tsrp-font-fa),sans-serif;
  }
  .catalog-mobile-compare-tray__head { display:flex; gap:8px; align-items:center; justify-content:space-between; min-width:0; font-size:13px; }
  .catalog-mobile-compare-tray button { min-height:44px; cursor:pointer; }
  .catalog-mobile-compare-tray__head button { padding-inline:12px; font-size:13px; color:#c6ff00; background:transparent; border:0; }
  .catalog-mobile-compare-tray__items { display:flex; gap:8px; overflow-x:auto; margin:0; padding:2px; list-style:none; }
  .catalog-mobile-compare-tray__items li { display:flex; align-items:center; gap:6px; flex:0 0 auto; max-width:240px; border:1px solid #33455b; border-radius:10px; background:#111f30; }
  .catalog-mobile-compare-tray__items img { width:40px; height:40px; object-fit:contain; flex-shrink:0; border-radius:8px; background:#fff; }
  .catalog-mobile-compare-tray__items span { width:142px; min-width:0; height:50.4px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; font-size:12px; line-height:1.4; overflow-wrap:anywhere; unicode-bidi:plaintext; }
  .catalog-mobile-compare-tray__items button { width:44px; flex-shrink:0; font-size:24px; color:#e8eff7; background:transparent; border:0; }
  .catalog-mobile-compare-tray__head .catalog-mobile-compare-tray__open { flex:1; border:0; border-radius:10px; background:#c6ff00; color:#0b1422; font-size:14px; font-weight:800; }
  .catalog-mobile-compare-tray button:focus-visible { outline:2px solid #fff; outline-offset:2px; }
  body:has([aria-modal="true"], input:focus, textarea:focus, select:focus) .catalog-mobile-compare-tray { display:none; }
  html:has(.catalog-mobile-compare-tray) { scroll-padding-bottom:calc(var(--tsrp-compare-tray-height, 164px) + 16px); }
  body:has(.catalog-mobile-compare-tray) { padding-bottom:var(--tsrp-compare-tray-height, 164px); }
  body:has(.catalog-mobile-compare-tray) .quick-journey-dock { bottom:calc(var(--tsrp-compare-tray-height, 164px) + 12px); }
  body:has(.catalog-mobile-compare-tray) .quick-journey-dock__panel { max-height:calc(100svh - var(--tsrp-compare-tray-height, 164px) - 180px); }
  .catalog-product-card__actions { scroll-margin-bottom:calc(var(--tsrp-compare-tray-height, 0px) + 24px); }
}

/* S03-B4: dedicated mobile comparison; desktop matrix and B2/B3 remain intact. */
.catalog-compare-dock__bar[hidden] { display:none; }
@media (max-width:650px) {
  .catalog-mobile-comparison { padding:12px; color:#eaf1f8; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
  .catalog-mobile-comparison * { box-sizing:border-box; min-width:0; }
  .catalog-mobile-comparison h2 { font-size:22px; margin:4px 0 12px; }
  .catalog-mobile-comparison h3 { font-size:14px; margin:0; line-height:1.65; }
  .catalog-mobile-comparison__heading > span { color:#c6ff00; font-size:12px; }
  .catalog-mobile-comparison button, .catalog-mobile-comparison select, .catalog-mobile-comparison summary {
    min-height:44px; font:inherit; cursor:pointer; color:#eaf1f8;
  }
  .catalog-mobile-comparison button { background:#152238; border:1px solid #43566e; border-radius:10px; padding:8px; }
  .catalog-mobile-comparison button:focus-visible, .catalog-mobile-comparison select:focus-visible, .catalog-mobile-comparison summary:focus-visible { outline:2px solid #c6ff00; outline-offset:2px; }
  .catalog-mobile-comparison__toolbar { display:flex; flex-wrap:wrap; gap:8px; }
  .catalog-mobile-comparison__toolbar button:first-child { flex:1; background:#c6ff00; color:#0b1422; font-weight:800; }
  .catalog-mobile-comparison details { margin-block:14px; border:1px solid #33455b; border-radius:12px; padding:8px; }
  .catalog-mobile-comparison summary { display:list-item; align-content:center; margin-inline-start:16px; }
  .catalog-mobile-comparison ul { padding:0; list-style:none; margin:8px 0 0; }
  .catalog-mobile-comparison__selection li { display:flex; align-items:center; gap:8px; border-top:1px solid #33455b; padding-block:8px; }
  .catalog-mobile-comparison__selection li span { flex:1; font-size:13px; unicode-bidi:plaintext; }
  .catalog-mobile-comparison__selection img { flex-shrink:0; object-fit:contain; background:#eef2f5; border-radius:8px; }
  .catalog-mobile-comparison__selection button { flex:0 0 44px; font-size:22px; }
  .catalog-mobile-comparison__pair { border:0; padding:0; margin:14px 0; display:grid; gap:8px; }
  .catalog-mobile-comparison__pair legend { padding:0; margin-bottom:8px; font-size:13px; color:#acbed1; }
  .catalog-mobile-comparison__pair label { display:grid; gap:4px; font-size:13px; }
  .catalog-mobile-comparison select { width:100%; max-width:100%; background:#142238; border:1px solid #43566e; border-radius:8px; padding:8px; }
  .catalog-mobile-comparison__products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-block:14px; }
  .catalog-mobile-comparison__products article { display:flex; flex-direction:column; gap:8px; padding:8px; border:1px solid #33455b; border-radius:12px; background:#101c2c; }
  .catalog-mobile-comparison__marker { color:#c6ff00; font-size:12px; direction:ltr; text-align:start; }
  .catalog-mobile-comparison .catalog-mobile-comparison__image { background:#edf2f6; border:0; padding:4px; }
  .catalog-mobile-comparison__image img { display:block; width:100%; height:88px; object-fit:contain; }
  .catalog-mobile-comparison__products h3 { unicode-bidi:plaintext; overflow-wrap:anywhere; flex:1; }
  .catalog-mobile-comparison__products button { font-size:13px; }
  .catalog-mobile-comparison__empty, .catalog-mobile-comparison__legend { color:#b5c5d7; font-size:13px; }
  .catalog-mobile-comparison > section { margin-block:20px; }
  .catalog-mobile-comparison > section > h3 { color:#c6ff00; font-size:16px; margin-bottom:10px; }
  .catalog-mobile-comparison dl { margin:0; }
  .catalog-mobile-comparison__row { margin-block:8px; border:1px solid #33455b; border-radius:10px; overflow:hidden; }
  .catalog-mobile-comparison__row dt { padding:8px; background:#142238; font-weight:700; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
  .catalog-mobile-comparison__row dt span { font-size:12px; font-weight:400; color:#c6ff00; }
  .catalog-mobile-comparison__row.is-different { border-color:#7a982c; }
  .catalog-mobile-comparison__row dd { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-mobile-comparison__row dd > div { padding:10px 8px; display:grid; align-content:start; gap:4px; }
  .catalog-mobile-comparison__row dd > div + div { border-inline-start:1px solid #33455b; }
  .catalog-mobile-comparison__row small { color:#9ab0c8; font-size:12px; }
  .catalog-mobile-comparison__row dd span { unicode-bidi:plaintext; font-size:14px; }
  .catalog-mobile-comparison__provenance p { font-size:13px; color:#b5c5d7; }
  .catalog-mobile-comparison__provenance li { display:grid; gap:6px; padding-block:12px; border-top:1px solid #33455b; font-size:13px; }
  .catalog-mobile-comparison__provenance a { color:#c6ff00; text-decoration:underline; }
}
