/* Katalog — tema profesional. Bersih, tegas, tepercaya. Mobile-first, vanilla CSS. */
:root {
  --bg: #ffffff;
  --surface: #f7f7f9;
  --ink: #17171c;
  --muted: #6d6d76;
  --line: #e8e8ed;
  --accent: #a91f52;
  --accent-dark: #7e153c;
  --gold: #9a6b1a;
  --gold-bg: #faf3e3;
  --btn: #17171c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 16, 22, .05), 0 4px 16px rgba(16, 16, 22, .06);
  --shadow-lg: 0 2px 4px rgba(16, 16, 22, .06), 0 12px 32px rgba(16, 16, 22, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--accent); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
}
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand em { font-style: normal; color: var(--accent); }
.nav-links { margin-left: auto; display: flex; gap: 2px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 9px; white-space: nowrap; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
@media (max-width: 560px) {
  .nav-links a { font-size: 12.5px; padding: 8px 8px; }
  .nav-links a.hide-s { display: none; }
}

/* ============ LAYOUT ============ */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 72px; }
section { scroll-margin-top: 76px; }

/* ============ PROMO BANNERS (ala marketplace) ============ */
.promo-sec { margin: 20px 0 8px; }
.promo-slider { position: relative; border-radius: 22px; overflow: hidden; }
.promo-track { position: relative; height: 380px; }
@media (max-width: 560px) { .promo-track { height: 420px; } }
.promo-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
  display: flex; align-items: center;
  background-size: cover; background-position: right center;
}
.promo-slide.active { opacity: 1; visibility: visible; z-index: 1; }
/* Banner foto produk per kategori + overlay gelap di kiri agar teks terbaca */
.promo-slide.p1 { background-image: linear-gradient(100deg, rgba(24,10,16,.74) 0%, rgba(24,10,16,.42) 46%, rgba(24,10,16,0) 72%), url('img/banner-umum.jpg'); }
.promo-slide.p2 { background-image: linear-gradient(100deg, rgba(32,10,8,.72) 0%, rgba(32,10,8,.40) 46%, rgba(32,10,8,0) 72%), url('img/banner-skincare.jpg'); }
.promo-slide.p3 { background-image: linear-gradient(100deg, rgba(4,26,30,.72) 0%, rgba(4,26,30,.40) 46%, rgba(4,26,30,0) 72%), url('img/banner-tumbler.jpg'); }
.promo-slide.p4 { background-image: linear-gradient(100deg, rgba(16,10,40,.74) 0%, rgba(16,10,40,.42) 46%, rgba(16,10,40,0) 72%), url('img/banner-elektronik.jpg'); }
@media (max-width: 560px) { .promo-slide { background-position: 68% center; } }
.promo-inner { position: relative; z-index: 1; padding: 40px 44px; max-width: 640px; color: #fff; }
@media (max-width: 560px) { .promo-inner { padding: 32px 26px; } }
.promo-kicker {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 16px; color: #fff;
}
.promo-slide h1, .promo-title {
  font-size: clamp(30px, 5.4vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0,0,0,.22);
}
.promo-desc { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.88); max-width: 480px; }
.promo-cta {
  display: inline-block; margin-top: 22px; background: #fff; color: var(--ink);
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  padding: 14px 30px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.promo-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.32); }
.promo-cta:active { transform: scale(.97); }
.promo-dots { position: absolute; bottom: 18px; left: 44px; z-index: 2; display: flex; gap: 8px; }
@media (max-width: 560px) { .promo-dots { left: 26px; } }
.promo-dot {
  width: 26px; height: 5px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .2s, width .2s; padding: 0;
}
.promo-dot.active { background: #fff; width: 40px; }
/* Search + stats di bawah banner */
.hero-search { position: relative; z-index: 2; }
.hero-search input {
  width: 100%; padding: 15px 22px 15px 48px; border-radius: 14px;
  font-size: 15px; font-family: inherit; outline: none; color: var(--ink); background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236d6d76' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 18px center;
}
.promo-sec .hero-search { max-width: 640px; margin: 18px auto 0; }
.promo-sec .hero-search input {
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.promo-sec .hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(169,31,82,.12); }
.promo-sec .hero-stats {
  margin: 20px auto 0; display: flex; gap: 36px; justify-content: center;
}
.promo-sec .hero-stats .stat { text-align: center; }
.promo-sec .hero-stats .stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.promo-sec .hero-stats .stat span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.search-results {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
  max-height: 340px; overflow-y: auto; z-index: 5;
}
.sr-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--surface); transition: background .12s; }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--surface); }
.sr-name { font-size: 13.5px; font-weight: 600; }
.sr-price { font-size: 13px; color: var(--accent); font-weight: 800; white-space: nowrap; }
.sr-empty { padding: 14px 16px; font-size: 13.5px; color: var(--muted); }

