@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-normal.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-normal.woff2") format("woff2");
}

:root {
  --green-deep: oklch(0.28 0.10 152);
  --green-mid: oklch(0.43 0.12 152);
  --green-soft: oklch(0.94 0.04 148);
  --cream: oklch(0.97 0.012 90);
  --paper: #ffffff;
  --ink: oklch(0.14 0.025 152);
  --ink-2: oklch(0.38 0.03 152);
  --ink-3: oklch(0.54 0.025 152);
  --border: oklch(0.89 0.018 148);
  --gold: oklch(0.72 0.10 78);
  --tomato: oklch(0.55 0.16 25);
  --blue: oklch(0.48 0.08 235);
  --shadow: 0 18px 46px rgba(10, 38, 25, .11);
  --shadow-soft: 0 8px 26px rgba(10, 38, 25, .07);
  --font-head: "Cormorant Garamond", serif;
  --font-body: "DM Sans", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.has-modal {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--green-deep);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transform: translateY(-150%);
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.catalog-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.catalog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

.brand-link img {
  height: 52px;
  width: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--green-deep);
}

.nav-quote,
.floating-list,
.primary-button,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--green-deep);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.nav-quote {
  min-height: 42px;
  padding: 0 14px;
}

.quote-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
}

.catalog-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: 72px 0 62px;
}

.catalog-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: var(--cream);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .78fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-mid);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(50px, 7.1vw, 88px);
  font-weight: 700;
  line-height: .96;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 28px;
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 300;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 720px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  outline: 0;
}

.hero-search button {
  height: 48px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--green-deep);
  color: white;
  padding: 0 22px;
  font-weight: 800;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: oklch(0.99 0.004 90);
  padding: 8px 12px;
  color: var(--ink-3);
  font-size: 12px;
}

.hero-metrics strong {
  color: var(--ink);
}

.hero-panel {
  position: relative;
  align-self: stretch;
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}

.float-label {
  color: var(--green-mid);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.float-text {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.catalog-main {
  padding: 34px 0 90px;
}

.intro-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.section-heading h2,
.results-head h2 {
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.02;
}

.mode-tabs {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.mode-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
}

.mode-tabs button[aria-selected="true"] {
  background: var(--green-deep);
  color: white;
}

.browse-panel {
  margin-bottom: 38px;
}

.is-hidden {
  display: none;
}

.tile-grid,
.collection-grid {
  display: grid;
  gap: 12px;
}

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

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

.category-tile,
.collection-tile,
.product-card,
.filter-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 0 2px 12px rgba(10, 38, 25, .045);
}

.category-tile,
.collection-tile {
  min-height: 134px;
  padding: 18px;
  text-align: left;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.category-tile:hover,
.collection-tile:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.tile-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.tile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.tile-count {
  color: var(--ink-3);
  font-size: 11px;
  white-space: nowrap;
}

.category-tile h3,
.collection-tile h3 {
  margin-top: 16px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.04;
}

.category-tile p,
.collection-tile p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 12px;
}

.results-band {
  background: oklch(0.985 0.006 90);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 44px;
}

.results-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.filter-rail {
  position: sticky;
  top: 92px;
}

.filter-card {
  padding: 18px;
}

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

.filter-label,
.notes-label {
  display: block;
  margin: 14px 0 6px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filter-card select,
.quote-drawer textarea,
.variant-quantity {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

.filter-card select {
  min-height: 42px;
  padding: 0 10px;
}

.check-row {
  display: flex;
  align-items: start;
  gap: 9px;
  margin: 16px 0;
  color: var(--ink-2);
  font-size: 12px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-deep);
}

.secondary-button {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-2);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.secondary-button:hover {
  border-color: var(--green-mid);
  color: var(--green-deep);
}

.results-panel {
  min-width: 0;
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.results-count {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
}

.status-box {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--ink-2);
  font-size: 12px;
}

.status-box.is-error {
  border: 1px solid oklch(0.82 0.08 25);
  border-radius: var(--radius-sm);
  background: oklch(0.97 0.03 25);
  color: var(--tomato);
  padding: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  min-height: 176px;
  padding: 15px;
}

.product-card h3 {
  align-self: start;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.02;
  font-weight: 700;
}

.product-card p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 12px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
  margin: 14px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tag.is-muted {
  background: oklch(0.93 0.012 235);
  color: var(--blue);
}

.tag.is-pending {
  background: oklch(0.96 0.035 80);
  color: oklch(0.45 0.1 75);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.card-actions button {
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 900;
}

.open-button {
  border: 1px solid var(--green-deep);
  background: var(--green-deep);
  color: white;
}

.quick-button {
  width: 42px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--green-deep);
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 38px 24px;
  text-align: center;
}

.empty-state h3 {
  font-size: 30px;
}

.empty-state p {
  margin: 8px auto 0;
  max-width: 520px;
  color: var(--ink-2);
  font-size: 13px;
}

.load-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.primary-button {
  min-height: 44px;
  padding: 0 20px;
}

.floating-list {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  min-height: 48px;
  padding: 0 15px;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 20, 12, .54);
  backdrop-filter: blur(5px);
}

.product-modal,
.quote-drawer {
  position: fixed;
  z-index: 90;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-modal {
  top: 50%;
  left: 50%;
  width: min(680px, calc(100% - 34px));
  max-height: min(780px, calc(100vh - 34px));
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-md);
  padding: 26px;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-2);
  font-weight: 900;
}

