:root {
  --ink: #2f2a22;
  --muted: #6f6250;
  --paper: #f7f1df;
  --paper-warm: #efe0b5;
  --surface: #fffaf0;
  --surface-strong: #ffffff;
  --line: #dfcfaa;
  --gold: #b78936;
  --gold-dark: #835f25;
  --olive: #556845;
  --wine: #8f3932;
  --shadow: rgba(47, 42, 34, 0.14);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(247, 241, 223, 0.92), rgba(247, 241, 223, 0.92)),
    url("/static/images/marmol-claro-bazar-san-lorenzo.2608a9b95b3b.png");
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.topbar {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 18px;
  justify-content: center;
  padding: 8px 18px;
}

.topbar a {
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(47, 42, 34, 0.08);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 14px 48px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}

.brand span {
  align-items: center;
  background: var(--gold-dark);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a,
.link-button,
.nav summary {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  list-style: none;
  padding: 8px 10px;
  text-decoration: none;
}

.nav form {
  display: inline-flex;
}

.nav summary::-webkit-details-marker {
  display: none;
}

.nav a:hover,
.link-button:hover,
.nav-group[open] summary {
  background: rgba(183, 137, 54, 0.12);
  border-color: rgba(183, 137, 54, 0.32);
}

.nav-group {
  position: relative;
}

.nav-menu {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 240px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 30;
}

.nav-menu a {
  border: 0;
  display: block;
  padding: 9px 10px;
}

.nav-menu a:hover {
  background: rgba(85, 104, 69, 0.1);
}

.hero {
  align-items: center;
  color: var(--white);
  display: grid;
  min-height: 650px;
  overflow: hidden;
  padding: 86px 64px 118px;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(47, 42, 34, 0.86), rgba(47, 42, 34, 0.5), rgba(47, 42, 34, 0.18)),
    linear-gradient(180deg, rgba(47, 42, 34, 0.1), rgba(47, 42, 34, 0.52));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-bg {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

.hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.4rem;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 18px;
}

.hero p {
  font-size: 1.12rem;
  margin: 0 0 22px;
  max-width: 58ch;
}

.home-claim {
  color: #f5deb0;
  font-size: 1.35rem;
  font-weight: 900;
}

.hero-actions,
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  margin-top: 22px;
}

.hero-facts span {
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: 8px;
  color: #fff3d1;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 8px 10px;
}

