/* =========================================================
   HOMEPAGE — marketplace modern (palet emas Comptes)
   ========================================================= */

.ch-content { padding-top: 0 !important; }
body.home .site-content .col-full { max-width: none; padding-left: 0; padding-right: 0; }

/* ---------- HERO ---------- */
.ch-hero {
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(224, 165, 38, .20), transparent 62%),
    linear-gradient(180deg, #faf3e1 0%, #fffdf8 68%, #ffffff 100%);
  border-bottom: 1px solid var(--c-line);
  padding-top: 52px;
}
.ch-hero-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.ch-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--c-line); color: var(--c-link);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.ch-hero h1 {
  font-size: clamp(30px, 4vw, 50px); font-weight: 900;
  letter-spacing: -.025em; line-height: 1.08; margin: 0 auto 16px;
  max-width: 24ch;
}
.ch-hero p { font-size: 17px; color: var(--c-muted); max-width: 64ch; margin: 0 auto; }

/* Search besar */
.ch-hero-search {
  display: flex; align-items: stretch; gap: 0;
  max-width: 820px; margin: 26px auto 18px; padding: 6px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  box-shadow: 0 18px 44px -26px rgba(58, 46, 34, .55);
}
.ch-hero-select { position: relative; flex: 0 0 190px; }
.ch-hero-select::after {
  content: "\25BE"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--c-muted); font-size: 12px; pointer-events: none;
}
.ch-hero-select select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 100%;
  border: 0; background: #f7f1e3; border-radius: 10px; padding: 0 34px 0 16px;
  font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--c-ink); cursor: pointer;
}
.ch-hero-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  padding: 15px 18px; font-family: inherit; font-size: 16px; color: var(--c-text); outline: none;
}
.ch-hero-search button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: var(--c-primary); color: #241a06;
  font-family: inherit; font-weight: 800; font-size: 15px; padding: 0 24px;
  border-radius: 10px; cursor: pointer; transition: background .15s ease;
}
.ch-hero-search button svg { width: 20px; height: 20px; }
.ch-hero-search button:hover { background: var(--c-primary-2); }

.ch-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ch-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.ch-chip {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--c-line); color: var(--c-ink);
  font-weight: 600; font-size: 13.5px; transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.ch-chip:hover { border-color: var(--c-primary); color: var(--c-link); background: #f7f1e3; }

/* Slider hero */
.ch-hero-slider { padding-top: 34px; padding-bottom: 54px; }
.ch-hero-slider img { width: 100%; height: auto; display: block; }
.ch-hero-slider .metaslider { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ch-hero-slider .metaslider .flexslider { margin: 0; border: 0; background: transparent; box-shadow: none; }
.ch-hero-slider .metaslider .flexslider img { border-radius: 0; }

/* ---------- TRUST STRIP ---------- */
.ch-trust { position: relative; z-index: 3; margin-top: -34px; padding-bottom: 6px; }
.ch-trust-card {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 22px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 20px 26px;
}
.ch-trust-item { display: flex; gap: 12px; align-items: center; }
.ch-trust-item svg { color: var(--c-primary); flex: 0 0 auto; width: 28px; height: 28px; }
.ch-trust-item b { display: block; color: var(--c-ink); font-size: 14.5px; line-height: 1.25; }
.ch-trust-item span { font-size: 13px; color: var(--c-muted); line-height: 1.35; }

/* ---------- SECTION UMUM ---------- */
.ch-sec { padding: 56px 0; }
.ch-sec--alt { background: var(--c-bg); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.ch-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 24px;
}
.ch-sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.ch-sec-head a { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ch-head-right { display: flex; align-items: center; gap: 18px; }

/* ---------- KARTU KATEGORI ---------- */
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cc-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column; color: var(--c-ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e6d3a8; color: var(--c-link); }
.cc-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f6f2e8; display: block; }
.cc-img--blank {
  display: flex; align-items: center; justify-content: center;
  color: #c9b790; background: #f8f3e7;
}
.cc-img--blank svg { width: 38px; height: 38px; }
.cc-name { font-weight: 700; font-size: 15px; padding: 13px 15px 0; line-height: 1.3; }
.cc-count { font-size: 13px; color: var(--c-muted); padding: 3px 15px 14px; }

/* ---------- CAROUSEL PRODUK ---------- */
.ch-products { min-width: 0; }
.pc-slider {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 2px 2px 12px; scrollbar-width: none;
}
.pc-slider::-webkit-scrollbar { display: none; }
.pc-slider:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 4px; border-radius: 8px; }
.pc-slider .pc-card { flex: 0 0 calc((100% - 54px) / 4); scroll-snap-align: start; }

.ch-car-nav { display: flex; gap: 8px; }
.ch-car-prev, .ch-car-next {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--c-line);
  background: #fff; color: var(--c-ink); font-size: 22px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0 3px; transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.ch-car-prev:hover:not(:disabled), .ch-car-next:hover:not(:disabled) {
  background: var(--c-primary); border-color: var(--c-primary); color: #241a06;
}
.ch-car-prev:disabled, .ch-car-next:disabled { opacity: .35; cursor: default; }

