:root {
  --lime: #dfff03;
  --lime-deep: #c8e600;
  --ink: #0e0e0e;
  --ink-2: #2b2b2b;
  --muted: #6d6d68;
  --line: #ebebe6;
  --soft: #f5f5f1;
  --bg: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 6px 20px rgba(14, 14, 14, .06);
  --max: 560px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.lime { color: var(--lime); }
.muted { color: var(--muted); }
.opt { color: var(--muted); font-weight: 400; }

.page { max-width: var(--max); margin: 0 auto; min-height: 100vh; padding-bottom: calc(96px + var(--safe-b)); position: relative; }

/* ---------- Cover / profile ---------- */
.cover { position: relative; aspect-ratio: 16 / 7.5; overflow: hidden; background: var(--lime); }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.cover-brand {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(14, 14, 14, .045) 22px 44px),
    var(--lime);
}
.cover-block {
  position: absolute; right: -8px; bottom: -8px; width: 62%; height: 74%;
  background: var(--ink); color: #fff;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end;
  padding: 18px 26px 26px;
}
.cover-block span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.cover-block b { font-size: clamp(22px, 7vw, 34px); color: var(--lime); letter-spacing: -0.02em; }

.profile { text-align: center; padding: 0 20px; margin-top: -52px; position: relative; }
.avatar { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 12px; border: 4px solid #fff; box-shadow: var(--shadow); background: var(--lime); object-fit: cover; }
.profile h1 { font-size: 26px; font-weight: 800; }
.subtitle { color: var(--muted); margin-top: 4px; font-size: 15px; }
.city-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  background: var(--ink); color: var(--lime); font-weight: 700; font-size: 14px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
}
.about { margin: 12px auto 0; max-width: 420px; font-size: 14.5px; color: var(--ink-2); }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.social {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); transition: border-color .15s, transform .15s;
}
.social:active { transform: scale(.94); }
.social:hover { border-color: var(--ink); }

/* ---------- Buttons ---------- */
.actions { display: grid; gap: 10px; padding: 22px 20px 6px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 18px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-align: center;
  transition: transform .12s ease, background-color .15s, box-shadow .15s;
  width: 100%;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(14, 14, 14, .08); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-outline { border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--soft); }
.btn-stack { display: flex; flex-direction: column; line-height: 1.15; }
.btn-stack small { font-weight: 500; font-size: 12.5px; opacity: .75; margin-top: 2px; }
.btn-square { width: 56px; flex: 0 0 56px; padding: 0; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Trust ---------- */
.trust { list-style: none; margin: 14px 20px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust li {
  background: var(--soft); border-radius: var(--radius-sm); padding: 12px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}

/* ---------- Blocks ---------- */
.block { padding: 28px 20px 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.block-head h2 { font-size: 20px; font-weight: 800; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; scroll-padding: 0 20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }

/* ---------- Product card ---------- */
.card { position: relative; }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-link:hover .card-img img { transform: scale(1.04); }
.is-placeholder { background: var(--lime); }
.is-placeholder img { object-fit: contain; padding: 0; width: 80% !important; height: 80% !important; margin: 10%; border-radius: 50%; }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card-title { font-size: 15px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-cta { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime-deep); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.card-add {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--lime); display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18); transition: transform .15s;
}
.card-add:active { transform: scale(.9); }
.card-add.is-added { background: var(--lime); color: var(--ink); }

/* ---------- Catalog ---------- */
.catalog { padding-top: 26px; scroll-margin-top: 0; }
.catalog-bar {
  position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  display: flex; align-items: center; gap: 8px; padding: 10px 0 10px 20px; border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; padding-right: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--soft); color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s;
}
.chip.is-active { background: var(--ink); color: var(--lime); }
.view-toggle { display: flex; gap: 2px; padding: 3px; background: var(--soft); border-radius: 10px; margin-right: 20px; }
.view-toggle button { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.view-toggle button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.cat-section { padding: 22px 20px 4px; scroll-margin-top: 62px; }
.cat-title { font-size: 19px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.cat-title span { font-size: 12px; font-weight: 700; background: var(--lime); padding: 2px 8px; border-radius: 999px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
.empty { padding: 30px 20px; text-align: center; color: var(--muted); }

/* list view */
.view-list .grid { grid-template-columns: 1fr; gap: 10px; }
.view-list .cat-section .card-link { flex-direction: row; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.view-list .cat-section .card-img { width: 92px; flex: 0 0 92px; border-radius: var(--radius-sm); }
.view-list .cat-section .card-body { padding: 0 44px 0 0; }
.view-list .cat-section .card-add { top: 50%; transform: translateY(-50%); right: 12px; }
.view-list .cat-section .card-add:active { transform: translateY(-50%) scale(.9); }

/* ---------- Visit block ---------- */
.visit-block {
  margin: 34px 20px 0; padding: 28px 22px; border-radius: 24px; background: var(--ink); color: #fff;
  position: relative; overflow: hidden;
}
.visit-block::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  background: var(--lime); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%, 0 40%); opacity: .95;
  transform: rotate(8deg);
}
.visit-block > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--lime);
}
.eyebrow.dark { color: var(--muted); }
.visit-block h2 { font-size: 28px; font-weight: 800; margin: 8px 0 10px; max-width: 70%; }
.visit-block p { color: rgba(255, 255, 255, .78); font-size: 15px; }
.steps { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; }
.steps b {
  flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); font-size: 14px;
}

