:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #7a7570;
  --line: #e8e4dc;
  --accent: #111111;
  --accent-ink: #ffffff;
  --sand: #f0ece3;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 8px rgba(0,0,0,0.08), 0 18px 36px rgba(0,0,0,0.14);
  --radius: 16px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  text-align: right;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.lang-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle:hover { background: rgba(255,255,255,0.22); }
.lang-toggle:disabled { opacity: 0.6; cursor: default; }

.site-header {
  background: #111;
  color: #fff;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative tropical top stripe */
.site-header::before {
  content: '';
  display: block;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    #fff 0px, #fff 12px,
    transparent 12px, transparent 20px
  );
  opacity: 0.15;
}

.site-header-inner {
  padding: 36px 20px 40px;
  position: relative;
}

.site-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.75);
}

.site-title {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.site-title .ltr { direction: ltr; display: inline-block; }
.site-title a { display: inline-block; }
.site-title-link {
  display: inline-block;
  position: relative;
  direction: ltr;
  text-decoration: none;
}
.site-logo {
  height: clamp(38px, 7vw, 62px);
  width: auto;
  display: block;
}
.beta-badge {
  position: absolute;
  top: -2px;
  right: -38px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #c9a15c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 6px;
  border-radius: 4px;
}

.site-divider {
  width: 48px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  margin: 18px auto 16px;
}

.site-subtitle {
  margin: 0 auto;
  max-width: 520px;
  font-size: 15px;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  white-space: pre-line;
}

.site-footer-note {
  margin: 20px auto 0;
  font-size: 13px;
  color: #c9a15c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-footer-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Filters ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
  justify-content: center;
}

.chip {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.chip:hover {
  border-color: var(--ink);
  background: var(--sand);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── Status / empty ── */
.status {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 17px;
}

.landing-cta {
  display: inline-block;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease;
}
.landing-cta:hover { transform: translateY(-1px); }

/* ── Landing page (domain root, no store) ── */
.landing {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  text-align: center;
}
/* Top CTA: give it breathing room, vertically centered in its space. */
.landing > .landing-cta:first-child { margin: 40px 0; }
/* Bottom CTA: modest space above, tight below so the page ends cleanly. */
.landing-cta-bottom { margin-top: 40px; }
.landing-login {
  font-size: 15px;
  margin-bottom: 28px;
  color: var(--ink);
}
.landing-login a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.landing-login a:hover { text-decoration-thickness: 2px; }
.landing-free {
  color: var(--muted);
  font-size: 15px;
  max-width: 460px;
  margin: 18px auto 0;
  line-height: 1.6;
}
.landing-help {
  color: var(--muted);
  font-size: 14px;
  margin-top: 24px;
}
.landing-help a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-h2 {
  font-size: 22px;
  margin: 56px 0 24px;
}
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing-step {
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 16px;
  padding: 24px 18px;
  position: relative;
}
.landing-step-num {
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.landing-step-emoji { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.landing-step h3 { font-size: 17px; margin: 0 0 6px; }
.landing-step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.landing-for {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-for li {
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 500;
}
@media (max-width: 560px) {
  .landing-steps { grid-template-columns: 1fr; }
}

/* ── Category sections ── */
.cat-section {
  margin-top: 36px;
}
.cat-section:last-child {
  margin-bottom: 100px;
}

.cat-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  color: var(--ink);
}

.cat-title.give {
  border-bottom-color: var(--ink);
}

.give-section {
  margin-top: 44px;
  padding-top: 12px;
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

/* ── Card ── */
.card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #ccc;
}

.card.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2.5px var(--ink);
}

.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sand);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card-img img {
  transform: scale(1.04);
}

.card-img .noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.card-cat {
  position: absolute;
  inset-inline-start: 10px;
  inset-block-start: 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

/* ── Select checkbox ── */
.card-select {
  position: absolute;
  inset-inline-end: 10px;
  inset-block-start: 10px;
  z-index: 2;
}

.card-select input {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: #111;
  border-radius: 6px;
}

.card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-top: auto;
  padding-top: 4px;
}

.card-price .cur {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.65;
}

.card-price.tba {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-price.give {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.card-price.sale {
  color: #c0392b;
}

.card-price .original {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin-inline-end: 4px;
}

/* ── WhatsApp button ── */
.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.12s ease;
}

.wa-btn:hover {
  background: #333;
  transform: scale(1.02);
}

.wa-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Image carousel ── */
.card-img .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: 0;
  backdrop-filter: blur(6px);
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.card-img .nav:hover { background: rgba(0,0,0,0.92); transform: translateY(-50%) scale(1.1); }
.card-img .nav.prev { inset-inline-end: 8px; }
.card-img .nav.next { inset-inline-start: 8px; }

.card-img .count { display: none; }

.card-img .dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.card-img .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(255,255,255,0.8);
  transition: background 0.15s;
  flex-shrink: 0;
}

.card-img .dot.active {
  background: #fff;
}

/* ── Sticky selection bar ── */
.selbar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  z-index: 30;
  box-shadow: 0 -8px 28px rgba(0,0,0,0.25);
}

.selbar[hidden] { display: none; }

.selbar-count {
  font-weight: 800;
  font-size: 16px;
}

.selbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.selbar-clear {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.selbar-clear:hover { border-color: rgba(255,255,255,0.65); }

.selbar .wa-btn {
  background: #fff;
  color: #111;
  font-size: 14px;
  padding: 10px 18px;
}
.selbar .wa-btn:hover { background: #eee; }

/* ── Site footer ── */
.site-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  background: #111;
  text-align: center;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-logo {
  height: 19px;
  width: auto;
}

.footer-cta {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  background: #c9a15c;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(201,161,92,0.3);
}
.footer-cta:hover {
  background: #d4af6e;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201,161,92,0.45);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 16px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 400px;
}
.footer-sep { display: none; }
.footer-help {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 4px 0;
  text-align: center;
  transition: color 0.15s;
}
.footer-help:hover { color: #c9a15c; }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  place-items: center;
  z-index: 50;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}

.lb-close {
  position: fixed;
  top: 16px;
  inset-inline-end: 16px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 52;
  padding: 0;
}
.lb-close:hover { background: rgba(255,255,255,0.15); }

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 52;
  padding: 0;
}
.lb-nav:hover { background: rgba(255,255,255,0.15); }
.lb-prev { inset-inline-end: 14px; }
.lb-next { inset-inline-start: 14px; }

.lb-count {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: rgba(0,0,0,0.6);
  padding: 4px 14px;
  border-radius: 999px;
  z-index: 52;
}

/* ── FOMO progress bar ── */
.fomo-bar {
  max-width: 480px;
  margin: 0 auto 14px;
  text-align: center;
}
.fomo-bar .fomo-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.fomo-bar .fomo-text .fomo-pct {
  font-weight: 800;
  color: var(--ink);
}
.fomo-bar .fomo-track {
  height: 10px;
  background: var(--sand);
  border-radius: 99px;
  overflow: hidden;
}
.fomo-bar .fomo-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 99px;
  transition: width 0.6s ease;
  transition: width 0.6s ease;
}

/* ── Sold card overlay ── */
.card.card-sold {
  opacity: 0.55;
  pointer-events: none;
}
.card.card-sold:hover {
  transform: none;
  box-shadow: var(--shadow);
}
.card-sold-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  padding: 8px 22px;
  border-radius: 8px;
  z-index: 5;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Savings display ── */
.card-savings {
  font-size: 11px;
  font-weight: 700;
  color: #2d8659;
  background: #e4f3eb;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

/* ── New badge ── */
.card-new-badge {
  position: absolute;
  inset-inline-end: 10px;
  inset-block-end: 10px;
  background: #2d8659;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.3px;
}

/* ── Clearance sale banner ── */
.clearance-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px 22px;
  margin-bottom: 18px;
  text-align: center;
}
.clearance-banner strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.clearance-subtitle {
  display: block;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 14px;
}
.clearance-banner p {
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0 0;
  opacity: 0.85;
}
.clearance-countdown {
  padding: 14px 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.clearance-closing-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
  margin-bottom: 6px;
  letter-spacing: 0;
}

/* ── Clearance closed screen ── */
.clearance-closed {
  text-align: center;
  padding: 60px 20px;
}
.clearance-closed h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.clearance-closed p {
  font-size: 16px;
  color: #666;
  margin: 0;
}
.clearance-open-store {
  margin-top: 40px;
  padding: 24px;
  background: #f5f5f5;
  border-radius: 12px;
}
.clearance-open-store p {
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
}
.clearance-open-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.clearance-open-btn:hover {
  background: #333;
}

/* ── Bid section in cards ── */
.bid-section {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bid-prompt {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
}
.bid-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bid-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.bid-input::-webkit-inner-spin-button,
.bid-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bid-input:focus {
  border-color: #111;
}
.bid-input.bid-error {
  border-color: #d32f2f;
}
.bid-input::placeholder {
  font-weight: 400;
  font-size: 11px;
  color: #999;
}
.bid-currency {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  flex-shrink: 0;
}
.bid-note {
  font-size: 10px;
  color: #999;
  text-align: center;
}
.wa-btn.wa-bid {
  background: #111;
  margin-top: 2px;
  font-size: 13px;
  padding: 8px 10px;
}
.wa-btn.wa-bid:hover {
  background: #333;
}

/* ── Selbar clearance mode ── */
.selbar.selbar-clearance {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 10px;
  padding: 14px 20px;
}
.selbar.selbar-clearance .selbar-actions {
  justify-content: center;
}
.selbar-bid-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.selbar-bid-row .bid-input {
  width: 140px;
  flex: none;
  text-align: center;
}
.selbar-bid-row .bid-currency {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .selbar { flex-wrap: wrap; gap: 10px; }
  .fomo-bar { padding: 12px 14px; }
}
