html {
  scroll-behavior: smooth;
}

/* ZERA OS PRE AJUSTES DO NAVEGADOR */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */

body {
  font-family: "Arial", sans-serif;

  position: relative;

  z-index: 1;

  overflow-x: hidden;

  background:
    radial-gradient(
      circle at top right,
      rgba(139, 69, 19, 0.1),
      transparent 25%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(200, 140, 90, 0.1),
      transparent 25%
    ),
    linear-gradient(180deg, #f8f5f2 0%, #f1ece6 50%, #ebe5de 100%);

  color: #333;
  min-height: 100vh;
}

/* HEADER */

header {
  text-align: center;

  position: relative;

  z-index: 1;

  padding-top: 40px;

  padding-bottom: 5px;

  margin-bottom: 0;
}

.logo-area {
  margin-bottom: 20px;

  min-width: 260px;
}

.logo-area h1 {
  font-size: 2.5rem;

  color: #8b4513;

  letter-spacing: 1px;

  margin-bottom: 15px;

  font-weight: 800;
}

.logo-area p {
  color: #8b6b52;

  font-size: 0.75rem;

  letter-spacing: 1px;

  text-transform: uppercase;

  margin-top: 4px;
}

.main-header {
  display: flex;

  max-width: 1600px;

  margin: 30px auto;

  align-items: center;

  justify-content: flex-start;

  gap: 40px;

  padding: 18px 24px;

  border-radius: 28px;
}

.header-actions {
  display: flex;

  align-items: center;

  gap: 15px;

  flex-wrap: nowrap;

  margin-left: auto;
}

.header-button,
.menu-button {
  border: none;

  background: rgba(139, 69, 19, 0.1);

  border: 1px solid rgba(139, 69, 19, 0.08);

  color: #5c3317;

  padding: 12px 16px;

  border-radius: 16px;

  font-weight: 500;

  font-size: 0.95rem;

  cursor: pointer;

  transition: all 0.3s ease;

  backdrop-filter: blur(10px);

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  min-height: 52px;

  white-space: nowrap;
}

.header-button:hover,
.menu-button:hover {
  background: rgba(139, 69, 19, 0.18);

  transform: translateY(-2px);
}

/* NOME CARDAPIO */

.menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.menu-header h2 {
  margin: 0;
  font-size: 2rem;
  color: #5c3317;
}

.menu-decoration {
  color: #d4b08a;
  font-size: 1.5rem;
}

/*  ÁREA DE PESQUISA  */

.search-area {
  flex: 2;
}

.search-box {
  width: 100%;

  max-width: 600px;

  display: flex;

  justify-content: flex-end;

  padding: 0 10px;
}

.search-box input {
  width: 100%;

  max-width: 520px;

  height: 58px;

  border: none;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.75);

  backdrop-filter: blur(10px);

  padding: 0 24px;

  font-size: 0.95rem;

  color: #5c3317;

  outline: none;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);

  transition: all 0.3s ease;
}

.search-box input:focus {
  box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.12);

  background: rgba(255, 255, 255, 0.95);
}

.search-box input::placeholder {
  color: #9b8a7d;
}

/* BOTÃO CARRINHO */

.cart-button {
  background: #8b4513;

  color: white;
}

.cart-button:hover {
  background: #6d3308;

  transform: translateY(-2px);
}

/* SUBTITULO NOVO */
.subtitle {
  color: #9a531d;

  font-size: 1rem;

  font-weight: 600;

  margin-bottom: 25px;

  letter-spacing: 1px;
}

/* DESCRIÇÃO */

.description-site {
  text-align: center;

  max-width: 760px;

  margin: 0 auto 70px;

  line-height: 1.9;

  font-size: 1.08rem;

  color: #5f5f5f;
}

/* MAIN */

main {
  max-width: 1600px;

  margin: 0 auto;

  padding: 20px;
}

/* MENU FILTROS */

.menu-filters {
  display: flex;

  gap: 16px;

  margin-top: 0;

  margin-bottom: 40px;

  flex-wrap: wrap;
}

.filter-button {
  border: none;

  background: rgba(255, 255, 255, 0.75);

  padding: 14px 24px;

  border-radius: 16px;

  color: #5c3317;
}

.filter-button.active {
  background: #8b4513;

  color: white;
}

.filter-button.active:hover {
  background: #8b4513;
}

.filter-button:hover {
  transform: translateY(-2px);

  background: rgba(255, 255, 255, 0.95);
}

