@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #F3EEE7;
  --bg-soft: #FAF7F3;
  --ink: #332741;
  --ink-soft: #7C6E8C;
  --purple: #6C4A94;
  --purple-dark: #55396F;
  --lilac: #9B7FBF;
  --lavender: #D9CBEC;
  --line: #E3D9EC;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Work Sans', sans-serif; line-height: 1.5; }
h1, h2, h3, .display { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

header { position: sticky; top: 0; z-index: 40; background: rgba(239, 234, 224, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.logo span { color: var(--purple); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color 0.15s ease, color 0.15s ease; }
.nav-link:hover { color: var(--purple); border-color: var(--purple); }
.cart-btn { position: relative; background: var(--ink); color: var(--bg-soft); border: none; border-radius: 999px; padding: 10px 20px; font-family: 'Work Sans', sans-serif; font-weight: 500; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: transform 0.15s ease; }
.cart-btn:hover { transform: translateY(-1px); }
.cart-count { background: var(--purple); color: white; border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; padding: 0 5px; }

.hero { padding: 72px 0 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); max-width: 16ch; }
.hero p { margin-top: 20px; font-size: 1.1rem; color: var(--ink-soft); max-width: 42ch; }
.hero-cta { margin-top: 28px; display: inline-block; background: var(--purple); color: white; text-decoration: none; padding: 14px 28px; border-radius: 999px; font-weight: 500; transition: background 0.15s ease; }
.hero-cta:hover { background: var(--purple-dark); }

/* Arte da capa: um único SVG, sem pseudo-elementos ou círculos duplicados. */
.hero-art { position: relative; width: min(100%, 500px); aspect-ratio: 1 / 1; background: transparent; border-radius: 0; display: flex; align-items: center; justify-content: center; overflow: visible; margin: 0 auto; }
.hero-art img { width: 100%; max-width: 320px; height: auto; display: block; position: relative; z-index: 1; }
.hero-art > svg { display: none; }

.sobre { padding-bottom: 56px; }
.sobre-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; max-width: 720px; }
.sobre-card h2 { font-size: 1.6rem; color: var(--purple-dark); }
.sobre-card p { color: var(--ink-soft); margin-top: 14px; font-size: 1rem; max-width: 58ch; }
.sobre-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.sobre-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; transition: background 0.15s ease, color 0.15s ease; }
.sobre-link:hover { background: var(--purple); color: white; border-color: var(--purple); }

.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.22); z-index: 45; transition: transform 0.15s ease; }
.whatsapp-float:hover { transform: scale(1.07); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0 36px; }
.filter-chip { border: 1px solid var(--line); background: var(--bg-soft); padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; cursor: pointer; color: var(--ink-soft); }
.filter-chip.active { background: var(--ink); color: var(--bg-soft); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; padding-bottom: 90px; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media svg { width: 46%; height: 46%; opacity: 0.55; }
.price-tag { position: absolute; top: 14px; right: 14px; background: var(--lavender); color: var(--ink); font-weight: 600; font-size: 0.85rem; padding: 6px 12px; border-radius: 8px; }
.sold-out-tag { position: absolute; top: 14px; right: 14px; background: var(--ink-soft); color: var(--bg-soft); font-weight: 600; font-size: 0.78rem; padding: 6px 12px; border-radius: 8px; letter-spacing: 0.02em; }
.card-media:has(.sold-out-tag) img, .card-media:has(.sold-out-tag) svg { opacity: 0.45; }
.card-body { padding-top: 16px; }
.card-cat { font-size: 0.78rem; color: var(--purple-dark); font-weight: 600; }
.card-title { font-family: 'Fraunces', serif; font-size: 1.2rem; margin-top: 4px; }
.card-desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }
.add-btn { margin-top: 14px; width: 100%; background: transparent; border: 1.5px solid var(--ink); color: var(--ink); padding: 10px; border-radius: 999px; font-family: 'Work Sans', sans-serif; font-weight: 500; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.add-btn:hover { background: var(--ink); color: var(--bg-soft); }
.add-btn.added { background: var(--lilac); color: white; border-color: var(--lilac); }
.add-btn:disabled { opacity: 0.5; cursor: not-allowed; border-color: var(--line); color: var(--ink-soft); }
.add-btn:disabled:hover { background: transparent; color: var(--ink-soft); }

.overlay { position: fixed; inset: 0; background: rgba(42, 36, 32, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 50; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--bg-soft); z-index: 60; transform: translateX(100%); transition: transform 0.25s ease; display: flex; flex-direction: column; box-shadow: -12px 0 30px rgba(0,0,0,0.12); }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 24px 24px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink-soft); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-empty { color: var(--ink-soft); text-align: center; margin-top: 60px; }
.drawer-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-item-thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.drawer-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-thumb svg { width: 60%; opacity: 0.5; }
.drawer-item-info { flex: 1; }
.drawer-item-name { font-weight: 500; font-size: 0.95rem; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: white; cursor: pointer; font-size: 0.9rem; line-height: 1; }
.remove-link { margin-left: auto; font-size: 0.8rem; color: var(--ink-soft); cursor: pointer; text-decoration: underline; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; }
.checkout-btn { width: 100%; background: var(--purple); color: white; border: none; padding: 15px; border-radius: 999px; font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; }
.checkout-btn:hover { background: var(--purple-dark); }
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.checkout-note { text-align: center; font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-soft); font-size: 0.88rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .hero { padding: 48px 0 36px; }
  .sobre-card { padding: 26px 24px; }
  .hero-art { max-width: 320px; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}
