:root {
  --primary: #1e3a8a; /* Azul */
  --header-bg: linear-gradient(135deg, #1e3a8a, #000000); /* Azul degrade com preto */
  --bg-color: #f4f6f8;
  --bg-card: #ffffff;
  --text-dark: #000000;
  --text-light: #444444;
  --white: #ffffff;
  --border: #dddddd;
  --danger: #d93025;
}

[data-theme="dark"] {
  --primary: #1e3a8a; 
  --header-bg: linear-gradient(135deg, #1e3a8a, #000000); 
  --bg-color: #0a0a0a;
  --bg-card: #1a1a1a;
  --text-dark: #f0f0f0;
  --text-light: #a0a0a0;
  --border: #333333;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  background-color: #e5e7eb; /* Fundo do monitor */
}

[data-theme="dark"] html {
  background-color: #111;
}

body {
  max-width: 420px; /* Tamanho de tela de celular */
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.15); /* Sombra estilo celular */
  overflow-x: hidden;
}

/* Header */
header {
  background: var(--header-bg);
  color: var(--white);
  padding: 1.5rem 1rem 1rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.location {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9rem;
}

.location-city {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-bar {
  background: var(--white);
  border-radius: 12px;
  display: flex;
  padding: 0.8rem 1rem;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
  color: var(--text-dark);
}

.search-bar svg {
  fill: var(--primary);
  width: 20px;
  height: 20px;
  margin-left: 8px;
}

/* Categories */
.categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  gap: 10px;
}
.categories-wrapper::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.category-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.category-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Container */
.container {
  padding: 0 1rem;
}

/* Offer Card */
.offer-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.offer-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.offer-image-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.offer-weight {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #222;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.offer-main-info {
  flex: 1;
}

.offer-title {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.offer-subtitle {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.lowest-price-label {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lowest-price-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lowest-price-supermarket {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 4px;
}

.lowest-price-address {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Compare List */
.compare-list {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.compare-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.compare-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.compare-item.highlight {
  color: var(--primary);
  font-weight: 500;
}

/* Buttons */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 25px;
  font-weight: 600;
  margin-top: 1rem;
  width: 100%;
  border: none;
  cursor: pointer;
}

.btn-whatsapp svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
}

/* Nav Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
  z-index: 10;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.75rem;
  gap: 4px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item svg {
  fill: currentColor;
  width: 24px;
  height: 24px;
}

/* General */
.flex { display: flex; }
.space-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.mt-4 { margin-top: 1rem; }

/* Admin */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: #fafafa;
  margin-top: 1rem;
}
.upload-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin: 5px;
}
.preview-image {
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

/* Churrasco Layout */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.counter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.counter button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f0f0f0;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.btn-toggle {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  text-align: center;
}
.btn-toggle.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-toggle-group {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}
.btn-toggle-group .btn-toggle {
  border-radius: 0;
  border-right: none;
}
.btn-toggle-group .btn-toggle:last-child {
  border-right: 1px solid var(--border);
}
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: block;
  text-decoration: none;
}

/* Edit Mode */
.edit-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.edit-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}
. m o d a l - o v e r l a y   {   p o s i t i o n :   f i x e d ;   t o p :   0 ;   l e f t :   0 ;   r i g h t :   0 ;   b o t t o m :   0 ;   b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 5 ) ;   z - i n d e x :   1 0 0 0 ;   d i s p l a y :   f l e x ;   a l i g n - i t e m s :   c e n t e r ;   j u s t i f y - c o n t e n t :   c e n t e r ;   }   . m o d a l - c o n t e n t   {   b a c k g r o u n d :   # f f f ;   p a d d i n g :   2 0 p x ;   b o r d e r - r a d i u s :   1 2 p x ;   w i d t h :   9 0 % ;   m a x - w i d t h :   4 0 0 p x ;   }  
 