/* ==========================================================================
   STAR17 COMPUTER — Design tokens
   Concept: PC-hardware datasheet. Cool graphite/off-white base, one confident
   electric-blue accent, specs set in mono like a component silkscreen label.
   ========================================================================== */

:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #14171C;
  --ink-soft: #5B6472;
  --ink-faint: #9AA1AC;
  --line: #E2E5EA;
  --line-strong: #C9CED6;
  --accent: #2F5AF0;
  --accent-ink: #FFFFFF;
  --accent-soft: #EAEFFE;
  --amber: #FF8A00;
  --amber-soft: #FFF3E2;
  --radius: 6px;
  --container: 1180px;

  --font-display: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #2749c9; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-whatsapp { background: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #17893F; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  justify-self: start;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
  justify-self: center;
}
.nav-links a { color: var(--ink-soft); border-bottom: 2px solid transparent; padding-bottom: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 18px; justify-self: end; }
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.cart-badge {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.nav-toggle { display: none; background: none; border: none; }

/* ---------- Hero: poster carousel ---------- */
.hero {
  padding: 48px 0 0;
  border-bottom: 1px solid var(--line);
}
.poster-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}
.poster-track {
  display: flex;
  transition: transform 0.5s ease;
  cursor: grab;
  touch-action: pan-y;
}
.poster-carousel.dragging .poster-track { cursor: grabbing; }
.poster-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 8px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  z-index: 5;
  cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  opacity: 0.85;
}
.poster-arrow:hover { opacity: 1; }
.poster-arrow-prev { left: 8px; }
.poster-arrow-next { right: 8px; }
@media (max-width: 700px) {
  .poster-arrow { display: none; }
}
.poster-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  position: relative;
  min-height: 380px;
  color: inherit;
  user-select: none;
}
.poster-slide img { pointer-events: none; }
.poster-slide.slide-1 {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,138,0,0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(47,90,240,0.55), transparent 50%),
    linear-gradient(135deg, #14171C 0%, #1D2128 60%, #262B33 100%);
}
.poster-slide.slide-2 {
  background:
    radial-gradient(circle at 15% 15%, rgba(47,90,240,0.45), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(255,138,0,0.3), transparent 50%),
    linear-gradient(135deg, #14171C 0%, #20242C 60%, #262B33 100%);
}
.poster-slide.slide-3 {
  background:
    radial-gradient(circle at 80% 80%, rgba(31,168,85,0.35), transparent 45%),
    radial-gradient(circle at 15% 20%, rgba(47,90,240,0.4), transparent 50%),
    linear-gradient(135deg, #14171C 0%, #1D2128 60%, #262B33 100%);
}
.poster-banner-inner {
  position: relative;
  z-index: 2;
  padding: 64px 56px;
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.poster-slide h1 { color: #fff; margin-bottom: 14px; }
.poster-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.poster-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  transition: gap 0.15s ease;
}
.poster-slide:hover .poster-cta { gap: 14px; }

@media (max-width: 700px) {
  .poster-slide { min-height: 320px; }
  .poster-banner-inner { padding: 40px 28px; }
}

/* ---------- Brand marquee ---------- */
.brand-marquee {
  overflow: hidden;
  padding: 26px 0 40px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: scrollBrands 22s linear infinite;
}
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.brand-item:hover { color: var(--accent); }
@keyframes scrollBrands {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; }
}

/* Signature "spec sheet" card — used in hero + product cards */
.spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.spec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}
.spec-card-header .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.spec-card-body { padding: 18px; }
.spec-card-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 14px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem;
}
.spec-row:first-of-type { border-top: none; }
.spec-row .k { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.spec-row .v { font-weight: 600; text-align: right; }
.spec-card-price {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.spec-card-price .price { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
/* Section terakhir sebelum footer di tiap halaman: kurangi jarak bawahnya
   biar nggak ada celah kosong besar sebelum footer yang sekarang tipis */
section.section:last-of-type { padding-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 24px; flex-wrap: wrap; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); }

/* Header section dalam box panjang (mis. "Produk Terbaru" & "Custom PC" di beranda).
   Warna sekarang polos (--ink) sebagai placeholder — untuk pasang foto poster,
   ganti baris "background:" jadi:
   background: linear-gradient(rgba(20,23,28,0.1), rgba(20,23,28,0.1)), url('assets/nama-foto.jpg') center/cover; */
.section-head-banner {
  border-radius: 12px;
  padding: 28px 32px;
  min-height: 140px;
  background: var(--ink);
  align-items: center;
}
.section-head-banner .eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 2px; }
.section-head-banner h2 { color: #fff; margin-bottom: 0; }
.section-head-banner .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  padding: 9px 18px;
  font-size: 0.85rem;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.section-head-banner .btn-outline:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (max-width: 650px) {
  .section-head-banner { padding: 22px 24px; min-height: auto; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.value-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.value-card .num { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; margin-bottom: 10px; display: block; }

.value-card-icon { text-align: center; }
.value-card-icon .value-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.value-card-icon .value-icon.amber { background: var(--amber); }
.value-card-icon p {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.about-list { list-style: none; margin: 20px 0 0; padding: 0; }
.about-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.about-list li:first-child { border-top: none; }
.about-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Product grid / catalog ---------- */
.catalog-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.catalog-toolbar input[type="search"],
.catalog-toolbar select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 40px;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.catalog-toolbar select {
  padding-right: 28px;
}
.catalog-toolbar input[type="search"] { flex: 1; min-width: 200px; }
.result-count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); margin-left: auto; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.product-thumb-link { display: block; }
.product-name-link { color: inherit; }
.product-name-link:hover .product-name { color: var(--accent); }
.product-thumb {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--ink) 0%, #262B33 100%);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  position: relative;
}
.product-thumb.has-photo {
  background-size: cover;
  background-position: center;
}
.product-thumb::after {
  content: attr(data-cat);
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.62rem;
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.product-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.product-specs { font-size: 0.8rem; color: var(--ink-soft); flex: 1; }
.product-specs span { display: block; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.product-price { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; }
.stock-note { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-faint); margin-top: 2px; }
.stock-note.low { color: var(--amber); }
.add-btn {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.add-btn:hover { background: var(--accent); }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  grid-column: 1 / -1;
}

/* ---------- Pagination (katalog) ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}
.page-btn {
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.page-btn:hover:not(:disabled) { border-color: var(--ink); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb {
  width: 64px; height: 64px;
  background: var(--ink);
  border-radius: 6px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 4px;
}
.cart-item-name { font-weight: 600; font-size: 0.95rem; }
.cart-item-sku { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.qty-control button {
  width: 30px; height: 30px; background: #fff; border: none; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1;
}
.qty-control button:hover { background: var(--bg); }
.qty-control input {
  width: 38px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  height: 30px; font-family: var(--font-mono); font-size: 0.85rem; padding: 0; line-height: 30px;
}
.cart-item-price { font-family: var(--font-mono); font-weight: 700; text-align: right; }
.remove-link { font-size: 0.75rem; color: var(--ink-faint); margin-top: 6px; display: inline-block; }
.remove-link:hover { color: var(--amber); }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  position: sticky;
  top: 100px;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 0.9fr; gap: 40px; align-items: start; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.payment-option {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.payment-option.active { border-color: var(--accent); background: var(--accent-soft); }
.payment-option input { margin-top: 3px; }

.bank-box {
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.bank-box .bank-row { display: flex; justify-content: space-between; padding: 4px 0; }

.order-note {
  background: var(--amber-soft);
  border: 1px solid #FFDDAA;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #7A4A00;
  margin-top: 16px;
}

/* ---------- Banner tipis (halaman Tentang Kami) ---------- */
.about-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,138,0,0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(47,90,240,0.55), transparent 50%),
    linear-gradient(135deg, #14171C 0%, #1D2128 60%, #262B33 100%);
}
.about-banner-inner {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  max-width: 620px;
}
.about-banner h1 { color: #fff; margin: 0; font-size: 1.7rem; }
@media (max-width: 700px) {
  .about-banner { min-height: 120px; }
  .about-banner-inner { padding: 26px 24px; }
  .about-banner h1 { font-size: 1.4rem; }
}

/* ---------- Produk Terbaru (scroll horizontal, bisa di-drag) ---------- */
.scroll-row-wrap {
  position: relative;
  min-width: 0;
}
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(20, 23, 28, 0.08);
  transition: transform 0.15s ease;
}
.scroll-arrow:hover { transform: translateY(-50%) scale(1.08); }
.scroll-arrow.left { left: -14px; }
.scroll-arrow.right { right: -14px; }
@media (max-width: 700px) {
  .scroll-arrow { display: none; }
}

.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row.dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.scroll-row > .product-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
@media (max-width: 700px) {
  .scroll-row > .product-card { flex-basis: 200px; }
}

/* ---------- Banner bantuan WhatsApp (bergambar) ---------- */
.wa-strip-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  background:
    linear-gradient(rgba(20,23,28,0.1), rgba(20,23,28,0.1)), url('../assets/whatsapp-section.jpg') center/cover;
}
.wa-strip-text h3 { color: #fff; font-size: 1.2rem; margin: 6px 0 0; }
@media (max-width: 650px) {
  .wa-strip-banner { flex-direction: column; align-items: flex-start; padding: 24px; min-height: auto; }
  .wa-strip-text h3 { font-size: 1.05rem; }
  .wa-strip-banner .btn { width: 100%; text-align: center; }
}

/* ---------- Kontak page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-map-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}
.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  flex: 7 1 0;
  min-height: 220px;
}
/* Banner placeholder statis — mengisi sisa tinggi di bawah peta, rasio ±70:30 */
.contact-promo-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  flex: 3 1 0;
  min-height: 120px;
  background: linear-gradient(135deg, #14171C 0%, #1D2128 55%, #262B33 100%);
}
.contact-promo-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-promo-inner h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.contact-promo-inner p { color: rgba(255,255,255,0.72); margin: 0; }

.contact-line { display: flex; align-items: center; gap: 8px; }
.contact-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-faint); }
.contact-link { color: var(--ink-soft); transition: color 0.15s ease; }
.contact-link:hover { color: var(--accent); text-decoration: underline; }

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map-col { height: auto; }
  .map-card { flex: none; height: 280px; }
  .contact-promo-banner { flex: none; min-height: 130px; }
}

