/* ============================================================
   INDASTRA — Product Detail Page
   .ym-* classes (Yandex Market inspired 3-column layout)
   Gallery, specs, analogs, application section, sidebar
   ============================================================ */


/* ══════════════════════════════════════════════════════════
   YM LAYOUT — 3-Column Product Page Structure
   Left: Gallery | Center: Info + Specs | Right: Sidebar
   ══════════════════════════════════════════════════════════ */

.ym-layout {
  display: grid;
  grid-template-columns: 380px 1fr 300px;
  gap: 24px;
  align-items: start;
  padding: 8px 0 32px;
}

/* Sticky columns */
.ym-col-gallery { position: sticky; top: 150px; }
.ym-col-sidebar { position: sticky; top: 150px; }
.ym-col-main    { min-width: 0; }


/* ══════════════════════════════════════════════════════════
   YM GALLERY — Image Viewer with Zoom
   ══════════════════════════════════════════════════════════ */

.ym-gallery {}

.ym-gallery__main {
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.ym-gallery__main img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform var(--transition);
  user-select: none;
  -webkit-user-drag: none;
}
.ym-gallery__main:hover img { transform: scale(1.06); }

/* Zoom lens overlay */
.ym-gallery__zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  border: 1px solid var(--border-light);
}
.ym-gallery__zoom-hint svg {
  width: 12px;
  height: 12px;
  stroke: var(--text2);
  fill: none;
  stroke-width: 2;
}

/* Badge overlays on gallery */
.ym-gallery__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.ym-gallery__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ym-gallery__badge--new    { background: var(--primary);  color: #fff; }
.ym-gallery__badge--sale   { background: var(--error);    color: #fff; }
.ym-gallery__badge--hit    { background: var(--warning);  color: var(--text); }
.ym-gallery__badge--cert   { background: var(--success);  color: #fff; }

/* Thumbnail strip */
.ym-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ym-gallery__thumb {
  width: 66px;
  height: 66px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.ym-gallery__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ym-gallery__thumb.active,
.ym-gallery__thumb:hover { border-color: var(--primary); background: var(--bg); }

/* Fullscreen lightbox */
.ym-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 35, 50, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.ym-lightbox.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ym-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
}
.ym-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.ym-lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.ym-lightbox__close svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }


/* ══════════════════════════════════════════════════════════
   YM MAIN COLUMN — Product Info & Tabs
   ══════════════════════════════════════════════════════════ */

.ym-product-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.ym-product-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.ym-product-brand:hover { color: var(--primary-dark); text-decoration: underline; }
.ym-product-brand img { height: 18px; max-width: 80px; object-fit: contain; }

.ym-product-sku {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ym-product-sku span { display: flex; align-items: center; gap: 4px; }

.ym-product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* Product short specs (key-value chips) */
.ym-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}
.ym-specs-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text2);
  transition: border-color var(--transition-fast);
}
.ym-specs-chip strong { font-weight: 600; color: var(--text); }
.ym-specs-chip:hover { border-color: var(--primary); }


/* ══════════════════════════════════════════════════════════
   YM SIDEBAR — Price Card, Trust Badges, Manufacturer
   ══════════════════════════════════════════════════════════ */

.ym-sidebar { display: flex; flex-direction: column; gap: 14px; }

/* Price card */
.ym-price-card {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  padding: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.ym-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
}
.ym-price-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
  font-weight: 600;
}
.ym-price {
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.ym-price sup { font-size: 18px; font-weight: 600; vertical-align: super; color: var(--text2); }
.ym-price.ym-price--request {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.ym-delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  margin: 12px 0;
}
.ym-delivery svg { width: 15px; height: 15px; stroke: var(--success); fill: none; stroke-width: 2; flex-shrink: 0; }

.ym-price-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ym-btn-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 152, 219, 0.30);
  text-decoration: none;
}
.ym-btn-quote::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(0, 152, 219, 0.60), rgba(0, 188, 212, 0.40));
  filter: blur(20px);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition);
}
.ym-btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 152, 219, 0.42);
}
.ym-btn-quote:hover::before { opacity: 1; }
.ym-btn-quote svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }

