/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ─── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #D96C75;
  --secondary: #F8C8DC;
  --bg:        #FFF7F2;
  --text:      #3A2A2A;
  --accent:    #C89B3C;
  --muted:     rgba(58,42,42,.54);
  --border:    rgba(58,42,42,.10);
  --card-shadow: 0 4px 6px -1px rgba(58,42,42,.06), 0 24px 48px -8px rgba(58,42,42,.10);
  --hover-shadow: 0 8px 16px -2px rgba(58,42,42,.10), 0 32px 64px -10px rgba(58,42,42,.16);
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --radius-lg: 28px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { line-height: 1.7; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.12;
  color: var(--text);
}
h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.5vw, 44px); font-weight: 600; }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; }

.eyebrow, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--sans);
}
.eyebrow::before, .eyebrow::after,
.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: .6;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn, button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover, button[type="submit"]:hover { transform: translateY(-2px); }
.btn:active, button[type="submit"]:active { transform: translateY(0); }

.btn.primary, button[type="submit"] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217,108,117,.30);
}
.btn.primary:hover, button[type="submit"]:hover {
  background: #c85a64;
  box-shadow: 0 8px 24px rgba(217,108,117,.40);
}

.btn.ghost {
  background: rgba(255,255,255,.92);
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover { background: #fff; }

.btn.ghost-dark {
  background: var(--text);
  color: #fff;
}
.btn.ghost-dark:hover { background: #2a1a1a; }

.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn.outline:hover { background: var(--primary); color: #fff; }

.btn.small { padding: 9px 18px; font-size: 13px; }
.btn.disabled { pointer-events: none; opacity: .45; }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 72px);
  height: 72px;
  background: rgba(255, 247, 242, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(58,42,42,.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}
.brand-dot {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.nav > a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  opacity: .75;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
}
.nav > a:hover { opacity: 1; background: rgba(217,108,117,.08); color: var(--primary); }
.nav > a.active { opacity: 1; color: var(--primary); }

.cart-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--text) !important;
  font-weight: 700;
  font-size: 13px;
  opacity: 1 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.cart-pill:hover { background: var(--primary); color: #fff !important; transform: translateY(-1px); }
.cart-pill strong { font-size: 13px; }

.langs {
  display: flex;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.langs a {
  padding: 4px 7px;
  border-radius: 6px;
  opacity: .5;
  transition: opacity var(--transition), background var(--transition);
}
.langs a:hover { opacity: 1; background: var(--border); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.menu-toggle:hover { border-color: var(--primary); background: var(--secondary); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 80px clamp(24px, 7vw, 100px);
  background: linear-gradient(135deg, var(--secondary) 0%, #fff 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(56% 100% at 50% 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: #fff;
}
.hero:not([style*="url"]) .hero-content { color: var(--text); }
.hero:not([style*="url"]) .hero-content .eyebrow { color: var(--accent); }

.hero-content .eyebrow { margin-bottom: 20px; color: rgba(255,255,255,.9); }
.hero-content h1 { margin-bottom: 20px; text-shadow: 0 2px 20px rgba(58,42,42,.2); }
.hero:not([style*="url"]) .hero-content h1 { text-shadow: none; }
.hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 540px;
  margin-bottom: 36px;
  opacity: .9;
}
.hero:not([style*="url"]) .hero-content p { opacity: .72; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Sections ───────────────────────────────────────────────── */
.band { padding: 72px clamp(24px, 6vw, 90px); }
.band-sm { padding: 48px clamp(24px, 6vw, 90px); }
.band-alt { background: #fff; }

.section-title {
  text-align: center;
  margin-bottom: 52px;
}
.section-title .section-eyebrow { margin-bottom: 14px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--muted); max-width: 480px; margin: 0 auto; font-size: 17px; }

/* ─── Features strip ─────────────────────────────────────────── */
.features-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--text);
  padding: 0 clamp(24px, 6vw, 90px);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  color: rgba(255,255,255,.88);
  border-right: 1px solid rgba(255,255,255,.08);
  flex: 1;
  min-width: 200px;
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.feature-item strong {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.feature-item span { font-size: 13px; opacity: .65; }

/* ─── Product grid & cards ───────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
}
.product-card-media {
  position: relative;
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-card-media img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-body .cat-tag {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.product-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
.product-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.price-row strong, .detail-price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
}

/* ─── Category grid ──────────────────────────────────────────── */
.category-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.category-card {
  position: relative;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--card-shadow);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.category-card:hover img { transform: scale(1.08); }
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(58,42,42,.80) 0%, rgba(58,42,42,.0) 60%);
  transition: opacity var(--transition);
}
.category-card:hover::after { opacity: .9; }
.category-card strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  padding: 20px 18px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.category-card strong::after {
  content: 'Ver produtos →';
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}
.category-card:hover strong::after { opacity: .8; transform: translateY(0); }

/* ─── Banner / promo grid ────────────────────────────────────── */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.promo {
  min-height: 240px;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: #fff;
  background: var(--primary);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
}
.promo:hover { transform: translateY(-4px); box-shadow: var(--hover-shadow); }
.promo h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; margin: 0; }
.promo p { font-size: 15px; opacity: .85; margin: 0; }
.promo a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  width: fit-content;
  transition: background var(--transition);
}
.promo a:hover { background: rgba(255,255,255,.30); }

/* ─── Page head ──────────────────────────────────────────────── */
.page-head {
  padding: 64px clamp(24px, 6vw, 90px) 32px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.page-head .section-eyebrow { margin-bottom: 16px; }
.page-head h1 { margin-bottom: 14px; }
.page-head p {
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
}

/* ─── Product detail page ────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,500px);
  gap: 48px;
  padding: 60px clamp(24px, 6vw, 90px);
  align-items: start;
}
.product-media img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--hover-shadow);
}

.product-info {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 18px;
  position: sticky;
  top: 90px;
}
.product-info .eyebrow { margin-bottom: 4px; }
.product-info h1 { font-size: clamp(26px, 3vw, 38px); }

/* ─── Forms ──────────────────────────────────────────────────── */
label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
}
input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,108,117,.12);
}
textarea { resize: vertical; min-height: 90px; }

.rich-text {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── Checkout ───────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 28px;
  padding: 40px clamp(24px, 6vw, 90px) 80px;
  align-items: start;
}

.cart-list { display: grid; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition);
}
.cart-item:hover { box-shadow: var(--hover-shadow); }
.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
}
.cart-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-item small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.remove {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background var(--transition);
}
.remove:hover { background: rgba(217,108,117,.10); }

