/* ==========================================================================
   black.alam — Official Dark-Themed Eco-Streetwear Stylesheet
   "Serba Hitam. Berakar pada Alam."
   ========================================================================== */

:root {
  /* Whitish-Grey Studio Theme */
  --bg-main: #eaedf1;
  --bg-surface: #f4f6f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #dfe3ea;

  /* Typography & Lines */
  --text-main: #0c0d12;
  --text-muted: #4b5563;
  --text-dim: #6b7280;
  --border: rgba(0, 0, 0, 0.09);
  --border-focus: rgba(5, 150, 105, 0.6);

  /* Eco & Nature Accent Colors */
  --nature: #059669;          /* Deep emerald for light mode contrast */
  --nature-light: #10b981;
  --nature-glow: rgba(5, 150, 105, 0.2);
  --nature-dark: #047857;
  --gold: #d97706;            /* Amber highlight */
  --ink: #0c0d12;
  --paper: #eaedf1;
  --hook: #059669;

  /* Stage CSS variables for 3D rack */
  --ink-s: #0c0d12;
  --label-s: #4b5563;
  --chip-on: #059669;
  --giant: rgba(0, 0, 0, 0.04);

  --radius: 18px;
  --radius-sm: 10px;
  --display: "Unbounded", system-ui, -apple-system, sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, SFMono-Regular, monospace;
  --pad: clamp(18px, 4vw, 56px);
  --maxw: 1300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  margin: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  background-image: radial-gradient(circle at center, transparent 3px, rgba(0, 0, 0, 0.035) 3.5px, rgba(0, 0, 0, 0.035) 4.5px, transparent 5px);
  background-size: 32px 32px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--nature); color: #000; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.mono { font-family: var(--mono); font-size: 0.8em; letter-spacing: 0.03em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nature-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--nature);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-main);
}
h1 { font-size: clamp(38px, 6.5vw, 84px); }
h2 { font-size: clamp(32px, 4.8vw, 64px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  background: var(--nature);
  color: #051b11;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 20px var(--nature-glow);
}
.btn:hover {
  background: var(--nature-light);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.4);
}
.btn:active { transform: scale(0.98); }

.btn.ghost {
  background: transparent;
  color: var(--text-main);
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.btn.ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 0 1.5px var(--text-muted);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--nature-dark);
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 999px;
  font-weight: 600;
}
.badge.gold {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.3);
  color: var(--gold);
}

/* ==========================================================================
   Navigation Header (Dark Transparent Glassmorphism)
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(9, 10, 14, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #ffffff;
  white-space: nowrap;
}
.logo-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.25));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo:hover .logo-icon-img {
  transform: scale(1.1) rotate(-2deg);
}
.logo .wordmark { display: inline; color: #ffffff; }
.logo .wordmark .dot {
  color: #e2e8f0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.footer-logo {
  color: var(--text-main);
}
.footer-logo .wordmark {
  color: var(--text-main);
}
.footer-logo .logo-icon-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.2s;
}
.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Cart Trigger Button */
.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}
.cart-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.cart-badge {
  background: #ffffff;
  color: #090a0e;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

@media(max-width: 860px) {
  .nav-links a:not(.cart-trigger):not(.icon-link) { display: none; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 105px;
  padding-bottom: 50px;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 34px;
}
.hero-title {
  max-width: none;
  font-size: clamp(22px, 4vw, 55px);
}
.hero-accent { color: var(--nature); }
.hero-desc {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ==========================================================================
   3D Clothing Rack Stage (Alakabra/black.alam Engine)
   ========================================================================== */
.stage {
  position: relative;
  border-radius: clamp(20px, 3vw, 36px);
  overflow: hidden;
  box-shadow: 0 25px 70px -25px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border);
  margin-top: 10px;
  background: #e2e6eb;
}
.stage .bgs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.stage .bg {
  position: absolute;
  inset: 0;
}
.stage .bg-afterdark {
  background: radial-gradient(85% 85% at 50% 50%, #f7f9fa 0%, #dfe3e8 100%);
}
.stage .bg-afterdark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(transparent 5%, #000 85%);
}

.stage .giant {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: clamp(60px, 14vw, 190px);
  font-weight: 900;
  color: var(--giant);
  letter-spacing: 0.15em;
  pointer-events: none;
  user-select: none;
}

.stage .hint-scene {
  position: absolute;
  z-index: 6;
  left: 20px;
  top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nature-dark);
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.stage .hint-scene b {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nature);
  box-shadow: 0 0 10px var(--nature);
}

.stage .dock {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  z-index: 5;
}
.chip {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: all 0.2s;
}
.chip:hover { color: var(--text-main); background: rgba(0, 0, 0, 0.08); }
.chip[aria-pressed=true] {
  background: var(--nature);
  color: #ffffff;
  border-color: var(--nature);
}
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Tringle 3D container */
.tringle {
  --tringle-ink: #0c0d12;
  --tringle-label: #4b5563;
  position: relative;
  width: 100%;
  aspect-ratio: 16/8.4;
  min-height: 380px;
  color: var(--tringle-ink);
  font-family: var(--body);
}
.tringle canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  cursor: grab;
}
.tringle canvas:active { cursor: grabbing; }

.tringle .label {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.94);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.tringle .label.on { opacity: 1; }
.tringle .label .price { color: var(--nature); margin-left: 6px; font-family: var(--mono); font-weight: 700; }

.tringle .loader {
  position: absolute;
  left: 0; right: 0; top: 48%;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nature-dark);
  pointer-events: none;
}
.tringle .loader.done { opacity: 0; }

