:root{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#111111;
  --muted:#444444;
  --accent:#f2cf1d;
  --stroke:rgba(255,255,255,0.10);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 18px;
}
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow:hidden;
}
a{ color:inherit; text-decoration:none; }
#app{ height:100%; display:flex; flex-direction:column; }
.topbar{ display:none; }
.iconBtn{
  background:transparent;
  border:0;
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
}
.linkBtn{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.03);
}
.menuTxt{
  font-size:12px;
  letter-spacing:1px;
  color:rgba(255,255,255,0.86);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 160px;
  justify-content:center;
}
.logoDot{
  width:12px;
  height:12px;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(242,207,29,0.12);
}
.brandTxt{ display:flex; flex-direction:column; line-height:1.1; }
.brandName{ font-weight:800; letter-spacing:0.4px; font-size:12px; opacity:0.92; }
.brandMeta{ font-size:11px; color:var(--muted); }
.favPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:999px;
  font-size:13px;
  background:rgba(255,255,255,0.03);
}
.home{ padding: 18px 14px 22px; overflow:auto; }
.hero{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.03);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.heroTitle{ font-size:42px; font-weight:900; letter-spacing:1px; }
.heroYear{ font-size:34px; font-weight:800; color:rgba(255,255,255,0.80); margin-top:4px; }
.heroSub{ margin-top:10px; color:var(--muted); line-height:1.4; }
.homeGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-top:14px;
}
.tile{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 14px 14px;
}
.tileTitle{ font-weight:900; letter-spacing:0.8px; font-size:14px; }
.tileSub{ margin-top:6px; color:var(--muted); font-size:13px; }
.homeActions{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.primaryBtn{
  background: var(--accent);
  color:#151515;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight:900;
}
.ghostBtn{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 12px 14px;
  color:rgba(255,255,255,0.92);
}
.menuPage{ padding:18px 14px 22px; overflow:auto; }
.menuHeader{
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:16px 14px;
  background:rgba(255,255,255,0.03);
  box-shadow:var(--shadow);
}
.menuTitle{ font-size:24px; font-weight:900; letter-spacing:1px; }
.menuSub{ margin-top:6px; color:var(--muted); }
.menuList{ display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.menuItem{
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:14px 14px;
  background:rgba(255,255,255,0.03);
  font-weight:800;
}
.categoryPage{ flex:1; display:flex; flex-direction:column; }
.categoryTitleRow{ display:none; }
.categoryTitle{ font-size:14px; font-weight:900; letter-spacing:1px; }
.categoryHint{ margin-top:6px; font-size:10px; color:var(--muted); }
.deck{
  touch-action: pan-x;

  flex:1;
  display:flex;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding:0;
  gap:0;
}
.deck::-webkit-scrollbar{ display:none; }
.card{
  flex: 0 0 100vw;
  scroll-snap-align:start;
  scroll-snap-stop: always;
  background:var(--card);
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;

  height: 100vh;
}

.cardMedia{ flex:1; background:#ffffff; position:relative; }
.cardMedia img{ width:100%; height:100%; object-fit:cover; display:block; }

.mediaStack{ position:absolute; inset:0; overflow:hidden; }
.mediaStack .mediaImg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition: transform 240ms ease, opacity 240ms ease; will-change: transform; }

.hintUp{ position:absolute; bottom:94px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:6px; color:rgba(0,0,0,0.55);
  font-size:12px;
  pointer-events:none;
}
.hintUp .arrow{
  width:32px;
  height:32px;
  border-radius:999px;
  background:rgba(255,255,255,0.85);
  border:1px solid rgba(0,0,0,0.12);
  display:flex;
  align-items:center;
  justify-content:center;
}
.cardFooter{
  z-index: 10;
  padding:14px 14px calc(env(safe-area-inset-bottom, 0px) + 18px);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;

  position:absolute;
  left:0; right:0; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
}

.titleBlock{ display:flex; flex-direction:column; gap:8px; }
.productName{ font-size:16px; letter-spacing:0.2px; margin:0; font-weight:900; }
.productMeta{ display:flex; gap:10px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  color: var(--muted);
}
.actions{ display:flex; gap:10px; }
.roundBtn{
  width:52px;
  height:52px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.roundBtn.active{
  background:rgba(242,207,29,0.16);
  border-color:rgba(242,207,29,0.35);
}
.sheet{
  position:fixed;
  left:0;
  width:100%;
  background:#ffffff;
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
  z-index:20;
  transition: transform 220ms ease;
}
.sheetBottom{
  bottom:0;
  border-top-left-radius:22px;
  border-top-right-radius:22px;
  transform: translateY(100%);
  max-height: 82vh;
}
.sheetTop{
  top:0;
  border-bottom-left-radius:22px;
  border-bottom-right-radius:22px;
  transform: translateY(-105%);
  max-height: 82vh;
}
.sheet.open.sheetBottom{ transform: translateY(0%); }
.sheet.open.sheetTop{ transform: translateY(0%); }
.sheetHandle{
  width:54px;
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,0.18);
  margin:10px auto 6px;
}
.sheetHandleTop{
  width:54px;
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,0.18);
  margin:10px auto 8px;
}
.sheetContent{
  padding: 10px 14px 18px;
  overflow:auto;
  max-height: calc(82vh - 26px);
}
.blockTitle{
  background: var(--accent);
  color:#141414;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight:900;
  letter-spacing:0.6px;
  margin: 10px 0 12px;
}
.p{ margin:0 0 10px; color: var(--text); line-height: 1.35; font-size:10px; }
.small{ color: var(--muted); font-size:10px; }
.list{ display:flex; flex-direction:column; gap:10px; padding:0; margin:0; list-style:none; 
  font-size:10px;
}

.itemRow{
  padding: 12px 12px;
  border:1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.stubPage{ padding: 18px 14px 22px; overflow:auto; }
.stubCard{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.03);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.stubTitle{ font-size:18px; font-weight:900; letter-spacing:1px; }
.stubText{ margin-top:8px; color:var(--muted); line-height:1.4; }


/* FULLSCREEN_PATCH_V5 */

/* Imagens em tela cheia (área abaixo do topbar) */
.categoryTitleRow{ display:none; }
.deck{
  touch-action: pan-x;

  padding:0;
  gap:0;
}
.card{
  flex: 0 0 100vw;
  height: 100vh;
  border-radius:0;
  border:0;
  box-shadow:none;
  position:relative;
  display:block;
  touch-action: pan-x; /* deixa o horizontal nativo e permite capturar swipe vertical no JS */
}
.cardMedia{
  position:absolute;
  inset:0;
}
.cardMedia img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.cardFooter{
  z-index: 10;
  position:absolute;
  left:0;
  right:0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  padding:14px 14px calc(env(safe-area-inset-bottom, 0px) + 18px);
  background: linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.00));
}
.hintUp{
  bottom:110px;
}



