:root {
    --wine: #672d3b;
    --ink: #343334;
    --muted: #747171;
    --paper: #f8f7f4;
    --line: #e6e1dd;
    --gold: #ae9360;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: white; font: 15px/1.7 Arial, sans-serif; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.16; }
h1 { font-size: clamp(38px, 4.5vw, 72px); }
h2 { font-size: clamp(30px, 3vw, 46px); }
h3 { font-size: 24px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
img { display: block; width: 100%; }
.topline { background: var(--wine); color: white; padding: 7px 5%; font-size: 10px; letter-spacing: 1.5px; display: flex; justify-content: space-between; }
header { position: sticky; top: 0; z-index: 20; background: #fffffff5; display: flex; align-items: center; justify-content: space-between; padding: 16px 5%; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: flex; gap: 13px; align-items: center; white-space: nowrap; }
.brand img { width: 70px; height: 47px; object-fit: cover; }
.brand span { color: var(--wine); font: 29px Georgia, serif; }
.brand small { display: block; font: 10px Arial, sans-serif; letter-spacing: 1px; margin-top: 7px; color: var(--muted); }
nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
nav a:hover, .text-link:hover { color: var(--wine); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--wine); padding: 14px 24px; background: var(--wine); color: white; font-size: 13px; transition: background .2s, color .2s; }
.button:hover { background: #4f1d2a; color: white; }
.button.white { background: white; color: var(--wine); border-color: white; }
.button.outline { background: transparent; color: var(--wine); }
.button.small { padding: 10px 18px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; }
.hero { height: min(650px, 72vw); min-height: 450px; position: relative; color: white; }
.hero > img { height: 100%; object-fit: cover; object-position: center 56%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,#15201799,transparent 85%); }
.hero-copy { position: absolute; left: 8%; top: 50%; transform: translateY(-50%); max-width: 740px; }
.hero-copy h1 { margin: 20px 0; }
.hero-copy p { margin-bottom: 30px; color: #f2f2ee; }
.eyebrow { color: var(--wine); font-size: 10px; font-weight: 600; letter-spacing: 2.2px; display: block; margin-bottom: 16px; }
.eyebrow.light { color: white; }
.hero-controls { position: absolute; bottom: 26px; right: 6%; display: flex; gap: 18px; align-items: center; font-size: 12px; }
.hero-controls button { border: 1px solid #ffffff80; background: transparent; color: white; width: 38px; height: 38px; }
.service-strip { padding: 45px 7%; display: flex; gap: 35px; align-items: center; justify-content: space-between; }
.service-strip h2 { font-size: 28px; margin: 0; }
.service-strip p { font-size: 13px; color: var(--muted); margin: 0; }
.text-link { font-size: 13px; border-bottom: 1px solid var(--gold); padding-bottom: 8px; white-space: nowrap; }
.sticky-photo { height: 430px; background-position: center; background-size: cover; background-attachment: fixed; display: flex; align-items: center; justify-content: center; text-align: center; color: white; position: relative; }
.sticky-photo:before { content: ''; position: absolute; inset: 0; background: #19211955; }
.sticky-photo > div { position: relative; }
.first { background-image: url('../assets/img/publicado/stick-01.webp'); }
.second { background-image: url('../assets/img/publicado/stick-02.webp'); height: 470px; }
.section { padding: 85px 7%; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.section-heading h2 { margin: 0; }
.section-heading p { font-size: 14px; color: var(--muted); margin: 0; }
.collection-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.collection img { aspect-ratio: 3/4; object-fit: cover; transition: filter .3s; }
.collection:hover img { filter: brightness(.92); }
.collection > div { padding: 22px 0; position: relative; }
.collection h3 { margin-bottom: 7px; }
.collection span { font-size: 12px; color: var(--muted); }
.collection b { position: absolute; right: 0; top: 20px; color: var(--wine); }
.image-note { font-size: 11px; color: var(--muted); margin: 18px 0 0; }
.product-section { background: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.product-card { border: 0; background: white; text-align: left; padding: 18px; color: var(--ink); width: 100%; }
.product-card img { object-fit: contain; height: 200px; }
.product-card small { color: var(--muted); display: block; font-size: 10px; letter-spacing: 1px; margin-top: 18px; }
.product-card h3 { font: 16px/1.5 Arial, sans-serif; margin: 5px 0 14px; }
.product-card .card-link { color: var(--wine); font-size: 12px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.about > div > p { max-width: 440px; color: var(--muted); }
.reasons article { padding: 0 0 20px 55px; position: relative; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.reasons article > span { position: absolute; left: 0; color: var(--gold); font: 20px Georgia,serif; }
.reasons h3 { font-size: 25px; margin-bottom: 12px; }
.reasons p { color: var(--muted); font-size: 14px; }
footer { background: #f2f0ec; padding: 55px 7% 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer h2 { color: var(--wine); font-size: 38px; }
footer h3 { font: 14px Arial,sans-serif; font-weight: bold; }
footer a { display: block; font-size: 13px; margin-bottom: 8px; }
footer p { color: var(--muted); font-size: 13px; }
.dot { color: var(--gold); }
.copyright { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); padding-top: 22px; margin-top: 35px; border-top: 1px solid #dcd7d1; }
.page-intro { text-align: center; padding: 70px 7% 45px; background: var(--paper); }
.page-intro h1 { font-size: clamp(38px,4vw,58px); margin-bottom: 22px; }
.page-intro p { color: var(--muted); }
.catalog-wrap { padding: 35px 6% 75px; background: #efede9; }
.catalog-toolbar { display: flex; align-items: end; gap: 18px; flex-wrap: wrap; }
label { display: block; font-size: 12px; margin-bottom: 20px; }
input,select,textarea { display: block; width: 100%; border: 1px solid #d9d3ce; background: white; padding: 12px; color: var(--ink); margin-top: 6px; border-radius: 0; }
.catalog-toolbar label { flex: 1; margin: 0; min-width: 180px; }
.catalog-toolbar .button { min-height: 48px; }
.demo-note { font-size: 12px; color: var(--muted); }
.book { background: #fff; padding: 28px 32px; box-shadow: 0 12px 40px #34272113; position: relative; }
.book:before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; transform: translateX(-50%); background: linear-gradient(90deg,transparent,#00000008,transparent); pointer-events: none; }
.book-header,.book-footer { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 2px; color: var(--wine); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.book-footer { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
.magazine-grid { display: grid; grid-template-columns: repeat(4,1fr); padding: 18px 0; gap: 18px 30px; min-height: 580px; }
.magazine-grid .product-card { padding: 10px; border-bottom: 1px solid var(--line); }
.magazine-grid .product-card img { height: 165px; }
.magazine-grid h3 { font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 25px; font-size: 12px; }
.book.zoomed { position: fixed; inset: 20px; z-index: 50; overflow: auto; }
.book.zoomed:before { display: none; }
.book.zoomed .product-card img { height: 260px; }
#zoom { position: relative; z-index: 51; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.3fr; gap: 90px; }
.contact-layout aside p { color: var(--muted); }
.contact-layout aside h3 { font-size: 21px; margin: 30px 0 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.consent { display: flex; gap: 10px; align-items: start; }
.consent input { width: auto; }
.honeypot { display: none; }
.selected-row { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 12px; }
.selected-row span { flex: 1; }
.selected-row input { width: 75px; }
.selected-row button,.social-demo { background: none; border: 0; color: var(--wine); text-decoration: underline; }
.selected-items { margin: 20px 0; }
.selected-items h3 { font-size: 23px; }
dialog { border: 0; padding: 35px; width: min(820px,90vw); max-height: 90vh; }
dialog::backdrop { background: #0008; }
.close { position: absolute; right: 14px; top: 10px; border: 0; background: white; font-size: 25px; }
#product-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; }
#product-detail img { max-height: 380px; object-fit: contain; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: 90vw; z-index: 100; background: var(--wine); color: white; padding: 12px 22px; display: none; font-size: 13px; }
.skip { position: fixed; top: -100px; z-index: 100; background: white; padding: 10px; }
.skip:focus { top: 0; }
@media(max-width:1000px) {
    nav { gap: 14px; }
    .brand span { font-size: 24px; }
    .brand img { width: 54px; }
    .collection-grid { gap: 15px; }
    .service-strip { flex-wrap: wrap; }
    .about,.contact-layout { gap: 40px; }
}
@media(max-width:760px) {
    .topline span { display: none; }
    .menu-toggle { display: block; }
    nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 25px; flex-direction: column; align-items: stretch; }
    nav.open { display: flex; }
    .hero { height: 590px; min-height: 0; }
    .hero-copy { left: 7%; right: 7%; }
    .hero-copy h1 { font-size: 43px; }
    .hero > img { object-position: 62%; }
    .hero-shade { background: #18201866; }
    .service-strip { padding: 35px 7%; gap: 20px; }
    .section { padding: 55px 6%; }
    .section-heading { align-items: start; flex-direction: column; gap: 20px; }
    .collection-grid,.product-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
    .collection h3 { font-size: 23px; }
    .collection span { font-size: 11px; }
    .collection b { display: none; }
    .sticky-photo { background-attachment: scroll; height: 340px; }
    .about,.contact-layout { grid-template-columns: 1fr; gap: 35px; }
    .product-card { padding: 12px; }
    .product-card img { height: 155px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .copyright { flex-direction: column; gap: 8px; }
    .catalog-wrap { padding: 25px 4% 50px; }
    .book { padding: 18px 12px; }
    .book:before { display: none; }
    .magazine-grid { grid-template-columns: repeat(2,1fr); gap: 12px; min-height: 520px; }
    .magazine-grid .product-card img { height: 140px; }
    .book-header { font-size: 8px; letter-spacing: .5px; }
    .pagination { gap: 12px; }
    .pagination .button { padding: 10px; }
    .form-grid { grid-template-columns: 1fr; }
    #product-detail { grid-template-columns: 1fr; gap: 18px; }
    #product-detail img { max-height: 230px; }
}
@media(prefers-reduced-motion:reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* Revista: folha de duas faces, lombada e sombra durante a virada. */
#catalog-products { position: relative; isolation: isolate; }
.book { overflow: visible; }
.book:before { z-index: 2; }
.turn-layer { position: absolute; inset: 0; perspective: 1800px; z-index: 5; pointer-events: none; }
.turn-leaf { position: absolute; top: 0; bottom: 0; transform-style: preserve-3d; z-index: 3; }
.leaf-half { position: absolute; inset: 0; overflow: hidden; background: white; }
.leaf-front, .leaf-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf-front { transform: translateZ(.2px); }
.leaf-back { transform: rotateY(180deg) translateZ(.2px); }
.leaf-copy { position: absolute !important; top: 0; margin: 0; min-height: 0; background: white; }
.leaf-shadow { position: absolute; inset: 0; background: linear-gradient(90deg,#0002,transparent 30%,#0000000a 75%,#0001); transform: translateZ(.6px); pointer-events: none; backface-visibility: hidden; }
.stationary-half { z-index: 1; }
.book-edge { position: absolute; z-index: 8; top: 40%; width: 30px; height: 100px; padding: 0; border: 0; background: #672d3b; color: white; font: 32px Georgia,serif; opacity: .85; box-shadow: 0 3px 12px #0002; }
.edge-prev { left: -25px; border-radius: 4px 0 0 4px; }
.edge-next { right: -25px; border-radius: 0 4px 4px 0; }
.book-edge:hover { opacity: 1; }
#book { touch-action: pan-y; }
#book.dragging { cursor: grabbing; user-select: none; }
#book img { -webkit-user-drag: none; user-select: none; }
#book[aria-busy="true"] .product-card { pointer-events: none; }
.book.zoomed { inset: 65px 35px 20px; overflow: auto; }
.book.zoomed .book-edge { position: sticky; bottom: 15px; top: auto; display: inline-block; width: 48px; height: 45px; margin-top: 15px; }
.book.zoomed .edge-prev { left: 0; }
.book.zoomed .edge-next { left: calc(100% - 96px); }
@media(max-width:760px) {
    .book-edge { width: 23px; height: 70px; font-size: 26px; }
    .edge-prev { left: -12px; }
    .edge-next { right: -12px; }
    .book.zoomed { inset: 100px 12px 15px; }
}
