:root {
  --green: #009E49;
  --green-deep: #007A38;
  --red: #CE1126;
  --red-deep: #9a0c1c;
  --gold: #FCD116;
  --gold-soft: #fff3b0;
  --black: #121212;
  --ink: #142018;
  --paper: #F4F7F2;
  --white: #FFFFFF;
  --muted: #5c675f;
  --card: #FFFFFF;
  --line: #d5e3d4;
  --shadow: 0 10px 30px rgba(18, 18, 18, 0.08);
  --font: "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: "Palatino Linotype", Palatino, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, .brand span { font-family: var(--serif); font-weight: 600; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244,247,242,.94);
  border-bottom: 3px solid var(--green);
  backdrop-filter: blur(10px);
}
.bar {
  display: flex; align-items: center; gap: 18px; min-height: 76px;
  width: min(1120px, calc(100% - 32px)); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; min-width: 0; }
.brand img {
  width: auto; height: 58px; max-width: min(46vw, 200px);
  border-radius: 0; background: transparent; object-fit: contain;
}
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--green); }
.bar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.who { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cart-link strong { color: var(--green); }
.btn, button.btn {
  background: var(--green); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { background: var(--green-deep); }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-ghost {
  background: transparent; border: 2px solid var(--black); color: var(--black);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit;
}
.btn-gold { background: var(--gold); color: var(--black); }
.hero {
  padding: 48px 0 28px;
  display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center;
}
.hero-banner {
  background:
    linear-gradient(115deg, #009E49 0 46%, #FCD116 46% 62%, #CE1126 62% 74%, #121212 74% 100%);
  border-radius: 20px; padding: 28px; color: #fff; margin: 20px 0 8px;
  box-shadow: var(--shadow);
}
.hero-copy {
  display: inline-block; max-width: 56ch;
  background: rgba(26,26,26,.55);
  border-radius: 16px; padding: 16px 18px;
  backdrop-filter: blur(4px);
}
.hero-banner h1, .hero-banner p, .hero-banner .kicker {
  text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 0 8px rgba(0,0,0,.25);
}
.hero-banner h1 { margin: 0 0 8px; color: #fff; }
.hero-banner p { color: #fff8f2; max-width: 52ch; }
.hero-banner .kicker { color: var(--gold-soft); }
.tabs { display:flex; gap:8px; flex-wrap:wrap; margin: 12px 0 20px; }
.tabs button { border:2px solid var(--line); background:#fff; border-radius:999px; padding:8px 14px; cursor:pointer; font:inherit; }
.tabs button.on { background:var(--red); color:#fff; border-color:var(--red); }
.low { color:var(--red); font-weight:700; }
.picker { border:1px solid var(--line); border-radius:12px; background:#fff; max-height:220px; overflow:auto; }
.picker button { display:block; width:100%; text-align:left; background:none; border:0; padding:8px 10px; cursor:pointer; }
.picker button:hover { background:#fff4ea; }
.ing-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

.kicker { color: var(--green); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; margin: 0 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 8px 0 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-2px); }
.card .ph { aspect-ratio: 1; background: #fff center/cover no-repeat; display: grid; place-items: center; }
.card .ph img { width: 70%; height: 70%; object-fit: contain; }
.cat-emoji-ph { position: relative; background: #fff8f4; }
.cat-emoji { font-size: 140px; line-height: 1; }
@media (min-width: 768px) {
  .cat-emoji { font-size: 104px; }
}
.cat-rot {
  position: absolute; top: 8px; left: 8px; width: 54px; height: 54px;
  border-radius: 10px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); z-index: 1;
}
.cat-emoji-card .cat-rot img { width: 100%; height: 100%; object-fit: contain; transition: opacity .28s ease; }
.cat-rot img.out { opacity: 0; }
.card .body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; }
.price { color: #0d6b3a; font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; background: var(--gold); color: var(--black); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.site-footer { background: var(--black); color: #f4f0ea; padding: 28px 0 40px; }
.foot { width: min(1120px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.powered-by { width: min(1120px, calc(100% - 32px)); margin: 16px auto 0; text-align: center; }
.powered-by a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #cfc6bb; font-size: 12px; font-weight: 600;
}
.powered-by a:hover { color: #fff; }
.powered-by img { height: 28px; width: auto; max-width: 120px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
form.stack, .stack { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
label { font-size: 13px; color: var(--muted); }
input, textarea, select {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font: inherit; width: 100%;
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.notice { border: 1px dashed var(--red); padding: 16px; border-radius: 12px; color: var(--muted); background: #fff; }
.page { padding: 28px 0 64px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.widget {
  background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
  border-left: 6px solid var(--gold); margin: 12px 0 32px;
}
.role-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.role-chips a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
@media (max-width: 720px) {
  .hero, .hero-banner { grid-template-columns: 1fr; }
}

.profile-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; box-shadow:var(--shadow); max-width:640px; }
.avatar-row { display:flex; gap:16px; align-items:center; margin-bottom:16px; }
.avatar { width:88px; height:88px; border-radius:50%; object-fit:cover; background:#009E49; border:3px solid var(--gold); }
.map-box { height:220px; border-radius:12px; border:1px solid var(--line); margin:8px 0 16px; }
.stack { display:flex; flex-direction:column; gap:12px; max-width:640px; }
.stack label { display:flex; flex-direction:column; gap:6px; font-weight:600; font-size:14px; }
.stack input, .stack textarea, .stack select {
  font:inherit; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff;
}
input[type="checkbox"], input[type="radio"] {
  width: auto;
  padding: 0;
  flex: 0 0 auto;
}
.check-row,
.check-list label,
label.check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  cursor: pointer;
  margin: 0;
}
.check-row input[type="checkbox"],
.check-list input[type="checkbox"],
label.check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: #009E49;
}
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.notice { background:#fff; border-left:4px solid var(--gold); padding:10px 12px; border-radius:8px; }
.muted { color:var(--muted); }
.table { width:100%; border-collapse:collapse; }
.table th, .table td { text-align:left; padding:8px; border-bottom:1px solid var(--line); }

.install-bar {
  position: sticky; bottom: 0; z-index: 30;
  background: var(--black); color: #fff; padding: 12px 16px;
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
}
.install-bar p { margin: 0; font-size: 13px; max-width: 70ch; }
.thumbs { display:flex; gap:8px; flex-wrap:wrap; }
.thumbs .thumb { position:relative; width:72px; height:72px; }
.thumbs .thumb img { width:72px; height:72px; object-fit:cover; border-radius:8px; }
.thumbs .thumb button { position:absolute; top:-6px; right:-6px; border:0; background:var(--red); color:#fff; border-radius:50%; width:20px; height:20px; cursor:pointer; }
.searchbar { display:flex; gap:8px; margin: 8px 0 16px; }
.searchbar input { flex:1; padding:10px 12px; border:1px solid var(--line); border-radius:12px; font:inherit; }
.shop-tile { display:flex; gap:10px; align-items:center; padding:10px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.shop-tile img { width:48px; height:48px; border-radius:50%; object-fit:cover; }

.cal-week { display:grid; grid-template-columns:repeat(7,minmax(120px,1fr)); gap:8px; overflow:auto; }
.cal-day { background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px; min-width:140px; }
.cal-day h3 { margin:0 0 8px; font-size:14px; }
.slot { margin-bottom:8px; font-size:13px; }
.cal-month { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-cell { background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px; text-align:left; cursor:pointer; min-height:72px; font:inherit; }

.nav-toggle {
  display: none;
  width: 32px;
  height: 28px;
  margin-left: 8px;
  padding: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--black);
}
.nav-mobile-only { display: none; }

.nav-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; border:2px solid var(--red); background:var(--red); }
.who-link { display:flex; align-items:center; gap:8px; }
@media (max-width: 767px) {
  .site-header { border-bottom-width: 2px; }
  .bar {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 34px;
    padding: 2px 0;
  }
  .brand { font-size: 15px; gap: 6px; }
  .brand img { width: 22px; height: 22px; }
  .bar-right { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 6px 0 10px;
    background: rgba(255, 248, 242, 0.98);
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow);
    z-index: 30;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a,
  .nav button.nav-mobile-only {
    display: block;
    width: 100%;
    padding: 11px 16px;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .nav a:hover,
  .nav button.nav-mobile-only:hover { color: var(--red); background: #fff; }
  .nav-mobile-only { display: block; }
}

.carousel { position:relative; }
.car-slide { display:none; background:#fff; border-radius:16px; overflow:hidden; border:1px solid var(--line); }
.car-slide.on { display:block; }
.car-slide img { width:100%; height:180px; object-fit:cover; }
.car-slide div { padding:12px; }
.cat-row { margin: 8px 0 22px; }
.cat-row h2 { font-size: 1.15rem; margin: 0 0 8px; }
.cat-row h2 a { color: inherit; text-decoration: none; }
.cat-row h2 a:hover { color: var(--red); }
.cat-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
}
.card.result .body { padding: 8px 10px 10px; gap: 4px; }
.card.result h3 { font-size: 14px; }
.card.result .ph img { width: 64%; height: 64%; }
.card-buy { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-buy input[type="number"] { width: 58px; min-height: 32px; padding: 4px 6px; }
.cat-scroller > .card { flex: 0 0 180px; width: 180px; scroll-snap-align: start; }
@media (max-width: 767px) {
  .cat-scroller > .card { flex: 0 0 150px; width: 150px; }
  .card.result h3 { font-size: 13px; }
  .card.result .body { padding: 6px 8px 8px; }
}

.brand img, .nav-avatar { background: transparent; }
.brand img, .foot img { border-radius: 0; padding: 0; background: transparent; }
.foot img { height: 36px; width: auto; max-width: 140px; object-fit: contain; }

.gg-splash {
  position: fixed; inset: 0; z-index: 80;
  background: #000; display: grid; place-items: center;
  transition: opacity .45s ease;
}
.gg-splash.out { opacity: 0; pointer-events: none; }
.gg-splash video { width: min(920px, 92vw); height: auto; max-height: 80vh; object-fit: contain; background: #000; }
@media (prefers-reduced-motion: reduce) {
  .gg-splash { display: none; }
}

.admin-layout { display:grid; grid-template-columns: 200px 1fr; gap:20px; align-items:start; }
.admin-side { background:#fff; border:1px solid var(--line,#eee); border-radius:16px; padding:12px; position:sticky; top:12px; }
.admin-side a { display:block; padding:8px 10px; border-radius:8px; color:inherit; text-decoration:none; }
.admin-side a.on, .admin-side a:hover { background:#009E49; color:#fff; }
.admin-map { height:70vh; min-height:420px; border-radius:16px; background:#eee; }
@media (max-width:800px){
  .admin-layout { grid-template-columns:1fr; }
  .admin-side { position:static; display:flex; flex-wrap:wrap; gap:6px; }
  .admin-side a { display:inline-block; }
}

.shop-hero { border-radius: 20px; overflow: hidden; margin-bottom: 20px; }
.shop-banner { width:100%; height:180px; object-fit:cover; display:block; background:#eee; }
.shop-hero-inner { display:flex; gap:16px; align-items:flex-end; padding:12px 16px 20px; }
.shop-logo { width:88px; height:88px; border-radius:50%; object-fit:cover; border:4px solid #fff; margin-top:-48px; background:#fff; }
.theme-light { background:#fff8f2; color:#1a1a1a; }
.theme-dark { background:#1a1a1a; color:#fff; }
.theme-dark .muted { color:#ccc; }
.theme-semi { background: linear-gradient(120deg,#009E49,#1a1a1a); color:#fff; }
.theme-semi .muted { color:#f3d0d4; }
.theme-preview { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.theme-preview button { border:2px solid transparent; border-radius:12px; padding:8px; cursor:pointer; }
.theme-preview button.on { border-color:#009E49; }
.mini-hero { height:72px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:12px; }
.mini-hero.light { background:#fff8f2; color:#1a1a1a; }
.mini-hero.dark { background:#1a1a1a; color:#fff; }
.mini-hero.semi { background:linear-gradient(120deg,#009E49,#1a1a1a); color:#fff; }


.barcode-row { display:flex; gap:8px; align-items:center; }
.barcode-row input { flex:1; }
.scan-modal { background:#111; color:#fff; border-radius:12px; padding:12px; }
.scan-modal video { width:100%; max-height:240px; border-radius:8px; background:#000; }
.combo { position:relative; }
.combo-list { position:absolute; z-index:40; left:0; right:0; top:100%;
  background:#fff; border:1px solid var(--line); border-radius:10px;
  max-height:240px; overflow:auto; box-shadow:var(--shadow); }
.combo-item { display:block; width:100%; text-align:left; background:#fff; border:0;
  padding:8px 12px; cursor:pointer; }
.combo-item:hover, .combo-item.on { background:#009E49; color:#fff; }
.axis-head { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:8px 0; }
.axis-row { margin:8px 0 12px; }
.chip-row { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.chip { border:1px solid var(--line); background:#fff; border-radius:999px; padding:4px 10px; cursor:pointer; font-size:13px; }
.chip.on { background:#009E49; color:#fff; border-color:#009E49; }
.chip.ghost { border-style:dashed; }
.var-table input { width:90px; }
.var-photo { display:flex; align-items:center; gap:8px; }
.var-photo img { width:40px; height:40px; object-fit:cover; border-radius:6px; }
.btn-sm.ghost { background:transparent; }