/* ---------- Product detail page ---------- */
.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.back-link:hover { color: var(--ink); }

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 60px;
}

.detail-gallery { position: sticky; top: 100px; }
.gallery-main {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.gallery-main.placeholder {
  background: linear-gradient(135deg, var(--ink) 0%, #262B33 100%);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--surface);
  opacity: 0.75;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }
.gallery-thumb:not(.placeholder):hover { opacity: 1; }
.gallery-thumb.placeholder {
  border: 1px dashed var(--line-strong);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: default;
  opacity: 1;
}

/* Kategori dibalut kotak/badge bergaris */
.category-badge {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}

.detail-title { font-size: 1.8rem; margin-bottom: 6px; }
.detail-sku { color: var(--ink-faint); font-size: 0.8rem; margin-bottom: 20px; }
.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.detail-price { font-size: 1.5rem; font-weight: 700; }
.qty-add-row { display: flex; gap: 12px; margin-bottom: 24px; }

@media (max-width: 800px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
}

/* ---------- Galeri Rakitan PC (Tentang Kami) — slider "teater", foto sebelah nyembul kiri-kanan ---------- */
.gallery-carousel { position: relative; overflow: hidden; }
.gallery-carousel::before,
.gallery-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.gallery-carousel::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.gallery-carousel::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.gallery-track {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: grab;
  touch-action: pan-y;
}
.gallery-carousel.dragging .gallery-track { cursor: grabbing; }
.gallery-slide {
  flex: 0 0 74%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, #262B33 100%);
  user-select: none;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gallery-slide[data-img] { cursor: zoom-in; }
.gallery-slide.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: default;
}
@media (max-width: 700px) {
  .gallery-track { gap: 12px; }
  .gallery-slide { flex-basis: 84%; aspect-ratio: 4 / 3; }
  .gallery-carousel::before, .gallery-carousel::after { width: 28px; }
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 200;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: auto;
  flex-shrink: 0;
}
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); }

