/* ===== VESOBIO PRODUCT TABS WIDGET ===== */
/* Prefixed with .vesobio-tabs-widget to avoid conflicts with Joomla templates */

.vesobio-tabs-widget {
  --vt-font-d: 'Space Grotesk', system-ui, sans-serif;
  --vt-font-b: 'Inter', system-ui, sans-serif;
  --vt-dark-text: #1A1A2E;
  --vt-dark-text-secondary: #4A4A68;
  --vt-dark-text-muted: #6B7280;
  --vt-light-border-outer: rgba(0,0,0,0.06);
  --vt-light-card-bg: rgba(255,255,255,0.55);
  --vt-light-border: rgba(255,255,255,0.6);
  --vt-glass-blur: blur(16px);
  --vt-green-on-light: #1A6FA0;
  --vt-gradient: linear-gradient(135deg, #1A6FA0 0%, #3ABAB2 100%);
  --vt-coral: #FF6B4A;

  font-family: var(--vt-font-b);
  font-size: 16px;
  color: var(--vt-dark-text);
  line-height: 1.5;
}

.vesobio-tabs-widget *,
.vesobio-tabs-widget *::before,
.vesobio-tabs-widget *::after { box-sizing: border-box; }

.vesobio-tabs-widget h2,
.vesobio-tabs-widget h3,
.vesobio-tabs-widget h4 {
  font-family: var(--vt-font-d);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.vesobio-tabs-widget .vt-text-gradient {
  color: var(--vt-dark-text);
}

@keyframes vtFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TAB NAVIGATION ===== */
.vt-tab-nav {
  display: flex;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--vt-light-border-outer);
  background: rgba(0,0,0,0.02);
  margin-bottom: 36px;
}

.vt-tab-btn {
  flex: 1 1 0;
  padding: 16px 14px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--vt-font-d);
  color: var(--vt-dark-text-muted);
  white-space: nowrap;
  transition: all 0.25s;
  background: none;
  border: none;
  text-align: center;
  border-right: 1px solid var(--vt-light-border-outer);
  min-width: 0;
  cursor: pointer;
}

.vt-tab-btn:last-child { border-right: none; }
.vt-tab-btn:hover { color: var(--vt-dark-text); background: rgba(30,124,184,0.03); }
.vt-tab-btn.active { color: #fff; background: var(--vt-dark-text); font-weight: 600; }

/* ===== TAB PANELS ===== */
.vt-tab-panels { position: relative; }
.vt-tab-panel { display: none; animation: vtFadeUp 0.35s ease-out; }
.vt-tab-panel.active { display: block; }

/* ===== SPECS TABLE ===== */
.vt-specs-table {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--vt-light-border-outer);
  background: var(--vt-light-card-bg);
  backdrop-filter: var(--vt-glass-blur);
}

.vt-specs-row {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.vt-specs-row:last-child { border-bottom: none; }
.vt-specs-row:hover { background: rgba(30,124,184,0.02); }

.vt-specs-label {
  flex: 0 0 220px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--vt-dark-text-muted);
  background: rgba(0,0,0,0.015);
}

.vt-specs-value {
  flex: 1;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--vt-dark-text);
}

/* ===== FEATURES CHECKLIST ===== */
.vt-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

.vt-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--vt-dark-text);
}

.vt-feat-item svg {
  width: 18px;
  height: 18px;
  color: #16a34a;
  flex-shrink: 0;
}

/* ===== PROTOCOL CARDS ===== */
.vt-protocol-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--vt-light-card-bg);
  border: 1px solid var(--vt-light-border-outer);
  flex-wrap: wrap;
  backdrop-filter: var(--vt-glass-blur);
  margin-bottom: 12px;
}

.vt-protocol-info { flex: 1; min-width: 120px; }

.vt-protocol-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--vt-dark-text);
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vt-protocol-info h4 svg { width: 14px; height: 14px; color: var(--vt-green-on-light); }
.vt-protocol-info p { font-size: 12px; color: var(--vt-dark-text-muted); margin: 0; }

.vt-protocol-actions { display: flex; gap: 6px; flex-shrink: 0; }

.vt-proto-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--vt-font-d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.vt-proto-btn svg { width: 12px; height: 12px; }
.vt-proto-btn-view { background: var(--vt-gradient); color: #fff; }
.vt-proto-btn-view:hover { box-shadow: 0 4px 12px rgba(30,124,184,0.2); }
.vt-proto-btn-dl { background: rgba(0,0,0,0.04); color: var(--vt-dark-text-secondary); border: 1px solid var(--vt-light-border-outer); }
.vt-proto-btn-dl:hover { background: rgba(30,124,184,0.06); color: var(--vt-dark-text); }

/* ===== WORKFLOW STEPS ===== */
.vt-workflow {
  display: flex;
  gap: 0;
  margin: 32px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.vt-wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 100px;
  max-width: 150px;
  position: relative;
  padding: 0 8px;
}

.vt-wf-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: var(--vt-gradient);
  opacity: 0.3;
}

.vt-wf-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vt-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--vt-font-d);
  color: #fff;
  position: relative;
  z-index: 2;
}

.vt-wf-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--vt-dark-text);
  text-align: center;
}

.vt-wf-desc {
  font-size: 12px;
  color: var(--vt-dark-text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ===== REACTION TABLE ===== */
.vt-reaction-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--vt-light-border-outer);
  background: var(--vt-light-card-bg);
  margin-top: 28px;
}

