/* ==========================================================================
   Base: fontes locais (OFL), reset, tokens e componentes partilhados
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/playfair-display-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/playfair-display-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/playfair-display-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/libre-baskerville-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/libre-baskerville-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/lato-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/lato-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/lato-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/jost-latin-500-normal.woff2) format("woff2"); }

:root {
    --bg: #ffffff;
    --surface: #f6f6f4;
    --text: #1f1f1f;
    --muted: #767676;
    --line: #e6e6e6;
    --btn-bg: #1f1f1f;
    --btn-text: #ffffff;
    --btn-hover: #444444;
    --accent: #1f1f1f;
    --overlay: rgba(0, 0, 0, .35);
    --danger: #b3261e;
    --success: #2e6b3f;

    --font-heading: "Cormorant Garamond", Georgia, serif;
    --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --heading-weight: 300;
    --heading-case: uppercase;
    --heading-tracking: .12em;
    --ui-tracking: .14em;

    --radius: 0px;
    --radius-small: 0px;
    --gap: 6px;
    --shadow: 0 10px 40px rgba(0, 0, 0, .12);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 48px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* O sprite não fixa o fill, para que .is-fav/.is-active possam preencher o ícone. */
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; fill: none; }
.icon--inline { width: 1em; height: 1em; vertical-align: -.12em; }

/* Logótipo (app/Views/site/_logo.php): a imagem é só a forma; a cor vem do texto. */
.brandmark { display: block; height: auto; background-color: currentColor; -webkit-mask: var(--brand) center / contain no-repeat; mask: var(--brand) center / contain no-repeat; }

.display { font-family: var(--font-heading); font-weight: var(--heading-weight); text-transform: var(--heading-case); letter-spacing: var(--heading-tracking); line-height: 1.15; }
.eyebrow { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Botões ------------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 46px; padding: 0 28px; border: 1px solid var(--btn-bg); border-radius: var(--radius);
    background: transparent; color: var(--text); text-decoration: none; white-space: nowrap;
    font-size: 11px; font-weight: 500; letter-spacing: var(--ui-tracking); text-transform: uppercase;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { width: 16px; height: 16px; }
.btn:hover { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--btn-bg); }
.btn--small { min-height: 36px; padding: 0 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .iconbtn:focus-visible, .field__input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.iconbtn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: inherit; text-decoration: none;
    transition: background-color .2s var(--ease), color .2s;
}
.iconbtn:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.iconbtn[aria-pressed="true"] .icon, .iconbtn.is-active .icon { fill: currentColor; }

.linkbtn { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--text); }

.badge {
    position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-text); font-size: 10px; font-weight: 600; line-height: 17px; text-align: center; letter-spacing: 0;
}

/* Formulários --------------------------------------------------------------- */
.field { display: block; margin-bottom: 18px; text-align: left; }
.field__label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field__label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field__input {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-small);
    background: var(--bg); color: var(--text); font-size: 15px; transition: border-color .2s;
}
.field__input:focus { border-color: var(--text); outline: none; }
textarea.field__input { min-height: 90px; resize: vertical; }
.field__input--code { text-align: center; letter-spacing: .4em; text-transform: uppercase; font-size: 18px; }
.field__error { display: block; margin-top: 6px; color: var(--danger); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 13px; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--btn-bg); }

.notice { padding: 12px 16px; border-left: 2px solid var(--text); background: var(--surface); font-size: 13px; margin-bottom: 20px; text-align: left; }
.notice--error { border-color: var(--danger); }
.notice--success { border-color: var(--success); }

/* Quantidade ------------------------------------------------------------ */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.stepper__btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; background: none; color: var(--text); }
.stepper__btn:hover { background: var(--surface); }
.stepper__btn:disabled { opacity: .3; cursor: default; background: none; }
.stepper__btn .icon { width: 14px; height: 14px; }
.stepper__value { min-width: 26px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.stepper--small .stepper__btn { width: 28px; height: 28px; }

/* Totais --------------------------------------------------------------- */
.totals { margin: 0; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; font-size: 16px !important; }
.totals__grand dt { color: var(--text); }
.totals__grand dd { font-weight: 600; }
.totals__vat { font-size: 12px !important; }
