/* ===== BOTÃO HOME GLOBAL ===== */
.floating-home-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #8b2f10, #3a1709);
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(0,0,0,.25);
  transition: .25s ease;
}

.floating-home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}

.floating-home-btn i {
  font-size: 20px;
}

@media (max-width: 600px) {
  .floating-home-btn {
    left: 12px;
    bottom: 12px;
    padding: 11px 14px;
  }

  .floating-home-btn span {
    display: none;
  }
}

/* ===== BOTÃO GOOGLE LOGIN ===== */
.google-login-btn {
  width: 100%;
  border: 1px solid #ddd !important;
  background: #fff !important;
  color: #222 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.google-login-btn i {
  font-size: 22px;
  color: #db4437;
}

.google-warning {
  display: block;
  color: #7b6251;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.35;
}


.logged-user-pill a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(139,47,16,.12);
  border-radius: 999px;
  padding: 8px 12px !important;
}

.logged-user-pill img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== USUÁRIO LOGADO NO TOPO ===== */
.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.14);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  max-width: 240px;
}

.user-area img,
.user-avatar-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #f59e0b;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.user-area small {
  display: block;
  opacity: .82;
  font-size: 11px;
  font-weight: 600;
}

.user-area span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.logout-client-btn {
  border: none;
  background: rgba(255,255,255,.18);
  color: #fff;
  border-radius: 999px;
  padding: 6px 9px;
  cursor: pointer;
  font-size: 13px;
}

/* ===== PÁGINA STATUS DO PEDIDO ===== */
.orders-page {
  min-height: 100vh;
  padding: 120px 7% 60px;
  background:
    linear-gradient(rgba(40,15,6,.82), rgba(40,15,6,.88)),
    url("assets-images/png.fundo.png");
  background-size: cover;
  background-position: center;
}

.orders-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.orders-title {
  color: #fff;
  margin-bottom: 24px;
}

.orders-title h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 8px;
}

.orders-title p {
  color: #f3d7c1;
}

.client-orders-list {
  display: grid;
  gap: 18px;
}

.client-order-card {
  background: rgba(255,255,255,.96);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
}

.client-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.client-order-top h3 {
  color: #4b220f;
  margin-bottom: 4px;
}

.status-badge-client {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 900;
  background: #fff3cd;
  color: #8a5b00;
}