/* =====================
   CARRINHO DE COMPRAS
===================== */

.cart-count {
  font-size: 0.9rem;
  font-weight: 700;
}

/* BARRA LATERAL */

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;

  width: 420px;
  max-width: 100%;
  height: 100vh;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);

  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);

  display: flex;
  flex-direction: column;

  transition: right 0.3s ease;

  z-index: 1000;
}

.cart-sidebar.open {
  right: 0;
}

/* CABEÇALHO */

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px;

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-header h3 {
  color: #5c3317;
  font-size: 1.4rem;
  font-weight: 700;
}

.close-cart {
  background: transparent;
  border: none;

  color: #8b4513;

  font-size: 1.5rem;

  cursor: pointer;

  transition: all 0.2s ease;
}

.close-cart:hover {
  transform: scale(1.1);
}

/* =====================
   BOTÃO DE TEMA
===================== */

.theme-icon {
  width: 22px;

  height: 22px;

  transition: all 0.3s ease;
}

/* Tema claro → mostra a lua */
.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

/* Tema escuro → mostra o sol */

body.dark-mode .moon-icon {
  display: none;
}

body.dark-mode .sun-icon {
  display: block;
}

/* LISTA DE ITENS */

.cart-items {
  flex: 1;

  overflow-y: auto;

  padding: 24px;
}

/* ITEM DO CARRINHO */

.cart-item {
  padding: 18px 0;

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 16px;

  margin-bottom: 12px;
}

.cart-item-header h4 {
  color: #5c3317;

  font-size: 1rem;

  font-weight: 700;
}

.cart-item-subtotal {
  color: #2e8b57;

  font-size: 1.1rem;

  font-weight: 700;

  white-space: nowrap;
}

.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 12px;
}

.cart-item-footer small {
  color: #8b6b52;

  font-size: 0.85rem;
}

/* CONTROLES DE QUANTIDADE */

.cart-item-controls {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 0;
}

.cart-item-controls span {
  min-width: 20px;

  text-align: center;

  font-weight: 700;

  color: #5c3317;
}

.cart-item-controls button {
  width: 32px;
  height: 32px;

  border: none;
  border-radius: 50%;

  background: #8b4513;

  color: white;

  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s ease;
}

.cart-item-controls button:hover {
  background: #6d3308;

  transform: scale(1.05);
}

/* RODAPÉ */

.cart-footer {
  padding: 24px;

  border-top: 1px solid rgba(0, 0, 0, 0.08);

  background: rgba(255, 255, 255, 0.9);
}

/* TOTAL */

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 20px;

  font-size: 1.1rem;
  font-weight: 700;

  color: #5c3317;
}

/* BOTÃO FINALIZAR */

.checkout-button {
  width: 100%;

  padding: 14px;

  border: none;
  border-radius: 16px;

  background: #25d366;

  color: white;

  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s ease;
}

.checkout-button:hover {
  background: #1ebe5b;

  transform: translateY(-2px);
}

/* CAMPOS DO PEDIDO */

.customer-name,
.order-note {
  width: 100%;

  border: 1px solid rgba(139, 69, 19, 0.15);

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.8);

  color: #5c3317;

  padding: 14px 16px;

  font-size: 0.95rem;

  outline: none;

  transition: all 0.2s ease;

  margin-bottom: 14px;
}

.customer-name:focus,
.order-note:focus {
  border-color: #8b4513;

  box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.12);
}

.customer-name::placeholder,
.order-note::placeholder {
  color: #9b8a7d;
}

.order-note {
  resize: none;

  min-height: 80px;

  font-family: inherit;
}

.view-order-button {
  width: 100%;

  margin-top: 12px;

  padding: 10px;

  border: none;

  border-radius: 8px;

  background: #8b4513;

  color: white;

  cursor: pointer;

  font-weight: 600;
}

.view-order-button:hover {
  opacity: 0.9;
}

.delete-order-button {
  width: 100%;

  margin-top: 16px;

  padding: 14px;

  border: 1px solid rgba(220, 38, 38, 0.15);

  border-radius: 14px;

  background: rgba(220, 38, 38, 0.08);

  color: #b91c1c;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.2s ease;
}

.delete-order-button:hover {
  background: rgba(220, 38, 38, 0.12);

  transform: translateY(-2px);
}

/* CARRINHO VAZIO */

.empty-cart {
  text-align: center;

  color: #8b6b52;

  margin-top: 40px;

  font-size: 0.95rem;
}

