:root {
  --ink: #2a2524;
  --green: #b4231c;
  --orange: #e4582e;
  --cream: #fcfaf8;
  --line: #e8e0dc;
  --muted: #746967;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
.topbar {
  height: 70px;
  padding: 0 6%;
  display: flex;
  gap: 42px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font: 800 25px Outfit;
  color: var(--ink);
  letter-spacing: -1.5px;
  text-decoration: none;
}
.brand span,
.overline,
.product-code {
  color: var(--orange);
}
sup {
  font-size: 8px;
}
.header-search {
  max-width: 570px;
  flex: 1;
  height: 40px;
  border: 1px solid #d9dbd5;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: #68726f;
}
.header-search span {
  font-size: 25px;
}
.header-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font: 14px "DM Sans";
}
.quote-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.quote-badge b,
.mobile-quote b {
  display: grid;
  place-items: center;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  min-width: 19px;
  height: 19px;
}
.catalog-head {
  padding: 28px 7% 23px;
  background: #fff;
}
.breadcrumbs {
  color: #7e8682;
  font-size: 12px;
}
.breadcrumbs span {
  margin: 0 7px;
}
.catalog-head h1 {
  font: 800 clamp(28px, 3.1vw, 42px)/1 Outfit;
  letter-spacing: -1.4px;
  margin: 19px 0 7px;
}
.catalog-head > p {
  margin: 0;
  color: #5b6762;
  font-size: 14px;
}
.category-rail {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 27px 1px 1px;
}
.category {
  flex: none;
  background: var(--cream);
  border: 1px solid #e0e2dc;
  color: #354640;
  border-radius: 8px;
  padding: 10px 13px;
  font: 700 12px "DM Sans";
  cursor: pointer;
}
.category span {
  margin-right: 5px;
  color: var(--orange);
  font-size: 15px;
}
.category.active,
.category:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.catalog-content {
  max-width: 1440px;
  margin: auto;
  padding: 29px 6% 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 31px;
}
.filter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.filter-top h2 {
  font: 700 18px Outfit;
  margin: 0;
}
.filter-top button {
  border: 0;
  background: transparent;
  color: var(--orange);
  font: 700 11px "DM Sans";
  cursor: pointer;
}
.filter-group {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.filter-group h3 {
  font: 700 13px Outfit;
  margin: 0 0 13px;
}
.filter-group > label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #47544f;
  font-size: 12px;
  margin: 10px 0;
  cursor: pointer;
}
.filter-group small {
  margin-left: auto;
  color: #a2aaa5;
}
.filter-group em {
  font-style: normal;
  font-size: 10px;
  color: #9a9f9b;
}
input[type="checkbox"] {
  accent-color: var(--orange);
}
.color-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.color-filter label {
  position: relative;
  cursor: pointer;
}
.color-filter input {
  position: absolute;
  opacity: 0;
}
.color-filter i {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid white;
  outline: 1px solid #d5d8d2;
}
.color-filter input:checked + i {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
}
.results-bar p {
  font-size: 13px;
  margin: 0;
  font-weight: 700;
}
.sort {
  font-size: 12px;
  color: #67736d;
}
.sort select {
  border: 0;
  background: transparent;
  font: 700 12px "DM Sans";
}
.applied-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 29px;
  margin: 9px 0;
}
.filter-chip {
  border: 1px solid #d7dbd5;
  border-radius: 30px;
  background: white;
  padding: 6px 10px;
  color: #53615b;
  font-size: 11px;
}
.filter-chip button {
  border: 0;
  background: transparent;
  color: #7d8781;
  padding-left: 5px;
  cursor: pointer;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.product-card {
  background: #fff;
  border: 1px solid #e4e4dd;
  border-radius: 9px;
  overflow: hidden;
  transition: 0.18s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 9px 24px #2c332c18;
  transform: translateY(-2px);
}
.product-image {
  height: 205px;
  background: #f7f7f4;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}
.product-image img,
.modal-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
/* Camada simples contra cópia das fotos de produto: sem seleção nem arrastar a imagem. */
.product-image img,
#modal-image,
.modal-thumbnail img,
#preview-image,
.quote-item-product img {
  -webkit-user-drag: none;
  user-select: none;
}
.featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: #b85b2c;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.product-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-code,
.overline {
  font-size: 10px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}
.product-card h3 {
  font: 700 16px/1.15 Outfit;
  letter-spacing: -0.35px;
  margin: 7px 0 6px;
}
.product-meta {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #ededeb;
}
.swatches {
  display: flex;
}
.swatches i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color);
  border: 1px solid #fff;
  outline: 1px solid #d8d9d4;
  margin-right: -3px;
}
.swatches small {
  font-size: 10px;
  color: #64716c;
  margin-left: 8px;
}
.open-product {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font: 700 11px "DM Sans";
  cursor: pointer;
}
.mobile-filter,
.mobile-quote {
  display: none;
}
.quote-drawer {
  position: fixed;
  z-index: 31;
  right: 0;
  top: 0;
  height: 100dvh;
  width: min(430px, 100%);
  background: #fff;
  padding: 25px;
  transform: translateX(105%);
  transition: 0.25s;
  box-shadow: -9px 0 40px #101c1622;
  display: flex;
  flex-direction: column;
}
.quote-drawer.open {
  transform: none;
}
.drawer-overlay {
  background: #10251b66;
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer-top {
  display: flex;
  justify-content: space-between;
}
.drawer-top h2 {
  font: 700 27px Outfit;
  margin: 4px 0;
}
.drawer-top button,
.modal-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #718078;
  cursor: pointer;
}
.drawer-intro {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 9px 0 18px;
}
.quote-lines {
  overflow: auto;
  flex: 1;
}
.empty-quote {
  text-align: center;
  color: #65716c;
  padding: 70px 20px;
}
.empty-quote span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin: auto auto 13px;
  background: #f3ede0;
  border-radius: 50%;
  color: #bd622f;
}
.empty-quote strong {
  display: block;
  font: 700 18px Outfit;
  color: var(--ink);
}
.empty-quote p {
  font-size: 12px;
}
.quote-line {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  margin-bottom: 10px;
}
.quote-line-top {
  display: flex;
  justify-content: space-between;
}
.quote-line strong {
  font: 700 14px Outfit;
}
.quote-line button {
  border: 0;
  background: transparent;
  color: #9ca39d;
  cursor: pointer;
  font-size: 16px;
}
.quote-line p {
  color: var(--muted);
  font-size: 11px;
  margin: 5px 0 0;
}
.drawer-footer {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.drawer-footer p {
  font-size: 12px;
  margin: 0 0 10px;
  color: #56635e;
}
.primary-button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  padding: 13px 16px;
  font: 700 13px "DM Sans";
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.primary-button:disabled {
  background: #cbd1cc;
  cursor: not-allowed;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 12px;
  max-width: 820px;
  width: calc(100% - 30px);
  color: var(--ink);
  box-shadow: 0 20px 70px #0005;
}
dialog::backdrop {
  background: #122218aa;
}
.modal-close {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 8px;
}
.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-image {
  background: #f4f4f0;
  min-height: 500px;
}
.modal-content {
  padding: 39px 34px;
}
.modal-content h2,
.request-content h2 {
  font: 700 31px/1.05 Outfit;
  margin: 8px 0;
}
.modal-content > p:not(.overline):not(.product-code) {
  color: #55625c;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.modal-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.choice-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.choice-title strong,
.quantity-row label strong {
  font: 700 14px Outfit;
}
.choice-title span {
  font-size: 11px;
  color: var(--muted);
}
.quantity-row label span {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 23px;
}
.color-option {
  border: 1px solid #dfe1dc;
  border-radius: 6px;
  background: white;
  padding: 8px 10px;
  font: 600 11px "DM Sans";
  cursor: pointer;
}
.color-option.selected {
  border-color: var(--green);
  background: #eff6ef;
  color: var(--green);
}
.color-option i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
  background: var(--color);
}
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.quantity-row label {
  display: grid;
  gap: 4px;
}
.quantity-control {
  display: flex;
  border: 1px solid #d8ddd7;
  border-radius: 6px;
  overflow: hidden;
}
.quantity-control button {
  width: 32px;
  border: 0;
  background: #f5f6f3;
  font-size: 17px;
  color: var(--green);
  cursor: pointer;
}
.quantity-control input {
  width: 66px;
  border: 0;
  text-align: center;
  font: 700 13px "DM Sans";
  outline: none;
}
.technique {
  background: #eff5ee;
  border-radius: 6px;
  padding: 11px;
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #3f5548;
  margin-bottom: 18px;
}
.technique small {
  display: block;
  margin-top: 4px;
  color: #6c7c72;
}
.request-content {
  padding: 42px;
  text-align: center;
}
.request-content > p:not(.overline) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.request-icon {
  display: grid;
  place-items: center;
  margin: auto;
  background: #def0df;
  color: #277143;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 23px;
}
textarea {
  height: 155px;
  width: 100%;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  font: 11px/1.5 "DM Sans";
  margin: 15px 0;
  text-align: left;
}
@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 62px;
    padding: 0 17px;
    gap: 14px;
  }
  .header-search {
    display: none;
  }
  .quote-badge span:not(.quote-badge-icon) {
    display: none;
  }
  .catalog-head {
    padding: 23px 18px 17px;
  }
  .catalog-head h1 {
    margin-top: 13px;
  }
  .catalog-head > p {
    font-size: 13px;
    line-height: 1.45;
  }
  .category-rail {
    padding-top: 20px;
    margin-right: -18px;
  }
  .catalog-content {
    display: block;
    padding: 19px 16px 24px;
  }
  .filters {
    display: none;
  }
  .filters.mobile-open {
    display: block;
    position: fixed;
    z-index: 41;
    inset: 0;
    background: white;
    overflow: auto;
    padding: 23px 20px;
  }
  .results-bar {
    border-bottom: 1px solid var(--line);
    padding-bottom: 13px;
  }
  .mobile-filter {
    display: inline-flex;
    border: 1px solid #cfd6ce;
    border-radius: 5px;
    background: white;
    padding: 8px 10px;
    color: var(--green);
    font: 700 11px "DM Sans";
  }
  .sort {
    font-size: 0;
  }
  .sort select {
    font-size: 11px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-image {
    height: 155px;
  }
  .product-content {
    padding: 11px;
  }
  .product-card h3 {
    font-size: 14px;
  }
  .product-meta {
    font-size: 10px;
  }
  .card-bottom {
    padding-top: 9px;
  }
  .swatches small {
    display: none;
  }
  .modal-layout {
    grid-template-columns: 1fr;
  }
  .modal-image {
    min-height: 250px;
    height: 250px;
  }
  .modal-content {
    padding: 28px 20px;
  }
  .modal-content h2 {
    font-size: 26px;
  }
  .choice-title {
    gap: 2px;
  }
  .modal-close {
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 23px;
    right: 9px;
  }
  body.quote-open .mobile-quote {
    display: none;
  }
  .mobile-quote {
    position: sticky;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: 8px;
    bottom: 14px;
    margin: 14px;
    width: calc(100% - 28px);
    background: var(--green);
    border: 0;
    border-radius: 7px;
    color: white;
    padding: 15px 18px;
    font: 700 13px "DM Sans";
    box-shadow: 0 5px 17px #123a2c33;
  }
  .mobile-quote b {
    margin-left: auto;
    background: #ffd36a;
    color: #7f1d1d;
  }
  .quote-drawer {
    width: 100%;
    padding: 21px;
  }
  .request-content {
    padding: 35px 19px;
  }
  .category {
    padding: 9px 11px;
  }
}
