/* ==========================================================================
   SEAMart — Design System v2
   Tema: "Aurora Commerce" — gelap elegan, gradien hidup, kaca buram, animasi halus
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@600;700;800;900&display=swap');

/* ---------- Token ---------- */
:root {
  /* Warna dasar */
  --bg: #070a14;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Teks */
  --text: #eef1f8;
  --text-soft: #a7b0c6;
  --text-dim: #6f7896;

  /* Aksen */
  --brand: #6d5efc;
  --brand-2: #b14bff;
  --cyan: #23d5ee;
  --lime: #7bf1a8;
  --gold: #ffc857;
  --rose: #ff4d6d;
  --orange: #ff8a3d;

  /* Gradien */
  --g-brand: linear-gradient(135deg, #6d5efc 0%, #b14bff 50%, #ff4d9d 100%);
  --g-cyan: linear-gradient(135deg, #23d5ee 0%, #6d5efc 100%);
  --g-hot: linear-gradient(135deg, #ff8a3d 0%, #ff4d6d 100%);
  --g-gold: linear-gradient(135deg, #ffc857 0%, #ff8a3d 100%);
  --g-mesh: radial-gradient(60rem 40rem at 8% -10%, rgba(109, 94, 252, 0.30), transparent 60%),
            radial-gradient(55rem 35rem at 95% 0%, rgba(177, 75, 255, 0.22), transparent 60%),
            radial-gradient(45rem 35rem at 50% 100%, rgba(35, 213, 238, 0.14), transparent 60%);

  /* Bentuk */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Bayangan */
  --sh-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --sh: 0 14px 40px rgba(0, 0, 0, 0.42);
  --sh-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(109, 94, 252, 0.35), 0 12px 40px rgba(109, 94, 252, 0.35);

  /* Gerak */
  --e: cubic-bezier(0.22, 1, 0.36, 1);
  --e-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 0.35s var(--e);

  --header-h: 132px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: var(--g-mesh);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Butiran halus di latar agar tidak "flat" */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

::selection { background: var(--brand); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand), var(--brand-2));
  border-radius: var(--r-pill);
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--brand-2), var(--rose)); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  width: min(1320px, 100% - 3rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

.section { padding-block: clamp(3rem, 6vw, 5.5rem); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  min-width: 2rem;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.section > .section-title { margin-bottom: 2.25rem; }

.link-more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: var(--t);
  white-space: nowrap;
}

.link-more:hover {
  color: #fff;
  border-color: transparent;
  background: var(--g-brand);
  transform: translateX(4px);
  box-shadow: var(--glow);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 20, 0.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t), background var(--t);
}

.site-header.scrolled {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: rgba(7, 10, 20, 0.9);
}

/* Topbar berjalan */
.topbar {
  background: var(--g-brand);
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

@keyframes shimmer {
  to { background-position: 200% 0; }
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
  flex-wrap: wrap;
}

.topbar-right { opacity: 0.9; }

/* Baris utama */
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1rem;
  position: relative;
  z-index: 50; /* harus di atas .catnav agar dropdown negara tidak tertimpa */
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  transition: var(--t);
}

.logo:hover { transform: scale(1.04); }

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--g-brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 8px 24px rgba(109, 94, 252, 0.45);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4s ease-in-out infinite;
}

@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.logo-text {
  background: linear-gradient(120deg, #fff, #b9b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Pencarian */
.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.35rem 0.35rem 1.3rem;
  max-width: 620px;
  width: 100%;
  justify-self: center;
  transition: var(--t);
  position: relative;
}

.search::before {
  content: '🔍';
  font-size: 0.95rem;
  opacity: 0.5;
  margin-right: -0.5rem;
}

.search:focus-within {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
}

.search input::placeholder { color: var(--text-dim); }

.search button {
  background: var(--g-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--r-pill);
  transition: var(--t);
  white-space: nowrap;
}

.search button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(109, 94, 252, 0.5);
}

.search button:active { transform: scale(0.97); }

/* Pemilih negara */
.header-actions { display: flex; align-items: center; gap: 0.75rem; position: relative; z-index: 300; }

.country-picker { position: relative; z-index: 300; }

.country-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--t);
}

