/* ============ OKOVIC — página pública (visual do canal: escuro + pôr do sol) ============ */
:root {
  --brand: #e0559b;
  --grad: linear-gradient(110deg, color-mix(in srgb, var(--brand) 45%, #7c5cff) 0%, var(--brand) 55%, color-mix(in srgb, var(--brand) 40%, #ff9a5a) 100%);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;

  /* tema escuro (padrão, igual ao YouTube) */
  --bg: #0f0d12;
  --card: #18151d;
  --pill: #272330;
  --pill-hover: #332e3d;
  --ink: #f3f1f6;
  --muted: #a9a2b4;
  --line: rgba(255, 255, 255, .08);
  --brand-soft: color-mix(in srgb, var(--brand) 18%, #18151d);
  --brand-ink: color-mix(in srgb, var(--brand) 55%, #fff);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 22px 44px -14px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f2f8; --card: #ffffff; --pill: #f0eaf3; --pill-hover: #e7dfec;
  --ink: #1b1622; --muted: #6d6578; --line: rgba(40, 20, 60, .09);
  --brand-soft: color-mix(in srgb, var(--brand) 12%, #fff);
  --brand-ink: color-mix(in srgb, var(--brand) 80%, #000);
  --shadow: 0 1px 2px rgba(40, 20, 60, .05), 0 10px 28px -12px rgba(60, 30, 90, .18);
  --shadow-lg: 0 2px 6px rgba(40, 20, 60, .06), 0 22px 44px -14px rgba(60, 30, 90, .28);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f6f2f8; --card: #ffffff; --pill: #f0eaf3; --pill-hover: #e7dfec;
    --ink: #1b1622; --muted: #6d6578; --line: rgba(40, 20, 60, .09);
    --brand-soft: color-mix(in srgb, var(--brand) 12%, #fff);
    --brand-ink: color-mix(in srgb, var(--brand) 80%, #000);
    --shadow: 0 1px 2px rgba(40, 20, 60, .05), 0 10px 28px -12px rgba(60, 30, 90, .18);
    --shadow-lg: 0 2px 6px rgba(40, 20, 60, .06), 0 22px 44px -14px rgba(60, 30, 90, .28);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.ic { flex: none; }

/* brilho de pôr do sol no fundo */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg span { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg span:nth-child(1) { width: 520px; height: 380px; top: -200px; left: 50%; transform: translateX(-70%); background: #8e6fd8; opacity: .30; }
.bg span:nth-child(2) { width: 420px; height: 340px; top: -160px; left: 50%; transform: translateX(-5%); background: var(--brand); opacity: .22; }
.bg span:nth-child(3) { width: 380px; height: 300px; bottom: -200px; right: -120px; background: #ff8a5c; opacity: .10; }

.page { width: 100%; max-width: 600px; margin: 0 auto; padding: 16px 14px 44px; }

/* ---------- cabeçalho estilo canal ---------- */
.profile {
  position: relative; background: var(--card); border-radius: 26px; box-shadow: var(--shadow);
  border: 1px solid var(--line); text-align: center; padding: 30px 0 24px;
  animation: rise .5s both;
}
.share-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; color: var(--ink);
  background: var(--pill); transition: transform .15s, background .15s;
}
.share-btn:hover { transform: scale(1.06); background: var(--pill-hover); }

.avatar {
  position: relative; z-index: 1; width: 128px; height: 128px; margin: 0 auto 14px; border-radius: 50%;
  padding: 4px; background: var(--card);
  box-shadow: 0 18px 44px -14px color-mix(in srgb, var(--brand) 70%, transparent);
}
.avatar::before { /* anel em degradê (pôr do sol) */
  content: ''; position: absolute; inset: -3px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 200deg, #8e6fd8, var(--brand), #ff8a5c, #8e6fd8);
}
.avatar .in {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 42px; font-weight: 900; font-stretch: 112%;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.name { font-size: 30px; font-weight: 900; font-stretch: 108%; letter-spacing: -.6px; margin: 0; line-height: 1.1; padding: 0 18px; }
.sub { margin-top: 6px; color: var(--muted); font-size: 14px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 0 18px; }
.sub b { color: var(--ink); font-weight: 700; }
.bio { color: var(--muted); margin: 12px auto 0; max-width: 430px; line-height: 1.55; font-size: 15px; white-space: pre-line; padding: 0 20px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; padding: 0 16px; }
.social {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  background: var(--pill); font-weight: 700; font-size: 13.5px; transition: background .15s, transform .15s;
}
.social:hover { background: var(--pill-hover); transform: translateY(-1px); }
.social.primary { background: var(--ink); color: var(--bg); }
.social.primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--brand)); }
.social.primary .ic { color: #ff2b2b; }

/* ---------- links ---------- */
.links { display: grid; gap: 10px; margin-top: 14px; }
.link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; animation: rise .5s both;
}
.link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.link .emo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--pill); font-size: 19px; color: var(--brand-ink); flex: none; }
.link .t { flex: 1; min-width: 0; }
.link .go { color: var(--muted); }
.link.hl { background: var(--grad); color: #fff; border-color: transparent; }
.link.hl .emo { background: rgba(255, 255, 255, .2); color: #fff; }
.link.hl .go { color: #fff; }

/* ---------- seção produtos ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 30px 4px 12px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 900; font-stretch: 105%; letter-spacing: -.4px; }
.section-head h2::after { content: ''; display: block; width: 36px; height: 4px; border-radius: 9px; background: var(--grad); margin-top: 6px; }
.section-head .count { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }

.search {
  display: flex; align-items: center; gap: 10px; background: var(--pill); border: 1px solid transparent;
  border-radius: 999px; padding: 0 16px; transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.search .ic { color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 13px 0; font-size: 15px; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search .clear { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; display: none; }
.search.has .clear { display: block; }

/* categorias como as abas do canal (Início, Vídeos, Shorts...) */
.tabs { display: flex; gap: 22px; overflow-x: auto; margin-top: 14px; padding: 0 4px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: none; cursor: pointer; padding: 10px 0 11px; font-weight: 700; font-size: 14.5px; color: var(--muted); position: relative; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); }
.tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }

/* lojas como os chips do YouTube */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px;
  border: 0; background: var(--pill); font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s; white-space: nowrap;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.chip:hover { background: var(--pill-hover); }
.chip.on { background: var(--ink); color: var(--bg); }

/* ---------- destaque ---------- */
.featured { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.featured::-webkit-scrollbar { display: none; }
.feat {
  flex: 0 0 100%; scroll-snap-align: center; display: flex; gap: 16px; padding: 14px; border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow), 0 16px 40px -22px var(--brand); position: relative;
  transition: transform .2s, box-shadow .2s; animation: rise .5s both;
}
.featured.multi .feat { flex-basis: 92%; }
.feat:hover { transform: translateY(-2px); }
.feat .thumb { width: 42%; max-width: 190px; aspect-ratio: 1; flex: none; border-radius: 14px; }
.feat .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.feat .title { font-size: 17px; -webkit-line-clamp: 2; }
.feat .desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.feat .btn { margin-top: auto; align-self: flex-start; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--pill-hover); transition: all .25s; }
.dots i.on { width: 18px; background: var(--brand); }

/* ---------- grade de produtos ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s; animation: rise .45s both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.card .thumb { aspect-ratio: 1; margin: 8px 8px 0; border-radius: 14px; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .btn { margin-top: auto; width: 100%; }

.thumb { position: relative; background: #fff; overflow: hidden; display: grid; place-items: center; }
.thumb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, #f1eef4 30%, #fbfafc 50%, #f1eef4 70%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.thumb.ok::before { display: none; }
.thumb img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 8%; opacity: 0; transform: scale(.97); transition: opacity .35s, transform .5s; mix-blend-mode: multiply; }
.thumb.ok img { opacity: 1; transform: none; }
.card:hover .thumb img, .feat:hover .thumb img { transform: scale(1.04); }
.thumb .noimg { position: relative; color: #cfc8d6; }

.store {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1px;
}
.thumb .store { position: absolute; left: 8px; top: 8px; z-index: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.off {
  position: absolute; right: 8px; top: 8px; z-index: 1; background: #16a34a; color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
}
.tag { display: inline-block; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--brand-soft); color: var(--brand-ink); }
.tag.green { background: color-mix(in srgb, #16a34a 20%, var(--card)); color: #4ade80; }
:root[data-theme="light"] .tag.green { background: #dcfce7; color: #166534; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.title { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; }
.price .now { font-size: 18px; font-weight: 900; letter-spacing: -.3px; }
.price .was { color: var(--muted); font-size: 12.5px; text-decoration: line-through; }
.coupon {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%;
  border: 1.5px dashed color-mix(in srgb, var(--brand) 65%, transparent); background: var(--brand-soft); color: var(--brand-ink);
  padding: 4px 9px; border-radius: 10px; font-size: 12px; font-weight: 800; cursor: pointer; letter-spacing: .3px;
}
.coupon span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coupon:hover { border-style: solid; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; padding: 11px 16px; border-radius: 999px;
  box-shadow: 0 10px 22px -10px var(--brand); transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.08) saturate(1.05); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

.empty { text-align: center; color: var(--muted); padding: 40px 10px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 14px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

.disclaimer { margin: 28px 8px 0; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.foot { margin-top: 14px; text-align: center; color: var(--muted); font-size: 12px; opacity: .8; }
.foot .palm-ic { display: inline-block; vertical-align: -2px; color: var(--brand); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-lg); transition: all .25s; display: flex; align-items: center; gap: 8px; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

@media (max-width: 420px) {
  .page { padding: 10px 10px 32px; }
  .profile { padding-top: 26px; }
  .avatar { width: 116px; height: 116px; }
  .name { font-size: 26px; }
  .feat { gap: 12px; padding: 12px; }
  .feat .title { font-size: 15.5px; }
  .grid { gap: 10px; }
  .card .body { padding: 9px 10px 11px; }
  .title { font-size: 13.5px; }
  .price .now { font-size: 16.5px; }
  .btn { font-size: 13px; padding: 10px 12px; }
}
