/* =========================================================================
   ModaSales — Design System oficial
   Paleta extraída do logotipo: azul-marinho profundo, rosa suave,
   dourado discreto, rosa-claro/off-white. Identidade premium.
   ========================================================================= */

:root {
  /* --- Cores da marca --- */
  --navy:        #1E2A4A;   /* azul-marinho profundo (texto/base) */
  --navy-700:    #16213B;
  --navy-900:    #0F1729;
  --rose:        #C98DA0;   /* rosa suave */
  --rose-deep:   #B2778A;   /* rosa acento */
  --rose-soft:   #E6C3CE;
  --gold:        #C2A063;   /* dourado discreto */
  --gold-soft:   #D8BE8A;
  --blush:       #F7ECEC;   /* rosa muito claro */
  --offwhite:    #FBF8F5;   /* off-white (fundo base) */
  --white:       #FFFFFF;
  --ink:         #27272A;   /* texto neutro escuro (não-preto puro) */
  --muted:       #6B6671;
  --line:        #ECE2E2;   /* divisores */
  --success:     #3F8F6B;
  --danger:      #B4455A;

  /* --- Tipografia --- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script:  "Great Vibes", "Cormorant Garamond", cursive;
  --font-body:    "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* --- Escala / raios / sombras --- */
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(30,42,74,.06), 0 1px 2px rgba(30,42,74,.04);
  --shadow:    0 6px 24px rgba(30,42,74,.09);
  --shadow-lg: 0 18px 50px rgba(30,42,74,.14);
  --maxw: 1240px;
  --gutter: 20px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--offwhite);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rose-deep); }

