/* ---- styles.css (LIGHT) ---- */
/* ---- Mobile polish ---- */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow-x: hidden; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* === Background: subtle light texture === */
body{
  color:#1e293b; /* slate-800 */
  background:#f9fafb;
  background-image:
    linear-gradient(45deg, transparent 49%, rgba(0,0,0,0.02) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(0,0,0,0.02) 50%, transparent 51%),
    radial-gradient(900px 700px at 80% 90%, rgba(14,165,233,0.06), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.01) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, #ffffff, #f1f5f9 35%, #f9fafb);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}
body::before{
  content:""; position: fixed; inset:0; pointer-events:none;
  background:
    radial-gradient(120% 80% at 50% 8%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.6) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.05'/></svg>");
  background-size: cover, 160px 160px; mix-blend-mode: soft-light; opacity:.5; z-index:-1;
}

/* Theme tokens */
:root{
  --ink:#1e293b;           /* text */
  --muted:#6b7280;         /* secondary text */
  --accent:#0ea5e9;        /* brand blue */
  --chip:#e0f2fe;          /* chip bg */
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 18px rgba(16,24,40,.08);

  /* Layout + sizing vars for tile parity */
  --wrap-max: 1080px;
  --wrap-pad: 14px;
  --tile-gap: 14px;
  --cols: 2;               /* default: small screens = 2 columns */
}
@media (min-width:760px){
  :root{ --cols: 3; }      /* tablet/desktop = 3 columns */
}

a{ color:var(--accent); }

/* NAV */
.nav{
  position: sticky; top:0; z-index:20;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--border);
}
.nav-wrap{ max-width: none; margin:0 auto; padding:10px 14px; display:flex; align-items:center; gap:10px; }
.brand{ display:flex; align-items:center; gap:5px; color:var(--ink); text-decoration:none; font-weight:800; letter-spacing:.2px; }
.brand-badge {
  width: 28px;
  height: 28px;
  border-radius: 0;   /* no rounded box */
  background: none;   /* remove background */
  box-shadow: none;   /* remove shadow */
  overflow: hidden;   /* keeps image contained */
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* logo keeps proportions */
  display: block;
}






.search{
  flex:1; display:flex; align-items:center; gap:8px;
  border:1px solid var(--border); background:#f1f5f9;
  padding:8px 10px; border-radius:10px;
}
.search input{ border:0; outline:0; width:100%; font:inherit; color:var(--ink); background:transparent; }
.search svg{ flex:0 0 auto }
@media (min-width: 900px){
  .search{ flex: 0 1 220px; max-width: 220px; margin-left: auto; }
}

/* Typography bits */
span,
.brand-name{
  font-family:'Montserrat',sans-serif;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
}
span{ font-size:1rem; }
.brand-name{ font-size:1rem; color:var(--ink); }
.brand-highlight{ color:var(--accent); }

/* Intro (banner style) */
.intro-section{
  background:#f1f5f9;
  border-bottom:1px solid var(--border);
}
.intro-text{
  margin:0; padding:40px 18px; color:var(--ink); text-align:center;
  font-size:1.3rem; line-height:1.6; font-weight:500;
}
.site-name{ color:black(--accent); }
.highlight-blue{ color:var(--accent); letter-spacing: 0; }
@media (max-width:768px){ .intro-text{ font-size:.98rem; padding:14px; } }

/* Layout */
.wrap{ max-width:var(--wrap-max); margin:0 auto; padding:var(--wrap-pad); }
.section-title{ margin:14px 6px 10px; font-weight:800; font-size:18px; color:var(--ink); }