/* ---------- Footer ---------- */
.footer { margin-top: 40px; padding: 30px 20px 10px; border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 4px; }
.footer-city { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 8px 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.footer small { color: var(--muted); font-size: 12px; }

/* ---------- Floating ---------- */
.floating {
  position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%);
  width: min(var(--max), 100%); padding: 0 16px; display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  pointer-events: none; z-index: 30;
}
.floating > * { pointer-events: auto; }
.float-wa {
  width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--lime);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); flex: 0 0 auto;
}
.float-quote {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar-brand { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; min-width: 0; }
.topbar-brand img { border-radius: 50%; }
.topbar-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: 0 0 auto; }
.icon-btn:hover { background: var(--soft); }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ---------- Product page ---------- */
.page-product { padding-bottom: calc(100px + var(--safe-b)); }
.gallery { position: relative; background: var(--soft); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.is-placeholder { background: var(--lime); }
.gallery-item.is-placeholder img { width: 70%; height: 70%; margin: 15%; border-radius: 50%; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(14, 14, 14, .25); transition: width .2s, background .2s; }
.dots span.is-active { width: 20px; background: var(--ink); }
.product { padding: 20px 20px 0; }
.product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 4px; }
.product h1 { font-size: 25px; font-weight: 800; }
.lead { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.note-box {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--lime) 28%, #fff); font-size: 14px; font-weight: 500;
}
.note-box svg { flex: 0 0 auto; margin-top: 1px; }
.desc { margin-top: 18px; white-space: pre-line; font-size: 15px; color: var(--ink-2); }
.made-in { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--soft); }
.order-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.field-label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.order-form textarea { margin-bottom: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 18px; }
.stepper button { width: 48px; height: 48px; display: grid; place-items: center; }
.stepper input { width: 72px; height: 48px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 17px; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(var(--max), 100%);
  display: flex; gap: 10px; padding: 12px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); z-index: 30;
}
.buy-bar .btn-lime { flex: 1; }

/* ---------- Forms ---------- */
.form-page { padding: 24px 20px 0; }
.form-page h1 { font-size: 26px; font-weight: 800; margin: 6px 0 8px; }
.form-page.center { text-align: center; display: grid; gap: 14px; justify-items: center; padding-top: 60px; }
.form { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent); }
.form-hint { font-size: 13px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.visit-hero { margin: 16px 20px 0; padding: 26px 22px; border-radius: 24px; background: var(--ink); color: #fff; }
.visit-hero h1 { font-size: 28px; font-weight: 800; margin: 10px 0 8px; }
.visit-hero p { color: rgba(255, 255, 255, .78); font-size: 15px; }

/* ---------- Quote list ---------- */
.quote-list { display: grid; gap: 10px; margin-top: 20px; }
.q-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.q-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--lime); }
.q-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.q-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.q-controls .stepper { margin: 0; border-radius: 10px; }
.q-controls .stepper button { width: 34px; height: 34px; }
.q-controls .stepper input { width: 52px; height: 34px; font-size: 15px; }
.q-note { margin-top: 8px; font-size: 14px; padding: 8px 10px; min-height: 0; }
.q-remove { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.q-remove:hover { background: var(--soft); color: var(--ink); }
.empty-state { display: grid; justify-items: center; gap: 12px; padding: 40px 0; color: var(--muted); text-align: center; }
.empty-state .btn { width: auto; padding: 0 28px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; white-space: nowrap;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 600px) {
  body { background: #fafaf7; }
  .page { background: #fff; box-shadow: 0 0 0 1px var(--line); }
  .rail { grid-auto-columns: 36%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