.country-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.country-btn .flag { font-size: 1.15rem; line-height: 1; }

.country-btn .caret { font-size: 0.7rem; opacity: 0.6; transition: var(--t); }

.country-btn[aria-expanded='true'] .caret { transform: rotate(180deg); }

.country-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 250px;
  list-style: none;
  background: rgba(15, 20, 38, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: 0.5rem;
  box-shadow: var(--sh-lg);
  z-index: 400;
  animation: dropIn 0.3s var(--e-back);
  isolation: isolate;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.country-menu[hidden] { display: none; }

.country-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.country-menu a:hover { background: var(--surface-2); transform: translateX(4px); }

.country-menu a.active { background: var(--g-brand); color: #fff; }

.country-menu small { margin-left: auto; opacity: 0.6; font-weight: 600; }

/* Navigasi kategori */
.catnav {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.catnav-inner {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.6rem;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
}

.catnav-inner::-webkit-scrollbar { display: none; }

.catnav-inner a {
  white-space: nowrap;
  padding: 0.5rem 1.05rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: var(--t);
  flex-shrink: 0;
}

.catnav-inner a:hover {
  color: #fff;
  background: var(--surface-2);
  border-color: var(--border);
  transform: translateY(-2px);
}

.catnav-inner a.active {
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(109, 94, 252, 0.4);
}

.catnav-inner a.hot {
  background: var(--g-hot);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.35);
}

.catnav-inner a.hot:hover { filter: brightness(1.12); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 34rem;
  height: 34rem;
  background: rgba(109, 94, 252, 0.30);
  top: -14rem;
  left: -10rem;
  animation: float 16s ease-in-out infinite;
}

.hero::after {
  width: 28rem;
  height: 28rem;
  background: rgba(177, 75, 255, 0.24);
  bottom: -12rem;
  right: -8rem;
  animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4rem, 2.5rem) scale(1.1); }
  66% { transform: translate(-3rem, 3.5rem) scale(0.94); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3rem;
}

.hero-text { max-width: 820px; }

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.03;
  margin-bottom: 1.4rem;
  background: linear-gradient(115deg, #ffffff 20%, #c3bbff 55%, #7de3f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: riseIn 0.9s var(--e) both;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 2.25rem;
  animation: riseIn 0.9s var(--e) 0.12s both;
}

.hero p strong { color: var(--text); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.hero-search {
  display: flex;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 0.5rem;
  max-width: 580px;
  backdrop-filter: blur(16px);
  box-shadow: var(--sh);
  animation: riseIn 0.9s var(--e) 0.24s both;
  transition: var(--t);
}

.hero-search:focus-within { box-shadow: var(--glow), var(--sh); transform: translateY(-2px); }

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
}

.hero-search input::placeholder { color: var(--text-dim); }

.hero-search button {
  background: var(--g-brand);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: var(--t);
  box-shadow: 0 8px 24px rgba(109, 94, 252, 0.4);
}

.hero-search button:hover { transform: scale(1.05); filter: brightness(1.1); }

.hero-search button:active { transform: scale(0.97); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
  animation: riseIn 0.9s var(--e) 0.36s both;
}

.hero-trust span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0.55rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  backdrop-filter: blur(12px);
  transition: var(--t);
}

.hero-trust span:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: var(--surface-2);
}

/* Visual orbit di hero */
.hero-visual { display: grid; place-items: center; animation: riseIn 1s var(--e) 0.3s both; }

.orbit { position: relative; width: min(400px, 100%); aspect-ratio: 1; display: grid; place-items: center; }

.orbit::before, .orbit::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.13);
}
.orbit::before { inset: 8%; }
.orbit::after { inset: 26%; }

