/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none;
}

:root {
  --primary-color: #fcb527;
  --primary-dark: #e5a422;
  --secondary-color: #a4201b;
  --success-color: #34c759;
  --danger-color: #a4201b;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --border-color: #d2d2d7;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Roboto", "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-primary);
  background-color: #ffffff;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.05) 3px,
    transparent 1px
  );
  background-size: 30px 30px;
  background-position: 0 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loading-logo {
  width: 200px;
  height: auto;
  animation: fadeInScale 0.8s ease;
}

.loading-logo-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f5f5f7;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: -1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
  max-width: 200px;
  border-radius: 10px;
}

.logo h1 {
  font-family: "Ubuntu", "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo h1 i {
  color: var(--primary-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f5f5f7;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger-color);
  animation: pulse 2s infinite;
}

.status-dot.open {
  background: var(--success-color);
}

.status-text {
  font-weight: 500;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.search-container {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background: #f5f5f7;
  transition: var(--transition);
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(252, 181, 39, 0.1);
}

.search-input:focus-visible {
  outline: none;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  border-bottom: 1px solid #f5f5f7;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f5f5f7;
}

.suggestion-item i {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.suggestion-item span {
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.suggestion-item strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
  padding-bottom: 4rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Categories Navigation */
.categories-nav {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1rem 0;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.categories-nav::-webkit-scrollbar {
  height: 4px;
}

.categories-nav::-webkit-scrollbar-track {
  background: #f5f5f7;
  border-radius: 2px;
}

.categories-nav::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

.category-btn {
  padding: 0.75rem 1.5rem;
  background: #f5f5f7;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.category-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.category-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Products Container */
.products-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.category-section {
  scroll-margin-top: 100px;
}

.category-title {
  font-family: "Ubuntu", "Roboto", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f5f5f7;
}

.beer-icon-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  z-index: 1;
}

.beer-icon-fallback i {
  font-size: 4rem;
  color: #d4a574;
  opacity: 0.6;
}

.cold-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: #4a90e2;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.375rem;
  border-radius: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  animation: pulse 2s ease-in-out infinite;
}

.product-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.product-code {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0;
  opacity: 0.7;
  font-weight: 400;
}

.product-unavailable {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.product-actions {
  margin-top: auto;
}

.btn-add {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-add:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.btn-add:active {
  transform: scale(0.98);
}

.btn-add:disabled,
.btn-add.disabled {
  background: #d2d2d7;
  color: #86868b;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-add.disabled:hover {
  background: #d2d2d7;
  transform: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.cart-sidebar.open {
  right: 0;
}

@media (min-width: 769px) {
  .cart-sidebar {
    right: -400px;
    width: 400px;
    max-width: 400px;
  }

  .cart-sidebar.open {
    right: 0;
  }
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 1;
}

.cart-header h2 {
  font-family: "Ubuntu", "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.cart-close:hover {
  background: #f5f5f7;
  color: var(--text-primary);
}

.cart-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem 0;
  background: #f5f5f7;
  border-radius: var(--radius-md);
}

.cart-item-image-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: #f5f5f7;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-image-wrapper .beer-icon-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  z-index: 1;
}

.cart-item-image-wrapper .beer-icon-fallback i {
  font-size: 1.5rem;
  color: #d4a574;
  opacity: 0.6;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.cart-item-price {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.quantity-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
}

.quantity-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
}

.remove-item {
  background: none;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  margin-left: auto;
  transition: var(--transition);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.remove-item:hover {
  text-decoration: underline;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  position: sticky;
  bottom: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f5f5f7;
  border-radius: var(--radius-md);
}

.total-label {
  font-size: 1.125rem;
  font-weight: 600;
}

.total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.btn-clear-cart {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-bottom: 0.75rem;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-clear-cart:hover {
  background: var(--danger-color);
  color: white;
}

.btn-checkout {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 0.75rem;
}

.btn-checkout:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.btn-checkout:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-checkout:disabled,
.btn-checkout.disabled {
  background: #d2d2d7;
  color: #86868b;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.min-value-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-md);
  color: #856404;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.min-value-warning i {
  color: #ffc107;
  font-size: 1rem;
}

/* WhatsApp Toggle Button (Mobile) */
.whatsapp-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  transition: var(--transition);
  font-size: 1.75rem;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  background: #20ba5a;
}

.whatsapp-toggle .whatsapp-icon {
  font-size: 1.75rem;
}

@media (min-width: 769px) {
  .whatsapp-toggle {
    display: none;
  }
}

/* Cart Toggle Button (Mobile) */
.cart-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  transition: var(--transition);
  font-size: 1.5rem;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.cart-toggle .cart-icon {
  font-size: 1.5rem;
}

@media (min-width: 769px) {
  .cart-toggle {
    display: none;
  }
}

.cart-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.cart-toggle.cart-bounce {
  animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2) rotate(-5deg);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  75% {
    transform: scale(1.1) rotate(-2deg);
  }
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.cart-count.count-pop {
  animation: countPop 0.4s ease;
}

@keyframes countPop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: calc(90vh - 60px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  margin-bottom: 60px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: "Ubuntu", "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
  background: #f5f5f7;
  color: var(--text-primary);
}

/* Form Styles */
.checkout-form {
  padding: 1.5rem;
  padding-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group-half {
  flex: 1;
  margin-bottom: 0;
}

.form-error {
  display: none;
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-input:focus-visible {
  outline: none;
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--danger-color);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231D1D1F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .checkout-form {
    padding-bottom: 100px; /* Espaço para os botões fixos */
  }

  .form-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem;
    z-index: 1000;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    background: var(--bg-primary);
    max-width: 100%;
  }

  .modal-content {
    padding-bottom: 80px; /* Espaço para os botões fixos */
  }
}

.delivery-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f5f5f7;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.delivery-notice i {
  color: var(--primary-color);
  font-size: 1rem;
}

.delivery-notice span {
  flex: 1;
}

.delivery-notice-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.delivery-notice-fixed i {
  font-size: 1rem;
}

.delivery-notice-fixed span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .delivery-notice-fixed {
    font-size: 0.8125rem;
    padding: 0.875rem 1rem;
  }

  .main-content {
    padding-bottom: 60px;
  }
}

.btn-cancel {
  flex: 1;
  padding: 0.875rem;
  background: #f5f5f7;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-cancel:hover {
  background: var(--border-color);
}

.btn-submit {
  flex: 1;
  padding: 0.875rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* Map Styles */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
  filter: grayscale(100%) contrast(1.1);
  -webkit-filter: grayscale(100%) contrast(1.1);
}

/* Estilo para Google Maps - aplicado via JavaScript no initMap() */
.map-container {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

.btn-location {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-location:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.btn-location:active {
  transform: scale(0.98);
}

.btn-location:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Toggle Switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.toggle-input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: var(--border-color);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle-input:checked + .toggle-slider {
  background: var(--primary-color);
}

.toggle-input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-text {
  font-weight: 500;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    #f5f5f7 25%,
    rgba(255, 255, 255, 0.5) 50%,
    #f5f5f7 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-image {
  height: 200px;
}

.skeleton-text {
  height: 1rem;
  margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .header-top {
    gap: 0.75rem;
  }

  .logo {
    flex: 0 0 auto;
    margin-left: -1rem;
    padding-left: 1rem;
  }

  .logo-image {
    height: 45px;
    max-width: 120px;
  }

  .status-indicator {
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
  }

  .header-right {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .search-container {
    max-width: 100%;
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .schedule-time {
    margin-left: 0;
  }

  .cart-sidebar {
    max-width: 100%;
    width: 100%;
    right: -100%;
  }

  .whatsapp-toggle {
    bottom: 1rem;
    left: 1rem;
    width: 56px;
    height: 56px;
    display: flex;
  }

  .cart-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    display: flex;
  }

  .modal-content {
    max-width: 100%;
    margin: 0.75rem;
    margin-bottom: 60px;
    max-height: calc(100vh - 1.5rem - 60px);
    border-radius: var(--radius-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-lg);
  }

  .modal-overlay {
    padding: 0.75rem;
    align-items: center;
    justify-content: center;
  }

  .modal-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }

  .checkout-form {
    padding-bottom: 100px; /* Espaço para os botões fixos */
  }

  .form-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem;
    z-index: 1000;
    max-width: 100%;
    margin-bottom: 48 px;
  }

  .closed-store-content {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }

  .closed-store-modal {
    align-items: flex-end;
    padding: 0;
  }

  .closed-store-message {
    padding: 2rem 1.5rem;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }

  .closed-icon {
    font-size: 3rem;
  }

  .checkout-form {
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-image {
    height: 50px;
    max-width: 150px;
  }

  .main-content {
    padding: 1rem 0;
    padding-bottom: 4rem;
  }

  .container {
    padding: 0 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group-half {
    margin-bottom: 1.5rem;
  }

  .map-container {
    height: 250px;
  }
}

@media (min-width: 769px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-top {
    flex: 0 0 auto;
    width: auto;
  }

  .header-right {
    flex: 1;
    width: auto;
    min-width: 300px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 1025px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 300px;
  max-width: 100%;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  pointer-events: auto;
  border-left: 4px solid;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  border-left-color: var(--success-color);
  background: #f0f9f4;
}

.toast-error {
  border-left-color: #e74c3c;
  background: #fef2f2;
}

.toast-warning {
  border-left-color: #f39c12;
  background: #fffbf0;
}

.toast-info {
  border-left-color: var(--primary-color);
  background: #fff9e6;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.toast-content i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-success .toast-content i {
  color: var(--success-color);
}

.toast-error .toast-content i {
  color: #e74c3c;
}

.toast-warning .toast-content i {
  color: #f39c12;
}

.toast-info .toast-content i {
  color: var(--primary-color);
}

.toast-message {
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  opacity: 0.6;
}

.toast-close:hover {
  opacity: 1;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .toast-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: 100%;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* Flying Product Animation */
.flying-product {
  position: fixed;
  width: 60px;
  height: 60px;
  z-index: 10000;
  pointer-events: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flying-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: #ffffff;
  margin-top: 4rem;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: "Ubuntu", "Roboto", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-title i {
  font-size: 1.125rem;
}

.footer-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.schedule-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.schedule-item-today {
  background: rgba(252, 181, 39, 0.2);
  border: 1px solid var(--primary-color);
}

.schedule-item-today .schedule-day {
  color: var(--primary-color);
  font-weight: 600;
}

.schedule-item-today .schedule-time {
  color: var(--primary-color);
  font-weight: 600;
}

.schedule-day {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.schedule-time {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.footer-whatsapp-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-whatsapp-link:hover {
  color: #25d366;
}

.footer-whatsapp-link i {
  font-size: 1rem;
}

.footer-credits {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-version {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

/* Age Verification Modal */
.age-verification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-verification-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.age-verification-icon {
  font-size: 4rem;
  color: var(--warning-color);
  margin-bottom: 1.5rem;
}

.age-verification-title {
  font-family: "Ubuntu", "Roboto", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.age-verification-text {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.age-verification-subtext {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.age-verification-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-age-yes {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-age-yes:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-age-no {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-age-no:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .age-verification-content {
    padding: 2rem 1.5rem;
  }

  .age-verification-icon {
    font-size: 3rem;
  }

  .age-verification-title {
    font-size: 1.5rem;
  }
}

/* Closed Store Modal */
.closed-store-modal {
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.closed-store-content {
  max-width: 450px;
  width: 90%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  position: relative;
}

.closed-store-message {
  padding: 3rem 2rem;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
}

.closed-title {
  font-family: "Ubuntu", "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  width: 100%;
}

.closed-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closed-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  width: 100%;
}

.closed-info {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: #f5f5f7;
  border-radius: var(--radius-md);
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
}

.closed-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.closed-btn {
  max-width: 200px;
  width: 100%;
  margin-top: 1rem;
}

/* Print Styles */
@media print {
  .cart-sidebar,
  .cart-toggle,
  .header,
  .footer {
    display: none;
  }
}