.ym-btn-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--primary);
  transition: all var(--transition);
  text-decoration: none;
}
.ym-btn-sample:hover {
  background: var(--primary-xlight);
  border-color: var(--primary-dark);
}
.ym-btn-sample svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Trust mini-badges */
.ym-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}
.ym-trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
}
.ym-trust-badge svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; flex-shrink: 0; }
.ym-trust-badge strong { font-weight: 600; color: var(--text); }

/* Guarantee badge */
.ym-guarantee-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border: 1px solid rgba(0, 200, 83, 0.15);
}
.ym-guarantee-badge__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ym-guarantee-badge__icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }
.ym-guarantee-badge p { font-size: 13px; color: var(--text2); line-height: 1.4; margin: 0; }
.ym-guarantee-badge p strong { font-weight: 700; color: var(--text); display: block; margin-bottom: 2px; }

/* Manufacturer info card (sidebar) */
.ym-manufacturer-card {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 20px;
}
.ym-manufacturer-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ym-manufacturer-card__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xs);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}
.ym-manufacturer-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ym-manufacturer-card__name { font-size: 14px; font-weight: 700; color: var(--text); }
.ym-manufacturer-card__origin {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.ym-manufacturer-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.ym-manufacturer-card__stat {
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  text-align: center;
}
.ym-manufacturer-card__stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.ym-manufacturer-card__stat span {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
  display: block;
}
.ym-manufacturer-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.ym-manufacturer-card__link:hover {
  border-color: var(--primary);
  background: var(--primary-xlight);
}
.ym-manufacturer-card__link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }


/* ══════════════════════════════════════════════════════════
   TECHNICAL SPECS TABLE — Zebra Striping
   ══════════════════════════════════════════════════════════ */

.specs-section { margin: 24px 0; }
.specs-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.specs-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.specs-table-wrap { overflow-x: auto; }
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.specs-table thead tr { background: var(--bg-secondary); }
.specs-table th {
  padding: 12px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--text2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.specs-table th:first-child { border-radius: var(--radius-xs) 0 0 0; }
.specs-table th:last-child  { border-radius: 0 var(--radius-xs) 0 0; }
.specs-table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;
}
.specs-table tr:last-child td { border-bottom: none; }
/* Zebra striping */
.specs-table tbody tr:nth-child(odd)  td { background: var(--bg); }
.specs-table tbody tr:nth-child(even) td { background: rgba(248, 250, 251, 0.8); }
.specs-table tbody tr:hover td { background: var(--primary-xlight); }
/* Param name column */
.specs-table td.spec-param {
  font-weight: 600;
  color: var(--text2);
  width: 38%;
  padding-right: 24px;
}
/* Highlighted row */
.specs-table tr.specs-highlight td {
  background: rgba(0, 152, 219, 0.06);
  color: var(--primary-dark);
  font-weight: 600;
}
/* Unit suffix */
.spec-unit {
  font-size: 11px;
  color: var(--text3);
  margin-left: 4px;
}


/* ══════════════════════════════════════════════════════════
   EXECUTIONS / MOUNTING TABLE
   (Variants, code matrix)
   ══════════════════════════════════════════════════════════ */

.executions-section { margin: 28px 0; }
.executions-table-wrap { overflow-x: auto; }
.executions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 600px;
}
.executions-table th {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.executions-table th:first-child { border-radius: var(--radius-xs) 0 0 0; }
.executions-table th:last-child  { border-radius: 0 var(--radius-xs) 0 0; }
.executions-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-size: 13px;
  vertical-align: middle;
}
.executions-table tbody tr:nth-child(even) td { background: var(--bg-secondary); }
.executions-table tbody tr:hover td { background: var(--primary-xlight); cursor: pointer; }

