/* ===== CAJB Mini page theme =====
   Set these to the Sansar site colours (or map them to the site's own CSS variables). */
.product-detail-section {
  --sm-primary: #0b3c6f;
  /* main brand colour */
  --sm-primary-dark: #181a1d;
  /* darker shade for headers / hover */
  --sm-accent: #efac00;
  /* accent / highlight colour */
  --sm-text: #2b2f36;
  --sm-muted: #6b7280;
  --sm-soft: #f4f6f9;
  --sm-border: #e3e7ed;
}

.product-detail-section h3 {
  color: var(--sm-primary);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.product-detail-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--sm-accent);
  border-radius: 2px;
}

.product-detail-section .product-name {
  color: var(--sm-primary-dark);
  font-weight: 800;
}

.product-detail-section ul:not(.sb-list):not(.sb-toc) li::marker {
  color: var(--sm-accent);
}

.product-quote-box {
  background: var(--sm-soft);
  border-left: 4px solid var(--sm-accent);
  border-radius: 12px;
}

/* ===== Sidebar ===== */
.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 992px) {
  .product-sidebar {
    position: sticky;
    top: 100px;
  }
}

.sb-card {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(11, 60, 111, 0.06);
}

.sb-card-head {
  background: var(--sm-primary);
  color: #fff;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
  border-bottom: 3px solid var(--sm-accent);
}

.sb-card-body {
  padding: 20px;
}

.sb-cta {
  background: linear-gradient(
    145deg,
    var(--sm-primary) 0%,
    var(--sm-primary-dark) 100%
  );
  color: #fff;
  border: 0;
}

.sb-cta .sb-card-body h4 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.sb-cta .sb-card-body p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 16px;
}

.sb-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sb-btn + .sb-btn {
  margin-top: 10px;
}

.sb-btn-accent {
  background: var(--sm-accent);
  color: #fff;
  border: 2px solid var(--sm-accent);
}

.sb-btn-accent:hover {
  background: #fff;
  color: var(--sm-accent);
}

.sb-btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.sb-btn-ghost:hover {
  background: #fff;
  color: var(--sm-primary);
}

.sb-list,
.sb-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  margin-bottom: 6px;
  border-radius: 8px;
  color: var(--sm-text);
  text-decoration: none;
  background: var(--sm-soft);
  transition: all 0.25s ease;
}

.sb-list li a::after {
  content: "\203A";
  font-size: 20px;
  line-height: 1;
  color: var(--sm-muted);
  transition: transform 0.25s ease;
}

.sb-list li a:hover {
  background: var(--sm-primary);
  color: #fff;
}

.sb-list li a:hover::after {
  color: #fff;
  transform: translateX(4px);
}

.sb-list li a.active {
  background: var(--sm-primary);
  color: #fff;
  font-weight: 700;
  border-left: 4px solid var(--sm-accent);
}

.sb-list li a.active::after {
  color: var(--sm-accent);
}

.sb-toc li a {
  display: block;
  padding: 8px 0 8px 14px;
  color: var(--sm-muted);
  text-decoration: none;
  border-left: 3px solid var(--sm-border);
  font-size: 15px;
  transition: all 0.2s ease;
}

.sb-toc li a:hover,
.sb-toc li a.active {
  color: var(--sm-primary);
  border-left-color: var(--sm-accent);
  font-weight: 600;
}

.sb-facts {
  margin: 0;
}

.sb-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--sm-border);
  font-size: 14px;
}

.sb-facts div:last-child {
  border-bottom: 0;
}

.sb-facts dt {
  color: var(--sm-muted);
  font-weight: 500;
  margin: 0;
}

.sb-facts dd {
  color: var(--sm-text);
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.sb-contact {
  background: var(--sm-primary-dark);
  color: #fff;
  border: 0;
}

.sb-contact .sb-card-body h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 14px;
}

.sb-contact a {
  color: #fff;
  text-decoration: none;
}

.sb-contact a:hover {
  color: var(--sm-accent);
}

.sb-contact p {
  margin: 0 0 10px;
  font-size: 15px;
}

.sb-contact .sb-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sm-accent);
}
