﻿/* ================================================
   PerkoP App — style.css
   ================================================ */

:root {
  --amber:      #d97706;
  --amber-dark: #b45309;
  --dark:       #1c1009;
  --light:      #fffbf5;
  --muted:      #78716c;
  --border:     #e7e5e4;
  --success:    #059669;
  --warning:    #d97706;
  --info:       #2563eb;
  --card-bg:    #ffffff;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --radius:     14px;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: #292524;
}

/* ── HEADER ──────────────────────────────────────── */
header {
  background: var(--dark);
  background-image:
    radial-gradient(ellipse at 30% 110%, rgba(120,53,15,.45) 0%, transparent 55%),
    radial-gradient(ellipse at 75% -20%, rgba(80,30,8,.3) 0%, transparent 50%);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
  border-bottom: 1px solid rgba(217,119,6,.12);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ── Logo + brand group ── */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo {
  height: 66px;
  width: auto;
  transition: opacity .2s;
}

.header-logo-link:hover .header-logo { opacity: .82; }

.header-brand-block { flex-shrink: 0; }

header h1 {
  color: var(--amber);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.1;
}

.header-brand {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
.header-brand:hover { opacity: .82; }

.header-tagline {
  margin-top: 4px;
  color: #c4ab96;
  font-size: clamp(10px, 1.2vw, 12px);
  line-height: 1.45;
  max-width: 280px;
}

/* ── Center cartoon illustration ── */
.header-illus {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  pointer-events: none;
}

.header-illus-svg {
  width: clamp(160px, 18vw, 240px);
  height: auto;
  display: block;
}

/* Steam animation */
.hdr-steam {
  animation: hdrSteam 2.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.hdr-steam.s1 { animation-delay: 0s;    }
.hdr-steam.s2 { animation-delay: 0.85s; }
.hdr-steam.s3 { animation-delay: 1.7s;  }

@keyframes hdrSteam {
  0%   { opacity: 0;   transform: translateY(0)     scaleX(1);    }
  20%  { opacity: 0.7;                                             }
  70%  { opacity: 0.35;                                            }
  100% { opacity: 0;   transform: translateY(-9px)  scaleX(1.25); }
}

/* ── Navigation ── */
.header-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  color: #b5a69a;
  transition: all .2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--amber); }

.nav-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #5d3412;
  color: #d9c9b8;
  transition: all .2s;
  white-space: nowrap;
}

.nav-btn:hover { border-color: var(--amber); color: var(--amber); }

.nav-btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--dark) !important;
  font-weight: 600;
}

.nav-btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); }

/* ── CONTENT PAGES (about, cara-kerja) ──────────── */
.content-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.content-hero {
  text-align: center;
  padding: 48px 20px 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.content-hero h1 {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.content-hero .hero-lead {
  font-size: clamp(14px, 2.5vw, 17px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  background: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.content-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #fef3c7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-section p {
  font-size: 14px;
  color: #44403c;
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-section p:last-child { margin-bottom: 0; }

.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.content-card {
  background: #fffbf5;
  border-radius: 10px;
  padding: 20px;
  border-left: 3px solid var(--amber);
}

.content-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.content-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.steps-list {
  list-style: none;
  counter-reset: step-counter;
}

.steps-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step-counter;
  font-size: 14px;
  color: #44403c;
  line-height: 1.6;
  align-items: flex-start;
}

.steps-list li:last-child { border-bottom: none; }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--amber);
  color: var(--dark);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  background: #f5f0eb;
  color: #44403c;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.tag-strikethrough {
  background: #fee2e2;
  color: #991b1b;
  text-decoration: line-through;
}

.highlight-box {
  background: #fef3c7;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 12px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.tier-card {
  background: #f9f7f4;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.tier-card .tier-badge {
  font-size: 18px;
  margin-bottom: 8px;
}

.tier-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}