.vt-reaction-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.vt-reaction-wrap thead th {
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vt-dark-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--vt-light-border-outer);
  background: rgba(0,0,0,0.02);
}

.vt-reaction-wrap tbody td {
  padding: 12px 20px;
  font-size: 16px;
  color: var(--vt-dark-text);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.vt-reaction-wrap tbody tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  background: rgba(30,124,184,0.03);
}

/* ===== FAQ ACCORDION ===== */
.vt-faq-item {
  border: 1px solid var(--vt-light-border-outer);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--vt-light-card-bg);
  backdrop-filter: var(--vt-glass-blur);
}

.vt-faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--vt-font-d);
  color: var(--vt-dark-text);
  text-align: left;
  transition: all 0.2s;
  background: transparent;
  gap: 14px;
  border: none;
  cursor: pointer;
}

.vt-faq-question:hover { background: rgba(30,124,184,0.03); }

.vt-faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--vt-dark-text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.vt-faq-item.open .vt-faq-question svg { transform: rotate(180deg); }

.vt-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.vt-faq-item.open .vt-faq-answer { max-height: 400px; }

.vt-faq-answer-inner {
  padding: 0 22px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--vt-dark-text-secondary);
}

/* ===== SAFETY / QUALITY ===== */
.vt-safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.vt-safety-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--vt-light-card-bg);
  border: 1px solid var(--vt-light-border);
}

.vt-safety-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--vt-dark-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vt-safety-card h3 svg { width: 20px; height: 20px; color: var(--vt-green-on-light); }

.vt-safety-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vt-safety-card li {
  font-size: 16px;
  color: var(--vt-dark-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vt-safety-card li svg { width: 16px; height: 16px; color: var(--vt-green-on-light); flex-shrink: 0; }

.vt-disclaimer {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,107,74,0.04);
  border: 1px solid rgba(255,107,74,0.12);
}

.vt-disclaimer p {
  font-size: 16px;
  color: var(--vt-dark-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.vt-disclaimer strong { color: var(--vt-dark-text); font-weight: 600; }

/* ===== KIT COMPONENTS TABLE ===== */
.vt-kit-table-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--vt-light-border-outer);
  background: var(--vt-light-card-bg);
  backdrop-filter: var(--vt-glass-blur);
}

.vt-kit-group-header {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--vt-font-d);
  color: var(--vt-dark-text);
  background: linear-gradient(135deg, rgba(26,111,160,0.08) 0%, rgba(58,186,178,0.06) 100%);
  border-bottom: 1px solid var(--vt-light-border-outer);
}

.vt-kit-group-header:not(:first-child) {
  border-top: 2px solid var(--vt-light-border-outer);
}

.vt-kit-table {
  width: 100%;
  border-collapse: collapse;
}

.vt-kit-table thead th {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vt-dark-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--vt-light-border-outer);
  background: rgba(0,0,0,0.02);
}

.vt-kit-table tbody td {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--vt-dark-text);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.vt-kit-table tbody tr:last-child td {
  border-bottom: none;
}

.vt-kit-table tbody tr:hover {
  background: rgba(30,124,184,0.02);
}

.vt-kit-table code {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.04);
  color: var(--vt-green-on-light);
  font-family: 'SF Mono', 'Consolas', monospace;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .vt-tab-nav { flex-direction: column; border-radius: 12px; }
  .vt-tab-btn { border-right: none; border-bottom: 1px solid var(--vt-light-border-outer); }
  .vt-tab-btn:last-child { border-bottom: none; }
  .vt-features { grid-template-columns: 1fr; }
  .vt-specs-row { flex-direction: column; }
  .vt-specs-label { flex: none; padding: 12px 18px 4px; }
  .vt-specs-value { padding: 4px 18px 12px; }
  .vt-safety-grid { grid-template-columns: 1fr; }
  .vt-workflow { flex-wrap: wrap; gap: 16px; }
  .vt-wf-step:not(:last-child)::after { display: none; }
  .vt-kit-table-wrap { overflow-x: auto; }
  .vt-kit-table { min-width: 600px; }
}

/* Product Information rich content */
.vt-product-info-content { color: var(--vt-dark-text-secondary); font-size: 15px; line-height: 1.8; }
.vt-product-info-content h1, .vt-product-info-content h2, .vt-product-info-content h3,
.vt-product-info-content h4, .vt-product-info-content h5 { color: var(--vt-dark-text); margin: 24px 0 12px; font-weight: 600; }
.vt-product-info-content p { margin-bottom: 14px; }
.vt-product-info-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.vt-product-info-content ul, .vt-product-info-content ol { margin: 12px 0 12px 24px; }
.vt-product-info-content li { margin-bottom: 6px; }
.vt-product-info-content a { color: var(--vt-primary); text-decoration: underline; }
.vt-product-info-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.vt-product-info-content th, .vt-product-info-content td { padding: 8px 12px; border: 1px solid var(--vt-border); text-align: left; }
.vt-product-info-content th { background: var(--vt-bg); font-weight: 600; }
.vt-product-info-content blockquote { border-left: 3px solid var(--vt-primary); padding: 12px 20px; margin: 16px 0; background: rgba(26,111,160,0.04); border-radius: 0 8px 8px 0; }