.tringle .pager {
  position: absolute;
  top: 45%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}
.tringle .pager svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.tringle .pager:hover:not(:disabled) { background: var(--nature); color: #ffffff; border-color: var(--nature); }
.tringle .prev { left: 14px; }
.tringle .next { right: 14px; }

.tringle .hint {
  position: absolute;
  left: 0; right: 0; top: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.5s;
}
.tringle .hint.on { opacity: 1; }
.tringle .pageinfo {
  position: absolute;
  left: 0; right: 0; bottom: 64px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.tringle .fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2%;
}
.tringle .close {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.92); color: var(--text-main);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: grid; place-items: center; cursor: pointer; padding: 0; z-index: 4; transition: all 0.2s;
}
.tringle .close svg { width: 16px; height: 16px; }
.tringle .close:hover { background: var(--nature); color: #ffffff; }
.tringle .product {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #ffffff; background: var(--nature); border-radius: 999px; padding: 8px 18px; cursor: pointer;
}
.tringle .close[hidden], .tringle .product[hidden], .tringle .pager[hidden] { display: none; }

/* ==========================================================================
   Product Catalog Grid
   ========================================================================== */
.section {
  padding: clamp(60px, 8vw, 110px) 0;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 50px);
}
.sec-head p {
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 16px;
}

/* Filters */
.catalog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text-main); border-color: rgba(0, 0, 0, 0.2); }
.filter-btn.active {
  background: var(--nature);
  color: #ffffff;
  border-color: var(--nature);
}

/* Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.12), 0 0 20px rgba(5, 150, 105, 0.12);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 1/1.05;
  background: radial-gradient(circle at center, #ffffff 0%, #edf0f4 100%);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}
.card-img-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.06) rotate(-1deg);
}
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--nature-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.card-price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

/* Card Size selector */
.card-sizes {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.size-chip {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.size-chip:hover { border-color: var(--text-main); color: var(--text-main); }
.size-chip.selected {
  background: #0c0d12;
  color: #ffffff;
  border-color: #0c0d12;
}

.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* ==========================================================================
   Eco Mission Bento Section
   ========================================================================== */
.eco-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.eco-card {
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  transition: all 0.3s;
}
.eco-card:hover {
  border-color: var(--nature);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}
.eco-card-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.eco-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-main);
}
.eco-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.eco-span-7 { grid-column: span 7; }
.eco-span-5 { grid-column: span 5; }
.eco-span-6 { grid-column: span 6; }
.eco-card.highlight {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(244, 246, 249, 0.95));
  border-color: rgba(5, 150, 105, 0.35);
}

@media(max-width: 900px) {
  .eco-span-7, .eco-span-5, .eco-span-6 { grid-column: span 12; }
}

