:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --line-strong: #cccccc;
  --photo: #ededed;
  --header-h: 68px;
  --page: 920px;
  --pad: 20px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.sheet-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--surface);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

body.nav-open :focus-visible {
  outline-color: var(--surface);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

body.nav-open .site-header {
  background: var(--ink);
  color: var(--surface);
  border-bottom-color: var(--ink);
}

.header-inner,
.page,
.site-footer-inner {
  width: min(var(--page), 100%);
  margin-inline: auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(26, 24, 20, 0.14);
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.logo-name,
.logo-place {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-name {
  font-size: 12px;
  font-weight: 600;
}

.logo-place {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

body.nav-open .logo-place {
  color: inherit;
  opacity: 0.65;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle-box {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
}

.menu-toggle-box span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.menu-toggle-box span:nth-child(1) {
  top: 0;
}

.menu-toggle-box span:nth-child(2) {
  top: 5px;
}

.menu-toggle-box span:nth-child(3) {
  top: 10px;
}

body.nav-open .menu-toggle-box span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle-box span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle-box span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.site-nav {
  position: fixed;
  z-index: 20;
  inset: var(--header-h) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 32px max(var(--pad), calc((100vw - var(--page)) / 2 + var(--pad))) 48px;
  background: var(--ink);
}

.site-nav[hidden] {
  display: none;
}

.site-nav a {
  color: var(--surface);
  font-family: var(--serif);
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
  opacity: 0.45;
}

.site-nav a[aria-current="page"] {
  opacity: 1;
}

.page {
  flex: 1;
  padding-bottom: 56px;
}

.page-head {
  padding: 32px var(--pad) 0;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lede {
  max-width: 34em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.filters-bar {
  position: relative;
  --arrow-cut: 40px;
}

.filters {
  display: flex;
  gap: 8px;
  margin: 22px 0 4px;
  padding: 0 var(--pad) 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.filters-nav {
  position: absolute;
  z-index: 2;
  top: 2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(26, 24, 20, 0.06);
  cursor: pointer;
}

.filters-nav[hidden] {
  display: none;
}

.filters-nav-prev {
  left: 8px;
}

.filters-nav-next {
  right: 8px;
}

.filters-bar.is-next .filters {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--arrow-cut)), transparent calc(100% - var(--arrow-cut)));
  mask-image: linear-gradient(to right, #000 calc(100% - var(--arrow-cut)), transparent calc(100% - var(--arrow-cut)));
}

.filters-bar.is-prev .filters {
  -webkit-mask-image: linear-gradient(to right, transparent var(--arrow-cut), #000 var(--arrow-cut));
  mask-image: linear-gradient(to right, transparent var(--arrow-cut), #000 var(--arrow-cut));
}

.filters-bar.is-prev.is-next .filters {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent var(--arrow-cut),
    #000 var(--arrow-cut),
    #000 calc(100% - var(--arrow-cut)),
    transparent calc(100% - var(--arrow-cut))
  );
  mask-image: linear-gradient(
    to right,
    transparent var(--arrow-cut),
    #000 var(--arrow-cut),
    #000 calc(100% - var(--arrow-cut)),
    transparent calc(100% - var(--arrow-cut))
  );
}

.filters-nav:hover {
  background: #f3f3f3;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.filter:hover {
  background: rgba(26, 24, 20, 0.04);
}

.filter.is-active,
.filter.is-active:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 22px;
  margin: 0;
  padding: 8px var(--pad) 8px;
}

.product {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.product[hidden] {
  display: none;
}

.product-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.product:hover {
  border-color: #bdbdbd;
}

.product-photo {
  aspect-ratio: 1;
  background: var(--photo);
  overflow: hidden;
}

.product-photo:not(:has(img)) {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, #f7f7f7 0 28%, transparent 29%),
    linear-gradient(180deg, #f3f3f3 0%, #e6e6e6 100%);
}

.product-photo:not(:has(img))::before {
  content: "";
  width: 38%;
  aspect-ratio: 1;
  border: 1px solid rgba(26, 24, 20, 0.16);
  border-radius: 50%;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  margin: 0;
  padding: 12px 12px 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.product-detail {
  margin: 0;
  padding: 4px 12px 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.prose {
  padding: 18px var(--pad) 0;
  max-width: 40em;
}

.prose p {
  margin: 0 0 1em;
  font-size: 17px;
  line-height: 1.65;
}

.contact-form {
  max-width: 32em;
  padding: 8px var(--pad) 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  appearance: none;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: none;
}

.send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 4px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #25d366;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.send svg {
  flex: none;
}

.send:hover {
  background: #1ebe5a;
}

.form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.sheet-root[hidden] {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(26, 24, 20, 0.48);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.28s ease;
}

.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(var(--page), 100%);
  max-height: min(86vh, 640px);
  overflow: hidden;
  padding: 8px 22px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 -16px 48px rgba(26, 24, 20, 0.18);
  transform: translate(-50%, 100%);
  transition: transform 0.28s ease;
}

.sheet-body {
  min-height: 0;
  overflow: auto;
}

.sheet-root.is-open .sheet-backdrop {
  opacity: 1;
}

.sheet-root.is-open .sheet {
  transform: translate(-50%, 0);
}

.sheet-bar {
  position: relative;
  min-height: 36px;
}

.sheet-handle {
  display: block;
  width: 36px;
  height: 4px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: var(--line-strong);
}

.sheet-close {
  position: absolute;
  top: -4px;
  right: -8px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sheet-photo {
  display: block;
  width: 100%;
  height: 240px;
  margin-top: 4px;
  object-fit: contain;
  background: var(--photo);
}

.sheet-photo[hidden] {
  display: none;
}

.sheet-detail {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.sheet-title {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sheet-copy {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.sheet-whatsapp {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 4px;
  background: #25d366;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.sheet-whatsapp:hover {
  background: #1ebe5a;
}

.sheet-whatsapp svg {
  flex: none;
}

.whatsapp-float {
  position: fixed;
  z-index: 35;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #111;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.18);
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #1ebe5a;
}

body.nav-open .whatsapp-float,
body.sheet-open .whatsapp-float {
  visibility: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad) 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-box span,
  .sheet,
  .sheet-backdrop,
  .product {
    transition: none;
  }

  .filters {
    scroll-behavior: auto;
  }
}
