/* Northern Fancy Meat — Premium Stylesheet */

/* Hero background with warm meat-dark gradient + subtle texture */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #3d1a0a 0%, #1C0A00 70%);
  background-size: cover;
}

/* Filter buttons */
.filter-btn {
  border-color: rgba(122, 106, 94, 0.4);
  color: #7A6A5E;
  background: transparent;
  cursor: pointer;
}
.filter-btn:hover {
  border-color: #C9933A;
  color: #C9933A;
}
.filter-btn.active {
  border-color: #C9933A;
  color: #C9933A;
  background: rgba(201, 147, 58, 0.1);
}

/* Product card */
.product-card {
  background: #3D2B1F;
  border: 1px solid rgba(122, 106, 94, 0.25);
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  border-color: rgba(201, 147, 58, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.product-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #1C0A00;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1C0A00 0%, #3d1a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-body {
  padding: 1.25rem;
}

/* Cart item */
.cart-item {
  background: rgba(61, 43, 31, 0.6);
  border: 1px solid rgba(122, 106, 94, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Checkout modal overlay display */
#checkout-overlay.flex,
#product-overlay.flex {
  display: flex;
}

/* Stripe card element theming */
#card-element {
  background: #1C0A00 !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #1C0A00;
}
::-webkit-scrollbar-thumb {
  background: #3D2B1F;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7A6A5E;
}

/* Pulse animation for badges */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }

/* Admin specific */
.admin-nav { background: #1C0A00; border-bottom: 1px solid rgba(61,43,31,0.8); }
.admin-card { background: #3D2B1F; border: 1px solid rgba(122,106,94,0.25); border-radius: 0.5rem; }
.admin-input {
  background: #1C0A00;
  border: 1px solid rgba(122,106,94,0.4);
  color: #F5EFE6;
  border-radius: 0.375rem;
  padding: 0.625rem 0.875rem;
  width: 100%;
  transition: border-color 0.2s;
}
.admin-input:focus {
  outline: none;
  border-color: #C9933A;
}
.admin-btn {
  background: #C9933A;
  color: #1C0A00;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  font-size: 0.875rem;
}
.admin-btn:hover { background: #e6a840; }
.admin-btn-danger {
  background: #8B1A1A;
  color: #F5EFE6;
}
.admin-btn-danger:hover { background: #a82020; }
.admin-btn-ghost {
  background: transparent;
  border: 1px solid rgba(122,106,94,0.5);
  color: #7A6A5E;
}
.admin-btn-ghost:hover { border-color: #C9933A; color: #C9933A; }

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-family: 'Courier Prime', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.status-pending  { background: rgba(201,147,58,0.15); color: #C9933A; }
.status-ready    { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-fulfilled{ background: rgba(34,197,94,0.15);  color: #4ade80; }
.status-cancelled{ background: rgba(239,68,68,0.15);  color: #f87171; }

/* Image upload preview */
.upload-zone {
  border: 2px dashed rgba(122,106,94,0.4);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: transparent;
}
.upload-zone:hover, .upload-zone.dragging {
  border-color: #C9933A;
  background: rgba(201,147,58,0.05);
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.toast {
  background: #3D2B1F;
  border: 1px solid rgba(122,106,94,0.4);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 360px;
  animation: slideIn 0.2s ease-out;
}
.toast.success { border-left: 3px solid #4ade80; }
.toast.error   { border-left: 3px solid #f87171; }
.toast.info    { border-left: 3px solid #C9933A; }
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
