:root {
  --sheet-height: min(70vh, 560px);
  --brand: #1b4332;
  --accent: #2d6a4f;
  --danger-clash: #c1121f;
  --success-clash: #2b9348;
}

.app-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(45, 106, 79, 0.12), transparent 40%),
    linear-gradient(180deg, #f7faf8 0%, #eef2ef 100%);
  color: #1a1a1a;
}

.order-page {
  padding-bottom: 5rem;
  min-height: calc(100vh - 56px);
}

.order-page-embedded {
  min-height: auto;
  padding-bottom: 5rem;
}

.choice-card {
  border: 0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  overflow: hidden;
}

.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27, 67, 50, 0.14);
  outline: none;
}

.choice-card.sold-out {
  cursor: not-allowed;
  opacity: 0.75;
}

.choice-card .media {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #d8f3dc, #b7e4c7);
  font-size: 2.5rem;
  color: var(--brand);
  position: relative;
}

.choice-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choice-card .media .sold-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  color: #c1121f;
  font-size: 3rem;
}

.choice-card .body {
  padding: 0.85rem 1rem 1rem;
}

.choice-card.text-center .body {
  text-align: center;
}

.choice-card .price {
  color: var(--accent);
  font-weight: 700;
}

.order-tab {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.order-tab-btn {
  pointer-events: auto;
  position: relative;
  border: 1px solid rgba(255, 236, 160, 0.85);
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(180deg, #2d6a4f 0%, #1b4332 100%);
  color: #fff;
  padding: 0.75rem 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(255, 215, 100, 0.35),
    0 0 14px rgba(255, 214, 102, 0.45),
    0 0 28px rgba(255, 236, 160, 0.25),
    0 -6px 20px rgba(0, 0, 0, 0.18);
  animation: tab-sparkle 2.4s ease-in-out infinite;
}

.order-tab-btn::before,
.order-tab-btn::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 248, 200, 0.95);
  box-shadow: 0 0 8px rgba(255, 236, 160, 0.9);
  animation: star-twinkle 1.8s ease-in-out infinite;
  pointer-events: none;
}

.order-tab-btn::before {
  top: 8px;
  left: 12px;
}

.order-tab-btn::after {
  top: 10px;
  right: 14px;
  animation-delay: 0.9s;
}

@keyframes tab-sparkle {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 215, 100, 0.3),
      0 0 12px rgba(255, 214, 102, 0.35),
      0 0 22px rgba(255, 236, 160, 0.18),
      0 -6px 20px rgba(0, 0, 0, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 236, 160, 0.7),
      0 0 18px rgba(255, 214, 102, 0.55),
      0 0 34px rgba(255, 248, 200, 0.32),
      0 -6px 20px rgba(0, 0, 0, 0.18);
  }
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.order-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sheet-height);
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.order-sheet.open {
  transform: translateY(0);
}

.order-sheet-handle {
  text-align: center;
  border-bottom: 1px solid #e9ecef;
  padding: 0.25rem 0;
}

.order-sheet-body {
  overflow: auto;
  flex: 1;
}

.order-sheet-actions .btn {
  font-weight: 700;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
}

.btn-sheet-danger {
  background: var(--danger-clash) !important;
  color: #fff !important;
  box-shadow: 0 4px 0 #780000;
}

.btn-sheet-ok {
  background: var(--success-clash) !important;
  color: #fff !important;
  box-shadow: 0 4px 0 #1b5e2f;
}

.swal-clash {
  border-radius: 1rem !important;
  padding-bottom: 1.25rem !important;
}

.swal-clash .swal2-title {
  font-size: 1.25rem !important;
}

.swal-clash .swal2-html-container {
  margin: 0.5rem 1rem 0 !important;
}

.swal-clash .swal2-actions,
.swal-clash-actions {
  width: 100% !important;
  margin: 1.25rem 0 0 !important;
  padding: 0 1rem !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
}

.swal-clash .btn-clash-cancel,
.swal-clash .btn-clash-ok {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  color: #fff !important;
  font-weight: 700 !important;
  flex: 1;
  padding: 0.7rem 1rem !important;
  font-size: 1rem !important;
}

.swal-clash .btn-clash-cancel {
  background: var(--danger-clash) !important;
  box-shadow: 0 4px 0 #780000;
}

.swal-clash .btn-clash-ok {
  background: var(--success-clash) !important;
  box-shadow: 0 4px 0 #1b5e2f;
}

.swal-clash .btn-clash-cancel:focus,
.swal-clash .btn-clash-ok:focus {
  box-shadow: 0 4px 0 #780000, 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

.swal-clash .btn-clash-ok:focus {
  box-shadow: 0 4px 0 #1b5e2f, 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.qty-control button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-control input {
  width: 76px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  border: 2px solid var(--brand);
  border-radius: 0.65rem;
  padding: 0.4rem;
}

.qty-total {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.pedidos-page .list-group-item {
  cursor: pointer;
}

.pedidos-page .tab-panel {
  min-height: 200px;
}

.admin-panel .table img.thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .order-tab-btn,
  .order-tab-btn::before,
  .order-tab-btn::after {
    animation: none;
  }
}
