/* 
  Casa de Carne São José - Design System
  Style: Clean Natural Premium
  Colors: Forest Green, Cream White, Gold Yellow
  Principles: Sharp Geometry, High Contrast, Luxury Minimalism
*/

:root {
  /* Colors */
  --primary: #1B4332;       /* Forest Green */
  --primary-light: #2D6A4F;
  --accent: #E9C46A;        /* Gold Yellow */
  --accent-dark: #D4A373;
  --bg: #FCFBF7;            /* Cream White */
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #4A4A4A;
  --border: #E5E7EB;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Transitions */
  --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

section {
  scroll-margin-top: 100px; /* Compensa o header fixo */
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--surface);
  color: var(--text);
  overflow-x: hidden; /* Mantido apenas no body para evitar scroll horizontal */
  overflow-y: visible; /* Garante que o scroll vertical flua para o html */
  position: relative;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y; /* Permite scroll vertical nativo com um dedo */
  -webkit-overflow-scrolling: touch; /* Suaviza scroll em dispositivos baseados em webkit */
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 10001;
  transition: top 0.3s ease;
  border: 2px solid var(--accent);
  border-top: none;
}

.skip-link:focus {
  top: 0;
}

h1, h2, h3, .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (max-width: 600px) {
  .container {
    padding: 0 var(--spacing-sm); /* Reduz o recuo lateral em telas pequenas */
  }
}

/* Store Status Bar */
.store-status-bar {
  background: #1B4332;
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1001;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s ease;
  will-change: transform; /* Estabilidade Android */
}

.store-status-bar.closed {
  background: #7a1d1d;
}

.status-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-green 2s infinite;
}