.orbit-core {
  display: grid; place-items: center; gap: 0.1rem;
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(150deg, rgba(109, 94, 252, 0.35), rgba(35, 213, 238, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(109, 94, 252, 0.45), inset 0 0 40px rgba(255, 255, 255, 0.08);
  text-align: center;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.orbit-core-flag { font-size: 2rem; line-height: 1; }
.orbit-core strong { font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 900; letter-spacing: -0.03em; }
.orbit-core small { font-size: 0.68rem; color: var(--text-soft); }

.orb {
  position: absolute; display: grid; place-items: center;
  width: 62px; height: 62px; font-size: 1.6rem; border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh);
  animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

.orb-1 { top: 0; left: 46%; animation-delay: 0s; }
.orb-2 { top: 20%; right: 2%; animation-delay: 0.6s; }
.orb-3 { bottom: 18%; right: 4%; animation-delay: 1.2s; }
.orb-4 { bottom: 0; left: 44%; animation-delay: 1.8s; }
.orb-5 { bottom: 20%; left: 2%; animation-delay: 2.4s; }
.orb-6 { top: 18%; left: 4%; animation-delay: 3s; }

/* Strip statistik */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  display: grid; gap: 0.15rem; padding: 1.5rem 1.25rem;
  background: rgba(10, 14, 28, 0.55); text-align: center;
  transition: background var(--t);
}

.stat:hover { background: rgba(109, 94, 252, 0.12); }

.stat strong {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900; letter-spacing: -0.04em;
  background: var(--g-cyan);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat span { font-size: 0.82rem; color: var(--text-soft); font-weight: 600; }

/* ==========================================================================
   KATEGORI
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1rem;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--e-back), border-color var(--t), background var(--t);
  position: relative;
  overflow: hidden;
}

.cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-brand);
  opacity: 0;
  transition: opacity var(--t);
  z-index: -1;
}

.cat-tile:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: transparent;
  box-shadow: var(--sh), 0 0 0 1px rgba(109, 94, 252, 0.4);
}

.cat-tile:hover::before { opacity: 0.16; }

.cat-icon {
  font-size: 2.1rem;
  line-height: 1;
  transition: transform 0.4s var(--e-back);
}

.cat-tile:hover .cat-icon { transform: scale(1.25) rotate(-8deg); }

.cat-name { font-weight: 700; font-size: 0.95rem; }

.cat-tile small { color: var(--text-dim); font-size: 0.78rem; font-weight: 600; }

/* ==========================================================================
   GRID PRODUK + KARTU
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  position: relative;
  transition: transform 0.45s var(--e), border-color var(--t), box-shadow 0.45s var(--e);
  animation: cardIn 0.6s var(--e) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Efek cahaya mengikuti kursor (di-set dari JS) */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(28rem 28rem at var(--mx, 50%) var(--my, 0%), rgba(109, 94, 252, 0.20), transparent 45%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
  z-index: 2;
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(109, 94, 252, 0.45);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(109, 94, 252, 0.25);
}

.card:hover::before { opacity: 1; }

.card-img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #141a2e, #0d1224);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--e), filter 0.5s var(--e);
}

.card:hover .card-img img { transform: scale(1.1) rotate(1deg); filter: brightness(1.06); }

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 20, 0.65), transparent 45%);
  opacity: 0.8;
}

.badge-disc,
.badge-tag {
  position: absolute;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
}

.badge-disc {
  top: 0.75rem;
  left: 0.75rem;
  background: var(--g-hot);
  color: #fff;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.5); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(255, 77, 109, 0); }
}

.badge-tag {
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(10, 14, 28, 0.75);
  color: var(--gold);
  border: 1px solid rgba(255, 200, 87, 0.35);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem 1.15rem;
  flex: 1;
}

.card-title {
  font-weight: 600;
  font-size: 0.925rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  transition: color var(--t);
}

