@import url("./layout/header.css");
@import url("./layout/main.css");
@import url("./layout/cart/cart-list-desktop.css");
@import url("./layout/cart/cart-button-list-mobile.css");
@import url("./layout/footer.css");
@import url("./layout/modal.info.css");
@import url("./layout/payment/payment.css");
@import url("./layout/payment/carregamento.css");
@import url("./layout/modal-fechado.css");

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

/* --- SISTEMA DE CORES (Logo MS Caldos) --- */
:root {
  --primary-teal: #256b7a;
  --secondary-teal: #2a6a84;
  --primary-orange: #c35a45;
  --primary-cream: #f5ead4;
  --secondary-cream: #e1b097;

  /* UI */
  --bg-body: var(--primary-cream);
  --bg-card: #ffffff;
  --text-main: var(--primary-teal);
  --text-muted: rgba(37, 107, 122, 0.65);
  --accent-color: var(--primary-orange);
  --header-bg: rgba(245, 234, 212, 0.85);

  --border-color: rgba(37, 107, 122, 0.15);
  --shadow-md: 0 4px 6px rgba(37, 107, 122, 0.15);
  --transition: all 0.3s ease;
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --bg-body: var(--secondary-teal);
  --bg-card: var(--primary-teal);
  --text-main: var(--primary-cream);
  --text-muted: rgba(245, 234, 212, 0.7);
  --accent-color: var(--primary-orange);
  --header-bg: rgba(42, 106, 132, 0.85);

  --border-color: rgba(245, 234, 212, 0.15);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

body,
html {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* Impede rolagem lateral indesejada */
  position: relative;
}

/* --- Overlay --- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.hidden {
  display: none !important;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
  border: 2px solid var(--bg-body);
}