.store-status-bar.closed .status-dot {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
  animation: none;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.status-hours {
  font-size: 0.75rem;
  opacity: 0.9;
  font-family: 'Outfit', sans-serif;
}

@media (max-width: 600px) {
  .status-flex {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .status-hours {
    font-size: 0.7rem;
  }
  header {
    top: 52px; /* Aumenta o recuo se a barra quebrar em duas linhas */
  }
}

/* Header & Nav */
header {
  padding: var(--spacing-sm) 0;
  position: fixed;
  width: 100%;
  top: 36px; /* Altura da status bar */
  z-index: 1000;
  background: rgba(252, 251, 247, 0.95); 
  border-bottom: 1px solid rgba(27, 67, 50, 0.1);
  transition: var(--transition);
  will-change: transform, background-color; /* Otimização GPU Android */
}

@media (min-width: 1024px) {
  header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

header.scrolled {
  padding: 0.8rem 0;
  top: 0; /* No scroll a barra pode sumir ou ficar fixa */
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--primary);
  display: flex;
  flex-direction: column;
}

.logo-text span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Menu Toggle (Burger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* Sections */
.section-padding {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.section-title span {
  color: var(--accent-dark);
  font-style: italic;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* Altura dinâmica para Android/iOS */
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: radial-gradient(circle at 70% 30%, rgba(233, 196, 106, 0.08), transparent 40%);
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4.8rem;
  max-width: 1400px; /* Increased from 1200px */
}

@media (max-width: 968px) {
  .hero-container {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    padding-bottom: 3rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 968px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px; /* Reduzi um pouco para ficar mais elegante */
    gap: 1rem;
    margin: 0 auto;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1.1rem;
    font-size: 1rem;
  }
}

.tag {
  display: inline-block;
  padding: 0.6rem 1.45rem;
  background: rgba(233, 196, 106, 0.15);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6.6rem); /* Reduzido o mínimo para não quebrar no mobile */
  line-height: 0.95;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  word-wrap: break-word;
}

.hero-title span {
  color: var(--accent-dark);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.45rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-image {
  flex: 1.5; /* Give more space to the cow */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 40px;
  right: -40px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

/* Cow X-Ray Interactive Diagram */
.cow-diagram-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  touch-action: auto; /* Deixa o sistema gerenciar o toque no container principal */
}

.cow-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
  transition: var(--transition);
  touch-action: auto; 
}

.cow-outline {
  fill: var(--primary);
  transition: var(--transition);
  pointer-events: none; /* Impede que o corpo do boi capture o toque, permitindo o scroll */
}

/* X-Ray Effect on Container Hover/Touch */
.cow-diagram-container.xray-active .cow-outline {
  fill: rgba(27, 67, 50, 0.05);
  stroke: var(--primary);
  stroke-width: 2px;
  stroke-dasharray: 6;
}

.meat-cut {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  transition: fill 0.3s ease, stroke 0.3s ease;
  touch-action: pan-y;
}

.cow-diagram-container.xray-active .meat-cut {
  stroke: rgba(233, 196, 106, 0.4);
  stroke-width: 1px;
}

.meat-cut.active,
.meat-cut:hover {
  fill: rgba(233, 196, 106, 0.8) !important;
  stroke: var(--accent) !important;
  stroke-width: 3px !important;
}

/* Tooltip */
.cut-tooltip {
  position: absolute;
  background: var(--surface);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
  white-space: nowrap;
  border-left: 4px solid var(--accent);
}

.cut-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.xray-hint {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 1px;
}

.desktop-hint { display: inline; }
.mobile-hint { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 1.45rem 3rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(27, 67, 50, 0.2);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Tradition Section */
#tradicao {
  background: linear-gradient(to bottom, #fcfbf7, #f4f1ea);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

#tradicao::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231b4332' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.tradition-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: var(--spacing-lg) var(--spacing-md);
  border: 1px solid var(--accent);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
}

.tradition-content::after {
  content: 'DESDE 1982';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  padding: 6px 24px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 3px;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(233, 196, 106, 0.3);
}

.tradition-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: var(--spacing-md);
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.stat-item p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0;
}

/* Seção Memória do Cliente (Último Pedido) */
.last-order-container {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.last-order-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--accent);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.last-order-card::after {
  content: 'RETORNO';
  position: absolute;
  top: 10px;
  right: -30px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 5px 40px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .last-order-card::after {
    display: none; /* Remove a fita em celulares muito pequenos para evitar overflow */
  }
}

.last-order-header h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.last-order-header p {
  color: rgba(252, 251, 247, 0.7);
  font-size: 0.95rem;
}

.last-order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(233, 196, 106, 0.1);
  border-bottom: 1px solid rgba(233, 196, 106, 0.1);
}

.last-order-chip {
  background: rgba(233, 196, 106, 0.1);
  border: 1px solid rgba(233, 196, 106, 0.2);
  color: #FCFBF7;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.last-order-chip .chip-weight {
  color: var(--accent);
}

.btn-repeat {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.btn-repeat:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(233, 196, 106, 0.4);
}

.btn-repeat .btn-icon {
  font-size: 1.2rem;
  transition: transform 0.5s ease;
}

.btn-repeat:hover .btn-icon {
  transform: rotate(360deg);
}

.hidden {
  display: none !important;
}

/* Catalog */
.catalog-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* Seção de Produtos - Fundo Verde Floresta Premium */
#produtos {
  background: #1a3a22 !important; /* Forest Green mais escuro e luxuoso */
  color: #FCFBF7;
  transition: background-color 0.5s ease;
}

#produtos .section-title {
  color: #FCFBF7;
}

#produtos .section-title span {
  color: var(--accent);
}

#produtos .category-title {
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background: rgba(255, 255, 255, 0.05); /* Fundo sutil sem blur pesado */
  border: 1px solid rgba(233, 196, 106, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex; /* Layout Horizontal */
  gap: 1.5rem;
  align-items: center;
  border-radius: 0;
  /* backdrop-filter removido para performance mobile */
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.badge-peca {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--accent);
  color: var(--primary);
  padding: 5px 35px;
  font-size: 0.65rem;
  font-weight: 900;
  transform: rotate(45deg);
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  letter-spacing: 1px;
}

.aviso-pesagem {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.5rem;
  font-style: italic;
  display: block;
  opacity: 0.9;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px; /* Barra lateral dourada ao invés de superior */
  background: var(--accent);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: top;
}

.product-card:hover::before {
  transform: scaleY(1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.product-img {
  width: 40%;
  height: 220px;
  overflow: hidden;
  margin-bottom: 0;
  flex-shrink: 0;
  border: 1px solid rgba(233, 196, 106, 0.1);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-info {
  width: 60%;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #FCFBF7;
}

#produtos .product-price {
  color: var(--accent);
}

#produtos label {
  color: rgba(252, 251, 247, 0.7);
}

#produtos .product-weight,
#produtos .product-fat,
#produtos .product-tolerance {
  background: rgba(252, 251, 247, 0.08);
  color: #FCFBF7;
  border: 1px solid rgba(233, 196, 106, 0.3);
}