/* TÍTULO CARDÁPIO */

.menu h2 {
  text-align: left;

  font-size: 2.5rem;

  color: #5c3317;

  margin-bottom: 20px;

  position: relative;

  z-index: 5;
}

/* .menu h2::after {
    content: "";

    width: 80px;

    height: 4px;

    background-color: #8B4513;

    display: block;

    margin: 12px auto 0;

    border-radius: 20px;
} */
/* CATEGORIAS */

.category {
  margin-bottom: 90px;
}

.category h3 {
  font-size: 2rem;

  color: #5c3317;

  margin-bottom: 25px;

  display: inline-block;

  padding-bottom: 5px;

  border-bottom: 3px solid #8b4513;
}

/* GRID DOS PRODUTOS */

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
/* GRID DOS PRODUTOS */

.products-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 24px;

  align-items: stretch;
}
/* CARDS DOS PRODUTOS */

.product-card {
  display: flex;

  flex-direction: column;

  background: rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(10px);

  border-radius: 24px;

  padding: 14px;

  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);

  transition: all 0.3s ease;

  overflow: hidden;

  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

  border-color: rgba(139, 69, 19, 0.2);
}

/* BOTÃO AD + PREÇO */
.cart-footer {
  display: flex;

  flex-direction: column;

  gap: 14px;

  padding: 24px;

  border-top: 1px solid rgba(0, 0, 0, 0.08);

  background: rgba(255, 255, 255, 0.9);
}

/* IMAGENS DOS PRODUTOS */

.product-image {
  width: 100%;

  height: 130px;

  border-radius: 18px;

  background-size: cover;

  background-position: center;

  margin-bottom: 12px;
}

/* DESCRIÇÃO DOS PRODUTOS */
.product-card p {
  margin-bottom: 10px;

  line-height: 1.5;

  min-height: 60px;

  font-size: 0.82rem;

  color: #7a7a7a;
}

/* NOME DOS PRODUTOS */
.product-card h4 {
  font-size: 1rem;

  color: #5c3317;

  margin-bottom: 8px;

  font-weight: 700;
}

/* PREÇO */

.price {
  font-size: 1rem;

  font-weight: 700;

  color: #2e8b57;

  margin-bottom: 20px;
}

/* BOTÃO */

.add-button {
  width: 42px;

  height: 42px;

  border-radius: 50%;

  border: none;

  background: #8b4513;

  color: white;

  font-size: 1.2rem;

  cursor: pointer;

  transition: all 0.3s ease;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.add-button:hover {
  transform: scale(1.08);

  background: #6d3308;
}

/* MANCHAS NO BACKGROUND */

body::before {
  content: "";

  position: fixed;

  top: -120px;

  right: -120px;

  width: 400px;

  height: 400px;

  background: rgba(139, 69, 19, 0.15);

  border-radius: 50%;

  filter: blur(120px);

  z-index: 0;

  pointer-events: none;
}

body::after {
  content: "";

  position: fixed;

  bottom: -120px;

  left: -120px;

  width: 350px;

  height: 350px;

  background: rgba(200, 140, 90, 0.15);

  border-radius: 50%;

  filter: blur(120px);

  z-index: 0;

  pointer-events: none;
}

/* CONTAINER PAGINA DE PRODUTOS */
.page-container {
  max-width: 1450px;

  margin: 20px auto 40px;

  background: rgba(255, 255, 255, 0.6);

  backdrop-filter: blur(10px);

  border-radius: 44px;

  padding: 40px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);

  border: 1px solid rgba(0, 0, 0, 0.06);

  position: relative;

  overflow: hidden;
}

.page-container::before {
  content: "";

  position: absolute;

  top: -120px;

  right: -120px;

  width: 300px;

  height: 300px;

  background: rgba(139, 69, 19, 0.08);

  border-radius: 50%;

  filter: blur(80px);

  z-index: 0;
}

.page-container::after {
  content: "";

  position: absolute;

  bottom: -100px;

  left: -100px;

  width: 250px;

  height: 250px;

  background: rgba(200, 140, 90, 0.08);

  border-radius: 50%;

  filter: blur(80px);

  z-index: 0;
}

/* REPONSIVIDADE */

/* ====== TABLET ====== */

