:root {
  --bg: #fff;
  --bg-soft: #faf9f7;
  --bg-secondary: #f5f3ef;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e8e4dd;
  --orange: #c9a033;
  --orange-deep: #b8922a;
  --blue: #c9a033;
  --blue-deep: #a8841e;
  --gold: #d4a84b;
  --wrap: 1280px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: 64px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__inner {
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar__logo img {
  width: 140px;
  height: auto;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 2px solid var(--orange);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  max-width: 640px;
}

.search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.7rem 1rem;
  min-width: 0;
}

.search__cam {
  border: 0;
  background: transparent;
  color: #888;
  padding: 0 0.4rem;
  cursor: pointer;
}

.search__btn {
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
}

.topbar__utils {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.util--user {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--blue-deep);
}

.btn-outline {
  background: #fff;
  border-color: #222;
  color: #222;
}

.btn-block {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.btn-gold-glow {
  background: linear-gradient(180deg, #ffe08a, #f0b429);
  color: #222;
  min-width: 180px;
  padding: 0.7rem 1.5rem;
  box-shadow: 0 0 18px rgba(240, 180, 41, 0.55);
}

.subnav {
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
}

.subnav__inner {
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  overflow-x: auto;
}

.subnav__inner a {
  transition: color 0.15s ease;
}

.subnav a:hover {
  color: var(--orange);
}

.page {
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 1.25rem auto 2.5rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.product-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.3;
  font-weight: 800;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.meta-reviews {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.product-meta .sep::before {
  content: "·";
  margin-right: 0.5rem;
  color: #ccc;
}

.honor b {
  color: var(--ink);
}

.gallery {
  position: relative;
  margin-bottom: 1.5rem;
}

.gallery__main {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
}

.gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__nav {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: calc(100% - 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0.5rem;
}

.gallery__arrow {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.thumb {
  aspect-ratio: 16 / 10;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.72rem;
  overflow: hidden;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.is-active,
.thumb:hover {
  border-color: var(--orange);
}

.media-slot {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.06), transparent 40%),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0 8px, transparent 8px 16px),
    #fafafa;
  border: 1px dashed #d0d0d0;
  color: #888;
}

.media-label {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 1rem;
}

.desc {
  margin-bottom: 2rem;
}

.desc__title {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.desc p {
  margin: 0 0 1.1rem;
  color: #444;
  font-size: 0.95rem;
}

.ai-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.ai-summary h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.ai-num {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.ai-divider {
  width: 1px;
  background: var(--line);
}

.ratings h2,
.review-list h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.ratings__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.tab {
  border: 0;
  background: transparent;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.ratings__panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  padding: 1rem 0 1.5rem;
}

.score-num {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.stars {
  display: flex;
  gap: 0.1rem;
  margin: 0.35rem 0;
}

.score-label {
  margin: 0;
  font-weight: 700;
}

.score-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.bars {
  display: grid;
  gap: 0.65rem;
  align-content: center;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 36px;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
}

.bar {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--orange-deep);
}

.review-list {
  display: grid;
  gap: 0;
  padding-bottom: 1rem;
}

.review {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.review__left {
  padding-top: 2px;
}

.review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 0.6rem;
}

.review__avatar.initial {
  display: grid;
  place-items: center;
  background: #f0f0f0;
  color: #555;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
}

.review__body {
  display: grid;
  gap: 0.3rem;
}

.review__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.review__head strong {
  color: var(--ink);
}

.review__date {
  color: var(--muted);
  font-size: 0.78rem;
}

.review__stars {
  display: flex;
  gap: 1px;
}

.review p {
  margin: 0.15rem 0 0;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.55;
}

.col-side {
  position: sticky;
  top: 88px;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.price-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 1.15rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.price-item {
  text-align: center;
  padding: 0.75rem 0.35rem;
  background: #fafafa;
  border-right: 1px solid var(--line);
  position: relative;
}

.price-item:last-child {
  border-right: 0;
}

.price-item--hot {
  background: linear-gradient(180deg, #fff8eb, #fff4db);
}

.price-badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.price-range {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.price-val {
  font-size: 1.05rem;
  color: var(--ink);
}

.price-item--hot .price-val {
  color: var(--orange);
}

.side-block {
  margin-bottom: 1rem;
}

.side-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.side-block__head h3,
.side-block--bonus h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

.side-block__head h3 {
  margin-bottom: 0;
}

.side-block__head a {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.82rem;
}

.sku-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sku {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 500;
  color: #444;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sku.is-selected {
  border-color: var(--orange);
  background: #fff7ee;
  color: var(--orange);
  font-weight: 600;
}

.sku:hover {
  border-color: var(--orange);
}

.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.bonus-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: #fdf9f0;
  border: 1px solid #efe4c8;
  font-size: 0.78rem;
  font-weight: 500;
  color: #333;
}

.bonus-item svg {
  flex-shrink: 0;
  color: var(--blue);
}

.protect-banner {
  display: flex;
  gap: 0.65rem;
  padding: 0.8rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf9f0, #faf5e6);
  border: 1px solid #efe4c8;
  margin-bottom: 1rem;
}

.protect-banner svg {
  flex-shrink: 0;
  color: #b8922a;
  margin-top: 1px;
}

.protect-banner strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.protect-banner p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.side-actions {
  display: grid;
  gap: 0.55rem;
}

.btn-cta {
  background: linear-gradient(135deg, #d4a84b, #a8841e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 132, 30, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
}

.btn-cta:hover {
  box-shadow: 0 6px 20px rgba(168, 132, 30, 0.4);
}

.btn-outline {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
  border-width: 1.5px;
}

.site-footer {
  background: #2e2e2e;
  color: #ddd;
  padding: 2.25rem 0 1.25rem;
}

.footer-grid {
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.footer-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: #fff;
}

.footer-grid a {
  display: block;
  font-size: 0.82rem;
  color: #bbb;
  margin-bottom: 0.4rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #444;
  font-size: 0.8rem;
  color: #999;
}

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #111;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
}

.sticky-bar .btn {
  flex: 1;
  max-width: 280px;
}

.btn-sticky {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-radius: 999px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-sticky:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.03);
}

.btn-sticky--login {
  background: linear-gradient(135deg, #d4a84b, #b8922a);
  color: #fff;
  box-shadow: 0 4px 18px rgba(212, 168, 75, 0.4);
}

.btn-sticky--daftar {
  background: linear-gradient(135deg, #fff8e7, #f1d27a);
  color: #5f4300;
  border: 1.5px solid #d4a84b;
  box-shadow: 0 4px 18px rgba(212, 168, 75, 0.25);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(212, 168, 75, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(212, 168, 75, 0.7); }
}

.btn-sticky--login {
  animation: pulseGlow 2s ease-in-out infinite;
}

@media (max-width: 980px) {
  .layout,
  .ratings__panel,
  .footer-grid,
  .ai-summary,
  .price-ladder {
    grid-template-columns: 1fr;
  }

  .ai-divider {
    width: 100%;
    height: 1px;
  }

  .col-side {
    position: static;
  }

  .topbar__utils .util--user span {
    display: none;
  }

  .search {
    max-width: none;
  }

  .bar-row {
    grid-template-columns: 110px 1fr 32px;
  }
}

@media (max-width: 640px) {
  .topbar__inner {
    flex-wrap: wrap;
    padding: 0.6rem 0;
  }

  .topbar__logo {
    order: 1;
  }

  .topbar__utils {
    order: 2;
    margin-left: auto;
  }

  .search {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery__thumbs .thumb:last-child {
    display: none;
  }
}

/* Review marquee scroll */
.review-scroll {
  max-height: 320px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.review-track {
  display: flex;
  flex-direction: column;
}

@keyframes scrollUp {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.review-track.is-scrolling {
  animation: scrollUp var(--scroll-duration, 30s) linear infinite;
}

.review-track.is-scrolling:hover {
  animation-play-state: paused;
}

.review-scroll .review {
  flex-shrink: 0;
}

.review__stars {
  position: relative;
  width: 73px;
  height: 13px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  margin-bottom: 0.25rem;
}

.review__stars::before {
  content: "";
  display: block;
  width: 73px;
  height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23d4a84b' d='M10 1.5l2.5 5.1 5.6.8-4 3.9.9 5.6L10 14.3 4.9 17l.9-5.6-4-3.9 5.6-.8L10 1.5z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 13px 13px;
  background-position: left center;
}

.ai-num--rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-num--rating svg {
  flex-shrink: 0;
}

/* FAQ */
.faq {
  margin-top: 1.5rem;
}

.faq h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0;
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  gap: 0.75rem;
  font-family: inherit;
}

.faq-q svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--muted);
}

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0;
}

.faq-item.is-open .faq-a {
  max-height: 200px;
  padding: 0 0 0.85rem;
}

.faq-a p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}
