:root {
  --rose-900: #713d38;
  --rose-800: #92534a;
  --rose-700: #b66559;
  --rose-600: #c8796c;
  --rose-400: #e3a79e;
  --rose-200: #f3d5cf;
  --rose-100: #faece9;
  --blush: #fdf7f5;
  --paper: #fffdfc;
  --ink: #342724;
  --muted: #806f6b;
  --line: #ecdcd8;
  --white: #ffffff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 18px 55px rgba(117, 65, 57, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }

.topbar {
  min-height: 84px; padding: 10px clamp(20px, 5vw, 72px); display: flex; align-items: center;
  justify-content: space-between; background: rgba(255,253,252,.94); color: var(--ink);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(200,121,108,.18);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-logo { width: 62px; height: 58px; object-fit: contain; display: block; }
.brand-lockup { display: grid; gap: 1px; padding-left: 12px; border-left: 1px solid var(--rose-200); }
.brand-name { font-size: .88rem; font-weight: 750; letter-spacing: .18em; color: var(--rose-900); }
.brand-section { font: italic .92rem/1.2 var(--serif); color: var(--muted); }
.about-button {
  border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--rose-900);
  cursor: pointer; padding: 10px 0; font-size: .9rem;
}
.about-button:hover { border-color: var(--rose-600); }

main { min-height: 80vh; }
.catalog-head {
  position: relative; overflow: hidden; max-width: calc(1600px - 2 * clamp(20px, 5vw, 72px));
  margin: clamp(22px, 4vw, 48px) auto 26px; padding: clamp(38px, 6vw, 74px) clamp(24px, 5vw, 68px) 30px;
  border-radius: 30px; border: 1px solid rgba(198,111,97,.14);
  background:
    radial-gradient(circle at 92% 15%, rgba(255,255,255,.78) 0 8%, transparent 8.3%),
    linear-gradient(125deg, #fff9f7 0%, #f8e2de 52%, #efc2ba 100%);
  box-shadow: 0 22px 70px rgba(180,101,89,.12);
}
.catalog-head::before,
.catalog-head::after {
  content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.65);
  pointer-events: none;
}
.catalog-head::before { width: 350px; height: 350px; right: -125px; top: -185px; }
.catalog-head::after { width: 250px; height: 250px; right: -72px; top: -115px; }
.eyebrow { margin: 0 0 14px; font-size: .76rem; font-weight: 750; letter-spacing: .2em; color: var(--rose-800); }
.title-row { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
h1 { margin: 0; max-width: 820px; font: 400 clamp(2.6rem, 5vw, 5.3rem)/.98 var(--serif); letter-spacing: -.045em; color: var(--rose-900); }
.catalog-count {
  margin: 0 0 8px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.55);
  color: var(--rose-900); white-space: nowrap; font-size: .9rem;
}

.search-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: clamp(34px, 5vw, 58px); }
.search-box {
  min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 0 20px;
  border: 1px solid rgba(180,101,89,.22); border-radius: 16px; background: rgba(255,255,255,.84);
  box-shadow: 0 10px 30px rgba(124,67,59,.06);
}
.search-box:focus-within { border-color: var(--rose-600); outline: 3px solid rgba(200,121,108,.12); }
.search-box svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--rose-700); }
.search-box input { border: 0; outline: 0; width: 100%; min-width: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #a28d88; }
select {
  min-height: 58px; padding: 0 43px 0 18px; border: 1px solid rgba(180,101,89,.22);
  border-radius: 16px; background: rgba(255,255,255,.84); color: var(--rose-900); cursor: pointer;
}
.filters { position: relative; z-index: 1; display: flex; gap: 9px; overflow-x: auto; padding: 19px 0 3px; scrollbar-width: thin; }
.filter-pill {
  flex: none; border: 1px solid rgba(180,101,89,.26); border-radius: 999px;
  background: rgba(255,255,255,.5); padding: 9px 16px; cursor: pointer; font-size: .88rem;
  transition: .2s ease;
}
.filter-pill:hover { border-color: var(--rose-600); background: rgba(255,255,255,.86); }
.filter-pill.active { background: var(--rose-700); border-color: var(--rose-700); color: var(--white); box-shadow: 0 7px 20px rgba(182,101,89,.23); }

.product-section { max-width: 1600px; margin: 0 auto; padding: 24px clamp(20px, 5vw, 72px) 96px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 36px) clamp(13px, 1.8vw, 24px); }
.product-card { min-width: 0; }
.card-open { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.image-wrap {
  display: block; aspect-ratio: 4/5; padding: 9px; border-radius: 20px; background: linear-gradient(145deg, #fbf4f1, #f3e5e1);
  overflow: hidden; box-shadow: 0 8px 28px rgba(103,62,55,.06); transition: transform .3s ease, box-shadow .3s ease;
}
.image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 13px; transition: transform .45s ease; }
.card-open:hover .image-wrap { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-open:hover img { transform: scale(1.025); }
.card-copy { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 4px 10px; padding: 15px 7px 0; }
.card-brand { grid-column: 1 / -1; font-size: .72rem; font-weight: 750; letter-spacing: .15em; color: var(--rose-700); }
.card-name { font: 400 1.2rem/1.2 var(--serif); color: var(--ink); }
.card-code { color: var(--muted); font-size: .78rem; padding-top: 3px; }
.load-more {
  display: block; margin: 58px auto 0; min-width: 235px; padding: 15px 24px; border: 1px solid var(--rose-700);
  border-radius: 999px; background: transparent; color: var(--rose-800); cursor: pointer; transition: .2s ease;
}
.load-more:hover { background: var(--rose-700); color: var(--white); box-shadow: 0 10px 24px rgba(182,101,89,.2); }
.empty-state { text-align: center; padding: 90px 20px; }
.empty-state h2 { margin: 0 0 10px; font: 400 2rem var(--serif); color: var(--rose-900); }
.empty-state p { color: var(--muted); }
.empty-state button { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 6px 0; color: var(--rose-800); cursor: pointer; }

footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px); background: var(--rose-900); color: #f9e8e4; font-size: .76rem; letter-spacing: .08em;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; background: white; }

dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 26px 90px rgba(71,38,33,.3); }
dialog::backdrop { background: rgba(68,41,36,.68); backdrop-filter: blur(5px); }
.product-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: 24px; }
.dialog-close {
  position: absolute; z-index: 5; right: 17px; top: 17px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--rose-900); font-size: 1.75rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 20px rgba(92,48,42,.14);
}
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); min-height: 600px; }
.gallery { padding: 20px; background: linear-gradient(145deg, #faefec, #efd8d3); }
.gallery-main { aspect-ratio: 4/5; max-height: 68vh; width: 100%; object-fit: contain; display: block; border-radius: 16px; background: var(--white); }
.thumbs { display: flex; gap: 9px; overflow-x: auto; padding-top: 12px; }
.thumb { flex: 0 0 68px; width: 68px; height: 82px; border: 2px solid transparent; border-radius: 10px; background: white; padding: 2px; cursor: pointer; overflow: hidden; }
.thumb.active { border-color: var(--rose-700); }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.product-info { padding: clamp(44px, 6vw, 78px) clamp(30px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.product-info h2 { margin: 0 0 14px; font: 400 clamp(2.2rem, 4vw, 3.7rem)/1 var(--serif); color: var(--rose-900); }
.product-code { margin: 0; color: var(--muted); }
.product-rule { width: 100%; height: 1px; background: var(--line); margin: 32px 0; }
.product-meta { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin: 0; }
.product-meta dt { color: var(--muted); }
.product-meta dd { margin: 0; }
.copy-code {
  margin-top: 38px; min-height: 54px; border: 0; border-radius: 14px;
  background: linear-gradient(110deg, var(--rose-800), var(--rose-600)); color: white; cursor: pointer;
  box-shadow: 0 10px 25px rgba(146,83,74,.2);
}
.copy-code:hover { filter: brightness(.96); }

.about-dialog { width: min(560px, calc(100vw - 32px)); border-radius: 24px; }
.about-content { padding: 55px clamp(28px, 7vw, 64px); text-align: center; }
.about-logo { width: 150px; height: 135px; object-fit: contain; margin: 0 auto 18px; }
.about-content h2 { margin: 0 0 20px; font: 400 2.5rem var(--serif); color: var(--rose-900); }
.about-content p:last-child { line-height: 1.7; color: var(--muted); }

@media (max-width: 1680px) {
  .catalog-head { margin-left: clamp(20px, 5vw, 72px); margin-right: clamp(20px, 5vw, 72px); }
}
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dialog-layout { grid-template-columns: 1fr 330px; }
  .card-copy { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { min-height: 72px; padding-top: 7px; padding-bottom: 7px; }
  .brand-logo { width: 52px; height: 48px; }
  .brand-name { font-size: .78rem; }
  .brand-section { font-size: .82rem; }
  .catalog-head { margin-top: 16px; border-radius: 22px; padding-top: 38px; }
  .title-row { display: block; }
  .catalog-count { display: inline-block; margin-top: 17px; }
  .search-row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap-bottom: 28px; }
  .dialog-layout { display: block; }
  .gallery { padding: 12px; }
  .gallery-main { max-height: 55vh; }
  .product-info { padding: 34px 24px 42px; }
  footer { display: grid; }
}
@media (max-width: 430px) {
  .brand-lockup { display: none; }
  .about-button { font-size: 0; }
  .about-button::after { content: 'Sobre'; font-size: .82rem; }
  .catalog-head { margin-left: 12px; margin-right: 12px; padding-left: 18px; padding-right: 18px; }
  .product-section { padding-left: 12px; padding-right: 12px; }
  .product-grid { column-gap: 10px; }
  .image-wrap { padding: 6px; border-radius: 14px; }
  .image-wrap img { border-radius: 10px; }
  .card-name { font-size: 1.06rem; }
  .card-copy { padding: 11px 5px 0; }
}