/* ---------- KARTU PRODUK ---------- */
.pc-card {
  position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.pc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e6d3a8; }
.pc-thumb { position: relative; display: block; background: #faf8f3; padding: 14px; }
.pc-img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; display: block; }
.pc-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--c-sale); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .02em; padding: 5px 9px; border-radius: 6px;
  box-shadow: 0 4px 10px -4px rgba(178, 58, 46, .6);
}
.pc-body { padding: 2px 14px 10px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pc-title {
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px; font-weight: 500; margin: 0; line-height: 1.45; letter-spacing: .005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}
.pc-title a { color: var(--c-ink); }
.pc-title a:hover { color: var(--c-link); }
.pc-price {
  margin-top: auto; color: var(--c-link); font-weight: 800; font-size: 16px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
}
.pc-price del { color: var(--c-muted); font-weight: 400; font-size: 12.5px; }
.pc-price ins { text-decoration: none; color: var(--c-sale); font-weight: 800; }
.pc-btn {
  margin: 0 14px 14px; text-align: center; padding: 11px 10px; border-radius: 9px;
  background: var(--c-primary); color: #241a06; font-weight: 800; font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.pc-btn:hover { background: var(--c-primary-2); color: #241a06; }
.pc-btn:not(.pc-btn--cart) {
  background: #fff; border: 2px solid var(--c-primary); color: var(--c-link);
}
.pc-btn:not(.pc-btn--cart):hover { background: var(--c-primary); color: #241a06; }

/* ---------- SPLIT: NEW ARRIVAL + NEWS SIDEBAR ---------- */
.ch-split {
  display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(280px, 1fr);
  gap: 34px; align-items: start;
}
.ch-split-main { min-width: 0; }
.ch-split-main .pc-slider .pc-card { flex-basis: calc((100% - 36px) / 3); }

.ch-news-side {
  position: sticky; top: 92px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
  padding: 20px; box-shadow: 0 1px 2px rgba(58, 46, 34, .04);
}
.ch-news-side .ch-sec-head { align-items: baseline; margin-bottom: 14px; }
.ch-news-side .ch-sec-head h2 { font-size: 20px; }
.ch-news-side .ch-sec-head a { font-size: 13.5px; }
.ch-news-slider { border-radius: 12px; overflow: hidden; }
.ch-news-slider .metaslider { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.ch-news-slider .metaslider .flexslider {
  margin: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: transparent; box-shadow: none;
}
.ch-news-slider .metaslider .slides img { width: 100%; height: auto; display: block; }
.ch-news-slider .metaslider .flex-control-nav { position: static; margin: 12px 0 0; line-height: 1; }
.ch-news-slider .metaslider .flex-control-nav li { margin: 0 3px; }
.ch-news-slider .metaslider .flex-control-nav li a {
  width: 9px; height: 9px; border-radius: 999px; background: #d9cfbf;
  box-shadow: none; text-indent: -9999px; overflow: hidden;
}
.ch-news-slider .metaslider .flex-control-nav li a.flex-active { background: var(--c-primary); }
.ch-news-slider .metaslider .flex-direction-nav a {
  width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .9);
  color: var(--c-ink); box-shadow: 0 2px 10px rgba(58, 46, 34, .15);
}
.ch-news-slider .metaslider .flex-direction-nav a:hover { background: var(--c-primary); color: #241a06; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .pc-slider .pc-card { flex-basis: calc((100% - 36px) / 3); }
  .ch-split { grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); gap: 26px; }
  .ch-split-main .pc-slider .pc-card { flex-basis: calc((100% - 18px) / 2); }
}

@media (max-width: 960px) {
  .ch-hero { padding-top: 40px; }
  .ch-hero h1 { max-width: 22ch; }
  .ch-trust-card { grid-template-columns: 1fr 1fr; }
  .cc-grid { grid-template-columns: repeat(3, 1fr); }
  .ch-split { grid-template-columns: 1fr; gap: 34px; }
  .ch-news-side { position: static; }
  .ch-split-main .pc-slider .pc-card { flex-basis: calc((100% - 36px) / 3); }
}

@media (max-width: 700px) {
  .cc-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-slider .pc-card,
  .ch-split-main .pc-slider .pc-card { flex-basis: calc((100% - 18px) / 2); }

  /* Homepage sudah punya search besar di hero — hindari dua search di mobile. */
  .ch-search { display: none; }

  .ch-hero-search { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .ch-hero-select { flex: 1 1 100%; }
  .ch-hero-select select { padding: 13px 34px 13px 16px; }
  .ch-hero-search input[type="search"] {
    flex: 1 1 100%; border: 1px solid var(--c-line); border-radius: 10px;
  }
  .ch-hero-search button { flex: 1 1 100%; padding: 14px 20px; }
  .ch-hero-slider { padding-top: 24px; padding-bottom: 44px; }
}

@media (max-width: 560px) {
  .ch-sec { padding: 42px 0; }
  .ch-trust { margin-top: -20px; }
  .ch-trust-card { grid-template-columns: 1fr; padding: 18px; }
  .ch-sec-head { align-items: flex-start; }
  .ch-sec-head h2 { font-size: 22px; }
  .ch-hero-cta .ch-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- SHORTCUT ICONS (Tokopedia-style) ---------- */
.ch-shortcuts-sec { padding: 30px 0 6px; }
.ch-shortcuts-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.ch-shortcuts-head h2 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.ch-shortcuts-head a { font-weight: 700; font-size: 14px; color: var(--c-link); white-space: nowrap; }
.ch-shortcuts-track {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.ch-shortcuts-track::-webkit-scrollbar { display: none; }
.ch-shortcut {
  flex: 0 0 88px; scroll-snap-align: start; display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center; color: var(--c-ink);
  text-decoration: none;
}
.ch-shortcut-icon {
  width: 60px; height: 60px; border-radius: 18px; background: #fff;
  border: 1px solid var(--c-line); display: grid; place-items: center;
  color: var(--c-link); box-shadow: 0 4px 14px -10px rgba(58, 46, 34, .35);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.ch-shortcut-icon svg { width: 27px; height: 27px; }
.ch-shortcut:hover .ch-shortcut-icon {
  transform: translateY(-2px); border-color: var(--c-primary); background: #fffaf0;
}
.ch-shortcut-label {
  font-size: 11.5px; font-weight: 700; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ch-shortcut:nth-child(1) .ch-shortcut-icon { background: #fff3dd; color: #9a6a17; }
.ch-shortcut:nth-child(2) .ch-shortcut-icon { background: #eef5ff; color: #3e6fa8; }
.ch-shortcut:nth-child(3) .ch-shortcut-icon { background: #eef8f0; color: #3f7a4f; }
.ch-shortcut:nth-child(4) .ch-shortcut-icon { background: #fff0ee; color: #a65a48; }
.ch-shortcut:nth-child(5) .ch-shortcut-icon { background: #f5f0ff; color: #6a54a4; }
.ch-shortcut:nth-child(6) .ch-shortcut-icon { background: #fff6e6; color: #9a6a17; }
.ch-shortcut:nth-child(7) .ch-shortcut-icon { background: #eef8f5; color: #3f7a6a; }
.ch-shortcut:nth-child(8) .ch-shortcut-icon { background: #f0f4ff; color: #4661a6; }
.ch-shortcut:nth-child(9) .ch-shortcut-icon { background: #fff0f2; color: #a64d61; }

@media (min-width: 1025px) {
  .ch-shortcuts-track {
    flex-wrap: wrap; justify-content: center; overflow: visible;
    gap: 18px; padding-bottom: 0;
  }
  .ch-shortcut { flex: 0 0 104px; }
  .ch-shortcut-icon { width: 64px; height: 64px; }
}
@media (max-width: 700px) {
  .ch-shortcuts-sec { padding-top: 20px; }
  .ch-shortcuts-head { margin-bottom: 10px; }
  .ch-shortcuts-head a { font-size: 12.5px; }
  .ch-shortcut { flex-basis: 82px; }
  .ch-shortcut-icon { width: 56px; height: 56px; border-radius: 16px; }
  .ch-shortcut-icon svg { width: 25px; height: 25px; }
}