.card:hover .card-title { color: #c7bfff; }

.card-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.card-price strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--g-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-price s { color: var(--text-dim); font-size: 0.82rem; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.rating { color: var(--gold); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.merchant {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-soft);
  padding: 0.25rem 0.65rem;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

.btn-buy {
  position: relative;
  overflow: hidden;
  background: var(--g-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.52rem 1.35rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: transform 0.3s var(--e-back), box-shadow var(--t);
  box-shadow: 0 6px 18px rgba(109, 94, 252, 0.35);
}

.btn-buy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
  transform: translateX(-140%);
  transition: transform 0.6s var(--e);
}

.btn-buy:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(109, 94, 252, 0.55);
}

.btn-buy:hover::after { transform: translateX(140%); }

.btn-buy:active { transform: scale(0.96); }

/* ==========================================================================
   HALAMAN DAFTAR PRODUK (filter + hasil)
   ========================================================================== */
.shop-layout,
.list-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.list-main { min-width: 0; }

/* Judul + pengurutan */
.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 0.25rem; }

.muted { color: var(--text-soft); font-size: 0.92rem; }

.sort-form label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

.sort-form select {
  width: auto;
  min-width: 190px;
  border-radius: var(--r-pill);
  padding: 0.6rem 1.1rem;
  background: var(--surface-2);
  font-weight: 600;
  cursor: pointer;
}

/* Kotak filter di samping */
.filter-block {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.filter-block:last-child { border-bottom: none; }

.filter-block h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
  font-weight: 800;
}

.filter-list { list-style: none; display: grid; gap: 0.15rem; }

.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: var(--t);
}

.filter-list a:hover { background: var(--surface-2); color: var(--text); transform: translateX(3px); }

.filter-list a.active {
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 5px 16px rgba(109, 94, 252, 0.35);
}

.filter-list small { opacity: 0.65; font-weight: 700; }

.price-range { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }

.price-range input { text-align: center; padding-inline: 0.5rem; }

.price-range span { color: var(--text-dim); }

.btn-filter {
  width: 100%;
  background: var(--g-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: var(--r-pill);
  transition: var(--t);
}

.btn-filter:hover { filter: brightness(1.12); transform: translateY(-2px); }

.pg-info { font-weight: 700; font-size: 0.9rem; color: var(--text-soft); }

.filters,
.sidebar,
.filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  backdrop-filter: blur(16px);
}

/* Panel filter halaman produk: tanpa padding luar (tiap blok punya padding) */
.list-layout .filters { padding: 0; overflow: hidden; }

.filters h3,
.filter-group h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.filter-group { margin-bottom: 1.5rem; }

.filter-group:last-child { margin-bottom: 0; }

.filters label,
.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.filters label:hover,
.filter-group label:hover { color: var(--text); transform: translateX(3px); }

input[type='checkbox'],
input[type='radio'] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  cursor: pointer;
}

.filters input[type='text'],
.filters input[type='number'],
.filters select,
select, input[type='text'], input[type='number'], input[type='search'], input[type='url'], textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
  transition: var(--t);
}

select:focus, input:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.2);
}

select option { background: #0f1426; }

.btn,
button[type='submit'],
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--g-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-pill);
  transition: transform 0.3s var(--e-back), box-shadow var(--t), filter var(--t);
  box-shadow: 0 6px 20px rgba(109, 94, 252, 0.35);
}

.btn:hover,
.btn-primary:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.1); }

.btn:active { transform: scale(0.97); }

.btn-ghost,
.btn-secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover,
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--border-strong); }

/* Bar hasil */
.results-head,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  backdrop-filter: blur(12px);
}

.results-count,
.result-count { font-size: 0.9rem; color: var(--text-soft); font-weight: 600; }

.results-count strong { color: var(--text); }

/* Chip filter aktif */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: var(--t);
}

.chip:hover { border-color: var(--rose); color: var(--rose); }

/* Halaman */
.pagination,
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
.pager a,
.pager span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding-inline: 0.85rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--t);
}

