:root {
  --ink: #111111;
  --paper: #f5f1e8;
  --white: #ffffff;
  --line: #d7d0c3;
  --muted: #6f6a61;
  --accent: #8b8984;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: 5rem;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.menu-wrap {
  position: relative;
  z-index: 2;
}

.menu-toggle {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.2rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.menu-toggle:focus-visible {
  outline: 2px solid #b9b7b2;
  outline-offset: 3px;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.category-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  width: min(25rem, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem);
  padding: 0.55rem;
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #aaa69f;
  border-radius: 0.25rem;
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.3);
}

.category-menu a {
  min-height: 3.15rem;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font: 600 1rem / 1.25 var(--serif);
}

.category-menu a:last-child {
  border-bottom: 0;
}

.category-menu a::after {
  content: "→";
  color: #77746f;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.category-menu a:hover,
.category-menu a:focus-visible {
  color: var(--white);
  background: var(--ink);
  outline: none;
}

.category-menu a:hover::after,
.category-menu a:focus-visible::after {
  color: var(--white);
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  width: 7rem;
  height: 4rem;
  overflow: hidden;
}

.brand img,
footer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-cart {
  position: relative;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  color: white;
  font: 600 0.875rem var(--sans);
  cursor: pointer;
}

.header-cart:hover,
.header-cart:focus-visible {
  background: rgba(255,255,255,0.12);
}

.header-cart svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: 0.2rem;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 0.76rem;
}

.cart-count[hidden] { display: none; }

.header-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  text-decoration: none;
}

.whatsapp-link svg {
  width: 1.12rem;
  height: 1.12rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.header-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.header-links > span {
  width: 1px;
  height: 1.1rem;
  background: rgba(255, 255, 255, 0.35);
}

.hero {
  position: relative;
  min-height: 43rem;
  padding: 8.5rem 6vw 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 26%, rgba(170, 170, 166, 0.12), transparent 25rem),
    linear-gradient(135deg, #161616, #080808);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.manifesto,
.kicker,
.tagline,
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
}

.manifesto {
  position: absolute;
  left: 0;
  bottom: calc(100% + 1rem);
  line-height: 1.75;
}

.manifesto::after {
  content: "";
  display: block;
  width: 2.4rem;
  margin-top: 0.85rem;
  border-top: 2px solid var(--white);
}

.hero-title {
  max-width: 39rem;
}

.kicker {
  color: rgba(255, 255, 255, 0.7);
}

h1 {
  margin: 1rem 0 1.2rem;
  font: 400 clamp(4.6rem, 8vw, 8rem) / 0.78 var(--serif);
  letter-spacing: -0.065em;
}

.tagline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tagline::before {
  content: "";
  flex: 0 0 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.search {
  max-width: 38rem;
  margin-top: 2.25rem;
}

.search label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  font-weight: 650;
}

.search-control {
  height: 3.65rem;
  padding: 0 0.75rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.25rem;
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.28);
}

.search-control:focus-within {
  outline: 3px solid rgba(150, 150, 147, 0.55);
  outline-offset: 3px;
}

.search-control svg {
  width: 1.3rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-control input::placeholder {
  color: #837f77;
}

.search-control button {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  border: 0;
  border-radius: 50%;
  color: #555;
  background: #efede8;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, background 160ms ease;
}

.search.has-value .search-control button {
  opacity: 1;
  pointer-events: auto;
}

.search-control button:hover {
  background: #ddd8ce;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  width: min(56vw, 54rem);
  right: -5rem;
  bottom: 0;
  opacity: 0.96;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0b0b 0, transparent 38%);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-address {
  position: absolute;
  z-index: 3;
  right: 6vw;
  bottom: 2.35rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
}

.catalog-shell {
  max-width: 94rem;
  margin: 0 auto;
  padding: 5rem 4vw 7rem;
}

.catalog-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin-bottom: 0.45rem;
  color: #6f6d68;
}

h2 {
  margin: 0;
  font: 400 clamp(2.65rem, 5vw, 4.5rem) / 1 var(--serif);
  letter-spacing: -0.035em;
}

