/* Elizete Cosméticos & Perfumaria - Design System & Tokens */
:root {
  --primary: #9b2c6b;          /* Vinho / Magenta sofisticado (identidade O Boticário / Eudora Diamante) */
  --primary-hover: #801f56;
  --primary-light: #fdf2f7;
  --secondary: #106b52;        /* Verde esmeralda de confiança e pronta entrega */
  --secondary-light: #edf7f4;
  --dark: #1f1b24;             /* Preto aveludado profundo */
  --gray-900: #2d2735;
  --gray-700: #575263;
  --gray-500: #8a8497;
  --gray-300: #dedbe5;
  --gray-100: #f7f6f9;
  --white: #ffffff;
  --gold: #d4af37;             /* Dourado Diamante */
  --gold-light: #fffcf0;
  --danger: #d9383a;
  --success: #15803d;
  --warning: #b45309;

  --shadow-sm: 0 1px 3px rgba(31, 27, 36, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 27, 36, 0.08);
  --shadow-lg: 0 10px 25px rgba(31, 27, 36, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  background-color: var(--gray-100);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Navbar */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #d43d8b 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(155, 44, 107, 0.3);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.brand-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold-light);
  color: #997300;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--dark);
}

.btn-secondary:hover {
  background: var(--gray-100);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #2b1126 0%, #4a1538 50%, #1f1b24 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffc4e2;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, #ffc2df 0%, #ff80b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.highlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Categorias & Filtros */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  padding: 1rem 0;
  position: sticky;
  top: 65px;
  z-index: 90;
}

.filters-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters-container::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover, .filter-chip.active {
  background: var(--primary);
  color: var(--white);
}

/* Grid de Produtos */
.catalog-section {
  max-width: 1200px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-top: 0.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(155, 44, 107, 0.3);
}

.product-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.product-badge-brand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.product-image-container {
  height: 240px;
  background: linear-gradient(135deg, #faf5f8 0%, #f0e6ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(155, 44, 107, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2.5rem;
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.product-family {
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-prices {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

.price-old {
  font-size: 0.9rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.product-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* Painel de Gestão (Dashboard) */
.dashboard-wrapper {
  max-width: 1200px;
  margin: 1.5rem auto 4rem;
  padding: 0 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
}

.stat-value.primary { color: var(--primary); }
.stat-value.danger { color: var(--danger); }
.stat-value.success { color: var(--success); }

.stat-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
}

/* Tabelas e Cartões de Fiado */
.card-box {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.card-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

.card-box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th {
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gray-300);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-300);
  color: var(--dark);
}

tr:hover td {
  background: var(--gray-100);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* Rodapé */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 1.25rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}
