@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #FF6B35;
  --primary-dark: #E55A2B;
  --secondary-color: #004E89;
  --accent-color: #1A936F;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --dark: #1F2937;
  --light: #F9FAFB;
  --gray: #6B7280;
  --border: #E5E7EB;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #FF8A65 0%, #FFAB40 30%, #FF7043 60%, #FF5722 85%, #E64A19 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0;
  box-shadow: 0 4px 20px var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header h1 .emoji {
  font-size: 2.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  background-color: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.nav-links a:hover {
  background-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px var(--shadow-lg);
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #003366 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #003a6b 0%, #002147 100%);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-color) 0%, #158055 100%);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #158055 0%, #0f5c3d 100%);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #bd2130 100%);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #a71d2a 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gray) 0%, #4B5563 100%);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
  color: var(--dark);
}

.btn-large {
  padding: 15px 40px;
  font-size: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  background-color: var(--light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  background-color: white;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.product-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px var(--shadow-lg);
  border-color: var(--primary-color);
}

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

.product-card h3 {
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 1.3rem;
  font-weight: 600;
}

.product-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.product-card .price {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-color), #0d6e4f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 15px 0;
}

.product-card .category {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--light);
  color: var(--gray);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 2px solid var(--border);
  transition: background 0.2s;
}

.cart-item:hover {
  background-color: var(--light);
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.empty-state i {
  display: block;
  margin-bottom: 20px;
}

.empty-state p {
  font-size: 1.1rem;
  margin-top: 10px;
}

.link-display {
  background: linear-gradient(135deg, #FF8A65 0%, #FFAB40 30%, #FF7043 60%, #FF5722 85%, #E64A19 100%);
  color: white;
  padding: 20px;
  border-radius: 16px;
  margin: 20px 0;
  word-break: break-all;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.link-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.link-display:hover::before {
  left: 100%;
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tabs/Abas */
.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 3px solid var(--border);
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.tab {
  padding: 12px 25px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab:hover {
  color: var(--primary-color);
  background-color: rgba(255, 107, 53, 0.05);
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background-color: rgba(255, 107, 53, 0.1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.badge {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 5px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  color: var(--dark);
  font-size: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.3s;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.1);
}

/* Categorias */
.categoria-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.categoria-pill {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--light), #e5e7eb);
  border: 2px solid var(--border);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.categoria-pill:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,107,53,0.2));
  transform: translateY(-2px);
}

.categoria-pill.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-links a {
    width: 100%;
    text-align: center;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
  
  .tabs {
    flex-wrap: nowrap;
  }
  
  .tab {
    font-size: 14px;
    padding: 10px 15px;
  }
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* Scrollbar customizado */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), #158055);
}

.empresa-item {
  padding: 20px;
  margin-bottom: 15px;
  border: 2px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.empresa-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px var(--shadow-lg);
  transform: translateX(5px);
}

.empresa-item h4 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 1.4rem;
  font-weight: 600;
}

.empresa-item p {
  color: var(--gray);
  margin-bottom: 15px;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.hero {
  background: linear-gradient(135deg, rgba(255,107,53,0.95) 0%, rgba(230,90,43,0.95) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23FF6B35" width="1200" height="600"/></svg>');
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
  color: white;
  border-radius: 30px;
  margin-bottom: 40px;
  box-shadow: 0 15px 50px rgba(255,107,53,0.3);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  margin: 10px;
  background: white;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 15px 40px;
}

.hero .btn:hover {
  background: var(--light);
  transform: translateY(-3px) scale(1.05);
}

.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
  font-weight: 500;
}

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

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: var(--success-color);
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: var(--danger-color);
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: var(--secondary-color);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--shadow);
}

.status-badge::before {
  content: '●';
  font-size: 1.2rem;
}

.status-pendente {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  color: #6c5ce7;
}

.status-confirmado {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
}

.status-em-preparo {
  background: linear-gradient(135deg, #fab1a0, #ff7675);
  color: white;
}

.status-pronto {
  background: linear-gradient(135deg, #55efc4, #00b894);
  color: white;
}

.status-entregue {
  background: linear-gradient(135deg, #81ecec, #00cec9);
  color: white;
}

.status-cancelado {
  background: linear-gradient(135deg, #dfe6e9, #b2bec3);
  color: #2d3436;
}