@media (max-width: 1024px) {
  .cart-sidebar {
    width: 340px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .main-header {
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
  }

  .search-box {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .search-box input {
    max-width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* ==== CELULAR ==== */

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 20px auto;
    padding: 0 16px;
  }

  .logo-area {
    text-align: center;
    margin-bottom: 0;
    min-width: auto;
  }

  .header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .search-box {
    width: 100%;
    padding: 0;
  }

  .search-box input {
    width: 100%;
    max-width: 100%;
    height: 52px;
  }

  .page-container {
    margin: 0 auto 40px;
    padding: 24px 16px;
    border-radius: 24px;
  }

  .menu-header {
    justify-content: center;
  }

  .menu h2 {
    text-align: center;
    font-size: 2rem;
  }

  .category h3 {
    font-size: 1.6rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Filtros com rolagem horizontal */
@media (max-width: 768px) {
  .menu-filters {
    display: flex;
    flex-wrap: nowrap;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    gap: 12px;

    padding: 0 16px 12px;

    margin-left: -16px;
    margin-right: -16px;

    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .filter-button {
    flex: 0 0 auto;

    white-space: nowrap;

    padding: 12px 18px;
  }

  .filter-button:first-child {
    margin-left: 16px;
  }

  .filter-button:last-child {
    margin-right: 16px;
  }
}

/* =====================
   CELULARES PEQUENOS
===================== */

@media (max-width: 480px) {
  .logo-area h1 {
    font-size: 2rem;
  }

  .logo-area p {
    font-size: 0.65rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 180px;
  }
}

/*Historico de pedidos*/

.history-sidebar {
  position: fixed;

  top: 0;
  right: -420px;

  width: 400px;
  max-width: 100%;

  height: 100vh;

  background: rgba(255, 255, 255, 0.97);

  backdrop-filter: blur(12px);

  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);

  display: flex;
  flex-direction: column;

  transition: right 0.3s ease;

  z-index: 1001;
}

.history-sidebar.open {
  right: 0;
}

.history-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 24px;

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.history-header h3 {
  color: #5c3317;

  font-size: 1.4rem;
}

.close-history {
  background: transparent;

  border: none;

  font-size: 1.4rem;

  color: #8b4513;

  cursor: pointer;
}

.history-items {
  flex: 1;

  overflow-y: auto;

  padding: 20px;
}

.history-item {
  background: rgba(255, 255, 255, 0.85);

  border: 1px solid rgba(139, 69, 19, 0.1);

  border-radius: 16px;

  padding: 16px;

  margin-bottom: 16px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.history-item h4 {
  color: #5c3317;

  margin-bottom: 10px;
}

.history-item p {
  margin-bottom: 6px;

  color: #666;

  font-size: 0.9rem;
}

.empty-history {
  text-align: center;

  margin-top: 50px;

  color: #8b6b52;
}

/* =====================
   MODAL DE PEDIDO
===================== */

.order-modal {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.5);

  display: none;

  justify-content: center;

  align-items: center;

  z-index: 9999;
}

.order-modal.open {
  display: flex;
}

.order-modal-content {
  background: #fff;

  width: 90%;

  max-width: 550px;

  max-height: 85vh;

  overflow-y: auto;

  padding: 32px;

  border-radius: 24px;

  position: relative;

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);

  border: 1px solid rgba(139, 69, 19, 0.08);
}

.close-order-modal {
  position: absolute;

  top: 16px;

  right: 16px;

  width: 40px;

  height: 40px;

  border: none;

  border-radius: 50%;

  background: rgba(139, 69, 19, 0.08);

  color: #8b4513;

  cursor: pointer;

  font-size: 1.2rem;

  transition: all 0.2s ease;
}

.close-order-modal:hover {
  background: rgba(139, 69, 19, 0.15);

  transform: scale(1.05);
}

/* =====================
   DETALHES DO PEDIDO
===================== */

.order-details-header {
  text-align: center;

  margin-bottom: 24px;

  padding-bottom: 16px;

  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.order-details-header h2 {
  color: #5c3317;

  font-size: 1.7rem;

  font-weight: 700;
}

.order-details-section {
  margin-bottom: 18px;

  padding: 14px;

  background: rgba(139, 69, 19, 0.04);

  border-radius: 12px;
}

.order-details-section .label {
  display: block;

  font-size: 0.85rem;

  font-weight: 600;

  text-transform: uppercase;

  color: #6b7280;

  margin-bottom: 4px;
}

.order-details-section p {
  margin: 0;

  font-size: 1rem;
}

.order-items-list {
  margin: 0;

  padding-left: 20px;
}

.order-items-list li {
  margin-bottom: 8px;

  padding: 8px 0;

  border-bottom: 1px dashed rgba(139, 69, 19, 0.15);
}

.order-total {
  margin-top: 24px;

  padding: 18px;

  border-radius: 16px;

  background: rgba(139, 69, 19, 0.08);

  border: 1px solid rgba(139, 69, 19, 0.12);

  color: #5c3317;

  font-size: 1.3rem;

  font-weight: 700;

  text-align: center;
}

/* TEMA ESCURO */
body.dark-mode {
  background:
    radial-gradient(circle at left, rgba(139, 69, 19, 0.08), transparent 35%),
    radial-gradient(circle at right, rgba(139, 69, 19, 0.08), transparent 35%),
    linear-gradient(180deg, #211b17, #181412);
}
body.dark-mode .page-container {
  background: #241f1b;
}
body.dark-mode .main-header {
  background: #2b241f;

  border: 1px solid rgba(255, 255, 255, 0.04);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

body.dark-mode .product-card {
  background: #2d2621;

  border: 1px solid rgba(255, 255, 255, 0.05);

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

body.dark-mode .product-card h4 {
  color: #f6efe9;
}

body.dark-mode .product-description {
  color: #cfc8c1;
}

body.dark-mode .price {
  color: #d89a59;

  font-weight: 600;
}

body.dark-mode .filter-button {
  background: #3b312b;

  color: #f5efe8;
}
body.dark-mode .filter-button.active {
  background: #8b4513;
}

body.dark-mode .search-input {
  background: #2e2722;

  color: white;

  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .search-input::placeholder {
  color: #a99c93;
}

body.dark-mode .product-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

/* =====================
   CARRINHO - DARK MODE
===================== */

body.dark-mode .cart-sidebar {
  background: #241f1b;

  color: #f5f5f5;
}

body.dark-mode .cart-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .cart-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .cart-total {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =====================
   HISTÓRICO - DARK MODE
===================== */

body.dark-mode .history-sidebar {
  background: #241f1b;

  color: #f5f5f5;
}

body.dark-mode .history-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .history-item {
  background: #2d2621;

  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .history-item:hover {
  background: #342c26;
}

/* =====================
   MODAL - DARK MODE
===================== */

body.dark-mode .order-modal-content {
  background: #241f1b;

  color: #f5f5f5;
}

body.dark-mode .order-details-section {
  background: #2d2621;

  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .order-total {
  background: rgba(139, 69, 19, 0.15);

  border: 1px solid rgba(139, 69, 19, 0.2);

  color: #f3e5d3;
}

body.dark-mode .delete-order-button {
  background: rgba(220, 38, 38, 0.1);

  border: 1px solid rgba(220, 38, 38, 0.2);

  color: #ffb4b4;
}

body.dark-mode .close-order-modal {
  background: rgba(255, 255, 255, 0.06);

  color: #f5f5f5;
}

body,
.page-container,
.main-header,
.product-card,
.cart-sidebar,
.history-sidebar,
.order-modal-content,
button,
input {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* =====================
   PERFORMANCE MOBILE
===================== */

@media (max-width: 768px) {
  .page-container,
  .product-card,
  .cart-sidebar,
  .history-sidebar,
  .search-box input,
  .header-button,
  .menu-button {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* =====================
   MODAL DE USUÁRIOS
===================== */

.users-modal {
  position: fixed;

  inset: 0;

  display: none;

  justify-content: center;

  align-items: center;

  background: rgba(0, 0, 0, 0.5);

  z-index: 9999;
}

.users-modal.open {
  display: flex;
}

.users-modal-content {
  position: relative;

  width: 90%;
  max-width: 500px;

  background: #fff;

  border-radius: 24px;

  padding: 32px;

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);

  animation: modalFade 0.25s ease;
}

.close-users {
  position: absolute;

  top: 16px;

  right: 16px;

  width: 40px;

  height: 40px;

  border: none;

  border-radius: 50%;

  background: rgba(139, 69, 19, 0.08);

  color: #8b4513;

  cursor: pointer;

  transition: 0.25s;
}

.close-users:hover {
  transform: rotate(90deg);

  background: rgba(139, 69, 19, 0.15);
}

.users-modal-content h2 {
  color: #5c3317;

  margin-bottom: 20px;
}

.users-modal-content p {
  color: #666;
}

@keyframes modalFade {
  from {
    opacity: 0;

    transform: translateY(20px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}