#produtos .product-cut {
  background: white !important;
  color: #1a472a !important; /* Verde escuro para leitura no branco */
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
}

#produtos select option {
  background-color: var(--bg);
  color: var(--primary);
}

#produtos .product-weight:focus,
#produtos .product-fat:focus,
#produtos .product-tolerance:focus {
  border-color: var(--accent);
  background: white;
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(233, 196, 106, 0.2);
}

#produtos .product-cut:focus {
  border-color: #2D6A4F;
  box-shadow: 0 0 8px rgba(45, 106, 79, 0.3);
  outline: none;
}

#produtos .add-to-cart {
  border-color: var(--accent);
  color: var(--accent);
}

#produtos .add-to-cart:hover {
  background: var(--accent);
  color: #1a3a22;
}

/* Ajustes Responsivos para o card horizontal */
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .product-img {
    width: 100%;
    height: 180px;
  }
  
  .product-info {
    width: 100%;
  }
}

.product-price {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}

.product-weight-selector,
.product-fat-selector,
.product-cut-selector,
.product-tolerance-selector {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-weight-selector label,
.product-fat-selector label,
.product-cut-selector label,
.product-tolerance-selector label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-weight,
.product-fat,
.product-cut,
.product-tolerance {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  outline: none;
  transition: var(--transition);
}

.product-weight,
.product-fat,
.product-cut,
.product-tolerance {
  cursor: pointer;
}

/* Campos de seleção (select) mantêm a setinha */
select.product-fat,
select.product-cut,
select.product-tolerance {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* Novo estilo para o campo de texto de corte (textarea) */
textarea.product-cut {
  min-height: 80px;
  resize: none;
  cursor: text;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 1rem;
  /* Removido background fixo aqui para herdar do seletor #produtos acima */
}

textarea.product-cut::placeholder {
  color: rgba(26, 71, 42, 0.6); /* Verde escuro semi-transparente para visibilidade no branco */
  font-weight: 400;
}

/* Estado de Erro Visual */
.error-border {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.05) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.error-message {
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.product-weight:focus,
.product-fat:focus,
.product-cut:focus,
.product-tolerance:focus {
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.1);
}

.add-to-cart {
  margin-top: 0.5rem;

  width: 100%;
  padding: 1.2rem;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart:hover {
  background: var(--primary);
  color: white;
}

/* Out of Stock State */
.product-card.out-of-stock .product-img img {
  filter: grayscale(100%) opacity(0.5);
}

.product-card.out-of-stock .add-to-cart {
  background: #ccc !important;
  border-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  pointer-events: none;
}

.product-card.out-of-stock::after {
  content: 'Esgotado';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #E63946;
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}

/* Floating Cart */
.cart-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--primary);
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(233, 196, 106, 0.4);
  transform: translateY(200%);
  transition: var(--transition);
  z-index: 1000;
  border-radius: 50px; /* Bordas arredondadas premium */
}

@media (max-width: 600px) {
  .cart-floating {
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem; /* Quase largura total no mobile para facilitar o toque */
    padding: 1rem 1.5rem;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
  }
}

.cart-floating.active {
  transform: translateY(0);
}

.cart-count {
  background: var(--primary);
  color: white;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: 50%;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Cow → Catalog highlight animation */
@keyframes cowPulse {
  0%   { box-shadow: 0 0 0 0px rgba(233, 196, 106, 0.9), 0 15px 30px rgba(0,0,0,0.2); }
  40%  { box-shadow: 0 0 0 10px rgba(233, 196, 106, 0.4), 0 15px 30px rgba(0,0,0,0.2); }
  70%  { box-shadow: 0 0 0 18px rgba(233, 196, 106, 0.15), 0 15px 30px rgba(0,0,0,0.2); }
  100% { box-shadow: 0 0 0 24px rgba(233, 196, 106, 0), 0 15px 30px rgba(0,0,0,0.2); }
}

.product-card.cow-highlight {
  animation: cowPulse 0.9s ease-out 2;
  border-color: var(--accent) !important;
  transform: translateY(-5px);
}

/* Hint label on cow tooltip for click navigation */
.cut-tooltip::after {
  content: ' → ver no catálogo';
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
  font-style: italic;
}


/* Filter & Search Bar */
.filter-wrapper {
  position: relative;
  background: var(--bg);
  padding: 2rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.category-tabs, .subcategory-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-btn, .sub-tab-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.tab-btn:hover, .tab-btn.active,
.sub-tab-btn:hover, .sub-tab-btn.active {
  background: var(--primary);
  color: white;
}

.subcategory-tabs {
  margin-top: 0.5rem;
  border-top: 1px dashed rgba(26, 58, 34, 0.2);
  padding-top: 1rem;
}

.subcategory-tabs.hidden {
  display: none;
}

/* Mobile */
@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    height: auto;
  }

  .hero-content {
    margin-bottom: var(--spacing-xl);
  }

  .hero-image {
    width: 100%;
  }

  .hero-image-wrapper::before {
    top: 20px;
    right: 0; /* Prevents overflow on mobile */
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 85%;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    visibility: hidden; /* Prevent interaction when closed */
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    box-shadow: -20px 0 60px rgba(0,0,0,0.1);
    z-index: 2000; /* Aumentado para garantir que fique sobre o diagrama do boi */
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Hero Section Mobile Final Fix */
  .hero {
    padding-top: 80px;
    overflow-x: hidden;
    text-align: center !important;
  }

  .hero-container {
    flex-direction: column !important;
    gap: 2rem !important;
    padding: 0 1.5rem !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 2.8rem) !important;
    line-height: 1.1 !important;
    margin: 0 auto 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-title br {
    display: none !important; /* Remove o quebra de linha forçado no mobile */
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
    margin: 0 auto 2rem !important;
    max-width: 100% !important;
    opacity: 0.9;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    gap: 1rem !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
  }

  .tag {
    margin: 0 auto 1.5rem !important;
    border-left: none !important;
    border-bottom: 3px solid var(--accent) !important;
    display: inline-block !important;
  }

  .hero-image {
    width: 100% !important;
    margin-top: 1rem !important;
  }

  .calculator-container {
    padding: 1.5rem !important;
    width: calc(100% - 2rem) !important;
    margin: 2rem auto !important;
  }

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

  .desktop-hint { display: none !important; }
  .mobile-hint { display: inline !important; }
}

/* Checkout Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 58, 34, 0.8); /* Forest Green Backdrop */
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Permite rolar o conteúdo longo */
  overflow-y: auto;
  padding: 2rem 1rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg);
  border: 2px solid var(--accent);
  padding: 2.5rem;
  width: 100%;
  max-width: 550px;
  max-height: 85vh; /* Evita que o modal fique maior que a tela */
  overflow-y: auto; /* Ativa a rolagem interna */
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

/* Scrollbar customizado para o modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(27, 67, 50, 0.2);
  border-radius: 4px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal-btn:hover {
  color: var(--accent-dark);
}

.modal-title {
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.1);
}

.pix-info-box {
  background: rgba(233, 196, 106, 0.15);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.pix-key {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255,255,255,0.5);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.pix-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.submit-order-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.submit-order-btn:hover {
  background: var(--primary-light);
  box-shadow: 0 10px 20px rgba(27, 67, 50, 0.2);
}

.hidden {
  display: none !important;
}

/* Calculator Section Styles */
.calculator-container {
  margin-bottom: 3rem;
  background: #fff;
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid #eee;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 576px) {
  .modal-overlay {
    align-items: flex-start;
    padding: 1.5rem 1rem;
  }
  .modal-content {
    padding: 1.5rem;
    max-width: 100%;
  }
}

/* ============================================
   PAYMENT METHODS STRIP (Footer)
   ============================================ */
.payment-strip {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.payment-strip-title {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.payment-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 72px;
}

.payment-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.payment-badge:hover .payment-badge-icon {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.payment-badge span {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-badge span small {
  font-size: 0.65rem;
  opacity: 0.7;
  display: block;
}

.payment-badge--highlight .payment-badge-icon {
  box-shadow: 0 0 0 2px var(--accent);
}

.payment-strip-note {
  font-size: 0.78rem;
  opacity: 0.5;
  color: white;
  margin-top: 0.5rem;
}

/* ============================================
   PAYMENT CHIPS (Checkout Modal)
   ============================================ */
.modal-payment-info {
  background: rgba(233, 196, 106, 0.08);
  border: 1px solid rgba(233, 196, 106, 0.25);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-payment-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.modal-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-pay-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.modal-pay-chip--pix    { background: #fef8e7; color: #d4af37; }
.modal-pay-chip--card   { background: #eaf4ee; color: #1b4332; }
.modal-pay-chip--food   { background: #fdecea; color: #b71c1c; }
.modal-pay-chip--cielo  { background: #fef8e7; color: #d4af37; border: 1px solid #d4af37; }

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.img-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: min(92vw, 700px);
  max-height: 90vh;
  transform: scale(0.88);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.img-lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 3px solid rgba(233, 196, 106, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: block;
  border-radius: 2px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin: 0;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Clickable product image hint */
.product-img {
  cursor: zoom-in;
  position: relative;
}

.product-img::after {
  content: '🔍';
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

.product-img:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .img-lightbox, .lightbox-content {
    transition: none;
  }
}

/* Cart Summary in Modal */
.cart-summary-box {
  margin-bottom: 2rem;
  background: rgba(26, 58, 34, 0.05);
  border: 1px solid var(--accent);
  padding: 1.5rem;
}

.cart-summary-title {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.modal-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 180px; /* Limita a altura da lista de itens */
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Scrollbar customizado para a lista de itens */
.modal-cart-items::-webkit-scrollbar {
  width: 6px;
}
.modal-cart-items::-webkit-scrollbar-track {
  background: rgba(252, 251, 247, 0.05);
}
.modal-cart-items::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(27, 67, 50, 0.1);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.cart-item-details {
  font-size: 0.85rem;
  color: var(--text-light);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #E63946;
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  transition: transform 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  transform: scale(1.3);
  color: #b71c1c;
}

.cart-summary-total {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(27, 67, 50, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
}

.cart-summary-total-value {
  color: var(--accent-dark);
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    transition-delay: -1ms !important;
  }
}

/* ⚖️ Calculadora de Carne (Churrasômetro) */
.calculator-container input[type="range"] {
    cursor: pointer;
}

.calculator-container input[type="range"]::-webkit-slider-runnable-track {
    background: #eee;
    height: 6px;
    border-radius: 3px;
}

.calculator-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: -7px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.calc-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: scale(1.1);
}

.calc-btn:active {
    transform: scale(0.9);
}

#search-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(27, 50, 34, 0.1) !important;
    transform: translateY(-2px);
}

.no-results-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 15px;
    border: 2px dashed #ddd;
    color: var(--text-light);
}

.calculator-container label {
    color: #222 !important;
}

.check-container {
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.check-container:hover {
    border-color: var(--primary);
    background: rgba(27, 50, 34, 0.05);
}

.check-container input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

#calc-breakdown span {
    color: rgba(255,255,255,0.8);
}

#calc-breakdown strong {
    color: var(--accent);
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 1.5rem !important;
    }
    
    #calc-total-kg {
        font-size: 2.5rem !important;
    }
}

/* 🛒 Animação do Carrinho */
@keyframes cart-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    70% { transform: scale(1.1) rotate(0deg); }
    100% { transform: scale(1); }
}

.cart-pop {
    animation: cart-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px var(--accent) !important;
}
/* Premium Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-notification {
  background: rgba(27, 67, 50, 0.95);
  backdrop-filter: blur(10px);
  color: #FCFBF7;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: 1px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 300px;
  justify-content: center;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent);
  font-size: 1.2rem;
}

.toast-notification.error {
  border-color: #ef4444;
}

.toast-notification.error .toast-icon {
  color: #ef4444;
}

@media (max-width: 600px) {
  .toast-container {
    width: 90%;
    bottom: 1.5rem;
  }
  .toast-notification {
    min-width: unset;
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* 🤖 Estilos: Qual carne eu escolho? */
#sugestao-ia {
  background: linear-gradient(180deg, #fcfbf7 0%, #ffffff 100%);
  position: relative;
}

#sugestao-ia::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--accent) 0.5px, transparent 0.5px);
  background-size: 30px 30px;
  opacity: 0.1;
  pointer-events: none;
}

.example-tag:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(27, 67, 50, 0.1);
}

#ia-search-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.05);
}

.ia-result-card {
  transition: all 0.5s ease;
}

#ia-meat-names {
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .ia-search-container {
    padding: 1.5rem !important;
  }
  
  #ia-meat-names {
    font-size: 1.8rem !important;
  }
  
  .ia-result-card {
    padding: 2rem !important;
  }
}

