/* JuiceWeChoose - Production UI | Mobile-first, Responsive, SEO-friendly */
/* Brand: Dark green #2E6B3F, Lime #84CC16, Orange #E87C2E */

:root {
  --juice-green: #2E6B3F;
  --juice-green-light: #3d8b52;
  --juice-lime: #84CC16;
  --juice-lime-light: #a3e635;
  --juice-orange: #E87C2E;
  --juice-orange-light: #f5a962;
  --juice-cream: #f8faf5;
  --juice-dark: #1a2e22;
  --juice-white: #ffffff;
  --juice-light-blue: #e0f2fe;
  --juice-blue: #0ea5e9;
  --juice-gray-100: #f1f5f9;
  --juice-gray-200: #e2e8f0;
  --juice-gray-500: #64748b;
  --juice-gray-700: #334155;
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--juice-dark);
  background: var(--juice-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ===== PUBLIC HEADER ===== */
.site-header {
  background: var(--juice-white);
  box-shadow: 0 1px 12px rgba(46, 107, 63, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .navbar-brand img { height: 48px; }
}

.navbar-brand .brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--juice-green);
}

.nav-link {
  color: var(--juice-dark) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 10px;
}

.nav-link:hover, .nav-link:focus {
  color: var(--juice-green) !important;
  background: rgba(46, 107, 63, 0.06);
}

.cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn-juice {
  background: var(--juice-green);
  color: var(--juice-white) !important;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-juice:hover {
  background: var(--juice-green-light);
  color: var(--juice-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 107, 63, 0.25);
}

.btn-juice-outline {
  background: transparent;
  color: var(--juice-green);
  border: 2px solid var(--juice-green);
  padding: 0.55rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-juice-outline:hover {
  background: var(--juice-green);
  color: var(--juice-white);
}

.btn-add-cart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--juice-lime);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s;
}

.btn-add-cart:hover { background: var(--juice-lime-light); transform: scale(1.05); }

/* Quantity selector */
.qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--juice-gray-100);
  border-radius: 12px;
  padding: 0.25rem;
}

.qty-selector button {
  width: 36px;
  height: 36px;
  border: none;
  background: white;
  border-radius: 10px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.qty-selector button:hover { background: var(--juice-lime); color: white; }

.qty-selector input {
  width: 44px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 1rem;
}

/* Hero / Banner - white bg, green/white/light blue palette */
.hero-banner {
  background: var(--juice-white);
  border: 1px solid var(--juice-gray-200);
  color: var(--juice-dark);
  padding: 2.5rem 1rem 3rem;
  border-radius: 0 0 24px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(46, 107, 63, 0.06);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 50%;
  height: 160%;
  background: var(--juice-light-blue);
  opacity: 0.5;
  border-radius: 50%;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40%;
  height: 100%;
  background: rgba(46, 107, 63, 0.05);
  border-radius: 50%;
}

@media (min-width: 768px) {
  .hero-banner { padding: 4rem 2rem 5rem; border-radius: 0 0 32px 32px; }
}

.hero-banner .tagline { font-size: 1.1rem; color: var(--juice-green); font-weight: 600; margin-bottom: 0.5rem; }
.hero-banner h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 700; color: var(--juice-green); margin-bottom: 0.75rem; }
.hero-banner .hero-desc { color: var(--juice-gray-700); font-size: 0.95rem; max-width: 480px; }
.hero-banner .btn-light { background: var(--juice-white); color: var(--juice-green) !important; border: 2px solid var(--juice-green); }
.hero-banner .btn-light:hover { background: var(--juice-green) !important; color: var(--juice-white) !important; }

/* Typing animation for hero text */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--juice-green);
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Page animations - fade/slide */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }
.animate-delay-4 { animation-delay: 0.6s; }

/* Coupon inside hero (banner area) */
.hero-coupon-strip {
  margin-top: 1.75rem;
  max-width: 540px;
}

.hero-coupon-strip .coupon-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.coupon-title { font-weight: 700; font-size: 1rem; color: var(--juice-green); display: block; }
.coupon-desc { font-size: 0.9rem; color: var(--juice-gray-700); }

/* Coupon card (standalone / hero) */
.coupon-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 2px dashed var(--juice-green);
  border-radius: 16px;
  padding: 1rem 1.25rem;
}

.coupon-card .code { font-weight: 700; font-size: 1.1rem; color: var(--juice-green); }

/* Categories horizontal scroll */
.categories-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  border-radius: 24px;
  background: white;
  border: 2px solid var(--juice-gray-200);
  color: var(--juice-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--juice-green);
  border-color: var(--juice-green);
  color: white;
}

/* Product cards */
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(46, 107, 63, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(46, 107, 63, 0.12);
}

.product-card-img {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--juice-gray-100);
}

.product-card-body { padding: 1rem; }

.product-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--juice-dark); }
.product-card .ingredients { font-size: 0.8rem; color: var(--juice-gray-500); margin-bottom: 0.5rem; }
.product-card .price { font-weight: 700; color: var(--juice-green); font-size: 1.1rem; }

/* Section titles */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--juice-dark);
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .section-title { font-size: 1.5rem; } }

/* Feature cards */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(46, 107, 63, 0.06);
  border: 1px solid rgba(46, 107, 63, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(46, 107, 63, 0.1);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card .icon.green { background: rgba(46, 107, 63, 0.12); color: var(--juice-green); }
.feature-card .icon.orange { background: rgba(232, 124, 46, 0.15); color: var(--juice-orange); }

/* CTA section */
.cta-section {
  background: var(--juice-green);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.cta-section .btn-juice-outline { border-color: white; color: white; }
.cta-section .btn-juice-outline:hover { background: white; color: var(--juice-green); }

/* Footer */
.site-footer {
  background: var(--juice-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1rem 1.5rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.site-footer a:hover { color: var(--juice-lime-light); }

.footer-logo img { height: 40px; width: auto; margin-bottom: 0.5rem; opacity: 0.95; }
.copyright { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; opacity: 0.75; }

/* Mobile bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 1020;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0 max(0.5rem, env(safe-area-inset-bottom));
}

@media (min-width: 992px) { .bottom-nav { display: none; } }

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: var(--juice-gray-500);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
}

.bottom-nav a:hover { color: var(--juice-green); }
.bottom-nav a.active { color: var(--juice-green); }

.bottom-nav .bi { font-size: 1.35rem; }

/* Page content padding for bottom nav */
@media (max-width: 991px) {
  body { padding-bottom: 70px; }
}

/* Form cards */
.form-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(46, 107, 63, 0.08);
}

/* Order summary */
.order-summary {
  background: var(--juice-gray-100);
  border-radius: 16px;
  padding: 1.25rem;
}

.order-summary .total { font-size: 1.25rem; font-weight: 700; color: var(--juice-green); }

/* Order status badges */
.order-status-completed { background: #0d9488 !important; color: #fff !important; }
.order-status-cancelled { background: #64748b !important; color: #fff !important; }
.order-status-active { background: var(--juice-blue) !important; color: #fff !important; }

/* Utilities */
.text-juice-green { color: var(--juice-green); }
.text-juice-orange { color: var(--juice-orange); }
.bg-juice-cream { background: var(--juice-cream); }
