/* === GENERAL LAYOUT === */
body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 40px 0;
}

.main-wrapper {
  width: 70%;
  margin: 0 auto;
  max-width: 1200px;
  min-width: 320px;
  box-sizing: border-box;
}

/* Visually hidden H1 for accessibility and SEO */
.h1-invisible {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.interactive-section-title {
  text-align: center;
  font-size: 2rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.interactive-section-cta {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 2rem;
}


/* === SVG BASE STYLES === */
.svg-shape-stroke {
  fill: none;
  stroke: #000;
  stroke-width: 0.4889;
  stroke-miterlimit: 10;
}

.svg-hit-area {
  opacity: 0;
  fill: #F9B920;
}

.svg-arrow-line {
  fill: none;
  stroke: #004A90;
  stroke-width: 0.7333;
  stroke-miterlimit: 10;
}

.svg-fill-primary {
  fill: #004A90;
}

.svg-text-dark {
  fill: #1D1D1B;
}

.svg-color-text {
  fill: #FFFFFF;
}

.svg-text-small {
  font-size: 10.8243px;
}

.svg-text-small-2 {
  font-size: 11.0708px;
}

.svg-special-stroke {
  fill: none;
  stroke: #004A90;
  stroke-width: 0.9777;
  stroke-miterlimit: 10;
}

.svg-text-large {
  font-size: 14.0032px;
}

.svg-special-stroke-2 {
  fill: none;
  stroke: #797FA5;
  stroke-width: 1.5;
  stroke-miterlimit: 10;
  
}

.path-inactive {
  opacity: 0;
  fill: none;
  stroke-width: 0.7;
  stroke-miterlimit: 10;
}


/* Dashed lines for second SVG */
.st7, .st8, .st9, .st10, .st11, .st12, .st13, .st14,
.st15, .st16, .st17, .st18, .st19, .st20 {
  fill: none;
  stroke: #000;
  stroke-width: 0.25;
  stroke-miterlimit: 10;
  stroke-dasharray: 18, 3.6, 3.6, 3.6, 3.6, 3.6;
}

.st8  { stroke-dashoffset: 5; }
.st9  { stroke-dashoffset: 7; }
.st10 { stroke-dashoffset: 8; }
.st11 { stroke-dashoffset: 13; }
.st12 { stroke-dashoffset: 10; }
.st13 { stroke-dashoffset: 12; }
.st14 { stroke-dashoffset: 6; }
.st15 { stroke-dashoffset: 16; }
.st16 { stroke-dashoffset: 9; }
.st17 { stroke-dashoffset: 14; }
.st18 { stroke-dashoffset: 4; }
.st19 { stroke-dashoffset: 3; }
.st20 { stroke-dashoffset: 11; }


/* === INTERACTIVE BLOCK (SVG + TABLE) === */
.interactive-block {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
}

.svg-container {
  flex: 1 1 50%;
  max-width: 600px;
}

.svg-header {
  background-color: #004a90;
  color: #fff;
  font-weight: bold;
  font-size: clamp(14px, 1.25vw, 20px);
  padding: 10px 20px;
  width: 100%;
  text-align: left;
  margin-top: 0.5rem;
  margin-bottom: 0;
  box-sizing: border-box;
}

.table-container {
  flex: 1 1 50%;
  max-width: 500px;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(10px, 0.6vw, 12px);
  border-spacing: 0;
}

.table-container table th {
  font-weight: bold;
  color: #004a90;
  border-bottom: 3px solid #004a90;
  text-align: left;
  padding: 0.5rem 0.8rem;
}

.table-container table td {
  padding: 0.5rem 0.8rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: visible;
  z-index: 0;
}

.table-container table td:first-child {
  font-weight: bold;
  color: #004a90;
}

.table-container table td:nth-child(2),
.table-container table td:nth-child(3) {
  color: #333;
}


/* === TABLE HIGHLIGHT EFFECTS === */
.table-row {
  transition: background-color 0.2s;
  cursor: pointer;
}

.table-row td::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 1.8em;
  width: 100%;
  background-color: transparent;
  z-index: -1;
  transition: background-color 0.2s;
}

.table-row.highlight td::before,
.table-row:hover td::before {
  background-color: #f9b920;
}

.table-row.highlight td:first-child,
.table-row:hover td:first-child {
  font-weight: 800;
}

.table-row.highlight td:nth-child(2),
.table-row.highlight td:nth-child(3),
.table-row:hover td:nth-child(2),
.table-row:hover td:nth-child(3) {
  color: #004a90;
}


/* === SVG HOVER LOGIC === */
.hoverable-part {
  cursor: pointer;
}

.hoverable-part .shape,
.hoverable-part .arrow-line {
  transition: stroke 0.2s;
}

.hoverable-part .path-inactive {
  transition: stroke 0.2s, opacity 0.2s;
}


.hoverable-part .arrow-head,
.hoverable-part .bubble-bg {
  transition: fill 0.2s;
}

.hoverable-part .bubble-text,
.hoverable-part .label {
  transition: fill 0.2s;
}

.hoverable-part.active .shape,
.hoverable-part:hover .shape,
.hoverable-part.active .arrow-line,
.hoverable-part:hover .arrow-line {
  stroke: #f9b920;
}

.hoverable-part.active .arrow-head,
.hoverable-part:hover .arrow-head,
.hoverable-part.active .bubble-bg,
.hoverable-part:hover .bubble-bg {
  fill: #f9b920;
}

.hoverable-part.active .bubble-text,
.hoverable-part:hover .bubble-text {
  fill: #004a90;
  font-weight: bold;
}

.hoverable-part.active .label,
.hoverable-part:hover .label {
  fill: #f9b920;
}

.hoverable-part.active .path-inactive,
.hoverable-part:hover .path-inactive {
  opacity: 1;
}


/* === CUSTOM POPOVER STYLES === */
.popover-wrapper .popover {
  pointer-events: auto;
  max-width: 320px;
  padding: 0 !important;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popover-wrapper .popover-header {
  display: none;
}

.popover-wrapper .popover-body {
  padding: 10px;
}

.popover-wrapper .popover-custom {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  align-items: flex-start;
  min-width: 260px;
}

.popover-wrapper .popover-custom img {
  max-width: 60px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.popover-wrapper .popover-left img {
  width: 60px;
  height: auto;
  border-radius: 4px;
}

.popover-wrapper .popover-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.popover-wrapper .popover-title {
  font-weight: bold;
  margin-bottom: 2px;
  font-size: 0.95em;
  color: #004a90;
  line-height: 1.1em;
}

.popover-wrapper .popover-description {
  color: #555;
  font-size: 0.80em;
  line-height: 1.2em;
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding-right: 6px;
  padding-bottom: 2px;
}

.popover-wrapper .popover-part-number {
  font-size: 0.75em;
  color: #888;
  margin-top: 4px;
}

.popover-wrapper .popover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 10px;
  flex-wrap: wrap;
}

.popover-wrapper .popover-price {
  font-weight: bold;
  color: #000;
  font-size: 0.9em;
  white-space: nowrap;
}

.popover-wrapper .popover-cart-btn {
  background-color: #f9b920;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  margin-right: 6px;
}

.popover-wrapper .popover-cart-btn:hover {
  background-color: #e5a900;
}


/* === RESPONSIVE BEHAVIOR (≤1024px) === */
@media (max-width: 1024px) {
  .interactive-block {
    flex-wrap: wrap;
  }

  .svg-container,
  .table-container {
    flex: 1 1 100%;
    max-width: 100%;
  }

  table {
    width: 100%;
  }
}