/* Execution code chip */
.exec-code {
  display: inline-block;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 152, 219, 0.15);
}
/* Available / discontinued */
.exec-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.exec-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.exec-status--available { color: #006a25; }
.exec-status--available::before { background: var(--success); }
.exec-status--discontinued { color: var(--text3); }
.exec-status--discontinued::before { background: var(--border); }

/* Add to comparison from executions */
.exec-select-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.exec-select-btn:hover {
  border-color: var(--primary);
  background: var(--primary-xlight);
}
.exec-select-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
}
.exec-select-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.exec-select-btn.selected svg { stroke: #fff; }


/* ══════════════════════════════════════════════════════════
   ANALOGS COMPARISON TABLE
   ══════════════════════════════════════════════════════════ */

.analogs-section { margin: 28px 0; }
.analogs-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.analogs-table-wrap { overflow-x: auto; }
.analogs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 700px;
}
.analogs-table thead { position: sticky; top: 0; z-index: 1; }
.analogs-table th {
  background: var(--bg-secondary);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.analogs-table th:first-child { border-radius: var(--radius-xs) 0 0 0; }
.analogs-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}
.analogs-table tbody tr:nth-child(even) td { background: rgba(248, 250, 251, 0.6); }
.analogs-table tbody tr:hover td { background: var(--primary-xlight); }
/* Current product highlight */
.analogs-table tr.analogs-current td {
  background: rgba(0, 152, 219, 0.07);
  font-weight: 600;
}
.analogs-table tr.analogs-current td:first-child {
  border-left: 3px solid var(--primary);
}