.result-count {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-category {
  margin-top: 5.75rem;
}

.catalog-category:first-child {
  margin-top: 0;
}

.category-heading {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  background: var(--ink);
}

.category-heading h3 {
  margin: 0;
  font: 400 clamp(1.9rem, 3vw, 2.8rem) / 1.05 var(--serif);
}

.category-heading p {
  margin: 0;
  flex: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1px;
  grid-auto-flow: row dense;
  gap: 0 1.25rem;
  align-items: start;
}

.offers-category .category-heading {
  background: #48443d;
  border-left: 5px solid #c5aa73;
}
.offers-category .product-section {
  border-color: #a68b57;
}
.offers-category .price-value {
  font-size: 1.05rem;
  font-weight: 800;
}
.offers-category .section-heading {
  background: #ede4d2;
}

.product-section {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid #bdb6ab;
}

.order-clear {
  display: block;
  margin: 1rem 0;
  padding: 0.65rem 1rem;
  border: 1px solid currentColor;
  background: transparent;
  color: #6b2626;
  font: inherit;
  cursor: pointer;
}
.order-clear[hidden] { display: none; }

.section-heading {
  padding: 0.95rem 1.15rem 0.8rem;
  border-bottom: 1px solid #bdb6ab;
}

.section-heading p {
  margin: 0 0 0.15rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
}

.section-heading h4 {
  margin: 0;
  font: 600 1.15rem / 1.25 var(--serif);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th,
.product-table td {
  padding: 0.68rem 1.15rem;
  border-bottom: 1px solid rgba(189, 182, 171, 0.65);
  vertical-align: top;
}

.product-table th {
  color: var(--muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.68rem;
}

.product-table th:last-child,
.product-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.product-table th:nth-child(2),
.product-table td:nth-child(2) {
  text-align: right;
}

.product-table th:last-child,
.product-table td:last-child {
  width: 6.5rem;
}

.add-product {
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.add-product:hover,
.add-product:focus-visible {
  background: var(--ink);
  color: white;
}

.quantity-overlay {
  position: fixed;
  inset: 0;
  z-index: 62;
  background: #0009;
}

.quantity-dialog {
  position: fixed;
  z-index: 63;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.8rem;
  border: 1px solid #bdb6ab;
  background: var(--paper);
  box-shadow: 0 1.5rem 4rem #0005;
}

.quantity-close { position: absolute; top: 0.4rem; right: 0.7rem; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.quantity-dialog h2 { margin: 0.45rem 2rem 0.2rem 0; font: 400 1.8rem/1.2 var(--serif); }
.quantity-dialog p:not(.eyebrow) { margin: 0.3rem 0 1.3rem; color: var(--muted); }
.quantity-dialog label { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.quantity-control { display: flex; width: 100%; }
.quantity-control button { width: 3.25rem; border: 1px solid #999; background: white; font-size: 1.4rem; cursor: pointer; }
.quantity-control input { flex: 1; min-width: 0; padding: 0.7rem; border: 1px solid #999; text-align: center; font: inherit; }
.quantity-control button:first-child { border-right: 0; }
.quantity-control button:last-child { border-left: 0; }
.quantity-actions { display: grid; gap: 0.65rem; margin-top: 1.5rem; }
.quantity-actions button { min-height: 2.9rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 700 0.95rem var(--sans); cursor: pointer; }
.quantity-actions button:last-child { background: var(--ink); color: white; }
.quantity-dialog .quantity-error { color: #9e2727 !important; margin: 0.55rem 0 0 !important; }

.order-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #0009;
}

.order-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 61;
  width: min(100%, 30rem);
  background: #f7f5f0;
  box-shadow: -12px 0 36px #0003;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.order-drawer[hidden],
.order-overlay[hidden],
.quantity-dialog[hidden],
.quantity-overlay[hidden],
#quantity-presets[hidden],
#order-checkout[hidden],
.order-empty[hidden],
#address-wrap[hidden] { display: none; }

body.order-visible { overflow: hidden; }

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #bdb6ab;
}

.order-header h2 { margin: 0; font: 400 2rem var(--serif); }
.order-close { border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.order-scroll { overflow-y: auto; padding: 1.2rem 1.5rem 2rem; }
.order-empty { padding: 1.5rem 0; color: var(--muted); }
.order-item { padding: 1rem 0; border-bottom: 1px solid #bdb6ab; }
.order-item-top, .order-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.order-item-top strong { font-size: 1rem; }
.order-item-top button { border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.order-item p { margin: 0.35rem 0 0.8rem; color: var(--muted); }
.order-item-bottom label { display: flex; align-items: center; gap: 0.5rem; }
.order-item-bottom input { width: 5.3rem; padding: 0.55rem; border: 1px solid #aaa; font: inherit; }
.weight-presets { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.weight-presets button { padding: 0.4rem 0.65rem; border: 1px solid #999; background: white; cursor: pointer; }
.order-total { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0 0.4rem; font-size: 1.1rem; }
.order-note { color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
#order-form { margin-top: 1.6rem; }
#order-form h3 { font: 600 1.3rem var(--serif); }
#order-form > label { display: block; margin-top: 1rem; font-weight: 600; }
#order-form > label input, #order-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.4rem;
  padding: 0.7rem;
  border: 1px solid #999;
  background: white;
  font: inherit;
}
#order-form fieldset { display: flex; flex-wrap: wrap; gap: 0.75rem 1.2rem; margin: 1.2rem 0 0; padding: 0; border: 0; }
#order-form legend { margin-bottom: 0.4rem; font-weight: 600; }
.order-submit { width: 100%; margin-top: 1.4rem; padding: 0.9rem; border: 0; background: var(--ink); color: white; font-family: var(--sans); font-size: 1rem; font-weight: 700; cursor: pointer; }

@media (max-width: 600px) {
  .product-table th, .product-table td { padding: 0.65rem 0.5rem; }
  .product-table th:last-child, .product-table td:last-child { width: auto; }
  .add-product { padding: 0.45rem 0.35rem; }
  .price-unit { display: block; margin-left: 0; }
}

.product-table td:first-child {
  font-size: 0.94rem;
}

.product-table td:last-child {
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price-value,
.price-unit {
  display: inline-block;
}

.price-unit {
  margin-left: 0.28rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-table tr:last-child td {
  border-bottom: 0;
}

.product-table tbody tr:hover {
  background: rgba(120, 120, 117, 0.1);
}

.empty-state {
  max-width: 38rem;
  margin: 5rem auto;
  text-align: center;
}

.empty-state span {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font: 700 1rem var(--serif);
}

.empty-state h3 {
  margin: 0;
  font: 400 2rem var(--serif);
}

.empty-state p {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
}

.empty-state button {
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
}

footer {
  min-height: 12rem;
  padding: 2.2rem 5vw;
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: center;
  gap: 2.5rem;
  color: var(--white);
  background: var(--ink);
  border-top: 0.35rem solid var(--accent);
}

footer img {
  height: 6.5rem;
}

footer p {
  margin: 0.25rem 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-underline-offset: 0.3rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 45rem;
    grid-template-columns: 1fr;
    padding-inline: 7vw;
  }

  .hero-copy {
    padding-bottom: 8rem;
  }

  .hero-visual {
    width: 44rem;
    right: -14rem;
    opacity: 0.55;
  }

  .section-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 8.8rem;
  }

  .site-header {
    height: 4.5rem;
    padding-inline: 1.1rem;
  }

  .brand {
    width: 5.7rem;
    height: 3.65rem;
  }

  .header-links {
    gap: 0.55rem;
    font-size: 0.76rem;
  }

  .header-actions { gap: 0.55rem; }
  .header-links .whatsapp-link span { display: none; }
  .header-cart { padding: 0.5rem; }
  .cart-label { display: none; }

  .header-links > span {
    display: none;
  }

  .header-links a:first-child {
    display: none;
  }

  .hero {
    min-height: 43rem;
    padding: 8rem 1.6rem 4.5rem;
    align-items: center;
  }

  .hero::before {
    inset: 0.8rem;
  }

  .hero-copy {
    padding-bottom: 4rem;
  }

  .manifesto {
    position: static;
    margin-bottom: 2rem;
  }

  .kicker {
    max-width: 18rem;
    line-height: 1.6;
  }

  h1 {
    font-size: clamp(4.25rem, 22vw, 6rem);
  }

  .tagline {
    max-width: 19rem;
    line-height: 1.55;
  }

  .tagline::before {
    display: none;
  }

  .search {
    margin-top: 1.5rem;
  }

  .hero-visual {
    width: 31rem;
    right: -11rem;
  }

  .hero-address {
    left: 1.6rem;
    right: auto;
    bottom: 1.55rem;
    max-width: calc(100% - 3.2rem);
  }

  .catalog-shell {
    padding: 3.5rem 1rem 5rem;
  }

  .catalog-intro {
    align-items: start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .catalog-category {
    margin-top: 4rem;
  }

  .category-heading {
    align-items: start;
    flex-direction: column;
    padding: 1rem;
  }

  .section-heading,
  .product-table th,
  .product-table td {
    padding-inline: 0.85rem;
  }

  footer {
    padding: 2.5rem 1.25rem;
    grid-template-columns: 6rem 1fr;
    gap: 1.25rem;
  }

  footer img {
    height: 5.5rem;
  }

  .footer-links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .menu-toggle {
    width: 2.75rem;
    padding-inline: 0;
    justify-content: center;
  }

  .menu-toggle span {
    display: none;
  }

  .brand {
    width: 4.8rem;
  }

  .header-links {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
