:root {
  --primary: #f59e0b;
  /* Amber 500 for Beez theme */
  --primary-dark: #d97706;
  /* Amber 600 */
  --dark-bg: #111827;
  /* Gray 900 */
  --card-bg: #1f2937;
  /* Gray 800 */
  --beez-yellow: #f59e0b;
  --beez-dark: #111827;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f3f4f6;
  /* Gray 100 */
  color: #1f2937;
  padding-bottom: 70px;
  /* Space for mobile bottom nav */
}

/* Custom Scrollbar for app-like feel */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Product Card animations */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Mobile Bottom Nav Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  z-index: 50;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 40;
  transition: transform 0.2s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* Tracking Step Styles */
.tracking-step {
  position: relative;
  padding-left: 35px;
  margin-bottom: 30px;
}

.tracking-step::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 5px;
  height: 100%;
  width: 2px;
  background-color: #e5e7eb;
}

.tracking-step:last-child::before {
  display: none;
}

.tracking-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e5e7eb;
  border: 4px solid white;
  box-shadow: 0 0 0 2px #e5e7eb;
}

.tracking-step.active .tracking-dot {
  background-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
  animation: pulse 2s infinite;
}

.tracking-step.completed .tracking-dot {
  background-color: var(--primary-dark);
  box-shadow: 0 0 0 2px var(--primary-dark);
}

.tracking-step.completed::before {
  background-color: var(--primary-dark);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Product Description Formatting */
.product-description {
  line-height: 1.8;
  color: #374151;
  /* Gray 700 */
  white-space: normal;
  /* Normal rendering for HTML */
  font-size: 0.95rem;
}

.product-description b,
.product-description strong {
  color: #111827;
  font-weight: 700;
}

.product-description table {
  width: 100%;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #fde68a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-collapse: collapse;
  /* Added for table styling */
}

.product-description th {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  /* Removed default border */
}

.product-description td {
  padding: 12px 16px;
  border-bottom: 1px solid #fef3c7;
  font-size: 13px;
  color: #4b5563;
  border: none;
  /* Removed default border */
}

.product-description tr:last-child td {
  border-bottom: none;
}

.product-description ul {
  margin-bottom: 0.5rem;
}

.product-description ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-description li {
  margin-bottom: 0.25rem;
}

.product-description table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.product-description th,
.product-description td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.product-description th {
  background-color: #f9fafb;
  font-weight: 600;
}

.product-description img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.product-description bold,
.product-description strong {
  font-weight: 700;
  color: #111827;
}

.product-description h3 {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

/* --- Premium BeezStores Additions --- */

/* Language Toggle Styling */
.lang-toggle {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 2px;
  display: flex;
  gap: 2px;
}

.lang-toggle button {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.lang-toggle button.active {
  background: white;
  color: var(--beez-yellow);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.4);
}

/* Price Comparison */
.market-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 11px;
  margin-right: 5px;
}

.beez-price {
  color: #059669;
  /* Emergency green for good deals or beez-dark? User liked beez-dark/yellow */
}

/* Savings Ribbon */
.savings-tag {
  background: #ecfdf5;
  color: #059669;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

/* Supermarket Highlight */
.supermarket-highlight {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
}

/* Micro-animations */
@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }

  75% {
    transform: translateX(-2px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake-on-hover:hover {
  animation: shake 0.5s ease-in-out;
}

.premium-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}