/* Hover effects for buttons inside the IA result */
#ia-see-products:hover {
  background: white !important;
  color: var(--primary) !important;
  transform: translateY(-3px);
}

#ia-reset:hover {
  background: rgba(255,255,255,0.1);
  border-color: white !important;
}
/* 🤖 Animação de Carregamento da IA */
.loading-dots::after {
  content: '.';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60% { content: '...'; }
  80%, 100% { content: ''; }
}

#ia-meat-description strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.ia-result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.ia-result-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  to { left: 100%; }
}
/* Cut & Prep Selectors */
.product-cut-selector {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(233, 196, 106, 0.1);
  width: 100%;
}

.product-cut-selector label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.product-cut {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(233, 196, 106, 0.2);
  color: #FCFBF7;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  resize: none;
  height: 80px;
  transition: var(--transition);
  border-radius: 4px;
}

.product-cut:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(233, 196, 106, 0.1);
}

.product-cut.error-border {
  border-color: #f87171 !important;
  background: rgba(248, 113, 113, 0.05);
}

.error-message {
  color: #f87171;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.error-icon {
  font-size: 0.9rem;
}

/* Scrollbar para o textarea */
.product-cut::-webkit-scrollbar {
  width: 6px;
}

.product-cut::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}

.product-cut::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 10px;
}