.pagination a:hover,
.pager a:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.pagination .active,
.pagination [aria-current],
.pager .active {
  background: var(--g-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(109, 94, 252, 0.4);
}

/* ==========================================================================
   HALAMAN DETAIL PRODUK
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-block: 1.5rem;
}

.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cyan); }

.product-layout,
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding-bottom: 3rem;
}

.gallery { position: sticky; top: calc(var(--header-h) + 1rem); }

.gallery-main,
.product-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #141a2e, #0d1224);
  aspect-ratio: 1;
  position: relative;
  box-shadow: var(--sh-lg);
}

.gallery-main img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--e);
}

.gallery-main:hover img { transform: scale(1.06); }

.gallery-thumbs {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumbs img,
.thumb {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  opacity: 0.55;
  transition: var(--t);
}

.gallery-thumbs img:hover,
.thumb:hover { opacity: 1; transform: translateY(-3px); }

.gallery-thumbs img.active,
.thumb.active {
  opacity: 1;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.3);
}

.product-info h1,
.product-title {
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-meta,
.product-stats {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.price-box {
  background: linear-gradient(140deg, rgba(109, 94, 252, 0.14), rgba(35, 213, 238, 0.07));
  border: 1px solid rgba(109, 94, 252, 0.3);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.price-box::before {
  content: '';
  position: absolute;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(109, 94, 252, 0.28), transparent 70%);
  top: -8rem;
  right: -6rem;
  pointer-events: none;
}

.price-now,
.price-main {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--g-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1.1;
}

.price-old, .price-box s { color: var(--text-dim); font-size: 1.05rem; }

.price-save {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lime);
  background: rgba(123, 241, 168, 0.12);
  border: 1px solid rgba(123, 241, 168, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
}

.btn-cta,
.btn-buy-large,
.buy-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: var(--g-brand);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1.15rem 2rem;
  border-radius: var(--r-pill);
  margin-block: 0.5rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(109, 94, 252, 0.45);
  transition: transform 0.35s var(--e-back), box-shadow var(--t);
}

.btn-cta::after,
.buy-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-140%);
  animation: sweep 3s ease-in-out infinite;
}

@keyframes sweep {
  0%, 55% { transform: translateX(-140%); }
  100% { transform: translateX(140%); }
}

.btn-cta:hover,
.buy-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 55px rgba(109, 94, 252, 0.6); }

.btn-cta:active { transform: scale(0.98); }

.merchant-box,
.trust-box,
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
}

.merchant-box h4,
.info-box h4 { font-size: 0.95rem; margin-bottom: 0.45rem; }

.merchant-box p,
.info-box p { font-size: 0.875rem; color: var(--text-soft); }

.ship-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
  list-style: none;
}

.ship-list li,
.ship-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.product-desc,
.description {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.notice,
.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: rgba(255, 200, 87, 0.08);
  border: 1px solid rgba(255, 200, 87, 0.25);
  border-radius: var(--r);
  padding: 0.9rem 1.1rem;
  margin-block: 1rem;
}

/* ==========================================================================
   BAGIAN "CARA KERJA"
   ========================================================================== */
.how {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.how::before {
  content: '';
  position: absolute;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(109, 94, 252, 0.18), transparent 70%);
  top: -15rem;
  right: -10rem;
  pointer-events: none;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.how-grid > div {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--e), border-color var(--t);
}

.how-grid > div:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 94, 252, 0.4);
}

.how-grid h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.how-grid p { font-size: 0.9rem; color: var(--text-soft); }

.step {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--g-brand);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(109, 94, 252, 0.4);
}

/* ==========================================================================
   HALAMAN TOKO / MERCHANT
   ========================================================================== */
.merchant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}

.merchant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--e), border-color var(--t), box-shadow var(--t);
}

.merchant-card:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 94, 252, 0.4);
  box-shadow: var(--sh);
}

.merchant-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.merchant-card p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 0.9rem; }

/* ==========================================================================
   HALAMAN STATIS & KOSONG
   ========================================================================== */
.page-content,
.prose {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 3rem;
}

