/* Mary Rommanel — folha de estilo única, sem frameworks */
:root {
  --brand: #51304d;
  --brand-dark: #3b2238;
  --brand-soft: #f6f0f5;
  --gold: #b8955a;
  --gold-soft: #f7f1e6;
  --ink: #241c23;
  --muted: #7a6f78;
  --line: #ece6eb;
  --bg: #ffffff;
  --bg-alt: #faf8f9;
  --ok: #2f7d4f;
  --danger: #b4233c;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(40, 20, 38, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; color: var(--brand-dark); }
h1 { font-size: clamp(28px, 4vw, 40px); }
.h4 { font-size: 22px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.narrow-lg { max-width: 1080px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.d-block { display: block; }
.text-ok { color: var(--ok); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Header ---------- */
.announce { background: var(--brand); color: #fff; text-align: center; font-size: 12.5px; letter-spacing: .03em; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--brand); letter-spacing: .01em; white-space: nowrap; }
.logo-light { color: #fff; }
.search { flex: 1; max-width: 520px; margin: 0 auto; display: flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 18px; outline: none; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 16px; cursor: pointer; color: var(--muted); }
.search:focus-within { border-color: var(--brand); background: #fff; }
.search-inline { margin: 24px auto; max-width: 420px; }
.search-inline .btn { border-radius: 0 999px 999px 0; }
.header-actions { display: flex; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.menu-toggle { display: none; }

.nav { border-top: 1px solid var(--line); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 12px 14px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.nav-sale { color: var(--danger); }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.sub a:hover { background: var(--brand-soft); }
.sub-cols { columns: 2; width: 440px; right: 0; left: auto; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; background: var(--bg-alt); cursor: pointer; font-weight: 500; transition: .15s; text-align: center; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a3824a; color: #fff; }
.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand-soft); }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: fade .5s; }
.hero-slide img { width: 100%; max-height: 560px; object-fit: cover; }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: #fff; width: 26px; border-radius: 5px; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.hero-text { background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft)); padding: 72px 0; text-align: center; }
.hero-text h1 { font-size: clamp(40px, 7vw, 72px); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--gold); font-weight: 600; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 8px; }
.benefits div { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.benefits strong { color: var(--brand); font-weight: 600; }
.benefits span { font-size: 13px; color: var(--muted); }

.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.section-title { font-size: clamp(26px, 3vw, 34px); }
.link-more { color: var(--brand); font-weight: 500; font-size: 14px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 500; }
.cat-img { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--brand-soft); border: 1px solid var(--line); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover .cat-img img { transform: scale(1.06); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.card-alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-alt { opacity: 1; }
.card:hover .card-media > img:first-child { transform: scale(1.04); }
.card-out .card-media img { filter: grayscale(.6); opacity: .7; }
.tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.price-lg .tag { position: static; }
.tag-sale { background: var(--danger); color: #fff; }
.tag-muted { background: #6f6670; color: #fff; }
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--sans); font-size: 14px; font-weight: 400; line-height: 1.4; margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 17px; color: var(--brand-dark); font-weight: 600; }
.price del { color: var(--muted); font-size: 13px; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Listagem ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 6px; }
.crumbs a:hover { text-decoration: underline; }
.listing-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.listing-head h1 { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.chip:hover { border-color: var(--brand); }
.toolbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.toolbar select { margin-left: auto; }
select, input:not([type=checkbox]):not([type=radio]), textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
.toolbar select { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(81,48,77,.25); border-color: var(--brand); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 17px; height: 17px; }
.pager { display: flex; justify-content: center; gap: 6px; padding: 36px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: 60px 0; }
.cat-desc { margin: 20px 0 40px; color: var(--muted); }

/* ---------- Produto ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 8px 0 24px; }
.gallery { position: sticky; top: 140px; align-self: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-alt); }
.gallery-thumbs button.is-active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 4px; }
.price-lg { margin: 18px 0 4px; }
.price-lg strong { font-size: 30px; }
.pix-note { color: var(--ok); font-weight: 500; margin: 0 0 8px; }
.stock { font-size: 14px; font-weight: 500; margin: 14px 0; }
.stock::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.stock-ok { color: var(--ok); } .stock-ok::before { background: var(--ok); }
.stock-wait { color: #9a6b12; } .stock-wait::before { background: #d39a2c; }
.stock-out { color: var(--danger); } .stock-out::before { background: var(--danger); }
.buy { display: flex; gap: 12px; margin-bottom: 12px; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 48px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty input { width: 44px !important; border: 0 !important; text-align: center; padding: 0 !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; height: 36px; }
.perks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 8px; font-size: 14px; }
.perks li::before { content: "✦"; color: var(--gold); margin-right: 10px; }
.desc { border-top: 1px solid var(--line); padding: 14px 0; }
.desc summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
.desc summary::after { content: "+"; float: right; }
.desc[open] summary::after { content: "−"; }
.prose { font-size: 15px; }
.prose p { margin: 0 0 .8em; }
.prose img { border-radius: 10px; margin: 12px 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose a { color: var(--brand); text-decoration: underline; }

/* ---------- Carrinho / checkout ---------- */
.cart-layout, .checkout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding-bottom: 48px; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { border-radius: 10px; width: 88px; height: 88px; object-fit: cover; }
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-total { min-width: 90px; text-align: right; }
.summary { position: sticky; top: 140px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); display: flex; flex-direction: column; gap: 14px; }
.summary-lines { display: grid; gap: 8px; font-size: 14px; }
.summary-lines .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 18px; }
.coupon { display: flex; gap: 8px; }
.mini-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mini-items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.mini-items img { border-radius: 8px; width: 48px; height: 48px; object-fit: cover; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 8px; margin: 0 0 20px; }
legend { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brand-dark); padding: 0 8px; }
.field { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 14px; }
.field input, .field textarea, .field select { margin-top: 5px; font-weight: 400; font-size: 15px; }
.has-error input { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: 12.5px; margin-top: 4px; font-weight: 400; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.cols-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.option { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.option span { flex: 1; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.option input { margin-top: 3px; }

.alert { padding: 12px 16px; border-radius: 12px; margin: 16px 0; font-size: 14px; }
.alert-ok { background: #e9f6ee; color: var(--ok); }
.alert-erro { background: #fbeaed; color: var(--danger); }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 18px 0; }
.order-done { text-align: center; padding: 32px 0 8px; }
.check-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e9f6ee; color: var(--ok); font-size: 32px; display: flex; align-items: center; justify-content: center; }
.pix-qr { display: flex; justify-content: center; margin: 12px 0; }
.pix-qr img, .pix-qr canvas { width: 220px; height: 220px; }
.pix-box textarea { font-family: ui-monospace, monospace; font-size: 12px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: grid; grid-template-columns: 80px 90px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(36,20,34,.45); animation: fade .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; animation: slide .25s ease-out; }
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: center; }
.drawer-item img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 70; font-size: 14px; box-shadow: var(--shadow); animation: fade .2s; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(31,168,85,.4); }
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--brand-dark); color: #e9dfe8; margin-top: 56px; padding-top: 48px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .muted { color: #b9a8b6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding: 18px 16px; font-size: 12.5px; color: #b9a8b6; text-align: center; }
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #e9dfe8; text-decoration: underline; }
.heart { color: #e2708a; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-row { gap: 8px; flex-wrap: wrap; }
  .logo { font-size: 23px; flex: 1; }
  .search { order: 3; flex-basis: 100%; margin: 0 0 10px; }
  .header-row { height: auto; padding-top: 8px; }
  .nav { display: none; max-height: 70vh; overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; columns: 1; width: auto; }
  .product, .cart-layout, .checkout { grid-template-columns: 1fr; gap: 24px; }
  .gallery, .summary { position: static; }
  .hide-sm { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card .btn { display: none; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefits div { padding: 12px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 13px; }
  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-item img { width: 64px; height: 64px; }
  .cart-item .qty { grid-column: 2; }
  .cart-item-total { grid-column: 3; grid-row: 1; }
  .cols-2, .cols-3, .cols-2-1 { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .buy { flex-direction: column; }
  .toolbar { gap: 12px; }
  .toolbar select { margin-left: 0; width: 100%; }
  .list li { grid-template-columns: 1fr 1fr; }
}

/* ---------- Minha conta ---------- */
.narrow-sm { max-width: 460px; padding-top: 24px; }
.account-nav { display: flex; gap: 6px; margin-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.account-nav a { padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.account-nav a.on { border-color: var(--brand); color: var(--brand); }
.orders-list { display: grid; gap: 10px; padding-bottom: 32px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto 16px; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.order-row:hover { border-color: var(--brand); }
.status { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); white-space: nowrap; }
.status-pending, .status-on-hold { background: #fff4dc; color: #8a5b00; }
.status-paid, .status-processing, .status-garage { background: #e5f0ff; color: #1d4f9a; }
.status-shipped, .status-completed { background: #e9f6ee; color: var(--ok); }
.status-cancelled, .status-failed { background: #fbeaed; color: var(--danger); }
@media (max-width: 640px) { .order-row { grid-template-columns: 1fr auto; } .order-row > :nth-child(4) { display: none; } }
.container > h1:first-child { margin-top: 24px; }
.logo img { height: 52px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 860px) { .logo img { height: 40px; max-width: 170px; } }