/* Featured row (horizontal scroller) */
.featured{
  display:flex; gap:var(--tile-gap); overflow-x:auto; padding:6px 2px 6px 6px; scroll-snap-type:x proximity;
  /* available width equals the same width the grid uses inside .wrap */
  --available: calc(min(var(--wrap-max), 100vw) - (var(--wrap-pad) * 2));
  --col-w: calc((var(--available) - (var(--tile-gap) * (var(--cols) - 1))) / var(--cols));
}
.featured::-webkit-scrollbar{ height:8px }
.featured::-webkit-scrollbar-thumb{ background:#cbd5e1; border-radius:999px }
.featured .tile{
  width: var(--col-w);
  min-width: var(--col-w);
  max-width: var(--col-w);
  flex: 0 0 auto;
  scroll-snap-align: center;
  box-sizing: border-box;
}
.featured .tile-img{ aspect-ratio: 1 / 1; }

/* Keep clickable affordance */
.tile.is-clickable{ cursor: pointer; }
.tile.is-clickable:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* ===== Buttons (pills + brand variants) ===== */
.btn{
  --btn-grad-a:#0ea5e9; --btn-grad-b:#2563eb; --btn-text:#fff;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-width:150px; padding:11px 16px; border-radius:14px; border:0;
  background:linear-gradient(135deg,var(--btn-grad-a),var(--btn-grad-b));
  color:var(--btn-text); font-weight:800; font-size:14px; letter-spacing:.3px;
  text-align:center; text-decoration:none; cursor:pointer; position:relative;
  box-shadow:0 6px 18px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.06);
  transition:transform .18s, box-shadow .18s, filter .18s;
  -webkit-tap-highlight-color:transparent;
}
.btn::before{ content:""; position:absolute; inset:-4px; border-radius:18px; background:rgba(0,0,0,.02); z-index:-1; }
.btn:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.08); filter:brightness(1.04); }
.btn:active{ transform:translateY(1px); box-shadow:0 4px 12px rgba(0,0,0,.1), inset 0 0 0 1px rgba(255,255,255,.06); }
.btn:focus-visible{ outline:2px solid #38bdf8; outline-offset:2px; }
.btn.secondary,.btn--light{
  --btn-grad-a:#fff; --btn-grad-b:#fff; --btn-text:#111827;
  border:1px solid var(--border); box-shadow:0 4px 12px rgba(0,0,0,.06);
}
.btn.is-sm{ padding:9px 14px; font-size:13px; border-radius:12px; }
.btn.is-lg{ padding:13px 18px; font-size:15px; border-radius:16px; }
.btn.tiktok,.btn.-tiktok{ --btn-grad-a:#111; --btn-grad-b:#222; --btn-text:#fff; }
.btn.facebook,.btn.-facebook{ --btn-grad-a:#1877F2; --btn-grad-b:#145fcb; --btn-text:#fff; }
.btn.shopee,.btn.-shopee{ --btn-grad-a:#ff6a3a; --btn-grad-b:#ee4d2d; --btn-text:#fff; }
.btn.website,.btn.-website{ --btn-grad-a:#0f172a; --btn-grad-b:#1e293b; --btn-text:#fff; }
.btn.phone,.btn.-phone{ --btn-grad-a:#10b981; --btn-grad-b:#059669; --btn-text:#fff; }
.btn.maps,.btn.-maps{ --btn-grad-a:#22c55e; --btn-grad-b:#2563eb; --btn-text:#fff; }
.btn > img,.btn > svg{ width:18px; height:18px; flex:0 0 auto; display:inline-block; }

/* Button groups + shared panel */
.actions{ margin-top:auto; width:100%; display:block; }

.shop-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: rgba(241, 245, 249, 0.9); /* slate-100 */
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  margin-top: 5px;
  width: 100%;
}

/* Logo-only squares inside panel */
.shop-buttons .btn-image{
  width:36px; height:36px; border-radius:10px; overflow:hidden;
  background:#ffffff; border:1px solid var(--border);
  box-shadow:0 3px 8px rgba(0,0,0,.06);
  transition:transform .18s, box-shadow .18s;
}
.shop-buttons .btn-image:hover{ transform: translateY(-1px); box-shadow:0 6px 14px rgba(0,0,0,.08); }
.shop-buttons .btn-image img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Defensive: if a card renders a naked .btn-image (no wrapper) */
.actions > .btn-image{ position:static !important; margin:6px 5px 0; }

/* Motion respect */
@media (prefers-reduced-motion: reduce){ .btn, .btn-image{ transition:none; } }

/* Categories */
.cats{ display:flex; gap:8px; overflow:auto; padding:6px 4px 2px }
.cats::-webkit-scrollbar{ height:8px }
.cats::-webkit-scrollbar-thumb{ background:#cbd5e1; border-radius:999px }
.chip{
  display:inline-flex; justify-content:center; align-items:center; white-space:nowrap;
  padding:8px 12px; border-radius:999px; border:1px solid var(--border);
  background:#fff; color:#4b5563; cursor:pointer; font-weight:700;
  min-width:100px; box-sizing:border-box; text-align:center;
}
.chip.active{ background:var(--accent); border-color:var(--accent); color:#fff; }

/* Grid + tiles */
.grid{ display:grid; gap:var(--tile-gap); grid-template-columns:1fr 1fr }
@media (min-width:760px){ .grid{ grid-template-columns:1fr 1fr 1fr } }

.tile{
  background:#fff; color:var(--ink); border:1px solid var(--border); border-radius:14px;
  box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column;
  box-sizing: border-box;
}
.tile-img{
  aspect-ratio:1/1; background:#f9fafb; display:grid; place-items:center;
  font-weight:800; color:#94a3b8; overflow:hidden; position: relative;
}
.tile-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.tile-body{ padding:8px; display:flex; flex-direction:column; }

/* Keep meta for SEO but hide visually */
.meta {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Footer */
.footer{
  margin-top:28px; border-top:1px solid var(--border);
  padding:16px; text-align:center; color:var(--muted); background:#f9fafb;
}
.footer a{ color:var(--accent); text-decoration:none; font-weight:700 }

/* Mobile scrollbar hide */
@media (max-width:768px){
  .featured, .cats{ scrollbar-width:none; -ms-overflow-style:none; }
  .featured::-webkit-scrollbar, .cats::-webkit-scrollbar{ display:none; }
}

/* ===== Brand of the Month (BOM) ===== */
.bom-banner-bleed{ width:100%; margin:8px 0 16px; }
.bom-banner{
  position:relative; border-radius:0; box-shadow:none; overflow:hidden;
  background:#eef2f7; cursor:pointer;
}
.bom-banner img{ width:100%; height:auto; display:block; max-height:520px; object-fit:contain; }
.bom-banner::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(0,0,0,.10) 100%);
  pointer-events:none;
}
.bom-badge{
  position:absolute; top:12px; left:12px;
  background:linear-gradient(90deg,#d4af37,#f5e39a,#d4af37);
  color:#111827; font-weight:800; font-size:12px; letter-spacing:.4px;
  padding:6px 10px; border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.bom-title{
  position:absolute; left:16px; right:16px; bottom:14px;
  font-weight:900; font-size:1.5rem; text-align:left; color:#111827;
  background:rgba(255,255,255,.65); padding:6px 10px; border-radius:8px;
  text-shadow:none; border:1px solid rgba(0,0,0,.05);
}

/* About & price bits */
.about-text strong{ color:#0f172a; }
.about-points{ list-style:none; padding-left:0; margin:8px 0 14px; display:grid; gap:8px; }
.about-points li{ color:#374151; line-height:1.55; }
.about-points li::before{ content:"•"; color:#38bdf8; margin-right:8px; }

.old-off-line{
  margin-top:0px; font-weight:700; color:#6b7280;
  display:flex; align-items:baseline; gap:2px;
}
.old-off-line .old-price{ text-decoration:line-through; opacity:.8; font-weight:400; font-size: 0.92em; }
.old-off-line .off-amount{ color:#0b63b3; font-weight:800; letter-spacing: 0; font-size: 0.92em;}

.est-price{
  margin-top:2px; display:flex; justify-content:space-between; align-items:baseline; letter-spacing:0;
}
.price-group{ display:inline-flex; align-items:baseline; gap:2px; }
.sold-count{ font-weight:400; color:#6b7280; font-size:.85em; letter-spacing:0; text-transform:none; }
.est-label{ font-weight:400; color:#6b7280; letter-spacing:0; text-transform:none; font-size:0.92em; }
.est-value{ font-weight:900; color:#ef4444; letter-spacing:0; font-size:0.96em; }

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  background: white; /* no white bg */
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
  z-index: 9999;
}
.splash.show {
  opacity: 1;
  pointer-events: auto;
}
.splash-box {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;      /* remove spacing */
  padding: 0;  /* remove padding */
  background: none; /* no background box */
  box-shadow: none;
}
.splash-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 0;          /* remove rounded background box */
  background: none;          /* no bg */
  box-shadow: none;          /* no shadow */
  padding: 0;                /* no padding */
}
.splash-updated {
  color: #334155;
  font: 600 14px/1.4 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


/* Titles */
.title{
  font-size: 0.92em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Destination chip (marketplace icon) */
.dest-chip{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #ffffff;
  border:1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.dest-chip img{ width:100%; height:100%; object-fit: cover; }

/* ==== Legal Pages ==== */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.legal-wrap h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: .5px;
  margin-top: 0;
}
.legal-wrap p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 14px;
  color: #374151;
}
.legal-wrap strong { color: #0f172a; }
.legal-wrap em { color: #0ea5e9; }
.legal-wrap a { color: #0284c7; text-decoration: underline; }
.legal-wrap a:hover { text-decoration: none; }

/* === Info pages (About / Terms / Affiliate) === */
.info-page{ padding:30px 16px; }
.info-wrap{
  max-width:820px; margin:0 auto; padding:20px 16px;
  color:#1f2937; background:#ffffff;
  border:1px solid var(--border); border-radius:14px;
  box-shadow:var(--shadow);
}
.info-wrap h1{ font-size:1.8rem; font-weight:900; color:#0f172a; margin:0 0 10px; text-align:center; }
.info-wrap h2{ font-size:1.2rem; font-weight:800; color:#0ea5e9; margin:18px 0 8px; }
.info-wrap p{ font-size:1rem; line-height:1.65; margin:12px 0; color:#374151; }
.info-wrap strong{ color:#0f172a; }
.info-wrap em{ color:#0284c7; }
.info-wrap ul{ list-style:none; padding:0; margin:8px 0 14px; }
.info-wrap li{ color:#374151; line-height:1.55; margin:6px 0; }
.info-wrap li::before{ content:"•"; color:#0ea5e9; margin-right:8px; }


/* === Trending (mirror Featured styling with rank badges) === */
.trending{
  display:flex; gap:var(--tile-gap); overflow-x:auto; padding:6px 2px 6px 6px;
  scroll-snap-type:x proximity;
  --available: calc(min(var(--wrap-max), 100vw) - (var(--wrap-pad) * 2));
  --col-w: calc((var(--available) - (var(--tile-gap) * (var(--cols) - 1))) / var(--cols));
}
.trending::-webkit-scrollbar{ height:8px }
.trending::-webkit-scrollbar-thumb{ background:#cbd5e1; border-radius:999px }

.trending .tile{
  width: var(--col-w);
  min-width: var(--col-w);
  max-width: var(--col-w);
  flex: 0 0 auto;
  scroll-snap-align: center;
}



/* Intro banner (mirrors BOM) */
.intro-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #eef2f7;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  min-height: 280px;
}

.intro-banner > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.intro-banner::after {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 20%, rgba(0,0,0,0.50) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Caption box */
.intro-title {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  margin: 0;
  font-weight: 400;               /* normal by default */
  font-size: 1.1rem;
  line-height: 1.2;
  color: #111827;
  background: rgba(255,255,255,.70);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.06);
  text-align: center;
  z-index: 2;
}

.site-name {
  font-weight: 900;               /* only this part bold */
}

.highlight-blue {
  color: var(--accent);
  font-weight: 900;               /* semi-bold for emphasis */
}

@media (min-width: 760px){
  .intro-title {
    font-size: 1.25rem;
  }
}





