@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:wght@600&display=swap');

:root {
  --ink:        #0f0f1a;
  --ink-mid:    #3a3a52;
  --ink-soft:   #8888a8;
  --surface:    #f7f7fb;
  --white:      #ffffff;
  --accent:     #E32847;
  --accent-dim: #fde8ec;
  --gold:       #f0c040;   /* PROBLEMA 2 — mantido */
  --gold-text:  #f5f0cc;   /* PROBLEMA 2 — mantido */
  --navy:       #1a1a2e;
  --navy-deep:  #0f0f1e;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* ── HEADER ── */
header {
  background: var(--navy-deep);
  padding: 10px 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-logo {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 22px;
  letter-spacing: .01em;
}

nav.nav-links ul{
  display: flex;
  gap: 32px;
}

nav.nav-links a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}

nav.nav-links a:hover { color: #fff; }

.nav-cart {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: var(--radius-sm);
  letter-spacing: .02em;
  transition: opacity .2s;
}

.nav-cart:hover { opacity: .88; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 64px 40px;
  display: flex;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--ink-soft);

}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(233,69,96,.12), transparent);
  pointer-events: none;
}

/* PROBLEMA 1: imagem sem alt — mantido */
.hero img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #0f3460;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}

.hero-text { position: relative; }

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* PROBLEMA 5: salta h1 → h3, sem h2 — mantido */
.hero-text h3 {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-price {
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 28px 0;
}

.hero-price span {
  font-size: 18px;
  font-weight: 400;
  margin-right: 4px;
}

/* PROBLEMA 2: contraste insuficiente — mantido */
.btn-buy {
  background: var(--gold);
  color: var(--gold-text);
  border: none;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: var(--radius-sm);
  letter-spacing: .03em;
  transition: transform .15s;
}

.btn-buy:hover { transform: translateY(-1px); }

/* ── PRODUTOS ── */
.section {
  padding: 48px 40px;
  background: var(--white);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 28px;
  color: var(--ink);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  border: 1px solid #ebebf3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(15,15,26,.08);
  transform: translateY(-2px);
}

.product-card-img {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #e8e8f0, #d4d4e4);
  display: block;
}

.product-card-body { padding: 16px; }

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.product-card-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--surface);
  padding: 48px 40px;
  border-top: 1px solid #ebebf3;
  display: flex;
  align-items:center;
  justify-content: center;
}
.newsletter > div {
    text-align: center;
    width: 500px;
}

.newsletter-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--ink);
}

.newsletter-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* PROBLEMA 3: input sem label — mantido */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.newsletter-form > div{
    display:flex;
    width: 100%;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d8d8ea;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--ink-mid);
}

.newsletter-form button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: opacity .2s;
}

.newsletter-form button:hover { opacity: .85; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.2);
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
  padding-right: 32px;
}

.modal-body {
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-confirm {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s;
}

.modal-confirm:hover { opacity: .88; }

/* PROBLEMA 4: botão fechar sem texto acessível — mantido */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f0f8;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.modal-close:hover { background: #e0e0ee; }

/* ── FOOTER ── */
footer.footer {
  background: var(--navy-deep);
  color: var(--ink-soft);
  padding: 24px 40px;
  font-size: 12px;
  letter-spacing: .03em;
  border-top: 1px solid rgba(255,255,255,.05);
}