/* Param match indicators */
.param-match {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.param-match--high    { background: var(--success-bg); color: #006a25; }
.param-match--med     { background: var(--warning-bg); color: #7a5200; }
.param-match--low     { background: var(--error-bg);   color: #ab001c; }
.param-match--exact   { background: var(--primary-xlight); color: var(--primary-dark); }

/* Highlighted param cells */
.param-highlight { color: var(--primary); font-weight: 600; }
.param-diff      { color: var(--warning); font-weight: 600; }

/* Analog product link */
.analog-product-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.analog-product-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  padding: 4px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.analog-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition-fast);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.analog-product-link:hover .analog-product-name { color: var(--primary-dark); text-decoration: underline; }


/* ══════════════════════════════════════════════════════════
   APPLICATION SECTION
   (Where this product is used)
   ══════════════════════════════════════════════════════════ */

.application-section { margin: 28px 0; }
.application-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.application-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  padding: 20px 18px;
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.application-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(0, 152, 219, 0.12);
  transform: translateY(-2px);
}
.application-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
/* Gradient icon colors (cycle through brand palette) */
.application-card:nth-child(6n+1) .application-card__icon { background: linear-gradient(135deg, #0098db, #005f8a); }
.application-card:nth-child(6n+2) .application-card__icon { background: linear-gradient(135deg, #00BCD4, #0097A7); }
.application-card:nth-child(6n+3) .application-card__icon { background: linear-gradient(135deg, #1565C0, #003f8a); }
.application-card:nth-child(6n+4) .application-card__icon { background: linear-gradient(135deg, #00838F, #00555a); }
.application-card:nth-child(6n+5) .application-card__icon { background: linear-gradient(135deg, #0078b0, #004a70); }
.application-card:nth-child(6n+6) .application-card__icon { background: linear-gradient(135deg, #006064, #003d40); }

.application-card__icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.75; }
.application-card__body { flex: 1; min-width: 0; }
.application-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.3;
}
.application-card__desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════
   PRODUCT PAGE TAGS & MISC
   ══════════════════════════════════════════════════════════ */

.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }
.tag-primary { background: var(--primary-xlight); color: var(--primary); border-color: rgba(0, 152, 219, 0.15); }
.tag-accent  { background: var(--accent-light);   color: var(--accent-dark); border-color: rgba(0, 188, 212, 0.15); }

/* Related products section inside product page */
.ym-related { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light); }

/* Product tabs (description, specs, docs, reviews) */
.ym-tabs { margin-top: 28px; }
.ym-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
}
.ym-tab-nav::-webkit-scrollbar { display: none; }
.ym-tab-btn {
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  position: relative;
}
.ym-tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--primary);
}
.ym-tab-btn:hover:not(.active) { color: var(--text2); }
/* Tab count badge */
.ym-tab-btn .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 5px;
  color: var(--text3);
}
.ym-tab-btn.active .tab-count { background: var(--primary-xlight); color: var(--primary); }

.ym-tab-panel { display: none; padding: 28px 0; }
.ym-tab-panel.active { display: block; }

/* Description text */
.ym-description h2,
.ym-description h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
  letter-spacing: -0.02em;
}
.ym-description p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.ym-description ul, .ym-description ol {
  padding-left: 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ym-description ul { list-style: disc; }
.ym-description ol { list-style: decimal; }
.ym-description li { font-size: 14px; color: var(--text2); line-height: 1.65; }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Product Page
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .ym-layout { grid-template-columns: 340px 1fr 280px; gap: 20px; }
  .ym-product-title { font-size: 22px; }
}

@media (max-width: 1024px) {
  .ym-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ym-col-gallery { position: static; }
  .ym-col-sidebar { position: static; order: -1; }

  /* Gallery becomes horizontal on tablet */
  .ym-gallery__main { aspect-ratio: 4 / 3; }

  /* Sidebar becomes horizontal card strip */
  .ym-sidebar { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .ym-price-card { flex: 1; min-width: 280px; }
  .ym-manufacturer-card { flex: 1; min-width: 240px; }
  .ym-guarantee-badge { flex: 1; min-width: 100%; }

  .application-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ym-layout { padding: 4px 0 20px; }
  .ym-product-title { font-size: 20px; }
  .ym-price { font-size: 28px; }
  .ym-sidebar { flex-direction: column; }
  .ym-price-card, .ym-manufacturer-card { flex: none; min-width: 0; width: 100%; }

  .analogs-table { min-width: 560px; }
  .executions-table { min-width: 480px; }
  .application-grid { grid-template-columns: 1fr; }

  .specs-table td.spec-param { width: 46%; }
}

@media (max-width: 480px) {
  .ym-gallery__thumbs .ym-gallery__thumb { width: 56px; height: 56px; }
  .ym-product-title { font-size: 18px; }
  .specs-table th, .specs-table td { padding: 9px 12px; }
  .analogs-table th, .analogs-table td { padding: 9px 12px; }
  .application-card { flex-direction: column; gap: 10px; }
  .application-card__icon { width: 40px; height: 40px; }
}


/* ══════════════════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════════════════ */

.product-breadcrumbs {
  padding: 14px 0 10px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: var(--text3);
}
.breadcrumb-list li { display: flex; align-items: center; }
.breadcrumb-list span[aria-hidden] { margin: 0 2px; color: var(--border); }
.breadcrumb-list a { color: var(--text3); transition: color var(--transition-fast); }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list [aria-current="page"] { color: var(--text2); font-weight: 500; }


/* ══════════════════════════════════════════════════════════
   SPECS CHIP — highlighted variant
   ══════════════════════════════════════════════════════════ */

.ym-specs-chip--highlight {
  background: var(--primary-xlight);
  border-color: var(--primary-border);
  color: var(--primary-dark);
}
.ym-specs-chip--highlight strong { color: var(--primary-dark); }

/* SKU copy button */
.sku-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  transition: all var(--transition-fast);
}
.sku-copy-btn:hover { background: var(--primary-xlight); }
.sku-copy-btn svg { stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════
   GALLERY DOCS (below thumbnails)
   ══════════════════════════════════════════════════════════ */

.gallery-docs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.gallery-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
  flex: 1;
  justify-content: center;
  min-width: 120px;
}
.gallery-doc-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.gallery-doc-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-xlight);
}


/* ══════════════════════════════════════════════════════════
   EXECUTIONS TABLE — view button
   ══════════════════════════════════════════════════════════ */

.exec-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text3);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.exec-view-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-xlight);
}
.exec-view-btn svg { stroke: currentColor; fill: none; }


/* ══════════════════════════════════════════════════════════
   DOCUMENTATION CARDS
   ══════════════════════════════════════════════════════════ */