/* ---------- Lacak Pesanan / Order Tracking ---------- */
.form-error {
  background: #FDECEC;
  border: 1px solid #F3B4B4;
  color: #B42318;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin: 14px 0;
}
.order-success {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.order-success .order-code {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 10px 0 18px;
}
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge.menunggu_konfirmasi { background: var(--amber-soft); color: var(--amber); }
.status-badge.diproses { background: var(--accent-soft); color: var(--accent); }
.status-badge.dikirim { background: var(--accent-soft); color: var(--accent); }
.status-badge.selesai { background: #E4F7E9; color: #1FA855; }
.status-badge.dibatalkan { background: #FDECEC; color: #B42318; }

.order-timeline { display: flex; justify-content: space-between; margin: 24px 0 30px; position: relative; }
.order-timeline::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--line-strong);
}
.timeline-step { position: relative; flex: 1; text-align: center; font-size: 0.75rem; color: var(--ink-faint); }
.timeline-step .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
}
.timeline-step.done .dot { background: var(--accent); border-color: var(--accent); }
.timeline-step.done { color: var(--ink); font-weight: 600; }
.timeline-step.current .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-step.current { color: var(--accent); font-weight: 700; }

.order-cancelled-box {
  background: #FDECEC;
  border: 1px solid #F3B4B4;
  border-radius: var(--radius);
  padding: 18px;
  margin: 24px 0;
}
.order-note-box {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.85rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--line); display: none; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .summary-card { position: static; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-5, .product-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; }
  .cart-item-price { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
