/* Almeida & Brasil - Global Styles */
/* Estilos globais compartilhados entre todas as páginas */

:root {
  /* Brand Colors - Almeida & Brasil */
  --primary: #143357; /* Azul escuro principal */
  --primary-light: #1e4a73;
  --secondary: #fccd42; /* Amarelo destaque */
  --accent: #51834b; /* Verde complementar */
  
  /* Status Colors */
  --success: #10b981;
  --destructive: #ef4444;
  --danger: #ef4444;
  
  /* Neutral Colors */
  --background: #fafafa;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Radius */
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  padding-top: 120px; /* Espaço para o header fixo */
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
/* LOADER */
.loader {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader img {
  max-width: 300px;
}
/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.hidden { display: none !important; }
.block { display: block; }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Header */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-lg);
  z-index: 1000 !important;
  transition: transform 0.3s ease;
}

.header-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.header-main {
  padding: 1rem 0;
}

/* Location Modal */
.location-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.location-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.location-modal-content {
  position: relative;
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.location-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.location-modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.location-modal-title svg {
  color: var(--primary);
}

.location-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.location-modal-close:hover {
  color: var(--text);
}

.location-modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.location-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.location-option:hover {
  border-color: var(--primary);
  background-color: rgba(20, 51, 87, 0.05);
}

.location-option.selected {
  border-color: var(--primary);
  background-color: rgba(20, 51, 87, 0.05);
}

.location-check {
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-option.selected .location-check {
  opacity: 1;
}

.location-modal-footer {
  padding: 1rem 1.5rem;
  background-color: var(--muted);
  border-top: 1px solid var(--border);
}

.location-modal-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo .primary { color: var(--secondary); }
.logo .accent { color: #a3e635; }

.nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  margin-right: 2rem;
}

.nav a {
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1e4a73);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary), #fdd835);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: #fdd835;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #10b981, var(--success));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border: 2px solid var(--border);
  background-color: transparent;
  color: var(--text);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.15);
  color: inherit;
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Cards */
.card {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--primary);
  color: white;
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--primary);
}

.badge-accent {
  background-color: var(--accent);
  color: white;
}

.badge-success {
  background-color: #10b981;
  color: white;
}

.badge-warning {
  background-color: #f59e0b;
  color: white;
}

.badge-danger {
  background-color: #ef4444;
  color: white;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-image-container {
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 1 / 1; /* Força a proporção 1:1 (quadrado) */
  overflow: hidden;    /* Esconde qualquer parte da imagem que vaze */
  position: relative;   /* Importante para os badges */
}

.product-image {
  width: 100%;
  height: 100%;
  background-color: var(--border);
  object-fit: contain; /* Mágica: preenche o espaço sem distorcer */
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.product-favorite {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-favorite {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.price-original {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.8;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary);
  z-index: 9999;
  display: none;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

.mobile-menu-nav a {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav a svg {
  flex-shrink: 0;
}

.mobile-menu-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s;
}

.mobile-menu-contact:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hover-link {
  transition: color 0.3s;
}

.hover-link:hover {
  color: var(--secondary);
}

/* Form Elements */
.select, 
select,
.form-select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background-color: var(--card);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select:hover,
select:hover,
.form-select:hover {
  border-color: var(--primary-light);
  background-color: rgba(20, 51, 87, 0.05);
}

.select:focus,
select:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 51, 87, 0.1);
}

/* Responsive Design */
@media (max-width: 640px) {
  .hide-on-small-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .md-hidden {
    display: block;
  }
  
  .md-block {
    display: none;
  }
  
  .hide-on-mobile {
    display: none !important;
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .desktop {
      display: none !important;
  }
  .desenvolvido {
      flex-direction: column;
  }
}

@media (min-width: 769px) {
  .md-hidden {
    display: none;
  }
  
  .md-block {
    display: block;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cookie Consent Modal Styles */
.cookie-consent-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@media (min-width: 640px) {
  .cookie-consent-modal {
    align-items: center;
  }
}

.cookie-consent-overlay {
  position: absolute;
  inset: 0;
}

.cookie-consent-content {
  position: relative;
  background-color: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 42rem;
  width: 100%;
  padding: 1.5rem;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-consent-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cookie-consent-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.cookie-consent-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.cookie-consent-close:hover {
  color: var(--color-text);
}

.cookie-consent-text {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cookie-consent-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cookie-consent-buttons {
    flex-direction: row;
  }
}

.cookie-consent-accept,
.cookie-consent-decline {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.cookie-consent-accept {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.cookie-consent-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.cookie-consent-decline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.cookie-consent-decline:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.desenvolvido {
    font-weight: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}
.hide {
  display: none!important;
}
.fadeInOut {
  animation: 2s fadeInOut 0s infinite;
}
.telefone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.telefone.horiz {
  flex-direction: row;
  justify-content: space-between;
}

/* BOTÕES FIXOS */
.botoes_fixos {
  position: fixed;
  display: flex;
  flex-direction: row;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 1;
  -moz-transition: .5s;
  -webkit-transition: .5s;
  transition: .5s; /* Animation */
}
.botoes_fixos a:not(:first-child), .botoes_fixos div.botao_fixo:not(:first-child) {
  margin-left: 30px;
}
.botoes_fixos.sobe {
  flex-direction: column;
}
.botoes_fixos.sobe a, .botoes_fixos.sobe div.botao_fixo {
  margin-left: 0;
}
.botoes_fixos .whatsapp{
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background-color: #0d8608;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
  font-size: 35px;
  cursor: pointer;
}
.botoes_fixos .whatsapp svg{
  width: 40px;
  height: 40px;
  fill: var(--card);
  stroke: none;
}
.botoes_fixos .whatsapp:hover{
  background-color: #0d8608;
  color: var(--card);
}
.botoes_fixos .whatsapp:active{
  background-color: #0d8608;
  color: var(--card);
}
.botoes_fixos .whatsapp:visited{
  background-color: #0d8608;
  color: var(--card);
}
/* BOTÕES FIXOS */
.redes {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.redes svg {
  color: var(--card);
  width: 25px;
  height: 25px;
  fill: var(--card);
  stroke: none;
}
.redes.sm svg {
  width: 20px;
  height: 20px;
}
.redes a {
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.redes a:hover svg {
  fill: var(--secondary);
}
@keyframes fadeInOut {
  0%   {opacity: 0;}
  25%  {opacity: .5;}
  50%  {opacity: 1;}
  75%  {opacity: .5;}
  100% {opacity: 0;}
}