.summary, .checkout-form, .content-page, .panel-like {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 28px;
}
.summary h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.summary p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  padding: 8px 0;
  color: var(--muted);
}
.summary p strong { color: var(--text); }
.summary p.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.summary p.total strong { font-family: var(--serif); font-size: 22px; color: var(--primary); }
.summary hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0; }

.checkout-form { display: grid; gap: 18px; }
.checkout-form h3 {
  font-size: 18px;
  margin-bottom: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ─── Coupon ─────────────────────────────────────────────────── */
.coupon-form { display: grid; gap: 10px; margin: 16px 0; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { border-radius: 10px; }
.coupon-row .btn { flex-shrink: 0; border-radius: 10px; }

/* ─── Notices ────────────────────────────────────────────────── */
.notice {
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
}
.notice.success { background: #e7f8ed; color: #176c34; border-left: 3px solid #176c34; }
.notice.error { background: #ffe7e8; color: #9b1d2b; border-left: 3px solid #9b1d2b; }

/* ─── Content / about / contact ──────────────────────────────── */
.content-page {
  margin: 32px clamp(24px, 6vw, 90px) 80px;
  font-size: 17px;
  line-height: 1.8;
}
.content-page h2 { margin: 28px 0 12px; }
.content-page p { margin-bottom: 16px; color: var(--muted); }
.contact-box { max-width: 700px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  padding: 60px clamp(24px, 5vw, 90px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 280px;
  opacity: .6;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: #fff; }

.footer-col h4 {
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  opacity: .6;
  transition: opacity var(--transition), color var(--transition);
}
.footer-links a:hover { opacity: 1; color: var(--secondary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: .45;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .features-strip { gap: 0; }
  .feature-item { border-bottom: 1px solid rgba(255,255,255,.08); border-right: none; }
  .feature-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .feature-item:last-child { border-bottom: none; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    position: fixed;
    inset: 72px 0 0;
    background: rgba(255,247,242,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 4px;
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 14px 16px; border-radius: 12px; font-size: 16px; opacity: .8; }
  .cart-pill { justify-content: center; }
  .langs { justify-content: center; padding: 12px 0; }

  .hero { min-height: 72vh; }
  .hero::after { display: none; }

  .product-detail { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .product-media img { height: min(52vh, 420px); }

  .checkout-layout { grid-template-columns: 1fr; }

  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-item img { grid-row: 1 / 3; }
  .cart-item strong, .cart-item .remove { grid-column: 2; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: unset; }
  .footer-bottom { justify-content: center; text-align: center; }

  .features-strip { flex-direction: column; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .feature-item:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(30px, 9vw, 42px); }
  .product-card-media img { height: 220px; }
  .product-grid { grid-template-columns: 1fr; }
  .category-row { grid-template-columns: 1fr 1fr; }
  .band { padding: 52px 20px; }
  .checkout-layout, .product-detail { padding-left: 20px; padding-right: 20px; }
}