.status-badge-client.preparando {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-badge-client.entrega {
  background: #dcfce7;
  color: #166534;
}

.status-badge-client.finalizado {
  background: #e7e5e4;
  color: #44403c;
}

.status-badge-client.cancelado {
  background: #fee2e2;
  color: #991b1b;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.progress-step {
  text-align: center;
  background: #eee2d6;
  color: #6b4b35;
  border-radius: 14px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 800;
}

.progress-step.active {
  background: #8b2f10;
  color: #fff;
}

.client-order-info {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.client-order-info ul {
  margin-left: 20px;
  line-height: 1.8;
}

.empty-orders {
  background: rgba(255,255,255,.94);
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  color: #5f4635;
}

.empty-orders a {
  display: inline-block;
  margin-top: 16px;
  background: #8b2f10;
  color: #fff;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .user-area {
    max-width: 170px;
    padding: 7px 9px;
  }

  .user-area small {
    display: none;
  }

  .order-progress,
  .client-order-info {
    grid-template-columns: 1fr;
  }
}

/* ===== TOPO CORRIGIDO ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  white-space: nowrap;
}

.nav-links .logged-user-pill {
  display: none !important;
}

.user-area {
  margin-left: auto;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
  min-width: 190px;
  max-width: 230px;
}

.user-area + .user-area {
  display: none !important;
}

.order-shortcut-btn {
  background: #ff7a1a !important;
  color: #fff !important;
  padding: 14px 22px !important;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255,122,26,.28);
}

@media (max-width: 980px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .user-area {
    margin-left: 0;
    order: 3;
  }

  .order-shortcut-btn {
    padding: 10px 15px !important;
  }
}

/* ===== BOTÃO VOLTAR ===== */
.back-page-btn{
  position:fixed;
  bottom:24px;
  left:24px;
  width:58px;
  height:58px;
  border-radius:50%;
  background:linear-gradient(135deg,#8b2f10,#d35400);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:28px;
  text-decoration:none;
  z-index:99999;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  transition:.25s ease;
}

.back-page-btn:hover{
  transform:translateY(-4px) scale(1.05);
}

.floating-home-btn{
  display:none !important;
}


/* ===== REMOVER BOTÕES/ÍCONES DO TOPO ===== */
.order-shortcut-btn,
.icons-area,
.top-icons,
.user-icon,
.cart-icon,
.header-actions{
  display:none !important;
}


/* ============================================================
   RESPONSIVO PROFISSIONAL - FORNATTA
   Ajuste final para Desktop, Tablet e Mobile
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- TOPO / MENU ---------- */
header {
  width: 100%;
  z-index: 50;
}

.navbar {
  width: 100%;
  min-height: 82px;
  padding: 14px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  max-width: 96px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

/* remove elementos que estavam poluindo o topo */
.order-shortcut-btn,
.icons-area,
.top-icons,
.user-icon,
.cart-icon,
.header-actions,
.logged-user-pill {
  display: none !important;
}

/* usuário no topo mais limpo */
.user-area {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  min-width: auto !important;
  max-width: 210px !important;
  padding: 7px 10px !important;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}

.user-area small {
  display: none !important;
}

.user-area span {
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-client-btn {
  padding: 5px 8px !important;
  font-size: 12px !important;
}

/* ---------- HOME / HERO ---------- */
.hero,
.delivery-hero,
.orders-page {
  width: 100%;
  padding-left: 7%;
  padding-right: 7%;
}

.hero h1,
.delivery-hero h1,
.orders-title h1 {
  line-height: 1.05;
}

/* ---------- DELIVERY ---------- */
.delivery-container {
  width: 100%;
  padding: 42px 7%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 30px;
  align-items: start;
}

.foods-area {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}

.food-card {
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
}

.food-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.food-content {
  padding: 18px;
}

.food-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart {
  width: 100%;
  position: sticky;
  top: 22px;
  border-radius: 24px;
  padding: 22px;
}

.order-form {
  width: 100%;
}

.order-form input,
.order-form textarea {
  width: 100%;
}

/* ---------- MEUS PEDIDOS ---------- */
.orders-page {
  padding-top: 120px;
  padding-bottom: 60px;
}

.orders-wrapper {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.client-orders-list {
  display: grid;
  gap: 18px;
}

.client-order-card {
  width: 100%;
  border-radius: 22px;
}

.client-order-info,
.order-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* ---------- ADMIN ---------- */
.dashboard {
  width: 100%;
  min-height: 100vh;
}

.content {
  min-width: 0;
  width: 100%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.panel,
.order-card,
.setting-card {
  max-width: 100%;
}

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

table {
  min-width: 720px;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-actions button {
  min-height: 42px;
}

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
  .navbar {
    padding: 12px 5%;
  }

  .nav-links {
    gap: 12px;
  }

  .delivery-container {
    grid-template-columns: 1fr;
    padding: 34px 5%;
  }

  .cart {
    position: static;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard {
    grid-template-columns: 240px 1fr;
  }
}

/* ---------- MOBILE BONITO ---------- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  header {
    position: relative;
  }

  .navbar {
    min-height: auto;
    padding: 14px 14px 16px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo img {
    max-width: 78px;
  }

  .nav-links {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-links a {
    width: 100%;
    min-height: 42px;
    padding: 9px 8px;
    font-size: 13px;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    text-align: center;
  }

  .user-area {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100% !important;
    justify-content: center;
    border-radius: 16px;
    padding: 10px !important;
  }

  .user-area span {
    max-width: 180px;
  }

  .hero,
  .delivery-hero,
  .orders-page {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero h1,
  .delivery-hero h1,
  .orders-title h1 {
    font-size: clamp(30px, 9vw, 44px) !important;
    line-height: 1.08;
    text-align: center;
  }

  .hero p,
  .delivery-hero p,
  .orders-title p {
    text-align: center;
    font-size: 15px;
  }

  .delivery-container {
    padding: 24px 14px 70px;
    display: block;
  }

  .foods-area {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .food-card {
    border-radius: 20px;
    margin-bottom: 18px;
  }

  .food-card img {
    height: 190px;
  }

  .food-content {
    padding: 16px;
  }

  .food-content h3 {
    font-size: 20px;
  }

  .food-bottom {
    flex-direction: column;
    align-items: stretch !important;
  }

  .food-bottom span {
    font-size: 18px;
    text-align: center;
  }

  .food-bottom button {
    width: 100%;
    min-height: 46px;
  }

  .cart {
    margin-top: 22px;
    position: static;
    border-radius: 22px;
    padding: 18px;
  }

  .cart h2 {
    text-align: center;
  }

  .order-form input,
  .order-form textarea {
    font-size: 16px;
    min-height: 46px;
    border-radius: 14px;
  }

  .finalizar-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
  }

  .orders-page {
    padding-top: 38px !important;
    padding-bottom: 80px !important;
  }

  .client-order-card {
    padding: 16px !important;
  }

  .client-order-top {
    flex-direction: column;
  }

  .client-order-info,
  .order-grid {
    grid-template-columns: 1fr !important;
  }

  .order-progress {
    grid-template-columns: 1fr;
  }

  .progress-step {
    text-align: left;
  }

  /* admin mobile */
  .dashboard {
    display: block !important;
  }

  .sidebar {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 16px !important;
  }

  .brand {
    justify-content: center;
    text-align: center;
  }

  .sidebar nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-btn {
    width: 100%;
    min-height: 44px;
    font-size: 13px;
    text-align: center;
  }

  .content {
    padding: 14px !important;
  }

  .topbar,
  .panel-head {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

  .topbar h1 {
    font-size: 28px !important;
  }

  .cards {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .panel {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .actions select,
  .actions button {
    width: 100%;
    min-height: 44px;
  }

  .order-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .order-actions button {
    width: 100%;
    min-height: 46px;
  }

  .settings-grid {
    grid-template-columns: 1fr !important;
  }

  .table-wrap {
    border-radius: 16px;
  }

  .back-page-btn {
    width: 48px !important;
    height: 48px !important;
    left: 14px !important;
    bottom: 14px !important;
    font-size: 22px !important;
  }
}

/* ---------- CELULAR PEQUENO ---------- */
@media (max-width: 420px) {
  .navbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-links {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .nav-links a {
    font-size: 12px;
    padding: 8px 6px;
  }

  .logo img {
    max-width: 70px;
  }

  .food-card img {
    height: 170px;
  }

  .cart,
  .panel,
  .client-order-card,
  .order-card {
    padding: 14px !important;
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   CORREÇÃO FINAL MOBILE - MENU LIMPO E HERO RESPONSIVO
   ============================================================ */

/* remove botões/ícones extras que estavam quebrando o topo */
.order-shortcut-btn,
.icons-area,
.top-icons,
.user-icon,
.cart-icon,
.header-actions,
.nav-icons,
.fa-user,
.fa-shopping-cart,
.bxs-user:not(.user-avatar-fallback .bxs-user),
.bx-cart:not(.cart h2 .bx-cart) {
  display: none !important;
}

/* topo desktop normal */
.navbar {
  width: 100%;
  min-height: 76px;
  padding: 12px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  max-width: 110px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

/* usuário menor */
.user-area {
  min-width: 0 !important;
  max-width: 190px !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  gap: 7px !important;
}

.user-area img,
.user-avatar-fallback {
  width: 28px !important;
  height: 28px !important;
}

.user-area small {
  display: none !important;
}

.user-area span {
  max-width: 95px;
  font-size: 13px;
}

.logout-client-btn {
  padding: 4px 7px !important;
  font-size: 11px !important;
}

/* hero não pode ficar escondido atrás do menu */
.hero,
.delivery-hero {
  min-height: calc(100vh - 80px);
  padding: 90px 6% 60px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center;
}

.hero-content,
.delivery-hero .hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1,
.delivery-hero h1 {
  font-size: clamp(42px, 7vw, 78px) !important;
  line-height: 1.05 !important;
}

.hero p,
.delivery-hero p {
  font-size: clamp(18px, 2.3vw, 28px) !important;
  line-height: 1.35 !important;
}

/* MOBILE REAL */
@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }

  header {
    position: relative !important;
    width: 100% !important;
  }

  .navbar {
    width: calc(100% - 20px) !important;
    min-height: auto !important;
    margin: 10px auto 0 !important;
    padding: 12px 10px !important;
    border-radius: 18px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .logo {
    width: 100%;
    justify-content: center !important;
    display: flex !important;
  }

  .logo img {
    max-width: 82px !important;
    height: auto !important;
  }

  .nav-links {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .nav-links li {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  .nav-links a {
    width: 100% !important;
    min-height: 34px !important;
    padding: 6px 4px !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.08) !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }

  /* esconde links menos importantes no celular pra não virar bloco gigante */
  .nav-links li:has(a[href="admin.html"]),
  .nav-links li:has(a[href="#contato"]),
  .nav-links li:has(a[href="#sobre"]),
  .nav-links li:has(a[href="admin.html"]) {
    display: none !important;
  }

  .user-area {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 260px !important;
    justify-self: center !important;
    justify-content: center !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.14) !important;
  }

  .user-area span {
    max-width: 130px !important;
    font-size: 13px !important;
  }

  .hero,
  .delivery-hero {
    min-height: auto !important;
    padding: 70px 18px 80px !important;
    margin-top: 0 !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .hero h1,
  .delivery-hero h1 {
    font-size: clamp(34px, 12vw, 54px) !important;
    line-height: 1.05 !important;
    margin-bottom: 14px !important;
    word-break: normal !important;
  }

  .hero p,
  .delivery-hero p {
    font-size: 18px !important;
    line-height: 1.45 !important;
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero .btn,
  .hero button,
  .delivery-hero .btn,
  .delivery-hero button {
    width: min(260px, 100%) !important;
    min-height: 48px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .delivery-container {
    padding: 22px 14px 70px !important;
    display: block !important;
  }

  .foods-area {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .food-card {
    width: 100% !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .food-card img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
  }

  .cart {
    margin-top: 22px !important;
    position: static !important;
    width: 100% !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .back-page-btn {
    width: 48px !important;
    height: 48px !important;
    left: 14px !important;
    bottom: 14px !important;
    font-size: 22px !important;
  }
}

/* celular muito pequeno */
@media (max-width: 420px) {
  .navbar {
    width: calc(100% - 14px) !important;
    margin-top: 7px !important;
    padding: 10px 8px !important;
  }

  .logo img {
    max-width: 76px !important;
  }

  .nav-links {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .nav-links a {
    font-size: 12px !important;
    min-height: 33px !important;
  }

  .hero,
  .delivery-hero {
    padding-top: 55px !important;
  }

  .hero h1,
  .delivery-hero h1 {
    font-size: clamp(30px, 11vw, 46px) !important;
  }

  .hero p,
  .delivery-hero p {
    font-size: 16px !important;
  }
}