/* ============ SECTION HEADINGS ============ */
.sec { margin-top: 52px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sec-head .more { font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sec-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; max-width: 640px; }

/* ============ KATEGORI ============ */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 700px) { .catgrid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .catgrid { grid-template-columns: repeat(6, 1fr); } }
.cat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 8px 16px; text-align: center; text-decoration: none; color: inherit; display: block;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5d5dc; }
.cat .emoji { font-size: 27px; display: block; line-height: 1; }
.cat .name { font-size: 13px; font-weight: 700; margin-top: 10px; display: block; letter-spacing: -.01em; }
.cat .count { font-size: 11.5px; color: var(--muted); }

/* ============ GRID PRODUK & KARTU ============ */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 4px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
a.card { text-decoration: none; color: inherit; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  animation: fadeUp .45s ease both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card .thumb { position: relative; background: var(--surface); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.card .noimg {
  width: 100%; aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #f4f4f6 0%, #e9e9ee 100%); color: #b9b9c2;
}
.card .noimg svg { width: 44px; height: 44px; }
.card .noimg span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge-pick {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--gold-bg); color: var(--gold); border: 1px solid #e8d5a8;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.card .info { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
  font-size: 13.5px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px;
}
.card .cat-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.price { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 8px 0 12px; }
.price .cur { color: var(--accent); }
.btn {
  margin-top: auto; display: block; text-align: center; text-decoration: none;
  background: var(--btn); color: #fff;
  font-size: 13.5px; font-weight: 700; font-family: inherit; padding: 11px 0; border-radius: 10px; border: none; cursor: pointer; width: 100%;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: #2b2b33; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); background: #fff; }
.result-count { font-size: 13px; color: var(--muted); margin: 18px 0 14px; }
.empty { text-align: center; color: var(--muted); padding: 44px 16px; display: none; }

/* Pilihan editor: grid 4 kolom di desktop */
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .picks { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ============ BREADCRUMB ============ */
.crumb { font-size: 12.5px; color: var(--muted); margin: 20px 0 6px; font-weight: 500; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb .cur { color: var(--ink); font-weight: 600; }
.crumb span[aria-hidden] { margin: 0 6px; color: #c9c9d1; }

/* ============ HALAMAN PRODUK ============ */
.product { margin-top: 6px; }
.p-layout { display: grid; gap: 28px; }
@media (min-width: 760px) { .p-layout { grid-template-columns: 1fr 1fr; align-items: start; gap: 44px; } }
.p-thumb { position: sticky; top: 76px; }
@media (max-width: 759px) { .p-thumb { position: static; } }
.p-thumb img { width: 100%; border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; background: var(--surface); border: 1px solid var(--line); }
.p-thumb .noimg {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #f4f4f6 0%, #e9e9ee 100%); color: #b9b9c2;
}
.p-thumb .noimg svg { width: 72px; height: 72px; }
.p-thumb .noimg span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.p-info .m-cat { font-size: 11.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.p-info h1 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.25; margin: 8px 0 6px; }
.p-info .m-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 4px; }
.p-info .m-price .from { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.why {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 18px 0; font-size: 14px; color: #3c3c44;
}
.why b { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: -.01em; }
.why ul { list-style: none; margin-top: 8px; }
.why li { position: relative; padding-left: 24px; margin-bottom: 6px; font-size: 13.5px; }
.why li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a91f52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center/contain;
}
.m-buy { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.m-buy .btn { padding: 15px 0; font-size: 15px; border-radius: 12px; }
.buy-note { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.buy-note svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 2px; }
.related h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 16px; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Sticky buy bar (mobile) */
.sticky-buy {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center; gap: 12px;
}
.sticky-buy .sp { flex: 1; min-width: 0; }
.sticky-buy .sp b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .sp span { font-size: 11.5px; color: var(--muted); }
.sticky-buy .btn { margin: 0; width: auto; padding: 12px 26px; flex-shrink: 0; }
@media (max-width: 759px) {
  .sticky-buy.on { display: flex; }
  body.has-sticky { padding-bottom: 76px; }
}

/* ============ FOOTER ============ */
footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 40px 0 8px; background: var(--surface); }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-brand { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.foot-brand em { font-style: normal; color: var(--accent); }
.foot-grid h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.foot-grid p { font-size: 13.5px; color: var(--muted); max-width: 380px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { font-size: 13.5px; color: #3c3c44; text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom { text-align: center; font-size: 12px; color: #a2a2ab; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