.docs-section { margin: 0; }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg);
  text-decoration: none;
  transition: all var(--transition);
  color: inherit;
}
a.doc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,152,219,0.10);
  transform: translateY(-1px);
}
.doc-card--unavailable {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.doc-card--request {
  border-style: dashed;
  border-color: var(--border);
  cursor: pointer;
}
a.doc-card--request:hover {
  border-color: var(--primary);
  border-style: solid;
}
.doc-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-card__icon--pdf   { background: rgba(220,53,69,0.08);  color: #dc3545; }
.doc-card__icon--dwg   { background: rgba(0,152,219,0.10);  color: var(--primary); }
.doc-card__icon--chart { background: rgba(0,200,83,0.08);   color: #00a244; }
.doc-card__icon--book  { background: rgba(255,179,0,0.10);  color: #b07800; }
.doc-card__icon--3d    { background: rgba(102,51,153,0.10); color: #6633cc; }
.doc-card__icon--req   { background: var(--primary-xlight); color: var(--primary); }
.doc-card__icon svg { stroke: currentColor; fill: none; }
.doc-card__body { flex: 1; min-width: 0; }
.doc-card__title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.doc-card__meta  { font-size: 11px; color: var(--text3); }
.doc-card__dl { flex-shrink: 0; color: var(--text3); }
.doc-card__dl svg { stroke: currentColor; fill: none; }
a.doc-card:hover .doc-card__dl { color: var(--primary); }

@media (max-width: 640px) {
  .docs-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════
   SIDEBAR ADDONS — quantity discount, payment, delivery calc
   ══════════════════════════════════════════════════════════ */

/* Quantity discount hint */
.qty-discount-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  padding: 7px 12px;
  margin: 8px 0 4px;
}
.qty-discount-hint svg { stroke: var(--warning); fill: none; stroke-width: 2; flex-shrink: 0; }

/* Email copy button */
.ym-btn-email-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ym-btn-email-copy svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.ym-btn-email-copy:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }

/* Payment methods strip */
.payment-strip {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  padding: 14px 16px;
}
.payment-strip__label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.payment-strip__methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-method {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  background: var(--bg);
  letter-spacing: 0.03em;
}

/* Delivery calculator */
.delivery-calc {
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  padding: 16px 18px;
}
.delivery-calc__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.delivery-calc__title svg { stroke: var(--primary); fill: none; flex-shrink: 0; }
.delivery-calc__row {
  display: flex;
  gap: 8px;
}
.delivery-calc__input {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-secondary);
  outline: none;
  transition: border-color var(--transition-fast);
  min-width: 0;
}
.delivery-calc__input:focus { border-color: var(--primary); background: var(--bg); }
.delivery-calc__btn {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  background: var(--grad-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.delivery-calc__btn:hover { filter: brightness(1.1); }
.delivery-calc__result { margin-top: 10px; font-size: 13px; min-height: 20px; }


/* ══════════════════════════════════════════════════════════
   SECTION HEADING WITH UNDERLINE + COUNT BADGE
   ══════════════════════════════════════════════════════════ */

.section-heading-line {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.section-heading-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-xlight);
  color: var(--primary);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
}


/* ══════════════════════════════════════════════════════════
   ANALOGS SECTION SPACING
   ══════════════════════════════════════════════════════════ */

.analogs-section {
  margin: 40px 0 36px;
}
.analogs-section__header {
  margin-bottom: 18px;
}
.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-show-more:hover { background: var(--primary-xlight); }
.btn-show-more svg { stroke: currentColor; fill: none; }


/* ══════════════════════════════════════════════════════════
   SIMILAR PRODUCTS CAROUSEL
   ══════════════════════════════════════════════════════════ */

.similar-section { margin: 36px 0; }
.similar-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  margin-top: 16px;
}
.similar-scroll::-webkit-scrollbar { height: 4px; }
.similar-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.similar-card {
  flex: 0 0 190px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.similar-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(0,152,219,0.12);
  transform: translateY(-2px);
}
.similar-card__img {
  aspect-ratio: 1/1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.similar-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.similar-card__body { padding: 12px 14px; flex: 1; }
.similar-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.similar-card__meta {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 6px;
  line-height: 1.4;
}
.similar-card__price {
  font-size: 13px;
  color: var(--text2);
}
.similar-card__price strong { color: var(--primary); font-weight: 700; }
.similar-card__price span   { color: var(--text3); font-style: italic; }


/* ══════════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════════ */

.faq-section { margin: 40px 0; padding-bottom: 16px; }
.faq-list { margin-top: 20px; }
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--primary); }
.faq-question span { flex: 1; }
.faq-chevron {
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  transition: transform var(--transition-fast);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 4px 18px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}
.faq-answer[hidden] { display: none; }
.faq-answer p { margin: 0; }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE ADDITIONS
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .faq-question { font-size: 13px; }
  .section-heading-line { font-size: 17px; }
  .similar-card { flex: 0 0 160px; }
  .docs-grid { grid-template-columns: 1fr; }
  .analogs-section { margin: 28px 0; }
}

@media (max-width: 480px) {
  .gallery-docs { flex-direction: column; }
  .gallery-doc-btn { min-width: 0; }
  .similar-card { flex: 0 0 150px; }
  .payment-strip__methods { gap: 6px; }
}


/* ══════════════════════════════════════════════════════════
   TASK 1 — MOUNTING VARIATION PILLS (Shopify-style selector)
   ══════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.ym-variations {
  margin: 16px 0 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.ym-variations__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ym-variations__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ym-variation-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  min-width: 72px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  position: relative;
}

.ym-variation-pill:hover {
  border-color: var(--primary);
  background: rgba(0, 152, 219, 0.04);
}

.ym-variation-pill--checked {
  background: linear-gradient(135deg, #0098db 0%, #006fa3 100%);
  border-color: #0098db;
  box-shadow: 0 0 0 3px rgba(0, 152, 219, 0.18), 0 4px 16px rgba(0, 152, 219, 0.28);
  transform: scale(1.04);
}

.ym-variation-pill__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.01em;
}

.ym-variation-pill--checked .ym-variation-pill__label {
  color: #fff;
}

.ym-variation-pill__sku {
  font-size: 9.5px;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.ym-variation-pill--checked .ym-variation-pill__sku {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 600px) {
  .ym-variations__pills { gap: 6px; }
  .ym-variation-pill { min-width: 60px; padding: 7px 10px; }
  .ym-variation-pill__sku { max-width: 80px; font-size: 9px; }
}


/* ══════════════════════════════════════════════════════════
   TASK 2 — DOCUMENTATION SIDEBAR CARD
   ══════════════════════════════════════════════════════════ */

.ym-sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.ym-docs-card__heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border-light);
  margin: 0;
}

