:root {
  --clr-primary: #12372f;
  --clr-primary-dark: #071b17;
  --clr-primary-light: #eef7f3;
  --clr-accent: #c7893f;
  --clr-accent-dark: #9f6729;
  --clr-accent-light: #fbf4e8;
  --clr-secondary: #334155;
  --clr-muted: #64748b;
  --clr-border: #dde8e3;
}

svg {
  flex: none;
}

button {
  cursor: pointer;
}

.nav-active {
    background: #ffffff;
    color: #12372f !important;
    font-weight: 600;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.has-dropdown > .dropdown,
.has-subdrop > .subdropdown {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.has-dropdown > .dropdown {
  transform: translateY(12px);
}

.has-subdrop > .subdropdown {
  transform: translateX(10px);
}

.has-dropdown:hover > .dropdown,
.has-subdrop:hover > .subdropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: all 0.3s;
}

.hero-swiper .swiper-pagination-bullet-active {
  width: 30px;
  border-radius: 999px;
  background: var(--clr-accent);
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: 13px;
  font-weight: 800;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-track {
  animation: marquee 34s linear infinite;
  display: flex;
  width: max-content;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-body.open {
  max-height: 260px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.open {
  transform: rotate(45deg);
}

.filter-btn {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.filter-btn.active {
  background: #12372f;
  color: #fff;
  border-color: #12372f;
}

.blog-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(18, 55, 47, 0.12);
}
.blog-card img {
  transition: transform 0.5s ease;
}
.blog-card:hover img {
  transform: scale(1.05);
}

.pagination-btn {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.pagination-btn.active {
  background: #12372f;
  color: #fff;
  border-color: #12372f;
}

/* Article body typography */
.cv-article h2 {
  font-family: "Figtree", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  scroll-margin-top: 100px;
}
.cv-article h3 {
  font-family: "Figtree", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.cv-article p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.cv-article ul,
.cv-article ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}
.cv-article ul li {
  list-style: disc;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}
.cv-article ol li {
  list-style: decimal;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}
.cv-article blockquote {
  border-left: 3px solid #c7893f;
  background: #fbf4e8;
  padding: 1rem 1.5rem;
  border-radius: 0 16px 16px 0;
  margin: 1.75rem 0;
  font-style: italic;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.cv-article strong {
  color: #0f172a;
  font-weight: 700;
}

/* TOC active link */
.toc-link {
  display: block;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  color: #64748b;
  border-left: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
  line-height: 1.5;
}
.toc-link:hover,
.toc-link.active {
  color: #12372f;
  border-left-color: #12372f;
  background: #eef7f3;
}

/* Related card */
.related-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(18, 55, 47, 0.12);
}
.related-card img {
  transition: transform 0.5s ease;
}
.related-card:hover img {
  transform: scale(1.05);
}

/* Progress bar */
#readProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #c7893f;
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Products Page ── */
.cat-tab {
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.cat-tab.active {
  background: #12372f;
  color: #fff;
  border-color: #12372f;
}

.product-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(18, 55, 47, 0.13);
}
.product-card .card-img img {
  transition: transform 0.4s ease;
}
.product-card:hover .card-img img {
  transform: scale(1.06);
}

.filter-check:checked + label {
  background: #eef7f3;
  border-color: #12372f;
  color: #12372f;
}

/* Count badge on tab */
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
}
.cat-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* No results */
#noProducts {
  display: none;
}
#noProducts.show {
  display: flex;
}

.thumb-btn {
  transition:
    border-color 0.2s,
    opacity 0.2s;
  opacity: 0.55;
}
.thumb-btn.active,
.thumb-btn:hover {
  border-color: #12372f;
  opacity: 1;
}

/* Product Detail — Magnifier Zoom */
.img-zoom-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  border: 1px solid #dde8e3;
  background: #eef7f3;
  cursor: crosshair;
  /* overflow: hidden NAHI — warna result clip hoga */
}
.img-zoom-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  border-radius: 32px;
}
.zoom-lens {
  position: absolute;
  border: 2px solid #12372f;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  background: rgba(18, 55, 47, 0.08);
  pointer-events: none;
  display: none;
  z-index: 10;
}
.zoom-result {
  display: none;
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 28px;
  border: 1px solid #dde8e3;
  background: #fff;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 20px 60px -12px rgba(18, 55, 47, 0.2);
  pointer-events: none;
}
.zoom-result-inner {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-color: #fff;
}

@media (max-width: 1023px) {
  .zoom-result {
    display: none !important;
  }
  .zoom-lens {
    display: none !important;
  }
  .img-zoom-container {
    cursor: default;
  }
}

/* Thumb up/down arrows */
.thumb-arrow {
  width: 100%;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid #dde8e3;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  flex: none;
}
.thumb-arrow:hover {
  background: #eef7f3;
  color: #12372f;
}
.thumb-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Product tabs */
.prod-tab {
  transition:
    color 0.2s,
    border-color 0.2s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.prod-tab.active {
  color: #12372f;
  border-bottom-color: #12372f;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* Related card */
.rel-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.rel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(18, 55, 47, 0.13);
}
.rel-card .rel-img img {
  transition: transform 0.4s ease;
}
.rel-card:hover .rel-img img {
  transform: scale(1.06);
}

/* Spec grid */
.spec-row:not(:last-child) {
  border-bottom: 1px solid #dde8e3;
}


