/* ===== RESET & BASE ===== */
/* Restore margin/padding reset - Bootstrap's box-sizing is compatible */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== BOOTSTRAP OVERRIDES ===== */
.btn { border-radius: 20px; }
.card { 
  border-radius: 20px;
  border-width: 1px;
  box-shadow: none;
}

:root {
  --rs-mint: #daefec;
  --rs-teal: #0d9488;
  --rs-teal-dark: #0f766e;
  --rs-orange: #e8975e;
  --rs-bg: #f5f7f6;
  --rs-text: #4f4f4f;
  --rs-text-muted: #94a3b8;
  --rs-border: #e2e8f0;
}

body {
  font-family: 'Quicksand', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--rs-bg);
  -webkit-font-smoothing: antialiased;
}

/* ===== PRODUCT PRICE GAUGE BAR ===== */
.price-gauge-wrapper {
  margin: 0 auto 40px;
  padding: 32px 60px 32px;
  background: #fff;
  overflow: visible !important;
}

.price-disclaimer {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: right;
  font-style: italic;
}

.gauge-product-thumb {
  text-align: center;
  margin-top: 18px;
}
.gauge-product-thumb img {
  max-height: 120px;
  max-width: 160px;
  object-fit: contain;
}

.price-gauge-labels {
  display: none;
}

.price-gauge-min { color: #99ECAB; }
.price-gauge-max { color: #F5AD82; }

.price-gauge-split-container {
  display: flex;
  align-items: center;
  gap: 0;
}

.price-gauge-track {
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, #99ECAB 0%, #F5E6A3 50%, #F5AD82 100%);
  border-radius: 4px;
  margin-top: 80px;
  margin-bottom: 36px;
  flex: 1;
}

/* Non-split track: reset flex to preserve height inside card (flex column) */
.price-gauge-wrapper > .price-gauge-track {
  flex: none;
}

/* Min / Max price anchored to gauge track extremities */
.price-gauge-track::before,
.price-gauge-track::after {
  position: absolute;
  top: calc(100% + 6px);
  font-size: 0.8rem;
  font-weight: 700;
}
.price-gauge-track::before {
  content: attr(data-min);
  left: 0;
  color: #6bc480;
}
.price-gauge-track::after {
  content: attr(data-max);
  right: 0;
  color: #e08a5a;
}

.price-gauge-track--left {
  flex: 3;
  background: linear-gradient(90deg, #99ECAB 0%, #c8e6a0 100%);
  border-radius: 4px 0 0 4px;
}
.price-gauge-track--left::after { content: none; }

.price-gauge-track--right {
  flex: 2;
  background: linear-gradient(90deg, #F5D6A3 0%, #F5AD82 100%);
  border-radius: 0 4px 4px 0;
}
.price-gauge-track--right::before { content: none; }

.price-gauge-break {
  flex: 0 0 60px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 3px;
  margin-top: 80px;
  margin-bottom: 20px;
  line-height: 8px;
}

.price-gauge-pin {
  position: absolute;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.price-gauge-pin-top {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  overflow: hidden;
  margin-top: -14px;
}

.price-gauge-pin-top img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.price-gauge-pin-fallback {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
}

.price-gauge-pin-label {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.price-gauge-pin-name {
  font-size: 0.65rem;
  color: #94a3b8;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ===== PRICE HISTORY ===== */
.price-chart-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
  background: #fff;
  padding: 16px;
}

/* ===== TOC SIDEBAR ===== */
.toc-sidebar {
  position: fixed;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  padding: 12px 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-sidebar li {
  margin: 0;
}

.toc-sidebar .toc-link {
  display: block;
  padding: 8px 16px 8px 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.toc-sidebar .toc-link:hover {
  color: #475569;
}

.toc-sidebar .toc-link.active {
  color: #0d9488;
  border-left-color: #0d9488;
  font-weight: 600;
}

@media (max-width: 1280px) {
  .toc-sidebar {
    display: none;
  }
}