.ym-docs-card__heading svg {
  flex-shrink: 0;
  stroke: var(--primary);
}

.ym-docs-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.ym-docs-list li {
  border-bottom: 1px solid var(--border-light);
}
.ym-docs-list li:last-child { border-bottom: none; }

.ym-doc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  text-decoration: none;
  transition: background 0.15s ease;
  cursor: pointer;
}

.ym-doc-link:hover:not(.ym-doc-link--disabled) {
  background: rgba(0, 152, 219, 0.06);
}

.ym-doc-link--disabled {
  opacity: 0.45;
  cursor: default;
}

/* Colored file type icon circles */
.ym-doc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ym-doc-icon--pdf {
  background: linear-gradient(135deg, #EF4444, #F97316);
}
.ym-doc-icon--pdf svg { stroke: #fff; }

.ym-doc-icon--dwg {
  background: linear-gradient(135deg, #0098db, #2563EB);
}
.ym-doc-icon--dwg svg { stroke: #fff; }

.ym-doc-icon--3d {
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
}
.ym-doc-icon--3d svg { stroke: #fff; }

.ym-doc-icon--manual {
  background: linear-gradient(135deg, #22C55E, #16A34A);
}
.ym-doc-icon--manual svg { stroke: #fff; }

.ym-doc-icon--graph {
  background: linear-gradient(135deg, #14B8A6, #0D9488);
}
.ym-doc-icon--graph svg { stroke: #fff; }

.ym-doc-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.ym-doc-text strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.ym-doc-meta {
  font-size: 10.5px;
  color: var(--text3);
  line-height: 1;
}

.ym-doc-download {
  flex-shrink: 0;
  color: var(--text3);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.ym-doc-link:hover .ym-doc-download {
  color: var(--primary);
}

.ym-docs-card__all {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-top: 1px solid var(--border-light);
  transition: background 0.15s;
}

.ym-docs-card__all:hover {
  background: rgba(0, 152, 219, 0.06);
}


/* ══════════════════════════════════════════════════════════
   TASK 3 — ANALOGS SECTION (Carousel + Comparison Table)
   ══════════════════════════════════════════════════════════ */

.ym-analogs-section {
  margin: 36px 0;
}

.ym-analogs-section--empty {
  margin: 20px 0 12px;
}

.ym-analogs-section__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.ym-analogs-count {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}

/* Analog cards carousel */
.ym-analogs-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.ym-analogs-carousel::-webkit-scrollbar { height: 4px; }
.ym-analogs-carousel::-webkit-scrollbar-track { background: transparent; }
.ym-analogs-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ym-analog-card {
  flex: 0 0 170px;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.18s ease;
  position: relative;
}

.ym-analog-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 152, 219, 0.14);
}

.ym-analog-card__match {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.ym-analog-card__img {
  aspect-ratio: 1 / 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ym-analog-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ym-analog-card__body {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ym-analog-card__brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ym-analog-card__model {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.ym-analog-card__specs {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.4;
}

.ym-analog-card__price {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text);
}

.ym-analog-card__price strong { color: var(--primary); }

.analog-price-req {
  font-size: 11px;
  color: var(--text3);
}

/* Comparison table */
.ym-analogs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.ym-analogs-table-wrap::-webkit-scrollbar { height: 5px; }
.ym-analogs-table-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ym-analogs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

/* Sticky first column */
.ym-analogs-table .ym-analogs-table__param-col,
.ym-analogs-table .ym-analogs-table__param {
  position: sticky;
  left: 0;
  background: var(--bg-secondary);
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  padding: 10px 16px;
  border-right: 1px solid var(--border-light);
  min-width: 130px;
}

.ym-analogs-table thead tr th {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  min-width: 160px;
}

/* Current product column — blue tint */
.ym-analogs-table .ym-analogs-table__current {
  background: rgba(0, 152, 219, 0.05);
  border-left: 2px solid rgba(0, 152, 219, 0.3);
  border-right: 2px solid rgba(0, 152, 219, 0.3);
  padding: 10px 16px;
}

.ym-analogs-table thead .ym-analogs-table__current {
  background: rgba(0, 152, 219, 0.08);
  border-top: 2px solid rgba(0, 152, 219, 0.4);
}

.ym-analogs-table tbody tr td {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

.ym-analogs-table tbody tr:last-child td {
  border-bottom: none;
}

.ym-analogs-table tbody tr:hover td:not(.ym-analogs-table__param) {
  background: rgba(0, 152, 219, 0.03);
}

.analog-col-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.analog-col-model {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.analog-col-badge {
  margin-top: 4px;
}

.analog-col-img {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  margin: 0 auto 8px;
  background: var(--bg-secondary, #F8FAFB);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}
.analog-col-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.analog-col-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.analog-col-link:hover {
  transform: translateY(-2px);
}
.analog-col-link:hover .analog-col-img {
  box-shadow: 0 4px 16px rgba(0,152,219,0.15);
}

.analog-col-specs {
  font-size: 11px;
  color: var(--text2, #5A6B7F);
  margin-bottom: 4px;
}

/* Match percentage badges */
.param-match {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.param-match--exact  { background: rgba(34, 197, 94, 0.15);  color: #16a34a; }
.param-match--high   { background: rgba(234, 179, 8, 0.15);  color: #b45309; }
.param-match--med    { background: rgba(156, 163, 175, 0.15); color: var(--text3); }

/* Matching / differing cells */
.param-highlight { color: var(--success); font-weight: 700; }
.param-diff      { color: var(--error);   font-weight: 600; }

code {
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  background: var(--bg);
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
  color: var(--text2);
}

@media (max-width: 900px) {
  .ym-analog-card { flex: 0 0 148px; }
}

@media (max-width: 600px) {
  .ym-analogs-section__header { flex-direction: column; gap: 6px; }
  .ym-analog-card { flex: 0 0 138px; }
  .ym-analogs-table thead tr th { min-width: 130px; }
  .ym-analogs-table .ym-analogs-table__param-col,
  .ym-analogs-table .ym-analogs-table__param { min-width: 100px; padding: 8px 10px; }
}
