/* ============ Base ============ */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --soft: #f2ece3;
  --ink: #1c1917;
  --muted: #6f6a64;
  --line: #e7dfd2;
  --gold: #c9a14f;
  --gold-dark: #9b7a35;
  --gold-light: #e8c890;
  --dark: #0b0907;
  --ok: #2f7a4f;
  --err: #b3362c;
  --radius: 16px;
  --shadow: 0 14px 34px -16px rgba(28, 25, 23, .25);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --brand: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600; color: var(--gold); margin-bottom: 1rem; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ============ Botões ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: .5em 1.05em; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--err); border-color: var(--err); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--soft); }

/* ============ Cabeçalho ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 9, 7, .94); color: #f4ede2; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: rgba(201,161,79,.25); box-shadow: 0 6px 20px -18px rgba(0,0,0,.4); }
.nav-wrap { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand { gap: 12px; }
.brand img { height: 36px; width: auto; object-fit: contain; }
.brand img.brand-jb { height: 58px; filter: drop-shadow(0 0 10px rgba(201,161,79,.25)); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-family: var(--brand); font-weight: 500; font-size: 1.35rem; letter-spacing: .2em; color: var(--gold-light); }
.brand-name small { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 5px; }
.brand-text { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--gold-light); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; padding: .5em .9em; border-radius: 999px; color: #bdb2a3; transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active:not(.nav-cta) { background: rgba(255,255,255,.08); }
.nav a.nav-cta { color: var(--gold-light); border: 1px solid var(--gold); margin-left: 6px; }
.nav a.nav-cta:hover, .nav a.nav-cta.active { background: var(--gold); color: var(--dark); }
.site-header .icon-btn { color: #f4ede2; }
.site-header .icon-btn:hover, .site-header .icon-btn.active { background: rgba(255,255,255,.08); }
.badge { color: var(--dark) !important; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .nav-wrap { gap: 8px; height: 64px; }
  .brand img { height: 30px; }
  .brand img.brand-jb { height: 50px; }
  .brand-name strong { font-size: 1.12rem; }
  .brand-name small { font-size: .5rem; letter-spacing: .26em; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px 16px 18px; background: var(--dark); border-bottom: 1px solid rgba(201,161,79,.25); box-shadow: 0 18px 30px -24px rgba(0,0,0,.5); display: none; }
  .site-header.open .nav { display: flex; }
  .nav a { padding: .8em 1em; font-size: 1rem; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #f4ede2; padding: clamp(80px, 13vw, 150px) 0 clamp(80px, 11vw, 130px); }
.hero::before { content: ""; position: absolute; inset: -30%; background:
  radial-gradient(35% 45% at 78% 38%, rgba(201,161,79,.55), transparent 70%),
  radial-gradient(28% 35% at 10% 85%, rgba(201,161,79,.22), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-logo { justify-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--gold-light); filter: drop-shadow(0 0 30px rgba(201,161,79,.3)); animation: glow 6s ease-in-out infinite alternate; }
.hero-logo img { width: clamp(70px, 9vw, 120px); height: auto; margin-bottom: 22px; }
.hero-logo .wm { font-family: var(--brand); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: .16em; line-height: 1; margin-right: -.16em; }
.hero-logo .wm-sub { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: clamp(.68rem, 1.1vw, .9rem); letter-spacing: .38em; text-transform: uppercase; font-weight: 500; }
.hero-logo .wm-sub::before, .hero-logo .wm-sub::after { content: ""; width: 28px; height: 1px; background: currentColor; }
@keyframes glow { to { filter: drop-shadow(0 0 50px rgba(201,161,79,.45)); transform: translateY(-6px); } }
.hero { min-height: min(86vh, 820px); display: flex; align-items: center; }
.hero .container { display: block; }
.hero-copy { max-width: 600px; text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.hero-art { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; aspect-ratio: 2 / 3; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 14%, #000 38%); mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 14%, #000 38%); }
.hero-art-fade { position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.hero::before { z-index: 0; }
@media (max-width: 860px) {
  .hero { min-height: 0; display: block; padding-top: 112vw; padding-bottom: 64px; }
  .hero-art { left: 0; width: 100%; bottom: auto; height: 150vw; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; }
  .hero-art-fade { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 78%); mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 78%); }
  .hero-art img { position: static; width: 100%; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
.hero-copy { max-width: 680px; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.hero-copy.ready { opacity: 1; transform: none; }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.4rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { color: #d3cabd; font-size: clamp(1rem, 2vw, 1.15rem); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero { background: var(--dark); color: #f4ede2; padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 72px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(30% 45% at 85% 30%, rgba(201,161,79,.4), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { margin: 0; font-weight: 500; }
.page-hero p { color: #d3cabd; margin: .8rem 0 0; max-width: 56ch; }

/* ============ Secções ============ */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.feature-num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.feature h3 { font-size: 1.5rem; margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.cta-band { background: var(--dark); color: #f4ede2; border-radius: 24px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -50%; background: radial-gradient(30% 40% at 90% 50%, rgba(201,161,79,.45), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: #d3cabd; margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ============ Produtos ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: var(--soft); cursor: pointer; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 4rem; color: var(--gold); background: linear-gradient(135deg, #f4eee5, #e9dfcf); }
.tag { position: absolute; top: 10px; left: 10px; background: var(--dark); color: var(--gold-light); font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; padding: .35em .75em; border-radius: 999px; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-dark); font-weight: 600; }
.card-title { font-size: 1.3rem; margin: 0; }
.card-title button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; }
.card-ref { font-size: .78rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 600; font-size: 1.05rem; }
@media (max-width: 560px) {
  .card-body { padding: 12px; }
  .card-title { font-size: 1.1rem; }
  .card-foot .btn { width: 100%; }
}
.skeleton .card-media, .skeleton .card-body span { background: linear-gradient(90deg, var(--soft), #faf6ef, var(--soft)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton .card-body span { display: block; height: 12px; border-radius: 6px; width: 70%; }
.skeleton .card-body span + span { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* Loja: filtros */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .search { flex: 1 1 260px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .45em 1em; font-size: .85rem; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-count { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }

/* ============ Formulários ============ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: .85rem; font-weight: 600; }
.input, .field input, .field textarea, .field select, .toolbar input, .toolbar select {
  width: 100%; padding: .8em 1em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.toolbar select { width: auto; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .toolbar input:focus, .toolbar select:focus, .input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,79,.18); }
.hint { font-size: .78rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 18px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-msg { padding: .8em 1em; border-radius: 12px; font-size: .9rem; margin-bottom: 14px; }
.form-msg.error { background: #fbeceb; color: var(--err); }
.form-msg.ok { background: #e9f4ee; color: var(--ok); }

/* ============ Duas colunas ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { font-size: 1.05rem; color: #3a3530; }
.prose p:first-child::first-letter { font-family: var(--serif); font-size: 3.6em; float: left; line-height: .8; padding: 6px 10px 0 0; color: var(--gold); }
.about-img { width: 100%; max-width: 440px; justify-self: center; border-radius: 22px; overflow: hidden; aspect-ratio: 2/3; background: var(--soft); box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img.ph-box { display: grid; place-items: center; background: linear-gradient(135deg, #2a221b, var(--dark)); }
.about-img.ph-box img { width: 40%; height: auto; object-fit: contain; }

.perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Contactos */
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, transform .2s; }
a.contact-item:hover { border-color: var(--gold); transform: translateX(3px); }
.contact-item .ci-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--soft); color: var(--gold-dark); display: grid; place-items: center; flex-shrink: 0; }
.contact-item svg { width: 22px; height: 22px; }
.contact-item small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-item strong { font-weight: 600; word-break: break-word; }

/* ============ Carrinho ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-item .thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .thumb .ph { font-size: 2rem; }
.cart-item h3 { font-size: 1.2rem; margin: 0; }
.cart-item .line-total { font-weight: 600; text-align: right; }
.cart-item .ci-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; }
.qty button:hover { background: var(--soft); }
.qty input { width: 38px; text-align: center; border: 0; font: inherit; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .82rem; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--err); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; position: sticky; top: 96px; }
.summary h2 { font-size: 1.8rem; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.2rem; font-weight: 600; }
.notice { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: .85rem; color: var(--muted); margin: 16px 0; }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item .thumb { width: 64px; height: 64px; }
  .cart-item .line-total { grid-column: 2; text-align: left; }
}

/* ============ Modal produto ============ */
.modal { border: 0; padding: 0; border-radius: 22px; width: min(860px, 100% - 24px); max-height: calc(100% - 24px); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(21,17,14,.6); backdrop-filter: blur(3px); }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.85); }
.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm-media { background: var(--soft); aspect-ratio: 1; }
.pm-media img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 34px 30px; display: flex; flex-direction: column; gap: 4px; }
.pm-info h2 { margin: 4px 0 2px; }
.pm-price { font-size: 1.5rem; font-weight: 600; margin: 10px 0 12px; }
.pm-desc { color: var(--muted); font-size: .95rem; }
.pm-buy { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
@media (max-width: 700px) {
  .pm { grid-template-columns: 1fr; }
  .pm-media { aspect-ratio: 4/3; }
  .pm-info { padding: 22px; }
}

/* ============ Rodapé ============ */
.site-footer { background: var(--dark); color: #d3cabd; padding: 60px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 14px; font-weight: 600; }
.footer-grid a { display: block; text-decoration: none; padding: 3px 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid .muted { color: #958b7f; font-size: .9rem; }
.footer-brand { display: flex; align-items: center; gap: 14px; font-family: var(--brand); font-size: 1.5rem; letter-spacing: .18em; color: var(--gold-light); margin-bottom: 10px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.footer-brand small { font-size: .55em; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.footer-slogan { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-light); }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); padding: 0; }
.social a:hover { border-color: var(--gold); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0 28px; font-size: .8rem; color: #8b8176; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer-bottom a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { color: var(--gold-light); text-decoration: underline; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 28px; height: 28px; }

/* ============ Avisos ============ */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(420px, 100% - 32px); }
.toast { background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow); animation: toastIn .25s ease; transition: opacity .3s, transform .3s; }
.toast.error { background: var(--err); }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin-body { background: #f5f2ed; min-height: 100vh; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--dark); }
.login .form-card { width: min(400px, 100%); }
.login-logo { display: block; width: 64px; margin: 0 auto 18px; }
.login h1 { font-size: 2.2rem; }
.admin-top { background: var(--dark); color: #f4ede2; }
.admin-top .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.admin-top .title { font-family: var(--serif); font-size: 1.5rem; }
.admin-top .who { margin-left: auto; font-size: .82rem; color: #b5aa9c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-top a, .admin-top button { color: #f4ede2; }
.tabs { display: flex; gap: 6px; padding: 18px 0 0; overflow-x: auto; }
.tab { border: 1px solid var(--line); background: var(--surface); padding: .6em 1.2em; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel { padding: 24px 0 60px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 2rem; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.box h3 { font-size: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.plist { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 56px 1fr auto auto auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.prow.off { opacity: .55; }
.prow .thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.prow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prow .thumb .ph { font-size: 1.5rem; }
.prow .pname { font-weight: 600; }
.prow .pmeta { font-size: .8rem; color: var(--muted); }
.prow .pprice { font-weight: 600; white-space: nowrap; }
.prow .pact { display: flex; gap: 4px; align-items: center; }
.toggle { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .3em .8em; font-size: .75rem; cursor: pointer; white-space: nowrap; }
.toggle.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.toggle.on.green { background: var(--ok); border-color: var(--ok); }
@media (max-width: 1100px) {
  .prow { grid-template-columns: 56px 1fr auto; }
  .prow .pstock { grid-column: 2 / -1; justify-content: flex-start; }
  .prow .pact { grid-column: 2 / -1; }
}
@media (max-width: 700px) {
  .prow { grid-template-columns: 56px 1fr; }
  .prow .pprice { grid-column: 2; }
  .prow .pstock { grid-column: 1 / -1; }
  .prow .pact { grid-column: 1 / -1; flex-wrap: wrap; }
}

.img-picker { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.img-picker .preview { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: .75rem; text-align: center; }
.img-picker .preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-dialog { width: min(640px, 100% - 24px); }
.admin-dialog form { padding: 28px; }
.admin-dialog h2 { font-size: 1.9rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; position: sticky; bottom: -28px; background: var(--surface); padding: 14px 0 0; }
.switches { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.switches label { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.switches input { accent-color: var(--gold); width: 17px; height: 17px; }

.months { display: grid; gap: 8px; }
.month { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); flex-wrap: wrap; }
.month strong { text-transform: capitalize; }
.month .count { color: var(--muted); font-size: .85rem; margin-right: auto; }
.table-wrap { overflow-x: auto; }
table.leads { width: 100%; border-collapse: collapse; font-size: .9rem; }
.leads th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.leads td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.leads td a { color: var(--gold-dark); }
.leads tr.done td { color: var(--muted); }

/* ============ Stock ============ */
.stock-note { display: inline-block; font-size: .74rem; font-weight: 600; margin-top: 2px; }
.stock-note.low { color: #b06a1e; }
.stock-note.out { color: var(--err); }
.stock-note.order { color: var(--gold-dark); }
.tag.tag-out { background: var(--err); color: #fff; }
.tag.tag-order { background: var(--gold); color: var(--dark); }
.card.sold-out .card-media img, .card.sold-out .card-media .ph { filter: grayscale(.85); opacity: .55; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }

.stock-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color .2s; }
.stat:hover { border-color: var(--gold); }
.stat strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.stat span { font-size: .78rem; color: var(--muted); }
.stat.warn strong { color: #b06a1e; }
.stat.bad strong { color: var(--err); }

.pstock { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-select { border: 1px solid var(--line); border-radius: 999px; padding: .35em .7em; font: inherit; font-size: .8rem; font-weight: 600; background: var(--surface); cursor: pointer; }
.st-select.st-disponivel { color: var(--ok); border-color: #b9dcc7; background: #eef7f1; }
.st-select.st-esgotado { color: var(--err); border-color: #efc4c0; background: #fbeceb; }
.st-select.st-encomenda { color: var(--gold-dark); border-color: #e6d3a8; background: #faf3e3; }
.qty-sm button { width: 28px; height: 30px; font-size: 1rem; }
.qty-sm input { width: 44px; font-weight: 600; }
.st-info { font-size: .72rem; color: var(--muted); width: 120px; line-height: 1.3; }
.st-select { width: 150px; }
.st-info.warn { color: #b06a1e; font-weight: 600; }
.st-info.bad { color: var(--err); font-weight: 600; }
.stock-box { background: var(--bg); padding: 16px 16px 12px; margin-bottom: 16px; }

/* ============ Envios ============ */
.topbar { background: var(--gold); color: var(--dark); text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: 7px 16px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 26px; }
.ship-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.ship-card h3 { font-size: 1.45rem; margin-bottom: .2em; }
.ship-card p { font-size: .88rem; margin-bottom: 14px; }
.ship-price { font-size: 1.6rem; font-weight: 600; }
.ship-free { display: inline-block; margin-top: 8px; background: #eef7f1; color: var(--ok); font-size: .8rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; }
.summary .free { color: var(--ok); }
.free-ship { font-size: .84rem; color: var(--muted); margin: 4px 0 6px; }
.free-ship strong { color: var(--ink); }
.free-ship .bar { height: 6px; background: var(--soft); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.free-ship .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: inherit; }
.free-ship.ok { color: var(--ok); font-weight: 600; }

/* ============ Categorias ============ */
.chips:has(+ .subchips:not([hidden])) { margin-bottom: 10px; }
.subchips { padding-left: 14px; border-left: 2px solid var(--gold); }
.subchips .chip { font-size: .8rem; padding: .35em .9em; background: var(--bg); }
.subchips .chip.active { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* admin: categorias */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 220px; width: auto; }
.add-cat .label { display: block; margin-bottom: 8px; }
.cat-box { padding: 14px 16px; }
.cat-row { display: flex; align-items: center; gap: 6px; }
.cat-row .cat-name { flex: 1; font-weight: 600; padding: .55em .9em; }
.cat-row.sub .cat-name { font-weight: 400; }
.cat-row .icon-btn { width: 36px; height: 36px; font-size: 1rem; }
.cat-row .icon-btn:disabled { opacity: .3; cursor: default; }
.cat-row .icon-btn svg { width: 18px; height: 18px; }
.cat-count { font-size: .75rem; color: var(--muted); white-space: nowrap; min-width: 74px; text-align: right; margin-right: 4px; }
.cat-subs { margin: 10px 0 0 22px; padding-left: 14px; border-left: 2px solid var(--line); display: grid; gap: 6px; }
.cat-subs .add-sub { margin-top: 4px; }
.cat-subs .add-sub .input { padding: .5em .9em; font-size: .88rem; }
@media (max-width: 600px) { .cat-count { display: none; } .cat-subs { margin-left: 6px; } }
.cat-picker { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0 0 16px; }
.cat-picker legend { padding: 0 6px; }
.cat-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; margin-top: 10px; }
.cat-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; padding: 2px 0; }
.cat-check input { accent-color: var(--gold); width: 16px; height: 16px; }
.cat-check.top { font-weight: 600; }
.cat-group-subs { margin: 4px 0 0 8px; padding-left: 12px; border-left: 2px solid var(--line); }
.toolbar #p-cat { max-width: 230px; }

/* admin: descontos */
.code-input { text-transform: uppercase; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.coupon-list { display: grid; gap: 12px; }
.coupon { margin: 0; padding: 16px 18px; }
.coupon.dim { opacity: .7; }
.coupon-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.coupon-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; background: var(--soft); border: 1px dashed var(--gold); border-radius: 8px; padding: .3em .7em; cursor: copy; }
.coupon-off { font-size: 1.25rem; font-weight: 700; color: var(--gold-dark); }
.badge-st { font-size: .72rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; }
.badge-st.ok { background: #eef7f1; color: var(--ok); }
.badge-st.bad { background: #fbeceb; color: var(--err); }
.badge-st.off { background: var(--soft); color: var(--muted); }
.coupon-rules { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0; font-size: .84rem; color: var(--muted); }
.coupon-rules span::before { content: "• "; color: var(--gold); }
.coupon-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.link-btn.plain { text-decoration: none; color: var(--ink); font-weight: 600; }
.link-btn.plain:hover { color: var(--gold-dark); }
.coupon-uses { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }

/* carrinho: desconto */
.coupon-box { padding: 8px 0 10px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; padding: .6em .9em; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; background: var(--surface); }
.coupon-form input::placeholder { text-transform: none; letter-spacing: 0; }
.coupon-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,79,.18); }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #eef7f1; color: var(--ok); border-radius: 10px; padding: .55em .8em; font-size: .88rem; }
.coupon-applied .link-btn { color: var(--ok); }
.coupon-msg { font-size: .82rem; color: var(--err); margin-top: 6px; }
.sum-row.discount { color: var(--ok); font-weight: 600; }

/* evita que o carrinho fique mais largo do que o ecrã */
.cart-layout > *, .cart-item > * { min-width: 0; }
.cart-item h3 { overflow-wrap: anywhere; }
