/* Atelier theme for Montra. Base: Montra storefront styles (resources of the core, copied). */

:root {
    --bg: #ffffff;
    --surface: #f6f4f1;
    --text: #1d1c1a;
    --muted: #6b675f;
    --line: #e6e2dc;
    --accent: #1d1c1a;
    --accent-text: #ffffff;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 2px;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: calc(clamp(2rem, 4vw, 3.25rem) * var(--heading-factor, 1)); }
h2 { font-size: calc(clamp(1.5rem, 2.6vw, 2.25rem) * var(--heading-factor, 1)); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.container--text-wide { max-width: 1000px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }

/* Header & footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.site-logo { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; letter-spacing: .02em; }
.site-nav { flex: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a:hover { text-decoration: underline; }
.site-nav li { position: relative; }
.site-nav li ul { display: none; position: absolute; top: 100%; left: -16px; flex-direction: column; gap: 0; min-width: 220px; padding: 12px 0; background: var(--bg); border: 1px solid var(--line); }
.site-nav li ul a { display: block; padding: 6px 16px; text-transform: none; letter-spacing: 0; font-size: .9375rem; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: flex; }
.site-languages { display: flex; gap: 8px; margin-left: auto; font-size: .75rem; letter-spacing: .1em; }
.site-languages a { text-decoration: none; color: var(--muted); }
.site-languages a[aria-current] { color: var(--text); text-decoration: underline; }
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: .875rem; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; font-size: .8125rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
.preview-bar { background: #fff4d6; color: #5e4200; text-align: center; padding: 8px; font-size: .875rem; }

/* Sections */
.section { padding: 64px 0; }
.section__title { text-align: center; margin-bottom: 40px; }
.section__title + .section__intro { max-width: 640px; margin: -24px auto 40px; text-align: center; color: var(--muted); }
.page-title { padding: 56px 24px 8px; text-align: center; }
.prose { font-size: 1.0625rem; }
.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25em; border-left: 2px solid var(--text); font-family: var(--serif); font-size: 1.25em; }
.prose a { text-decoration: underline; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.hero { position: relative; display: flex; align-items: center; background: var(--surface); overflow: hidden; }
.hero--medium { min-height: 50vh; }
.hero--large { min-height: 72vh; }
.hero--full { min-height: calc(100vh - 72px); }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); }
.hero__content { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; max-width: 760px; }
.hero__content--center { text-align: center; margin-left: auto; margin-right: auto; }
.hero--image .hero__content { color: #fff; }
.hero__content p { font-size: 1.15rem; max-width: 560px; }
.hero__content--center p { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--image-right .split__media { order: 2; }
.split__media img { width: 100%; }
/* "Imagem com texto" options: image shape, image size (desktop) and the text at the top. */
.split--valign-top { align-items: start; }
.split--ratio-portrait .split__media img, .split--ratio-square .split__media img, .split--ratio-landscape .split__media img { height: auto; object-fit: cover; }
.split--ratio-portrait .split__media img { aspect-ratio: 4 / 5; }
.split--ratio-square .split__media img { aspect-ratio: 1; }
.split--ratio-landscape .split__media img { aspect-ratio: 3 / 2; }
.split--ratio-original .split__media img { height: auto; aspect-ratio: auto; }
/* "Acompanhar o texto": the image takes the height of the text (cropped to fit). */
.split--ratio-text { align-items: stretch; }
.split--ratio-text .split__media { position: relative; min-height: 280px; }
.split--ratio-text .split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 961px) {
    .split--size-small { grid-template-columns: 2fr 3fr; }
    .split--size-large { grid-template-columns: 3fr 2fr; }
    .split--image-right.split--size-small { grid-template-columns: 3fr 2fr; }
    .split--image-right.split--size-large { grid-template-columns: 2fr 3fr; }
}
@media (max-width: 960px) {
    .split--ratio-text .split__media { min-height: 0; aspect-ratio: 3 / 2; }
}

.gallery { display: grid; gap: 16px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; padding: 20px 0; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item .prose { padding-bottom: 20px; color: var(--muted); }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 32px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--accent-text); font: inherit; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: transparent; color: var(--accent); }
.btn--light { background: #fff; border-color: #fff; color: var(--text); }
.btn--light:hover { background: transparent; color: #fff; }
.btn--outline { background: transparent; color: var(--accent); }
.btn--block { width: 100%; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--bg); color: var(--text); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.notice { padding: 14px 16px; border-radius: var(--radius); }
.notice--success { background: #e8f4ed; color: #1f5a3a; }
.notice--error { background: #fdecea; color: #8e1b13; }

/* Listings */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.post-card__link { text-decoration: none; display: block; }
.post-card__image { aspect-ratio: 4 / 3; background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card__link:hover img { transform: scale(1.03); }
.post-card h2 { font-size: 1.375rem; }
.post-card p:last-child { color: var(--muted); }
.post__header { padding: 56px 24px 32px; text-align: center; }
.post__image { margin-bottom: 24px; }
.pager { display: flex; justify-content: center; gap: 24px; margin: 48px 0; }
.empty-state { text-align: center; color: var(--muted); padding: 48px 0; }

/* Products (commerce module) */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.product-card { text-decoration: none; display: block; }
.product-card__image { position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; margin-bottom: 14px; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.product-card__image img + img { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card__image img + img { opacity: 1; }
.product-card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: #fff; padding: 2px 8px; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
.product-card__title { font-family: var(--serif); font-size: 1.125rem; margin: 0 0 4px; }
.price { display: flex; gap: 8px; align-items: baseline; }
.price del { color: var(--muted); font-size: .9em; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.collection-card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); text-decoration: none; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.collection-card:hover img { transform: scale(1.04); }
.collection-card span { position: absolute; left: 24px; bottom: 24px; color: #fff; font-family: var(--serif); font-size: 1.5rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.product { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; padding-top: 32px; }
.product__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product__gallery figure { margin: 0; background: var(--surface); }
.product__gallery figure:first-child { grid-column: 1 / -1; }
.product__info { position: sticky; top: 104px; align-self: start; }
.product__info h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.product__price { font-size: 1.25rem; margin-bottom: 24px; }
.product__options { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.option-values legend { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.option-values label { cursor: pointer; }
.option-values input { position: absolute; opacity: 0; }
.option-values span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); font-size: .875rem; }
.option-values input:checked + span { border-color: var(--text); }
.option-values input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }
.stock { font-size: .875rem; color: var(--muted); margin: 12px 0; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.accordion summary::after { content: "+"; }
.accordion details[open] summary::after { content: "–"; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion .prose { padding-bottom: 18px; font-size: 1rem; }
.collection-header { text-align: center; padding: 56px 24px 40px; }
.collection-header .prose { max-width: 640px; margin: 0 auto; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; margin-bottom: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .875rem; }
.toolbar select { padding: 6px 8px; border: 1px solid var(--line); font: inherit; background: var(--bg); color: var(--text); }

@media (max-width: 960px) {
    .site-header__inner { flex-wrap: wrap; gap: 12px 24px; padding: 12px 24px; }
    .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
    .split, .product { grid-template-columns: 1fr; gap: 32px; }
    .split--image-right .split__media { order: 0; }
    .card-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery--3, .gallery--4 { grid-template-columns: repeat(2, 1fr); }
    .product__info { position: static; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    .card-grid, .collection-grid { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .product__gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Catalogue listing (commerce module) */
.product-grid--2 { grid-template-columns: repeat(2, 1fr); }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.section__more { margin-top: 40px; }
.catalog { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
.catalog:has(.catalog__filters) { grid-template-columns: 240px 1fr; }
.catalog__filters { display: flex; flex-direction: column; gap: 24px; font-size: .9375rem; }
.filter { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.filter legend, .filter summary { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }
.filter__option { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.filter__option input { width: 16px; height: 16px; accent-color: var(--accent); }
.filter__price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter__price input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); font: inherit; background: var(--bg); color: var(--text); }
.toolbar label { display: flex; align-items: center; gap: 8px; }
.option-values label.is-unavailable span { color: var(--muted); text-decoration: line-through; }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; }
@media (max-width: 960px) {
    .catalog:has(.catalog__filters) { grid-template-columns: 1fr; }
    .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
.collection-card:not(:has(img)) span { color: var(--text); text-shadow: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.newsletter__form { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.newsletter__row { display: flex; gap: 8px; width: 100%; max-width: 480px; }
.newsletter__row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.newsletter__consent { font-size: .8125rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; text-align: left; max-width: 480px; }
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.testimonial { margin: 0; padding: 32px; background: var(--surface); }
.testimonial blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: .875rem; }
.testimonial figcaption span { color: var(--muted); }
@media (max-width: 600px) { .newsletter__row { flex-direction: column; } }

/* ==========================================================================
   Atelier — on top of the Montra base styles above.
   Colours, fonts and sizes come from the theme settings (CSS variables).
   ========================================================================== */

:root { --font-size: 16px; --section-spacing: 88px; --logo-width: 140px; --sale: #9c3d26; --header-height: 76px; }
body { font-family: var(--sans); font-size: var(--font-size); line-height: 1.65; }
h1, h2, h3, .site-logo, .product-card__title { font-family: var(--serif); }
.headings-upper h1, .headings-upper h2, .headings-upper .section__title { text-transform: uppercase; letter-spacing: .08em; font-size: calc(clamp(1.4rem, 2.6vw, 2.25rem) * var(--heading-factor, 1)); }
::selection { background: var(--accent); color: var(--accent-text); }
.section { padding: var(--section-spacing) 0; }
.section__title { margin-bottom: calc(var(--section-spacing) * .45); }
.site-footer { margin-top: var(--section-spacing); }

/* Buttons */
.btn { border-radius: var(--radius); transition: background .2s ease, color .2s ease; }
.buttons-rounded .btn { border-radius: 10px; }
.buttons-pill .btn { border-radius: 999px; }
.btn:focus-visible { outline-offset: 4px; }

/* Announcement bar */
.announcement { background: var(--accent); color: var(--accent-text); text-align: center; font-size: .8125rem; letter-spacing: .06em; }
.announcement p, .announcement a { display: block; margin: 0; padding: 9px 16px; color: inherit; text-decoration: none; }
.announcement a:hover { text-decoration: underline; }

/* Header */
.site-header { position: relative; background: var(--bg); }
.has-sticky-header .site-header { position: sticky; top: 0; }
.site-header__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; min-height: var(--header-height); }
.site-logo { font-size: 1.6rem; line-height: 1; }
.site-logo__image { width: var(--logo-width); height: auto; }
.site-nav ul { gap: 32px; }
.site-nav > ul > li > a { display: inline-block; padding: 26px 0; }
.site-nav li ul { display: flex; }
.site-nav__panel { position: absolute; top: 100%; left: -24px; z-index: 30; min-width: 240px; padding: 16px 24px; background: var(--bg); border: 1px solid var(--line);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.site-nav li:hover > .site-nav__panel, .site-nav li:focus-within > .site-nav__panel { opacity: 1; visibility: visible; transform: none; }
.site-nav .site-nav__panel ul { position: static; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; }
.site-nav__panel a { display: block; padding: 6px 0; text-transform: none; letter-spacing: 0; font-size: .9375rem; }
.site-nav .has-mega { position: static; }
.site-nav .has-mega > .site-nav__panel { left: 0; right: 0; padding: 40px max(24px, calc((100vw - var(--container)) / 2 + 24px)); }
/* Mega menu: links in columns; with featured cards, one column of links on the left and the cards on the right. */
.site-nav__mega { display: block; }
.site-nav .has-mega .site-nav__links { flex-direction: row; flex-wrap: wrap; gap: 24px 56px; }
.site-nav .site-nav__links > li > a { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 0; }
.site-nav .has-mega .site-nav__links ul { padding: 2px 0 8px 18px; }
.site-nav .has-mega .site-nav__links ul a { color: var(--muted); padding: 5px 0; font-size: .875rem; }
.site-nav .has-mega .site-nav__links ul a:hover { color: var(--text); }
.site-nav__mega--cards { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 48px; align-items: start; }
.site-nav .site-nav__mega--cards .site-nav__links { flex-direction: column; flex-wrap: nowrap; gap: 0; }
.site-nav .site-nav__mega--cards .site-nav__group { margin-top: 12px; }
.site-nav .site-nav__panel .site-nav__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* One or two cards keep a card's size instead of stretching across the panel. */
.site-nav .site-nav__panel .site-nav__cards--1 { grid-template-columns: minmax(0, 300px); justify-content: end; }
.site-nav .site-nav__panel .site-nav__cards--2 { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: end; }
.site-nav .site-nav__panel .site-nav__cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-nav__mega--cards:not(:has(.site-nav__links)) { grid-template-columns: 1fr; }
.site-nav .nav-card { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; padding: 0; border-radius: var(--radius); background: var(--surface); color: #fff; text-decoration: none; }
.site-nav .nav-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.site-nav .nav-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, 0) 65%); }
.site-nav .nav-card__text { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 4px; }
/* White over the gradient whatever colours the theme gives to links. */
.site-nav .nav-card .nav-card__caption, .site-nav .nav-card .nav-card__label { color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.site-nav .nav-card__caption { font-size: .9375rem; letter-spacing: .01em; text-transform: none; opacity: .92; }
.site-nav .nav-card__label { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; }
.site-nav .nav-card:hover { text-decoration: none; }
.site-nav .nav-card:hover .nav-card__image, .site-nav .nav-card:focus-visible .nav-card__image { transform: scale(1.04); }
.site-nav .nav-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .nav-card__image { transition: none; } }
.site-header__tools { display: flex; align-items: center; gap: 20px; justify-self: end; }
.site-languages { margin-left: 0; }

.header-centered .site-header__inner { grid-template-columns: 1fr auto 1fr; grid-template-areas: "toggle logo tools" "nav nav nav"; row-gap: 0; padding-top: 18px; }
.header-centered .site-logo { grid-area: logo; justify-self: center; }
.header-centered .site-nav { grid-area: nav; justify-self: center; }
.header-centered .site-header__tools { grid-area: tools; }
.header-centered .mobile-nav { grid-area: toggle; }

/* Mobile navigation (no JavaScript: <details>) */
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-left: -8px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.mobile-nav[open] .burger { background: transparent; }
.mobile-nav[open] .burger::before { top: 0; transform: rotate(45deg); }
.mobile-nav[open] .burger::after { top: 0; transform: rotate(-45deg); }
.mobile-nav__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; max-height: calc(100vh - var(--header-height)); overflow-y: auto;
    padding: 16px 24px 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mobile-nav__panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__panel > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav__panel > ul > li > a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }
.mobile-nav__panel ul ul { padding: 0 0 12px 12px; }
.mobile-nav__panel ul ul a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); }
.mobile-nav__panel .is-deep a { padding-left: 14px; font-size: .9375rem; }
.mobile-nav__languages { display: flex; gap: 14px; margin-top: 20px; font-size: .8125rem; letter-spacing: .1em; }
.mobile-nav__languages a { text-decoration: none; color: var(--muted); }
.mobile-nav__languages a[aria-current] { color: var(--text); text-decoration: underline; }

/* Footer */
.site-footer { padding: 64px 0 32px; background: var(--surface); border-top: 0; color: var(--text); }
.site-footer__grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 40px; }
.site-footer__logo { font-family: var(--serif); font-size: 1.5rem; display: inline-block; margin-bottom: 12px; }
.site-footer__brand p { color: var(--muted); max-width: 340px; }
.site-footer__column h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; color: var(--muted); }
.site-footer__column ul, .site-footer .social { display: flex; flex-direction: column; gap: 10px; }
.site-footer .social { flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__languages { display: flex; gap: 12px; }
.site-footer__languages a[aria-current] { color: var(--text); }
.site-footer__logo-image { display: block; width: var(--footer-logo-width, 140px); height: auto; }
.galeria-footer__signature .site-footer__logo-image { width: var(--footer-logo-width, 140px); }

/* Footer colours (Personalizar › Tema › Rodapé). The attribute is set only when a colour is chosen, so it wins
   over theme and studio CSS; inside, --text, --muted and --line follow the footer so every rule adapts. */
:root { --footer-theme-text: var(--text); --footer-theme-muted: var(--muted); }
footer[data-footer-colors] {
    --text: var(--footer-text, var(--footer-theme-text));
    --muted: var(--footer-muted, var(--footer-text, var(--footer-theme-muted)));
    --line: color-mix(in srgb, var(--text) 18%, transparent);
    background: var(--footer-bg, var(--surface));
    color: var(--text);
}
footer[data-footer-colors] a { color: inherit; }

/* Footer layout "Centrado" */
.site-footer--centered { text-align: center; }
.site-footer--centered .site-footer__head { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.site-footer--centered .site-footer__head p { color: var(--muted); max-width: 520px; margin: 0; }
.site-footer--centered .site-footer__logo-image { margin: 0 auto; }
.site-footer--centered .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(160px, 220px)); justify-content: center; }
.site-footer--centered .site-footer__column ul { align-items: center; }
.site-footer--centered .social { justify-content: center; margin-top: 40px; }
.site-footer--centered .site-footer__bottom { flex-direction: column; align-items: center; }

/* Footer layout "Compacto" */
.site-footer--minimal { padding: 40px 0 24px; }
.site-footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer--minimal .site-footer__logo { margin-bottom: 0; }
.site-footer__links ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer--minimal .social { margin-top: 0; }
.site-footer__note p { color: var(--muted); margin: 20px 0 0; max-width: 640px; }
.site-footer--minimal .site-footer__bottom { margin-top: 24px; }

/* Footer extras: newsletter band, company contacts, payment logos. */
.site-footer__newsletter { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid var(--line); text-align: left; }
.site-footer__newsletter-intro { flex: 1 1 280px; }
.site-footer__newsletter h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 0 0 6px; color: var(--text); }
.site-footer__newsletter-intro p { color: var(--muted); margin: 0; max-width: 420px; }
.site-footer__newsletter .newsletter__form { flex: 1 1 360px; align-items: stretch; max-width: 480px; }
.site-footer__newsletter .newsletter__row input { background: var(--bg); }
.site-footer__newsletter .notice { margin: 0; }
.site-footer__contacts address { font-style: normal; line-height: 1.9; }
.site-footer__payments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px !important; flex-direction: row !important; }
.site-footer__payments img { display: block; width: 40px; height: 25px; }
.site-footer--centered .site-footer__payments { justify-content: center; }
.site-footer--minimal .site-footer__note .site-footer__column h2 { margin-bottom: 8px; }

/* Product cards and pages */
.cards-square .product-card__image { aspect-ratio: 1; }
.cards-landscape .product-card__image { aspect-ratio: 4 / 3; }
.product-card__image { border-radius: var(--radius); }
.product-card__badge { background: var(--bg); color: var(--text); }
.product-card .price del, .product__price del { color: var(--muted); }
.product-card .price span + del, .product__price [data-price-compare]:not([hidden]) { color: var(--sale); }
.product__gallery figure { border-radius: var(--radius); overflow: hidden; }
.product--gallery-stack .product__gallery { grid-template-columns: 1fr; }
.product__info .eyebrow { margin-bottom: 10px; }
.option-values span { border-radius: var(--radius); min-width: 48px; text-align: center; }
.option-values input:checked + span { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.collection-card { border-radius: var(--radius); }
.collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.collection-card span { z-index: 1; }

/* Hero */
.hero__content h1 { font-size: calc(clamp(2.4rem, 5.4vw, 4.5rem) * var(--heading-factor, 1)); letter-spacing: -.02em; }
.hero .btn--light { background: var(--bg); border-color: var(--bg); color: var(--text); }

/* Features (theme section) */
.features__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.feature { text-align: center; }
.feature__icon { width: 36px; height: 36px; margin: 0 auto 16px; color: var(--accent); }
.feature h3, .feature__title { font-size: 1.125rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .9375rem; }
.features--boxed .features__list { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.features--boxed .feature { padding: 40px 24px; }
.features--boxed .feature + .feature { border-left: 1px solid var(--line); }

/* Testimonials & newsletter */
.testimonial { border-radius: var(--radius); }
.newsletter { background: var(--surface); }
.newsletter__row input { border-radius: var(--radius); background: var(--bg); }

@media (max-width: 960px) {
    :root { --header-height: 64px; }
    .site-header__inner, .header-centered .site-header__inner { grid-template-columns: 1fr auto 1fr; grid-template-areas: "toggle logo tools"; padding: 0 16px; padding-top: 0; flex-wrap: nowrap; }
    .mobile-nav { display: block; grid-area: toggle; }
    .site-nav { display: none; }
    .site-logo { grid-area: logo; justify-self: center; }
    .site-header__tools { grid-area: tools; }
    .site-header__tools .site-languages { display: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
    .features--boxed .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
    :root { --section-spacing: 56px; }
    .site-footer__grid { grid-template-columns: 1fr; }
}
.site-header.is-stuck { box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .35); }
.site-footer__bottom { border-top: 0; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 48px) 1px no-repeat; }

/* Colour schemes of the sections (field "Esquema de cores"). Empty scheme colours are
   derived from the base ones, so every palette gets usable schemes: 2 soft (surface),
   3 dark (inverted), 4 accent. The base copies avoid cycles when --bg/--text are redefined. */
:root { --base-bg: var(--bg); --base-text: var(--text); --base-surface: var(--surface); --base-accent: var(--accent); --base-accent-text: var(--accent-text); }
.color-scheme-2 { --bg: var(--scheme-2-bg, var(--base-surface)); --text: var(--scheme-2-text, var(--base-text)); --accent: var(--scheme-2-accent, var(--base-accent)); --accent-text: var(--scheme-2-accent-text, var(--base-accent-text)); }
.color-scheme-3 { --bg: var(--scheme-3-bg, var(--base-text)); --text: var(--scheme-3-text, var(--base-bg)); --accent: var(--scheme-3-accent, var(--base-bg)); --accent-text: var(--scheme-3-accent-text, var(--base-text)); }
.color-scheme-4 { --bg: var(--scheme-4-bg, var(--base-accent)); --text: var(--scheme-4-text, var(--base-accent-text)); --accent: var(--scheme-4-accent, var(--base-accent-text)); --accent-text: var(--scheme-4-accent-text, var(--base-accent)); }
.color-scheme-2, .color-scheme-3, .color-scheme-4 {
    --muted: color-mix(in srgb, var(--text) 72%, var(--bg));
    --line: color-mix(in srgb, var(--text) 16%, var(--bg));
    --surface: color-mix(in srgb, var(--text) 7%, var(--bg));
}
.color-scheme { background: var(--bg); color: var(--text); }
/* The scheme decides the background of the section, including sections that normally sit on the surface colour. */
.color-scheme > section, .color-scheme > .section { background-color: transparent; color: inherit; }
.color-scheme h1, .color-scheme h2, .color-scheme h3, .color-scheme a:not(.btn) { color: inherit; }

/* Heading sizes: font sizes of h1/h2 are multiplied by --heading-factor = theme scale
   (Typography › Heading scale) × section size (field "Tamanho do título"). */
:root { --heading-factor: calc(var(--heading-scale, 100) / 100); }
.heading-size-sm { --heading-factor: calc(var(--heading-scale, 100) / 100 * .8); }
.heading-size-md { --heading-factor: calc(var(--heading-scale, 100) / 100); }
.heading-size-lg { --heading-factor: calc(var(--heading-scale, 100) / 100 * 1.3); }
.heading-size-xl { --heading-factor: calc(var(--heading-scale, 100) / 100 * 1.65); }