/* v10 adjustments: intro popup + safe-area actions + light theme controls */
.categoryHint{ display:none !important; }

.card{ position:relative; }
.card .actions{
  position:fixed;
  right:16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  z-index: 999;
  opacity:0;
  pointer-events:none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.card.isActive .actions{
  opacity:1;
  pointer-events:auto;
  transform: translateY(0);
}

/* Make buttons visible on white background */
.roundBtn{
  background: rgba(0,0,0,0.06) !important;
  border: 1px solid rgba(0,0,0,0.16) !important;
  color: #111 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.roundBtn:active{ transform: translateY(1px) scale(0.98); }

.plusBtn{ font-weight:900; }
.heartBtn.active{ background: rgba(0,0,0,0.12) !important; }

/* Intro modal */
.introOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 18px;
}
.introModal{
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: #111;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 18px 55px rgba(0,0,0,0.25);
  overflow:hidden;
}
.introModal header{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.introTitle{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  margin:0;
}
.introClose{
  appearance:none;
  border:none;
  background: rgba(0,0,0,0.06);
  color:#111;
  width:34px;
  height:34px;
  border-radius: 12px;
  font-size: 18px;
  cursor:pointer;
}
.introBody{
  padding: 14px 16px 16px;
  font-size: 10px;
  line-height: 1.45;
}
.introBody p{ margin: 0 0 10px; }
.introBody .k{ font-weight:900; }