.tier-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.tier-1 { border-top: 3px solid #059669; }
.tier-2 { border-top: 3px solid #d97706; }
.tier-3 { border-top: 3px solid #9ca3af; }

/* Content page responsive */
@media (max-width: 768px) {
  .content-page    { padding: 24px 16px 60px; }
  .content-section { padding: 20px 18px; }
  .content-hero    { padding: 32px 16px 28px; margin-bottom: 24px; }
  .content-grid-2  { grid-template-columns: 1fr; }
  .tier-grid       { grid-template-columns: 1fr; gap: 8px; }
}

/* ── CONTROLS ────────────────────────────────────── */
.controls {
  background: var(--dark);
  padding: 12px 24px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #2e1a0e;
}

.radius-group {
  display: flex;
  gap: 8px;
}

.radiusBtn {
  padding: 8px 18px;
  border: 1px solid #5d3412;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: #d9c9b8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}

.radiusBtn.active { background: var(--amber); border-color: var(--amber); color: var(--dark); }
.radiusBtn:hover:not(.active) { border-color: var(--amber); color: var(--amber); }

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.filter-group select {
  padding: 7px 12px;
  border: 1px solid #5d3412;
  border-radius: 999px;
  background: transparent;
  color: #d9c9b8;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.filter-group select option { background: var(--dark); }

.filter-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d9c9b8;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.filter-check input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--amber);
  cursor: pointer;
}

/* ── FILTER DROPDOWN ─────────────────────────────── */
.filter-dropdown {
  position: relative;
  flex-shrink: 0;
}

/* Trigger button — same visual style as the <select> */
.filter-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid #5d3412;
  border-radius: 999px;
  background: transparent;
  color: #d9c9b8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s;
  outline: none;
  user-select: none;
}

.filter-dd-btn:hover           { border-color: var(--amber); color: var(--amber); }
.filter-dd-btn.open            { border-color: var(--amber); color: var(--amber); }
.filter-dd-btn--active         { border-color: var(--amber); color: var(--amber);
                                  background: rgba(217,119,6,.12); }

/* Animated chevron */
.filter-dd-chevron {
  display: block;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.filter-dd-btn.open .filter-dd-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.filter-dd-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #2b1608;
  border: 1px solid #5d3412;
  border-radius: 12px;
  padding: 8px 6px;
  z-index: 1000;
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
  animation: ddFadeIn .15s ease;
}

.filter-dd-panel.open { display: block; }

@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Each item row inside the panel */
.filter-dd-item {
  display: block;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  color: #d9c9b8;
  font-size: 13px;
  font-weight: 400;
  transition: background .15s, color .15s;
  user-select: none;
  white-space: nowrap;
}

.filter-dd-item:hover { background: rgba(255,255,255,.07); }

/* Hide the actual checkbox — kept in DOM for app.js */
.filter-dd-item input[type="checkbox"] { display: none; }

/* Active state: amber text + left accent line */
.filter-dd-item:has(input:checked) {
  color: var(--amber);
  font-weight: 600;
  background: rgba(217,119,6,.12);
}

.filter-dd-item:has(input:checked):hover { background: rgba(217,119,6,.18); }

/* ── MAP ─────────────────────────────────────────── */
#map {
  height: 42vh;
  min-height: 280px;
}

/* ── RESULT SECTION ──────────────────────────────── */
#result {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.resultTitle {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--muted);
}

/* ── Top-bar: teks info + tombol prev/next ── */
.result-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.result-topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.result-topnav-btn {
  padding: 5px 14px;
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  white-space: nowrap;
}

.result-topnav-btn:hover:not(:disabled) {
  background: #b45309;
}

.result-topnav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.result-topnav-info {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.resultGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.card-claimed:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }

.card-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.card-photo-placeholder {
  width: 100%;
  height: 140px;
  background: #f5f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #c4a882;
}

.card-unclaimed .card-photo-placeholder {
  height: 100px;
  font-size: 30px;
  background: #f5f0eb;
}

.card-body {
  padding: 12px 14px 14px;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-verified  { background: #d1fae5; color: #065f46; }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-unclaimed { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }

.price-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-dark);
  letter-spacing: .05em;
  margin-left: auto;
}

.placeLink {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 5px;
}

.placeLink:hover { color: var(--amber); }