h1,h2,h3,h4 { font-family: var(--font-display); color: var(--navy); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
.script { font-family: var(--font-script); color: var(--navy); }
.text-muted { color: var(--muted); }
.text-rose  { color: var(--rose-deep); }
.text-gold  { color: var(--gold); }

/* --- Layout --- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(2.2rem, 5vw, 4rem) 0; }
.grid { display: grid; gap: 22px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }

/* --- Botões --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .72em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--transition); line-height: 1; text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color:#fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-deep); color:#fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b1904f; color:#fff; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--blush); color: var(--navy); }
.btn-ghost:hover { background: var(--rose-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Badges --- */
.badge { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:.3em .7em; border-radius:999px; }
.badge-sale { background: var(--rose-deep); color:#fff; }
.badge-new  { background: var(--gold); color:#fff; }
.badge-soft { background: var(--blush); color: var(--navy); }
.badge-out  { background: #e9e9ee; color: var(--muted); }

/* --- Cards --- */
.card { background: var(--white); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-pad { padding: 20px; }

/* Card de produto */
.product-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition: all var(--transition); display:flex; flex-direction:column; position:relative; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--rose-soft); }
.product-card .thumb { aspect-ratio: 3/4; background: var(--blush); overflow:hidden; position:relative; }
.product-card .thumb img { width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .pc-badges { position:absolute; top:10px; left:10px; display:flex; gap:6px; z-index:2; }
.product-card .fav { position:absolute; top:10px; right:10px; z-index:2; background:rgba(255,255,255,.9); border:none; border-radius:50%; width:34px; height:34px; display:grid; place-items:center; cursor:pointer; color:var(--rose-deep); box-shadow: var(--shadow-sm); }
.product-card .pc-body { padding: 14px 16px 18px; display:flex; flex-direction:column; gap:6px; flex:1; }
.product-card .pc-brand { font-size:.74rem; text-transform:uppercase; letter-spacing:.06em; color: var(--muted); }
.product-card .pc-name { font-family: var(--font-display); font-size:1.08rem; color: var(--navy); font-weight:600; line-height:1.25; }
.product-card .pc-price { margin-top: auto; display:flex; align-items:baseline; gap:8px; }
.product-card .price { font-weight:700; color: var(--navy); font-size:1.1rem; }
.product-card .price-old { color: var(--muted); text-decoration: line-through; font-size:.9rem; }

/* --- Header --- */
.site-header { background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
.topbar { background: var(--navy); color: var(--blush); font-size:.82rem; text-align:center; padding:7px 12px; letter-spacing:.02em; }
.topbar .text-gold { color: var(--gold-soft); }
.header-main { display:flex; align-items:center; gap:22px; padding:14px 0; }
.brand { display:flex; align-items:center; gap:12px; }
.brand img { height:52px; width:52px; border-radius:50%; object-fit:cover; }
.brand .brand-name { font-family: var(--font-display); font-weight:700; color:var(--navy); font-size:1.4rem; line-height:1; }
.brand .brand-name small { display:block; font-family: var(--font-script); color: var(--rose-deep); font-size:1.05rem; font-weight:400; }
.search-bar { flex:1; display:flex; max-width:560px; }
.search-bar input { flex:1; border:1.5px solid var(--line); border-right:none; border-radius:999px 0 0 999px; padding:.65em 1.1em; font-size:.95rem; outline:none; background:var(--offwhite); }
.search-bar input:focus { border-color: var(--rose); }
.search-bar button { border-radius:0 999px 999px 0; border:1.5px solid var(--navy); background:var(--navy); color:#fff; padding:0 1.2em; cursor:pointer; }
.header-actions { display:flex; align-items:center; gap:18px; }
.icon-link { display:flex; flex-direction:column; align-items:center; gap:2px; color:var(--navy); font-size:.72rem; position:relative; }
.icon-link .count { position:absolute; top:-6px; right:-10px; background:var(--rose-deep); color:#fff; font-size:.65rem; min-width:17px; height:17px; border-radius:999px; display:grid; place-items:center; padding:0 4px; }
.mainnav { border-top:1px solid var(--line); }
.mainnav ul { list-style:none; margin:0; padding:0; display:flex; gap:26px; flex-wrap:wrap; }
.mainnav a { display:block; padding:12px 0; font-weight:600; font-size:.92rem; color:var(--navy); position:relative; }
.mainnav a::after { content:""; position:absolute; left:0; bottom:6px; height:2px; width:0; background:var(--gold); transition: width var(--transition); }
.mainnav a:hover::after { width:100%; }

/* --- Hero / banners --- */
.hero { background: linear-gradient(120deg, var(--blush) 0%, var(--offwhite) 60%, #fff 100%); border-radius: var(--radius-lg); overflow:hidden; }
.hero-inner { padding: clamp(2rem,6vw,4.5rem); max-width:620px; }
.hero h1 { color: var(--navy); }
.hero p { font-size:1.1rem; color: var(--muted); }
.ribbon { height:4px; background: linear-gradient(90deg, var(--navy), var(--rose), var(--gold)); border-radius:999px; width:90px; margin:0 0 20px; }

/* --- Footer --- */
.site-footer { background: var(--navy); color: #cfd6e6; margin-top: 3rem; }
.site-footer a { color:#cfd6e6; } .site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:28px; padding: 46px 0 30px; }
.site-footer h4 { color:#fff; font-size:1.05rem; }
.site-footer ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; font-size:.92rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding:18px 0; font-size:.82rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color:#9aa6c0; }

/* --- Forms --- */
.input, select.input, textarea.input { width:100%; border:1.5px solid var(--line); border-radius: var(--radius-sm); padding:.68em 1em; font-size:.95rem; font-family:var(--font-body); background:#fff; outline:none; transition:border var(--transition); }
.input:focus { border-color: var(--rose); }
.label { font-weight:600; font-size:.88rem; color:var(--navy); margin-bottom:.35em; display:block; }

/* --- Chips de variação (tamanho/cor) --- */
.chip { border:1.5px solid var(--line); border-radius:999px; padding:.4em .9em; font-size:.86rem; cursor:pointer; background:#fff; transition:all var(--transition); }
.chip:hover { border-color: var(--rose); }
.chip.active { border-color: var(--navy); background: var(--navy); color:#fff; }
.swatch { width:30px; height:30px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1.5px var(--line); cursor:pointer; }
.swatch.active { box-shadow:0 0 0 2px var(--navy); }

/* --- Breadcrumb --- */
.breadcrumb { display:flex; gap:8px; font-size:.85rem; color:var(--muted); padding:16px 0; flex-wrap:wrap; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--rose-deep); }

/* --- Utilitários --- */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:40px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.pill-track { display:flex; gap:10px; overflow-x:auto; padding-bottom:6px; }
.divider { height:1px; background:var(--line); border:0; margin:24px 0; }
.alert { padding:12px 16px; border-radius:var(--radius-sm); font-size:.92rem; }
.alert-success { background:#e8f5ee; color:var(--success); }
.alert-error { background:#fbe9ec; color:var(--danger); }

/* --- Responsivo --- */
@media (max-width: 860px){
  .header-main{ flex-wrap:wrap; }
  .search-bar{ order:3; max-width:none; width:100%; }
  .mainnav ul{ gap:16px; overflow-x:auto; flex-wrap:nowrap; }
}
@media (max-width: 560px){
  .grid-products{ grid-template-columns: repeat(2, 1fr); gap:12px; }
  .brand .brand-name{ font-size:1.15rem; }
  .header-actions{ gap:12px; }
}