.product-modal h2,
.quote-drawer h2 {
  padding-right: 44px;
  color: var(--ink);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.modal-copy,
.drawer-copy {
  margin: 10px 0 18px;
  color: var(--ink-2);
  font-size: 13px;
}

.variant-list {
  display: grid;
  gap: 10px;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.variant-name {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.variant-meta {
  margin: 3px 0 0;
  color: var(--ink-3);
  font-size: 11px;
}

.variant-quantity {
  min-height: 40px;
  padding: 0 10px;
}

.variant-row button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--green-deep);
  color: white;
  padding: 0 12px;
  font-weight: 900;
}

.quote-drawer {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  padding: 22px;
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.quote-items {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.quote-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.quote-item h3 {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
}

.quote-item p {
  margin: 3px 0 0;
  color: var(--ink-3);
  font-size: 11px;
}

.quote-item button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  color: var(--tomato);
  font-weight: 900;
}

.quote-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  padding: 20px;
  text-align: center;
  font-size: 13px;
}

.quote-drawer textarea {
  resize: vertical;
  min-height: 86px;
  padding: 10px;
}

.whatsapp-button {
  min-height: 48px;
  margin-top: 14px;
  padding: 0 16px;
}

.quote-drawer .secondary-button {
  margin-top: 10px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .results-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 360px;
  }

  .hero-panel img {
    min-height: 360px;
  }

  .filter-rail {
    position: static;
  }

  .filter-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .filter-title,
  .check-row,
  .filter-card .secondary-button {
    grid-column: 1 / -1;
  }

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

@media (max-width: 720px) {
  .catalog-container {
    width: min(100% - 30px, 1180px);
  }

  .nav-inner {
    min-height: 64px;
  }

  .brand-link img {
    height: 46px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-link {
    display: none;
  }

  .catalog-hero {
    padding: 50px 0 42px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    margin-top: 6px;
  }

  .intro-row,
  .results-head {
    align-items: start;
    flex-direction: column;
  }

  .mode-tabs {
    width: 100%;
  }

  .mode-tabs button {
    flex: 1;
  }

  .tile-grid,
  .collection-grid,
  .product-grid,
  .filter-card {
    grid-template-columns: 1fr;
  }

  .variant-row {
    grid-template-columns: 1fr;
  }

  .product-modal {
    width: min(100% - 20px, 680px);
    padding: 22px 16px;
  }

  .product-modal h2,
  .quote-drawer h2 {
    font-size: 34px;
  }

  .floating-list {
    left: 15px;
    right: 15px;
  }
}

@media print {
  .catalog-nav,
  .hero-panel,
  .filter-rail,
  .floating-list,
  .modal-backdrop,
  .product-modal,
  .quote-drawer {
    display: none !important;
  }

  .catalog-hero,
  .results-band {
    background: white;
    padding: 20px 0;
  }

  .hero-grid,
  .results-layout {
    display: block;
  }

  .product-grid {
    display: block;
  }

  .product-card {
    break-inside: avoid;
    margin-bottom: 10px;
    box-shadow: none;
  }
}