.page-content h1, .prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.25rem; }
.page-content h2, .prose h2 { font-size: 1.4rem; margin-block: 2rem 0.75rem; }
.page-content p, .prose p { color: var(--text-soft); margin-bottom: 1rem; line-height: 1.85; }
.page-content ul, .prose ul { color: var(--text-soft); padding-left: 1.3rem; margin-bottom: 1rem; }
.page-content li, .prose li { margin-bottom: 0.5rem; }
.page-content a, .prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.empty {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
}

.empty h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.empty p { color: var(--text-soft); }
.empty a { color: var(--cyan); font-weight: 700; }

code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  padding: 0.15em 0.5em;
  border-radius: 6px;
  color: var(--cyan);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}

.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }

.footer-grid li { margin-bottom: 0.55rem; }

.footer-grid a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-grid a:hover { color: var(--cyan); transform: translateX(4px); }

.footer-brand p { font-size: 0.9rem; color: var(--text-soft); margin-top: 0.9rem; max-width: 32ch; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--text-dim);
}

.disclosure-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.9rem 1.15rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   UTILITAS & ANIMASI MASUK SAAT DI-SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--e), transform 0.7s var(--e);
}

.reveal.visible { opacity: 1; transform: none; }

/* Bar progres baca di paling atas */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--g-brand);
  z-index: 999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(109, 94, 252, 0.8);
}

/* Tombol kembali ke atas */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--g-brand);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--sh);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s var(--e-back);
  z-index: 90;
}

.to-top.show { opacity: 1; visibility: visible; transform: none; }

.to-top:hover { transform: translateY(-4px) scale(1.1); }

/* Skeleton saat memuat gambar */
.card-img.loading {
  background: linear-gradient(90deg, #141a2e 25%, #1c2340 50%, #141a2e 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s linear infinite;
}

@keyframes skeleton {
  to { background-position: -200% 0; }
}

/* ==========================================================================
   RESPONSIF
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin-inline: auto; }
  .shop-layout, .list-layout { grid-template-columns: 1fr; }
  .filters, .sidebar, .filter-panel { position: static; }

  /* Filter jadi panel lipat di layar kecil */
  .list-layout .filters .filter-block { padding-block: 0.9rem; }
  .list-layout .filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .list-layout .filter-list a {
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
  }
  .list-layout .filter-list a:hover { transform: none; }
  .list-layout .price-range { max-width: 320px; }
  .list-layout .btn-filter { max-width: 200px; }
  .product-layout, .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 118px; }

  .container { width: min(1320px, 100% - 2rem); }

  .header-main {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'logo actions' 'search search';
    gap: 0.85rem;
  }

  .logo { grid-area: logo; }
  .header-actions { grid-area: actions; }
  .search { grid-area: search; max-width: none; }
  .search button { padding-inline: 1.1rem; }

  .logo-text { display: none; }

  .topbar-inner { font-size: 0.72rem; justify-content: center; }
  .topbar-right { display: none; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }

  .card-body { padding: 0.8rem; gap: 0.4rem; }
  .card-title { font-size: 0.85rem; }
  .card-price strong { font-size: 1.1rem; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .merchant { max-width: none; text-align: center; }
  .btn-buy { text-align: center; padding-block: 0.6rem; }

  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 0.7rem; }
  .cat-tile { padding: 1.2rem 0.6rem; }
  .cat-icon { font-size: 1.7rem; }
  .cat-name { font-size: 0.85rem; }

  .hero-visual { display: none; }
  .stat { padding: 1.1rem 0.75rem; }

  .hero-search { flex-direction: column; border-radius: var(--r-lg); }
  .hero-search input { text-align: center; }
  .hero-search button { width: 100%; }

  .to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .section-title::after { display: none; }
}

/* Hormati preferensi pengguna yang tidak suka animasi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Cetak */
@media print {
  .site-header, .site-footer, .to-top, .scroll-progress, .btn-buy, .btn-cta { display: none !important; }
  body { background: #fff; color: #000; }
}