/* ==========================================================================
   Size Chart Table
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.size-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}
.size-table th, .size-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.size-table th {
  background: var(--bg-surface);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.size-table tr:last-child td { border-bottom: 0; }
.size-table tr:hover td { background: rgba(0, 0, 0, 0.02); }

/* ==========================================================================
   Shopping Cart Slide-Over Drawer
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-left: 1px solid var(--border);
  z-index: 101;
  transform: translateX(101%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-size: 20px; }
.cart-close-btn {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cart-close-btn:hover { color: var(--text-main); background: rgba(0, 0, 0, 0.05); }

.cart-tree-banner {
  background: rgba(5, 150, 105, 0.1);
  border-bottom: 1px solid rgba(5, 150, 105, 0.2);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--nature-dark);
  font-weight: 600;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-empty p { margin-bottom: 20px; font-size: 16px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.cart-item-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  background: #eaedf1;
  border-radius: 8px;
  padding: 6px;
}
.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-title { font-weight: 700; font-size: 15px; color: var(--text-main); }
.cart-item-meta { font-size: 13px; color: var(--text-muted); font-family: var(--mono); }
.cart-item-price { font-weight: 700; color: var(--nature); font-size: 15px; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.qty-btn:hover { background: var(--bg-elevated); }
.cart-item-del {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  margin-left: auto;
}
.cart-item-del:hover { color: #dc2626; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.cart-total-val {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}
.checkout-btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
}

/* ==========================================================================
   Checkout & Payment Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.25);
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body {
  padding: 28px;
  max-height: 75vh;
  overflow-y: auto;
}

/* Form inputs */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.form-full { grid-column: span 2; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: var(--nature);
}

/* Payment Method Tabs */
.payment-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.payment-opt {
  padding: 14px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.payment-opt:hover { border-color: var(--text-muted); }
.payment-opt.active {
  border-color: var(--nature);
  background: rgba(5, 150, 105, 0.1);
  color: var(--nature-dark);
}
.payment-opt-title { font-weight: 700; font-size: 14px; }
.payment-opt-sub { font-size: 11px; opacity: 0.7; font-family: var(--mono); }

/* QRIS & Bank Preview */
.payment-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.bank-acc-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
}
.bank-num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--nature);
}

.qris-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
}
.qris-img-wrap {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.qris-img-wrap svg { display: block; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #111827;
  color: #fff;
  border: 1px solid var(--nature);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 15px var(--nature-glow);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: #dfe3ea;
  color: var(--text-muted);
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media(max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: span 1; }
  .payment-selector { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Typography overrides
   ========================================================================== */
h1 { font-family:'Unbounded',sans-serif; letter-spacing:-0.02em; text-transform:uppercase; }
body { font-family:'Space Grotesk',sans-serif; }
.label { font-family:'Share Tech Mono',monospace; letter-spacing:0.18em; text-transform:uppercase; }

/* Catalogue icon (navbar) + separate catalogue page */
.nav-links a.icon-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}
.nav-links a.icon-link:hover,
.nav-links a.icon-link.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.hero-title .lower { text-transform: none; }
.catalog-page { padding-top: clamp(110px, 12vw, 150px); min-height: 80vh; }

/* ==========================================================================
   Horizontal Articles Section (Jurnal black.alam)
   ========================================================================== */
.articles-section {
  padding: clamp(60px, 8vw, 110px) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #eaedf1 0%, #dfe3e8 100%);
  position: relative;
  overflow: hidden;
}

.articles-nav-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slider-arrow:hover {
  background: var(--nature);
  color: #ffffff;
  border-color: var(--nature);
  transform: scale(1.06);
}

.articles-scroll-container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--nature-dark) var(--bg-surface);
}

.articles-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.articles-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
.articles-scroll-container::-webkit-scrollbar-thumb {
  background: var(--nature-dark);
  border-radius: 999px;
}
.articles-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--nature);
}

.articles-track {
  display: flex;
  gap: 24px;
  padding-inline: var(--pad);
  width: max-content;
}

.article-card {
  width: clamp(320px, 34vw, 420px);
  min-height: 420px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--nature), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.12), 0 0 25px var(--nature-glow);
}

.article-card:hover::before {
  opacity: 1;
}

.article-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.article-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--nature-dark);
  border: 1px solid rgba(5, 150, 105, 0.25);
  text-transform: uppercase;
  font-weight: 700;
}

.article-read-time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.article-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text-main);
  transition: color 0.2s;
}

.article-card:hover .article-title {
  color: var(--nature);
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.article-cta {
  font-weight: 700;
  color: var(--nature);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.article-card:hover .article-cta {
  gap: 10px;
}

.article-stat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

@media(max-width: 768px) {
  .articles-nav-controls {
    align-items: flex-start;
  }
}