/* --- B2B PARTNER MODE STYLES --- */

.partner-badge {
    display: none;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #1B4332;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: badgePulse 2s infinite;
    margin-left: 1rem;
}

.partner-mode-active .partner-badge {
    display: flex;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }
}

.partner-link-container {
    margin-top: 1rem;
    text-align: center;
}

.btn-partner-access {
    background: transparent;
    color: var(--accent);
    border: 1px dashed var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-partner-access:hover {
    background: rgba(233, 196, 106, 0.1);
    transform: translateY(-2px);
}

/* Partner Modal */
.partner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 12000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.partner-modal.active {
    display: flex;
}

/* B2B Savings Panel */
.b2b-savings-panel {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1B4332, #2D6A4F);
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0 15px 0;
    animation: slideUpFade 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.b2b-savings-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    animation: shine 3s infinite;
}

.b2b-savings-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.b2b-savings-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.b2b-savings-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.b2b-savings-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFD700; /* Gold mais vibrante */
    font-weight: 800;
}

.b2b-savings-amount {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.partner-modal-content {
    background: #111;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--accent);
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.partner-modal-header h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.partner-modal-header p {
    color: #888;
    margin-bottom: 2rem;
}

.partner-input-group {
    margin-bottom: 2rem;
}

.partner-input {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.partner-input:focus {
    border-color: var(--accent);
    outline: none;
}

.btn-verify-partner {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify-partner:hover {
    background: #fff;
    transform: scale(1.02);
}

.close-partner-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #555;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Partner UI Adjustments */
.partner-mode-active #monte-seu-blend {
    border-color: #FFD700 !important;
    background: linear-gradient(135deg, #0d1f14 0%, #050a06 100%) !important;
}

.partner-mode-active .blend-price-label {
    position: relative;
}

.partner-mode-active .blend-price-label::after {
    content: 'PREÇO B2B ATIVO';
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 0.6rem;
    color: #FFD700;
    font-weight: 900;
}

/* Quick Blends UI */
.quick-blends-container {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-blends-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-blends-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-quick-blend {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1 1 calc(33.333% - 10px);
    min-width: 140px;
    text-align: center;
}

.btn-quick-blend:hover {
    background: #222;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-quick-blend:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .btn-quick-blend {
        flex: 1 1 100%;
    }
}

/* B2B Last Order Styling */
.b2b-last-order .last-order-card {
    background: linear-gradient(145deg, #151515, #1a1a1a);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.b2b-last-order .last-order-header h3 {
    color: var(--accent);
}

.b2b-last-order .btn-repeat {
    background: var(--accent);
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
}

.b2b-last-order .btn-repeat:hover {
    background: #e5c04a;
    transform: scale(1.02);
}
