/* =============================================
   FIT83 — Design System
   Tema: Branco Premium / Fashion Feminino
   Inspirado em lojas como anjuss.com.br
   ============================================= */

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

/* ── TOKENS ──────────────────────────────────── */
:root {
  /* Paleta Branca / Premium */
  --white:      #FFFFFF;
  --off-white:  #F9F7F4;
  --light:      #F2F0ED;
  --light-2:    #E8E5E1;
  --border:     #E0DDD9;
  --border-2:   #D0CCC8;

  /* Texto */
  --text:       #1A1A1A;
  --text-2:     #5A5A5A;
  --text-3:     #9A9A9A;

  /* Accent — preto elegante + dourado suave */
  --black:      #111111;
  --gold:       #B8935A;
  --gold-light: #D4AA7D;
  --gold-dark:  #8B6B3D;

  /* Semânticos */
  --success:    #2D7A45;
  --success-bg: #EEF7F2;
  --error:      #C0392B;
  --error-bg:   #FDF0EE;
  --warning:    #B7770D;
  --warning-bg: #FEF9EC;
  --info:       #2471A3;
  --info-bg:    #EBF4FB;

  /* Layout */
  --r-sm:  4px;
  --r:     8px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill:100px;

  /* Sombras */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.14);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.16);

  /* Tipografia */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  /* Transições */
  --ease: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Aliases legados */
  --dark:    var(--off-white);
  --dark-2:  var(--light);
  --dark-3:  var(--light-2);
  --dark-4:  var(--border);
  --gray:    var(--text-3);
  --gray-light: var(--text-2);
  --danger:  var(--error);
  --radius:  var(--r);
  --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl);
  --radius-sm: var(--r-sm);
  --transition: var(--ease);
  --shadow-gold: 0 4px 20px rgba(184,147,90,0.25);

  /* Compat dark vars */
  --surface:   var(--white);
  --surface-2: var(--off-white);
  --surface-3: var(--light);
  --bg:        var(--off-white);
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); outline: none; }
ul { list-style: none; }

/* ── SCROLLBAR ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── TYPOGRAPHY ────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--text);
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 500; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); }
p  { color: var(--text-2); line-height: 1.7; }

.text-gold  { color: var(--gold); }
.text-black { color: var(--black); }
.text-gray  { color: var(--text-3); }
.text-center{ text-align: center; }
.font-heading { font-family: var(--font-heading); }

/* ── LAYOUT ────────────────────────────────────── */
.container  { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.8px; text-transform: uppercase;
  transition: var(--ease); white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent;
}

/* Botão principal — preto */
.btn-gold, .btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-gold:hover, .btn-primary:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Botão secundário — contorno preto */
.btn-outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}

/* Botão light */
.btn-dark {
  background: var(--white);
  color: var(--black);
  border-color: var(--border);
}
.btn-dark:hover { border-color: var(--black); }

.btn-danger { background: var(--error); color: white; border-color: var(--error); }
.btn-danger:hover { filter: brightness(0.9); }

.btn-sm   { padding: 10px 22px; font-size: 0.8rem; }
.btn-lg   { padding: 18px 44px; font-size: 0.95rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── CARDS ─────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--ease);
}
.card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-2); }
.card-body  { padding: 24px; }

/* ── PRODUCT CARD ──────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: none;
}
.product-card .img-wrap {
  width: 100%; aspect-ratio: 3/4;
  background: var(--light);
  overflow: hidden; position: relative;
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .img-wrap img { transform: scale(1.06); }

.product-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--black); color: var(--white);
  font-size: 0.68rem; font-weight: 700;
  padding: 5px 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.product-card .badge-sale { background: var(--error); }
.product-card .badge-new  { background: var(--gold); }

.product-card .info { padding: 16px 4px 8px; }
.product-card .info .collection {
  font-size: 0.72rem; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px;
}
.product-card .info h4 {
  font-size: 0.95rem; color: var(--text); margin-bottom: 8px;
  font-weight: 500; font-family: var(--font-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card .price-wrap { display: flex; align-items: baseline; gap: 8px; }
.product-card .price     { font-size: 1rem; font-weight: 700; color: var(--text); }
.product-card .price-old { font-size: 0.85rem; color: var(--text-3); text-decoration: line-through; }

/* Quick add overlay */
.product-card .quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(17, 17, 17, 0.92);
  color: var(--white); font-weight: 600; font-size: 0.82rem;
  padding: 14px; text-align: center; letter-spacing: 1px; text-transform: uppercase;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .quick-add { transform: translateY(0); }

/* ── SECTION HEADER ────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 14px;
}
.section-header h2 { color: var(--text); margin-bottom: 14px; }
.section-header p  { color: var(--text-2); max-width: 520px; margin: 0 auto; font-size: 1rem; }
.divider-gold {
  width: 40px; height: 1.5px;
  background: var(--gold); margin: 20px auto 0;
}

/* ── FORMS ─────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text); margin-bottom: 8px; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 13px 16px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); font-size: 0.95rem;
  transition: var(--ease);
}
.form-control:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(17,17,17,0.06); }
.form-control::placeholder { color: var(--text-3); }
select.form-control option { background: var(--white); color: var(--text); }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 6px; }

/* ── TOASTS ────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 300px; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); animation: slideInToast 0.35s ease;
  font-size: 0.9rem;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error);   }
.toast.info    { border-left: 3px solid var(--gold);    }
.toast-icon    { font-size: 1.2rem; }
@keyframes slideInToast { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ── LOADING ───────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 2.5px solid var(--border);
  border-top-color: var(--black);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center; z-index: 9998;
}

/* ── BADGES ────────────────────────────────────── */
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.3px;
}
.status-pending   { background: var(--warning-bg); color: var(--warning); }
.status-confirmed { background: var(--success-bg); color: var(--success); }
.status-shipped   { background: var(--info-bg);    color: var(--info);    }
.status-delivered { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--error-bg);   color: var(--error);   }
.status-paid      { background: var(--success-bg); color: var(--success); }
.status-failed    { background: var(--error-bg);   color: var(--error);   }

/* ── EMPTY STATE ───────────────────────────────── */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 20px; opacity: 0.3; }
.empty-state h3 { color: var(--text-2); margin-bottom: 10px; font-family: var(--font-body); }
.empty-state p  { color: var(--text-3); }

/* ── CART BADGE ────────────────────────────────── */
.cart-badge {
  position: absolute; top: -7px; right: -7px;
  background: var(--black); color: var(--white);
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── WHATSAPP FLOAT ────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9998;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }

/* ── ANIMATIONS ────────────────────────────────── */
@keyframes pulse  { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeup { animation: fadeUp 0.6s ease forwards; }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .section    { padding: 60px 0; }
  .container  { padding: 0 20px; }
  .form-row   { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
}
