:root {
  --ink: #171717;
  --paper: #f8f7f3;
  --muted: #656565;
  --line: #dedbd3;
  --accent: #dfc65e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 20; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.demo-bar { background: #1d1d1d; color: #f2ebd1; padding: 8px 12px; text-align: center; font-size: 10px; letter-spacing: .15em; }
.header { background: rgba(248,247,243,.97); display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 82px; padding: 12px max(5%, calc((100vw - 1380px)/2)); position: sticky; top: 0; z-index: 8; border-bottom: 1px solid var(--line); }
.logo { font: 800 25px/1 'Manrope', sans-serif; letter-spacing: -.07em; white-space: nowrap; }
.logo span, h1 span, .section-head h2 span { color: #b99826; }
.header nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.header nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.bag-button { background: transparent; border: 1px solid var(--ink); padding: 10px 14px; font-size: 12px; white-space: nowrap; }
.bag-button span { display: inline-grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; width: 20px; height: 20px; margin-left: 7px; }
.hero { height: min(740px, 78vh); min-height: 520px; position: relative; color: #fff; isolation: isolate; background: #38352f; overflow: hidden; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 38%; z-index: -2; }
.hero-shade { background: linear-gradient(90deg, rgba(9,9,9,.83), rgba(9,9,9,.32) 60%, rgba(9,9,9,.08)); z-index: -1; }
.hero-content { width: min(1380px, 90%); margin: auto; display: flex; height: 100%; justify-content: center; align-items: flex-start; flex-direction: column; }
.kicker, .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.kicker { color: #f0dc88; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: 'Manrope', sans-serif; }
h1 { font-size: clamp(3rem, 6.5vw, 7.1rem); letter-spacing: -.07em; line-height: 1.07; margin: 16px 0 22px; max-width: 980px; }
.hero-content > p:not(.kicker) { font-size: clamp(16px, 1.65vw, 20px); max-width: 450px; line-height: 1.6; color: #eee; }
.btn { display: inline-flex; gap: 22px; align-items: center; justify-content: space-between; min-height: 50px; padding: 14px 20px; font-weight: 700; border: 1px solid transparent; font-size: 13px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #efe8cc; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #383838; }
.hero-side { position: absolute; right: 5%; bottom: 25px; font-size: 10px; letter-spacing: .2em; }
.section { width: min(1380px, 90%); margin: 0 auto; padding-top: 100px; padding-bottom: 110px; scroll-margin-top: 85px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-head h2, .contact h2 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.055em; line-height: 1.14; margin: 10px 0 0; }
.section-head > p { color: var(--muted); max-width: 330px; line-height: 1.6; font-size: 14px; margin-bottom: 6px; }
.eyebrow { color: #796727; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 22px; }
.filter { padding: 10px 19px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 40px; font-size: 13px; }
.filter:hover, .filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.product-count { font-size: 12px; color: var(--muted); padding: 20px 0 6px; }
.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px 18px; }
.product-card { min-width: 0; }
.product-photo { display: block; width: 100%; aspect-ratio: 4/4.8; overflow: hidden; background: #ebe9e3; border: 0; padding: 0; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-photo:hover img { transform: scale(1.04); }
.product-meta { padding: 15px 2px 0; display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.product-meta h3 { font-size: 16px; margin: 0 0 7px; font-weight: 700; }
.product-meta p { font-size: 12px; margin: 0; color: var(--muted); }
.product-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.view-product { margin-top: 14px; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 4px; background: transparent; font-size: 12px; font-weight: 700; }
.view-product:hover { color: #977817; }
.manifesto { background: #1b1b1b; color: white; padding: 95px max(5%, calc((100vw - 1380px)/2)); display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.manifesto h2 { font-size: clamp(2rem, 4vw, 4.5rem); line-height: 1.1; letter-spacing: -.06em; margin: 20px 0 0; }
.manifesto .eyebrow { color: #dfc65e; }
.manifesto > p { max-width: 390px; color: #c8c8c8; line-height: 1.8; margin: 0; font-size: 14px; }
.contact { text-align: center; max-width: 800px; }
.contact h2 { margin: 14px 0 24px; }
.contact > p:not(.eyebrow) { line-height: 1.7; color: var(--muted); max-width: 580px; margin: 0 auto 27px; }
.footer { background: #eeeae2; padding: 35px 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer p, .footer > a:last-child { font-size: 12px; color: #515151; margin: 0; }
.dialog { border: 0; padding: 0; width: min(920px, 92vw); max-height: 90vh; background: var(--paper); color: var(--ink); }
.dialog::backdrop { background: rgba(0,0,0,.74); }
.dialog-layout { display: grid; grid-template-columns: 1fr 1fr; }
.dialog-layout > img { width: 100%; height: 100%; max-height: 700px; min-height: 400px; object-fit: cover; background: #eee; }
.dialog-content { padding: 65px 36px 35px; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: start; }
.dialog-content h2, .bag-panel h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.05em; margin: 0 0 10px; }
.dialog-price { font-weight: 800; margin: 0 0 22px; }
.dialog-content > p:not(.eyebrow):not(.dialog-price) { line-height: 1.7; color: var(--muted); }
.dialog-content small { margin-top: 18px; color: var(--muted); line-height: 1.6; }
.close-button { position: absolute; right: 18px; top: 15px; border: 0; background: transparent; font-size: 31px; line-height: 1; }
.bag-dialog { width: min(520px, 92vw); }
.bag-panel { padding: 50px 26px 26px; position: relative; }
.bag-items { border-block: 1px solid var(--line); padding: 18px 0; margin: 25px 0; }
.bag-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; font-size: 14px; }
.bag-row:last-child { margin-bottom: 0; }
.bag-row button { border: 0; background: transparent; text-decoration: underline; font-size: 12px; }
.bag-total { font-weight: 800; margin-bottom: 16px; }
.bag-info, #bagFeedback { font-size: 12px; line-height: 1.6; color: var(--muted); }
.bag-panel .btn { width: 100%; justify-content: center; }
.text-button { display: block; margin: 15px auto 0; background: transparent; border: 0; text-decoration: underline; }
button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 700px) {
  .header { min-height: 73px; flex-wrap: wrap; gap: 10px; padding: 14px 5%; }
  .header nav { width: 100%; justify-content: center; gap: 25px; order: 3; padding-top: 8px; font-size: 12px; }
  .logo { font-size: 21px; }
  .hero { min-height: 570px; height: 78svh; }
  .hero-image { object-position: 55% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(0,0,0,.77),rgba(0,0,0,.3)); }
  h1 { font-size: clamp(2.8rem, 11vw, 4.7rem); }
  .hero-side { display: none; }
  .section { padding-block: 70px; scroll-margin-top: 120px; }
  .section-head, .manifesto { display: block; }
  .section-head > p { margin-top: 18px; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 12px; }
  .product-photo { aspect-ratio: 3/4; }
  .product-meta { display: block; }
  .product-price { margin-top: 8px; }
  .manifesto { padding-block: 70px; }
  .manifesto > p { margin-top: 25px; }
  .footer { display: block; }
  .footer > * { display: block; margin-bottom: 16px !important; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-layout > img { max-height: 270px; min-height: 0; }
  .dialog-content { padding: 40px 22px 26px; }
}
@media (max-width: 420px) {
  .products { grid-template-columns: 1fr; }
  .product-photo { aspect-ratio: 4/4; }
  .filters { gap: 6px; }
  .filter { padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ===== CARREGAMENTO DAS IMAGENS ===== */

.dialog-layout {
  background: #eeece6;
}

.dialog-content {
  background: var(--paper);
}

#dialogImage {
  opacity: 0;
  transition: opacity 0.2s ease;
}

#dialogImage.imagem-carregada {
  opacity: 1;
}