.eyebrow {
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow,
.catalog-hero .eyebrow {
  color: #e8bd66;
}

.button,
button {
  background: var(--gold-dark);
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
}

.button:hover,
button:hover {
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.button.secondary.dark {
  background: transparent;
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

.info-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.info-strip p {
  border-right: 1px solid var(--line);
  margin: 0;
  padding: 20px 28px;
}

.info-strip strong {
  color: var(--gold-dark);
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.section {
  padding: 64px;
}

.narrow {
  margin: 0 auto;
  max-width: 980px;
}

.section-title {
  margin-bottom: 26px;
}

.section-title h1,
.section-title h2,
.catalog-hero h1,
.product-detail h1,
.collection-story h2 {
  color: var(--ink);
  font-size: 2.8rem;
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0;
}

.row-title {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.row-title a {
  color: var(--gold-dark);
  font-weight: 900;
}

.category-band {
  background: rgba(255, 250, 240, 0.62);
}

.category-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  min-height: 220px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.category-card::after {
  background: linear-gradient(180deg, rgba(47, 42, 34, 0.04), rgba(47, 42, 34, 0.74));
  content: "";
  inset: 0;
  position: absolute;
}

.category-card img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.category-card span {
  align-self: end;
  font-size: 1.2rem;
  font-weight: 900;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.collection-story {
  align-items: start;
  background:
    linear-gradient(rgba(255, 250, 240, 0.84), rgba(255, 250, 240, 0.84)),
    url("/static/images/marmol-claro-bazar-san-lorenzo.2608a9b95b3b.png");
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 36px;
  grid-template-columns: 0.9fr 1.1fr;
}

.collection-story p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(47, 42, 34, 0.08);
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  font-size: 1.08rem;
  margin: 6px 0 10px;
}

.product-body h3 a {
  text-decoration: none;
}

.category-pill {
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 900;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.stock {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
}

.stock.ok {
  color: var(--olive);
}

.stock.empty {
  color: var(--wine);
}

.delivery-hint {
  background: rgba(85, 104, 69, 0.1);
  border-left: 4px solid var(--olive);
  border-radius: 8px;
  color: var(--olive);
  font-weight: 800;
  padding: 10px 12px;
}

.product-foot {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.product-foot p {
  font-size: 1.08rem;
  font-weight: 900;
  margin: 0;
}

.product-foot button {
  min-height: 36px;
  padding: 7px 12px;
}

.catalog-hero {
  background:
    linear-gradient(90deg, rgba(47, 42, 34, 0.94), rgba(47, 42, 34, 0.76)),
    url("/static/images/marmol-claro-bazar-san-lorenzo.2608a9b95b3b.png");
  color: var(--paper);
  padding: 70px 64px;
}

.catalog-hero h1 {
  color: var(--paper);
}

.catalog-hero p {
  color: #f2e7c5;
  font-size: 1.08rem;
  max-width: 680px;
}

.catalog-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 280px 1fr;
}

.catalog-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
  position: sticky;
  top: 96px;
}

.filter-group {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.catalog-search {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 9px;
  padding-bottom: 14px;
}

.catalog-search label {
  font-weight: 900;
}

.filter-title,
.filter-link {
  border-radius: 6px;
  display: block;
  padding: 8px 9px;
  text-decoration: none;
}

.filter-title {
  color: var(--ink);
  font-weight: 900;
}

.filter-link {
  color: var(--muted);
}

.filter-link:hover,
.filter-title:hover {
  background: rgba(183, 137, 54, 0.12);
}

.product-detail,
.checkout {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.85fr);
  padding: 64px;
}

.contact-layout {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.7fr);
}

.product-detail > img {
  border-radius: 8px;
  min-height: 460px;
  object-fit: cover;
  width: 100%;
}

.price,
.total {
  font-size: 1.25rem;
  font-weight: 900;
}

.inline-form,
.quantity-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-label {
  color: var(--ink);
  font-weight: 900;
  margin: 0 0 10px;
}

input,
textarea {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  font: inherit;
  margin-top: 6px;
  padding: 10px 12px;
  width: 100%;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  margin: 0 8px 0 0;
  width: auto;
}

.form p {
  margin: 0 0 16px;
}

.form-panel,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 22px;
  padding: 22px;
}

.notice p {
  margin: 0 0 10px;
}

.code-block {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  padding: 12px;
}

.delivery-picker {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.delivery-option {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 16px;
}

.delivery-option:has(input:checked) {
  background: rgba(183, 137, 54, 0.12);
  border-color: var(--gold-dark);
  box-shadow: inset 0 0 0 1px var(--gold-dark);
}

.delivery-option strong,
.pickup-note strong {
  display: block;
}

.delivery-option small {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  margin-top: 3px;
}

.pickup-note,
.shipping-fields {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 16px;
}

.pickup-note p {
  margin: 4px 0;
}

.pickup-note a {
  color: var(--gold-dark);
  font-weight: 900;
}

.shipping-fields[hidden],
.pickup-note[hidden] {
  display: none;
}

.terms-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form ul {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
}

.form li {
  margin-bottom: 8px;
}

.helper-text,
.helptext {
  color: var(--muted);
  display: block;
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.errorlist {
  color: var(--wine);
  font-weight: 800;
  margin: 0 0 10px;
  padding-left: 18px;
}

.account-layout {
  display: grid;
  gap: 28px;
}

.account-panel {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.summary,
.order-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 22px;
}

.order-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  background: var(--surface);
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px;
  text-align: left;
}

.messages {
  margin: 18px auto 0;
  max-width: 960px;
  padding: 0 18px;
}

.message {
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
}

.message p {
  margin: 0;
}

.message.cart-added {
  align-items: center;
  background: #fffaf0;
  border: 1px solid rgba(183, 137, 54, 0.35);
  border-left: 4px solid var(--gold-dark);
  box-shadow: 0 12px 28px rgba(44, 40, 34, 0.08);
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.message-actions .button {
  min-height: 36px;
  padding: 7px 12px;
}

.footer {
  align-items: start;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 34px 64px;
}

.footer p {
  color: #f0e2bc;
  margin: 0;
}

.footer a {
  color: var(--paper);
  font-weight: 800;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
}

.legal-page h2 {
  margin-top: 28px;
}

.legal-warning {
  background: rgba(143, 57, 50, 0.1);
  border-left: 4px solid var(--wine);
  border-radius: 8px;
  color: var(--wine);
  font-weight: 800;
  padding: 12px 14px;
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
    display: grid;
    padding: 14px 24px;
  }

  .nav {
    justify-content: flex-start;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    justify-content: flex-start;
  }

  .hero {
    min-height: 560px;
    padding: 58px 22px 86px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p,
  .home-claim {
    font-size: 1.04rem;
  }

  .section,
  .catalog-hero,
  .product-detail,
  .checkout {
    padding: 38px 22px;
  }

  .section-title h1,
  .section-title h2,
  .catalog-hero h1,
  .product-detail h1,
  .collection-story h2 {
    font-size: 2rem;
  }

  .info-strip,
  .collection-story,
  .product-detail,
  .checkout,
  .contact-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .info-strip p {
    border-right: 0;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .row-title {
    align-items: start;
    display: grid;
    gap: 10px;
  }

  .nav-menu {
    left: 0;
    right: auto;
  }
}
