@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════
   VARIÁVEIS
═══════════════════════════════════════ */
:root {
  --bordeaux:      #6B1335;
  --bordeaux-dark: #4A0D24;
  --bordeaux-mid:  #8B2045;
  --rosa:          #F9D0D8;
  --rosa-mid:      #EEB8C4;
  --rosa-light:    #FDF5F7;
  --text:          #2C1A1F;
  --text-muted:    #7A6469;
  --white:         #FFFFFF;
  --border:        #EEE0E4;
  --nav-height:    72px;
}

/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════
   TIPOGRAFIA
═══════════════════════════════════════ */
h1, .h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.15;
  color: var(--text);
}
h2, .h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 3vw, 22px);
  line-height: 1.3;
  color: var(--text);
}
h3, .h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.4;
  color: var(--text);
}
p, .body-text {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 1.5vw, 14px);
  line-height: 1.7;
  color: var(--text);
}
.label {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-content {
  padding-top: var(--nav-height);
  padding-bottom: 80px;
  min-height: calc(100vh - 120px);
}

/* ═══════════════════════════════════════
   BOTÕES
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  transition: all 0.22s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary  { background: var(--bordeaux); color: var(--white); }
.btn-primary:hover { background: var(--bordeaux-dark); }
.btn-outline  { background: transparent; color: var(--bordeaux); border: 1px solid var(--bordeaux); }
.btn-outline:hover { background: var(--bordeaux); color: var(--white); }
.btn-ghost-dark { background: var(--text); color: var(--white); }
.btn-ghost-dark:hover { background: var(--bordeaux-dark); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1EBE5D; }
.btn-sm   { padding: 10px 22px; font-size: 11px; }
.btn-full { width: 100%; }

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-icon:hover { color: var(--bordeaux); }

/* ═══════════════════════════════════════
   BADGE DO CARRINHO
═══════════════════════════════════════ */
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--bordeaux);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: 'Jost', sans-serif;
  pointer-events: none;
  transition: transform 0.2s;
}
.cart-badge[data-count="0"],
.cart-badge:empty { display: none; }

/* ═══════════════════════════════════════
   FORM
═══════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--bordeaux); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A6469' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.toggle-wrap  { display: flex; align-items: center; gap: 12px; }
.toggle-track {
  width: 42px; height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-track.on { background: var(--bordeaux); }
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
}
.toggle-track.on::after { left: 21px; }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,26,31,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.modal-close {
  color: var(--text-muted);
  padding: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.modal-close:hover { color: var(--text); }

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--white);
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 16px;
}
.empty-state .empty-icon { color: var(--rosa-mid); margin-bottom: 8px; }
.empty-state h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 22px; }
.empty-state p  { color: var(--text-muted); max-width: 300px; }

/* ═══════════════════════════════════════
   DIVIDER
═══════════════════════════════════════ */
hr, .divider { border: none; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════
   UTILITÁRIOS
═══════════════════════════════════════ */
.text-bordeaux { color: var(--bordeaux); }
.text-muted    { color: var(--text-muted); }
.text-center   { text-align: center; }
.fw-500        { font-weight: 500; }
.hidden        { display: none !important; }
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.gap-8         { gap: 8px; }
.gap-16        { gap: 16px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ═══════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--rosa-light); }
::-webkit-scrollbar-thumb { background: var(--rosa-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bordeaux-mid); }