.card-rating {
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating-text { color: var(--muted); font-size: 12px; }

.card-distance {
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  margin-bottom: 2px;
}

.dist-near { color: #059669; }   /* < 400 m  — hijau */
.dist-mid  { color: #d97706; }   /* < 1.2 km — amber */
.dist-far  { color: var(--muted); } /* sisanya — abu   */

.card-address {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.claim-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  color: var(--amber-dark);
  text-decoration: none;
  background: transparent;
  border: 1px dashed var(--amber);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}

.claim-btn:hover { background: #fef3c7; }

/* ── LOADING / EMPTY ─────────────────────────────── */
.loading {
  padding: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ── PAGINATION ─────────────────────────────────── */
.pagination {
  padding: 28px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 8px;
}

.page-brand-letter {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  letter-spacing: -1px;
  pointer-events: none;
  user-select: none;
}

.page-o {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--amber);
  cursor: pointer;
  padding: 0 1px;
  line-height: 1;
  letter-spacing: -1px;
  transition: color .15s, transform .2s;
  user-select: none;
}

.page-o:hover {
  color: var(--amber-dark);
  transform: translateY(-4px) scale(1.2);
}

.page-o.active {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 5px;
  text-decoration-thickness: 3px;
}

.page-arrow {
  background: none;
  border: none;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  color: var(--amber-dark);
  cursor: pointer;
  padding: 4px 12px;
  transition: color .15s;
  align-self: center;
}

.page-arrow:hover { color: var(--dark); }

.page-info {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── MERCHANDISE ─────────────────────────────────── */
.merchandise {
  padding: 64px 24px 72px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

/* Section header */
.merch-header {
  text-align: center;
  margin-bottom: 40px;
}

.merch-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.merch-header h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 10px;
}

.merch-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.merch-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.merch-trust-item {
  font-size: 12px;
  font-weight: 500;
  color: #59534e;
}

/* Grid */
.shirtGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.shirtCard {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  overflow: hidden;
  position: relative;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.shirtCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}

/* Product badge */
.shirt-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--amber);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.shirt-badge.new   { background: #3b82f6; color: white; }
.shirt-badge.funny { background: #ec4899; color: white; }

/* Image thumbnail */
.shirt-img-wrap {
  overflow: hidden;
  background: #f5f0eb;
  position: relative;
  cursor: zoom-in;
}

.shirtImage {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 14px;
  display: block;
  transition: transform .35s ease;
}

.shirtCard:hover .shirtImage {
  transform: scale(1.06);
}

/* Zoom hint overlay */
.thumb-zoom-hint {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.48));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
  padding: 22px 8px 9px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.shirt-img-wrap:hover .thumb-zoom-hint { opacity: 1; }

/* ── LIGHTBOX ─────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  cursor: default;
  animation: lbIn .22s ease;
}

@keyframes lbIn {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 16px; right: 18px;
  background: rgba(255,255,255,.14);
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,.26); }

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* Body */
.shirt-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.shirt-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.shirt-id-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .06em;
}

.shirt-feature-tags { display: flex; gap: 4px; }

.ftag {
  font-size: 10px;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
}

.shirt-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 8px;
}

.shirt-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.shirt-stars { color: var(--amber); font-size: 13px; letter-spacing: 1px; }

.shirt-sold-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.shirt-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--amber-dark);
}

.price-tag-free {
  font-size: 11px;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

/* Pickers */
.size-section,
.color-section {
  margin-bottom: 12px;
}

.picker-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.size-selected-label,
.color-selected-label {
  font-weight: 600;
  color: var(--amber-dark);
  text-transform: none;
  letter-spacing: 0;
}

.size-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-btn {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #44403c;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover  { border-color: var(--amber); color: var(--amber-dark); }
.size-btn.active { background: var(--amber); border-color: var(--amber); color: var(--dark); }

.color-options {
  display: flex;
  gap: 8px;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.color-dot:hover  { transform: scale(1.18); }
.color-dot.active { box-shadow: 0 0 0 3px white, 0 0 0 5px var(--amber); }

/* Qty stepper */
.qty-section { margin-bottom: 14px; }

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f2ef;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}

.qty-btn:hover:not(:disabled) { background: #ede9e4; }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }

.qty-value {
  width: 42px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Order button */
.shirt-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 13px 16px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .15s;
  align-self: stretch;
}

.shirt-order-btn:hover:not(.shirt-btn-disabled) {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.shirt-btn-disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  pointer-events: none;
  transform: none !important;
}

/* Bottom note */
.merch-bottom-note {
  text-align: center;
  margin-top: 32px;
  padding: 16px 24px;
  background: #fef9f0;
  border-radius: var(--radius);
  border: 1px solid #fde68a;
}

.merch-bottom-note p {
  font-size: 13px;
  color: #78716c;
  line-height: 1.7;
  margin: 0;
}

/* ── AD BANNERS ──────────────────────────────────── */

/* Strip container (Spot 1 & 3) */
.ad-strip {
  background: #f9f7f4;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-strip--footer {
  background: #f3f0ed;
  border-top: 1px solid var(--border);
  border-bottom: none;
}

/* Mid-page container (Spot 2) */
.ad-mid {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

/* Shared ad slot */
.ad-slot {
  position: relative;
  max-width: 970px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1.5px dashed #d6cfc8;
  transition: border-color .2s;
}

.ad-slot--rect {
  border-radius: 12px;
}

/* Live ad (image loaded) */
.ad-slot--live {
  border: 1.5px solid var(--border);
  background: transparent;
}

/* Ad label */
.ad-label {
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #a8a29e;
  text-transform: uppercase;
  background: rgba(255,255,255,.82);
  padding: 1px 5px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}

/* Placeholder (no active ad) */
.ad-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.ad-ph-icon {
  font-size: 28px;
  flex-shrink: 0;
  opacity: .7;
}

.ad-ph-text {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ad-ph-text strong {
  font-size: 13px;
  color: var(--dark);
  font-weight: 600;
}

.ad-ph-text span {
  font-size: 12px;
  color: var(--muted);
}

.ad-ph-cta {
  display: inline-block;
  padding: 8px 18px;
  background: var(--amber);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}

.ad-ph-cta:hover { background: var(--amber-dark); color: white; }

/* Live image */
.ad-img-link { display: block; line-height: 0; }

.ad-img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 0;
}

/* picture wrapper ikut ukuran parent */
.ad-slot--live picture { display: block; line-height: 0; }

/* Sponsor credit */
.ad-sponsor {
  font-size: 10px;
  color: #a8a29e;
  text-align: right;
  padding: 3px 8px;
  background: rgba(0,0,0,.03);
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--dark);
  text-align: center;
  padding: 24px 20px;
  color: #d9c9b8;
  font-size: 13px;
  line-height: 1.8;
}

footer a { color: var(--amber); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────────────── */

/* Tablet (769px – 1024px) */
@media (max-width: 1024px) {
  .shirtGrid  { grid-template-columns: repeat(2, 1fr); }
  .resultGrid { grid-template-columns: repeat(2, 1fr); }
  .shirtImage { height: 145px; }
}

/* Tablet (769px–1099px) — hide illustration */
@media (max-width: 1099px) {
  .header-illus { display: none; }
  header { padding: 12px 20px; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  /* Header: logo + brand on top, nav below */
  header { padding: 12px 14px; }
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-left {
    flex: 1;
    min-width: 0;
    gap: 10px;
  }
  .header-logo { height: 50px; }
  .header-tagline { font-size: 10px; margin-top: 2px; }
  header h1  { font-size: 16px; }
  .header-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
  }
  /* 4 items → 2 per row (50% each) */
  .header-nav .nav-link,
  .header-nav .nav-btn {
    flex: 1 0 calc(50% - 3px);
    text-align: center;
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 999px;
  }
  .header-nav .nav-link {
    border: 1px solid #3a2010;
    color: #a89080;
  }
  .header-nav .nav-link:hover { color: var(--amber); border-color: #5d3412; }

  /* Controls — satu baris di mobile */
  .controls {
    padding: 8px 12px;
    gap: 6px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    /* overflow-x: auto DIHAPUS — akan memotong dropdown panel (position:absolute) */
  }
  .radius-group   { gap: 5px; flex-shrink: 0; }
  .radiusBtn      { padding: 6px 10px; font-size: 11px; }
  .filter-group   { margin-left: auto; gap: 5px; flex-wrap: nowrap; flex-shrink: 0; }
  .filter-group select {
    font-size: 12px;
    padding: 5px 8px;
    width: auto;
    /* font-size < 16px → iOS Safari will zoom on tap; acceptable trade-off */
  }
  .filter-dd-btn  { font-size: 11px; padding: 5px 10px; }

  /* Map */
  #map { height: 36vh; min-height: 220px; }

  /* Results */
  #result { padding: 14px; }
  .resultGrid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Merchandise */
  .merchandise     { padding: 40px 14px 56px; }
  .shirtGrid       { grid-template-columns: 1fr 1fr; gap: 14px; }
  .shirtImage      { height: 135px; }
  .shirt-name      { font-size: 13px; }
  .price-current   { font-size: 17px; }
  .size-btn        { width: 34px; height: 34px; font-size: 11px; }
  .shirt-order-btn { font-size: 13px; padding: 11px 12px; }
  .merch-header h2 { font-size: 20px; }
  .merch-trust-row { gap: 6px 14px; }

  /* Footer */
  footer { padding: 20px 16px; font-size: 12px; }

  /* Ad slots — mobile adjustments */
  .ad-strip { padding: 8px 10px; }
  .ad-mid   { padding: 12px 10px; }
  .ad-img   { max-height: 60px; }
  .ad-placeholder { padding: 12px 14px; gap: 10px; }
  .ad-ph-icon { font-size: 20px; }
  .ad-ph-text strong { font-size: 12px; }
  .ad-ph-text span   { font-size: 11px; }
  .ad-ph-cta { padding: 6px 14px; font-size: 11px; }
}

/* Small mobile (≤ 480px) */
/* Filter panel: fixed positioning on mobile (bebas dari overflow/stacking parent) */
@media (max-width: 768px) {
  .filter-dd-panel {
    position: fixed;
    z-index: 9999;
    /* top & right di-set via JS saat panel dibuka */
  }
}

@media (max-width: 480px) {
  .resultGrid      { grid-template-columns: 1fr; }
  .shirtGrid       { grid-template-columns: 1fr; }
  .shirtImage      { height: 160px; }
  .merch-bottom-note { padding: 12px 16px; }
  .header-nav .nav-btn { font-size: 11px; padding: 8px 4px; }
  #map { height: 32vh; min-height: 200px; }
}
