:root {
  --primary-color: #28a745;
  --primary-color-rgb: 40, 167, 69;
  --secondary-color: #e83e8c;
  --dark-bg: #0f172a;
  --light-bg: #f8f9fa;
  --text-light: #f8f9fa;
  --text-dark: #212529;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s ease;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* scroll-behavior: auto; */
}

.dark-mode {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

.light-mode {
  background-color: var(--light-bg);
  color: var(--text-dark);
}

/* Modern Welcome Screen Styles - All scoped under .welcome-screen */
.welcome-screen.modern-welcome {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--light-bg);
  transition: background-color 0.3s ease;
}

.dark-mode .welcome-screen.modern-welcome {
  background-color: var(--dark-bg);
}

/* Header with Half Circle */
.welcome-screen .header-arc {
  position: relative;
  height: 180px;
  overflow: hidden;
  margin-bottom: 50px;
}

.welcome-screen .header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleX(1.5);
}

.welcome-screen .header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleX(1.5);
  filter: brightness(0.8);
}

/* Header Content */
.welcome-screen .header-content {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.welcome-screen .language-button {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.welcome-screen .language-flag {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.welcome-screen .theme-toggle {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Logo */
.welcome-screen .logo-container {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.welcome-screen .restaurant-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 0.05rem;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  object-fit: contain;
  animation: fadeIn 0.5s ease-in-out;
}

.welcome-screen .welcome-title {
  color: var(--text-dark);
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  text-align: center;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  display: -webkit-box !important;
  overflow: hidden !important;
}

.welcome-screen .welcome-message {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5rem;
}

.dark-mode .welcome-screen .welcome-title,
.dark-mode .welcome-screen .welcome-message {
  color: var(--text-light);
}

/* Welcome Description */
.welcome-screen .welcome-description-container {
  margin-top: 50px;
  text-align: center;
  padding: 0 1.5rem;
  animation: slideUp 0.5s ease-in-out;
}

.welcome-screen .welcome-description {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.dark-mode .welcome-screen .welcome-description {
  color: #aaa;
}

/* Likes */
.likes-divider {
  margin: 0 6px;
  color: #aaa;
}

.like-icon {
  color: #e83e8c;
  margin-right: 4px;
}

/* For better spacing in the ratings line */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.welcome-screen-video .rating {
  margin-bottom: 0rem;
}

/* Responsive adjustments */
@media (max-width: 375px) {
  .rating {
    font-size: 0.9rem;
  }
}

.welcome-screen .rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.welcome-screen .star {
  color: #ffd700;
}

.dark-mode .welcome-screen .star {
  color: #ffd700;
}

/* Actions */
.welcome-screen .actions-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  animation: fadeIn 0.8s ease-in-out;
}

.welcome-screen .action-button {
  background-color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
}

.welcome-screen .action-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.welcome-screen .action-button.primary {
  background-color: var(--primary-color);
  color: white;
}

.welcome-screen .action-button.primary:hover {
  filter: brightness(1.1);
}

.welcome-screen .action-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.welcome-screen .action-button.primary .action-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

.welcome-screen .action-text {
  flex: 1;
  text-align: left;
}

.welcome-screen .action-title {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.welcome-screen .action-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
}

.welcome-screen .action-arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.welcome-screen .action-button:hover .action-arrow {
  transform: translateX(3px);
}

/* Info Cards */
.welcome-screen .info-container {
  margin-top: 2rem;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  padding-bottom: 2rem;
  animation: slideUp 0.8s ease-in-out;
}

.welcome-screen .info-card {
  background-color: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .welcome-screen .info-card {
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.welcome-screen .info-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.welcome-screen .info-icon {
  margin-right: 0.8rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.welcome-screen .info-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.welcome-screen .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.welcome-screen .copy-button {
  background: none;
  border: none;
  color: #999;
  padding: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.welcome-screen .copy-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

.dark-mode .welcome-screen .copy-button {
  color: #777;
}

.dark-mode .welcome-screen .copy-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.welcome-screen .info-value {
  font-weight: 500;
}

/* Social Icons */
.welcome-screen .social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
  justify-content: center;
}

.welcome-screen .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.dark-mode .welcome-screen .social-icon {
  background-color: #333;
  color: #ddd;
}

.welcome-screen .social-icon:hover {
  transform: translateY(-3px);
  background-color: var(--primary-color);
  color: white;
}

.welcome-screen .info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.welcome-screen .info-tag {
  background-color: #f0f0f0;
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dark-mode .welcome-screen .info-tag {
  background-color: #333;
}

/* Dark mode for action buttons */
.dark-mode .welcome-screen .action-button {
  background-color: #1e1e1e;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .welcome-screen .action-button.primary {
  background-color: var(--primary-color);
}

.dark-mode .welcome-screen .action-icon {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 576px) {
  .welcome-screen .header-arc {
    height: 120px;
  }

  .welcome-screen .logo-container {
    top: 50px;
  }

  .welcome-screen .welcome-title {
    font-size: 1.6rem;
  }

  .welcome-screen .welcome-message {
    font-size: 1rem;
  }

  .welcome-screen .welcome-description-container {
    margin-top: 3vh;
  }

  .welcome-screen .welcome-description {
    font-size: 0.9rem;
  }

  .welcome-screen .actions-container {
    gap: 0.6rem;
  }

  .welcome-screen .action-button {
    padding: 0.8rem;
  }

  .welcome-screen .action-icon {
    width: 30px;
    height: 30px;
    margin-right: 0.8rem;
  }
}

/* Animations - keep these global */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.welcome-screen .pulse {
  animation: pulse 2s infinite;
}

/* Video Background Welcome Screen Styles */
.welcome-screen-video {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Background Container */
.welcome-screen-video .background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.welcome-screen-video .video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.welcome-screen-video .static-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.welcome-screen-video .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.7)
  );
}

/* Header */
.welcome-screen-video .header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-screen-video .language-button {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.welcome-screen-video .language-flag {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.welcome-screen-video .theme-toggle {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

/* Content */
.welcome-screen-video .content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  text-align: center;
  color: white;
}

.welcome-screen-video .logo-container {
  /* Override the base welcome screen properties */
  position: relative !important;
  /* Force override */
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 1;

  /* New video version specific styles */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0rem;
  margin-bottom: 0.2rem;
  animation: fadeIn 0.5s ease-in-out;
  width: 100%;
}

.welcome-screen-video .restaurant-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 0.05rem;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  margin-bottom: 1rem;
}

.welcome-screen-video .welcome-text {
  margin-bottom: 2rem;
  width: 100%;
  max-width: 600px;
  animation: slideUp 0.5s ease-in-out;
}

.welcome-screen-video .welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  display: -webkit-box !important;
  overflow: hidden !important;
}

.welcome-screen-video .welcome-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1rem;
  color: white;
}

.welcome-screen-video .rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0rem;
}

.welcome-screen-video .star {
  color: #ffd700;
}

/* Actions */
.welcome-screen-video .actions-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-in-out;
}

.welcome-screen-video .action-button {
  background-color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
}

/* Glassy Action Buttons for Video Mode */

/* Regular action buttons */
.welcome-screen-video .action-button {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.welcome-screen-video .action-button:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Text color for action buttons */
.welcome-screen-video .action-title {
  color: white;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.welcome-screen-video .action-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

/* Primary action button */
.welcome-screen-video .action-button.primary {
  background-color: rgba(var(--primary-color-rgb, 40, 167, 69), 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-color-rgb, 40, 167, 69), 0.3);
  color: white;
}

.welcome-screen-video .action-button.primary:hover {
  background-color: rgba(var(--primary-color-rgb, 40, 167, 69), 0.35);
  border: 1px solid rgba(var(--primary-color-rgb, 40, 167, 69), 0.4);
}

/* Action icons */
.welcome-screen-video .action-icon {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.welcome-screen-video .action-button.primary .action-icon {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Arrow icon */
.welcome-screen-video .action-arrow {
  color: rgba(255, 255, 255, 0.8);
}

/* Info Cards */
.welcome-screen-video .info-container {
  margin-top: 2rem;
  width: 100%;
  max-width: 600px;
  animation: slideUp 0.8s ease-in-out;
}

.welcome-screen-video .info-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.welcome-screen-video .info-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.welcome-screen-video .info-icon {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.welcome-screen-video .info-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.welcome-screen-video .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.welcome-screen-video .copy-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.welcome-screen-video .copy-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.welcome-screen-video .info-value {
  font-weight: 500;
}

/* Social Icons */
.welcome-screen-video .social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
  justify-content: center;
}

.welcome-screen-video .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.welcome-screen-video .social-icon:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.3);
}

.welcome-screen-video .info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.welcome-screen-video .info-tag {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Dark mode for action buttons (if needed) */
.dark-mode .welcome-screen-video .action-button {
  background-color: var(--card-bg-dark);
  color: white;
}

.dark-mode .welcome-screen-video .action-button.primary {
  background-color: var(--primary-color);
}

.dark-mode .welcome-screen-video .action-icon {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 576px) {
  .welcome-screen-video .content {
    padding: 0rem 1rem;
  }

  .welcome-screen-video .logo-container {
    margin-top: 0rem;
  }

  .welcome-screen-video .restaurant-logo {
    width: 100px;
    height: 100px;
  }

  .welcome-screen-video .welcome-title {
    font-size: 2rem;
  }

  .welcome-screen-video .welcome-description {
    font-size: 0.95rem;
  }

  .welcome-screen-video .actions-container {
    gap: 0.6rem;
  }

  .welcome-screen-video .action-button {
    padding: 0.8rem;
  }

  .welcome-screen-video .action-icon {
    width: 30px;
    height: 30px;
    margin-right: 0.8rem;
  }
}
/* Rating System - Simplified */
.rating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rating-stars {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
  transform-origin: center;
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    color 0.3s ease, text-shadow 0.3s ease;
}

.star-btn:focus {
  outline: none;
}

.star-btn:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: width 0.4s ease, height 0.4s ease;
}

.star-btn:hover:before {
  width: 2.8rem;
  height: 2.8rem;
}

.star-btn:hover {
  color: #ffd700;
  transform: scale(1.15) rotate(5deg);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.star-btn.active {
  color: #ffd700;
  transform: scale(1.15);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  animation: starPulse 1s infinite alternate;
  opacity: 1;
}

@keyframes starPulse {
  0% {
    transform: scale(1.15);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  }
  100% {
    transform: scale(1.25);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
}

.star-btn:hover ~ .star-btn {
  color: #ccc;
  text-shadow: none;
}

.rating-text {
  font-size: 1rem;
  margin-bottom: 1rem;
  height: 24px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.rating-prompt {
  opacity: 1;
  position: absolute;
  left: 0;
  right: 0;
  color: #888;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.rating-feedback {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.5s ease, opacity 0.5s ease;
  color: var(--primary-color, #e51937);
  font-weight: 600;
}

.rating-container.rated .rating-prompt {
  opacity: 0;
  transform: translateY(-10px);
}

.rating-container.rated .rating-feedback {
  opacity: 1;
  transform: translateY(0);
}
/* Container modifications */
.rating-container.already-rated {
  pointer-events: none; /* Make non-interactive */
}

/* For non-button stars (using span instead of button) */
.rating-container.already-rated .star-btn {
  cursor: default;
}

/* Text styling for the thank you message */
.rating-container.already-rated .rating-text {
  color: var(--primary-color);
  font-weight: 500;
}

/* Ensure animations don't play for the already-rated state */
.rating-container.already-rated .star-btn {
  animation: none;
  opacity: 1;
}
/* Modal styles */
.modal-review .modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dark-mode .modal-review .modal-content {
  background-color: #252525;
  color: var(--text-light);
}

.modal-review .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--primary-color);
  color: white;
  padding: 1.2rem 1.5rem;
}

.modal-review .modal-title {
  font-weight: 700;
  font-size: 1.4rem;
}

.modal-review .modal-body {
  padding: 1.5rem;
}

.modal-review .modal-stars {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.modal-review .modal-star {
  font-size: 2.5rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.modal-review .modal-star:hover,
.modal-review .modal-star.active {
  color: #ffd700;
  transform: scale(1.1);
}

.modal-review .rating-feedback {
  text-align: center;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  height: 24px;
  font-size: 1.1rem;
  position: static;
  opacity: 1;
}

.dark-mode .modal-review .rating-feedback {
  color: #ff6b93;
}

.modal-review .form-floating {
  margin-bottom: 1.2rem;
}

.modal-review .form-control {
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid #eee;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-review .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(229, 25, 55, 0.15);
}

.dark-mode .modal-review .form-control {
  background-color: #333;
  border-color: #444;
  color: #eee;
}

.dark-mode .modal-review .form-floating label {
  color: #aaa;
}

/* Button styles */
.modal-review .btn-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 100%;
  margin-top: 1.2rem;
  font-size: 1rem;
}

.modal-review .btn-submit:hover {
  background-color: var(--primary-color-dark, #d01730);
  transform: translateY(-2px);
}

.modal-review .btn-submit:active {
  transform: translateY(0);
}

.modal-review .btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
}

.modal-review .btn-secondary:hover {
  background-color: rgba(var(--primary-color-rgb, 229, 25, 55), 0.05);
}

.dark-mode .modal-review .btn-secondary {
  color: #ff6b93;
  border-color: #ff6b93;
}

.dark-mode .modal-review .btn-secondary:hover {
  background-color: rgba(255, 107, 147, 0.1);
}

/* Input group for phone */
.modal-review .input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.modal-review .input-group .input-group-text {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1rem;
  min-width: 70px;
  font-size: 0.95rem;
}

.modal-review .input-group input[type="tel"] {
  border-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border: 1px solid #eee;
  border-left: none;
  padding: 0.75rem 1rem;
  flex: 1;
}

.dark-mode .modal-review .input-group input[type="tel"] {
  background-color: #333;
  border-color: #444;
  color: #eee;
}

/* Form validation */
.modal-review .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.modal-review .invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

/* Success state */
.modal-review .success-checkmark {
  display: none;
  color: #4caf50;
  font-size: 5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-review .success-message {
  display: none;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4caf50;
  margin: 1.5rem 0;
}

/* SMS Verification */
.modal-review .verification-code-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.modal-review .verification-code {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-weight: 600;
  max-width: 240px;
}

.modal-review #codeTimer {
  font-size: 0.9rem;
}

.modal-review #resendCode {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.modal-review #resendCode:disabled {
  color: #aaa;
  cursor: not-allowed;
}

.modal-review .btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
  transition: all 0.3s ease;
}

.modal-review .btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.modal-review .btn-success {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
}

.modal-review .btn-success:hover {
  background-color: #3d8b40;
}

/* Button loading state */
.modal-review .btn.loading {
  pointer-events: none;
}

.modal-review .btn .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
  vertical-align: -0.125em;
}

/* Helper text */
.modal-review .text-muted.small {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Make sure phone field is hidden for 5-star ratings initially */
.modal-review #phoneField {
  display: none;
}

/* Simple fade transitions for screens */
.modal-review #smsVerification {
  transition: opacity 0.3s ease;
}

.modal-review #successState {
  transition: opacity 0.3s ease;
}

.modal-review .modal-stars {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.modal-review .modal-star {
  font-size: 3rem;
  color: #ccc;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.modal-review .modal-star:hover,
.modal-review .modal-star.active {
  color: #ffd700;
  transform: scale(1.2) rotate(12deg);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.modal-review .modal-star:hover ~ .modal-star {
  color: #ccc;
  transform: scale(1);
  text-shadow: none;
}
/* Success animation - Enhanced */
@keyframes scaleSuccessCheck {
  0% {
    transform: scale(0) rotate(-15deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(5deg);
    opacity: 1;
  }
  70% {
    transform: scale(0.9) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.success-checkmark {
  display: none;
  color: #4caf50;
  font-size: 6rem;
  text-align: center;
  animation: scaleSuccessCheck 0.7s ease-in-out forwards;
  text-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.success-message {
  display: none;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #4caf50;
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease 0.3s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add pulse animation when rating container appears */
@keyframes ratingPulse {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.rating-container {
  animation: ratingPulse 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Add hover effect to stars with sequential delay */
.star-btn:nth-child(1) {
  transition-delay: 0s;
}
.star-btn:nth-child(2) {
  transition-delay: 0.05s;
}
.star-btn:nth-child(3) {
  transition-delay: 0.1s;
}
.star-btn:nth-child(4) {
  transition-delay: 0.15s;
}
.star-btn:nth-child(5) {
  transition-delay: 0.2s;
}

/* Initial loading animation */
@keyframes starEntrance {
  0% {
    transform: translateY(20px) scale(0.5);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.star-btn {
  opacity: 0;
  animation: starEntrance 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.star-btn:nth-child(1) {
  animation-delay: 0.1s;
}
.star-btn:nth-child(2) {
  animation-delay: 0.2s;
}
.star-btn:nth-child(3) {
  animation-delay: 0.3s;
}
.star-btn:nth-child(4) {
  animation-delay: 0.4s;
}
.star-btn:nth-child(5) {
  animation-delay: 0.5s;
}

/* Additional CSS for the enhanced rating modal */

/* SMS Verification Styling */
.verification-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

.verification-code {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-weight: 600;
  max-width: 240px;
}

#codeTimer {
  font-size: 0.9rem;
}

#resendCode {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

#resendCode:disabled {
  color: #aaa;
  cursor: not-allowed;
}

/* Form validation */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.text-success.small.mt-2 {
  font-size: 0.875rem;
  color: #28a745;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Back button */
.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-success {
  color: #4caf50;
  border-color: #4caf50;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  color: #fff;
  background-color: #4caf50;
  border-color: #4caf50;
}

/* Animation for SMS verification screen */
#smsVerification {
  animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
  }
}
/* SMS Verification Styling */
.verification-code-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.verification-code {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-weight: 600;
  max-width: 240px;
}

#codeTimer {
  font-size: 0.9rem;
}

#resendCode {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

#resendCode:disabled {
  color: #aaa;
  cursor: not-allowed;
}

/* Form validation */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Back button */
.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-success {
  color: #4caf50;
  border-color: #4caf50;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  color: #fff;
  background-color: #4caf50;
  border-color: #4caf50;
}

/* Animation for SMS verification screen */
#smsVerification {
  animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Improved help text styling */
.text-muted.small {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Required field indicator */
.form-floating label::after {
  content: "";
}

.form-floating input:required + label::after,
.form-floating textarea:required + label::after {
  content: " *";
  color: var(--primary-color);
}

/* Make sure phone field is hidden for 5-star ratings initially */
#phoneField {
  display: none;
}

/* Language Modal */
.language-modal .language-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  transition: background-color 0.2s;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.language-modal .language-item:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

.language-modal .language-item.active {
  background-color: #e9ecef;
}

.language-modal .language-flag {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 50%;
  overflow: hidden;
}

.language-modal .language-name {
  font-weight: 500;
}

/* Menu Screen Styles */
.menu-screen {
  display: none;
  min-height: 100vh;
  padding-bottom: 0px;
  /* Space for floating basket */
  position: relative;
}

/* Category nav - make it sticky and improve appearance */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--light-bg);
  transition: all 0.3s ease;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Category nav - make it sticky and improve appearance */
.category-nav.sticky-category {
  top: 60px;
}

.dark-mode .category-nav {
  background-color: var(--dark-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Improved super categories styling */
.super-categories-container {
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  /* Smoother scrolling on iOS */
}

.dark-mode .super-categories-container {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.super-categories-container::-webkit-scrollbar {
  height: 0;
}

.super-category-button {
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  color: var(--text-dark);
}

.super-category-button::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.super-category-button.active {
  color: var(--primary-color);
}

.super-category-button.active::after {
  width: 80%;
}

.dark-mode .super-category-button {
  color: var(--text-light);
}

.dark-mode .super-category-button.active {
  color: var(--primary-color);
}

/* Categories container styling */
.categories-container {
  position: relative;
  overflow: hidden;
}

.category-group {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.category-group.active {
  display: block;
}

/* Category buttons scrolling container */
.category-group .d-flex {
  display: flex;
  overflow-x: auto;
  padding-bottom: 5px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.category-group .d-flex::-webkit-scrollbar {
  height: 0;
}

.category-button {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  background-color: transparent;
  cursor: pointer;
  scroll-snap-align: start;
  color: var(--text-dark);
}

.category-button.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 5px rgba(var(--primary-color-rgb), 0.2);
}

/* Menu content container */
.menu-content {
  padding-bottom: 70px;
  /* Space for floating basket */
}

/* Fix for mobile view */
@media (max-width: 576px) {
  .super-category-button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .category-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .menu-section {
    margin-bottom: 1.5rem;
  }
}

.header-tools {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1001;
  background-color: var(--light-bg);
  transition: background-color 0.3s ease;
}
.header-tools.hide-header {
  position: sticky;
  top: 0px;
}

.header-logo {
  height: 35px;
  width: auto;
  margin-left: 12px;
  object-fit: contain;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-tools .header-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 5px;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  display: -webkit-box !important;
  overflow: hidden !important;
}

.tool-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

.dark-mode .tool-button {
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.2);
}

.tool-button:hover,
.tool-button:focus {
  background-color: rgba(0, 0, 0, 0.1);
}

.dark-mode .tool-button:hover,
.dark-mode .tool-button:focus {
  background-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .category-button {
  color: var(--text-light);
}

/* Ensures active buttons maintain proper contrast */
.dark-mode .category-button.active {
  background-color: var(--primary-color);
  color: white;
}

/* Fix for other potential text color issues in dark mode */
.dark-mode .category-title {
  color: var(--text-light);
}

/* Dark mode styling for the header logo */
.dark-mode .header-logo {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-mode .header-tools {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

.category-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  padding: 0 1rem;
}

/* Product Card Styles */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.animate-children > .product-card {
  animation: slide-up 0.3s ease forwards;
  animation-delay: calc(var(--animation-order, 0) * 10ms);
  opacity: 0;
}

.product-card.slide-up {
  animation: slide-up 0.3s ease forwards;
  animation-delay: calc(var(--animation-order, 0) * 10ms);
}

.dark-mode .product-card {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card.list-view {
  display: flex;
  align-items: center;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
}

.product-card.list-view .product-image-container {
  width: 120px;
  min-width: 120px;
  padding-top: 120px;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.view-3d-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1;
}

.view-3d-badge:hover {
  transform: scale(1.1);
}

.dark-mode .view-3d-badge {
  background-color: var(--dark-bg);
}

.product-content {
  padding: 1rem;
  width: 100%;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark-mode .product-description {
  color: #adb5bd;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.product-price-original {
  font-size: 0.8rem;
  color: #888;
  text-decoration: line-through;
  text-decoration-color: red;
  margin-right: 0.5rem;
}

.product-price-discounted {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.dark-mode .product-price-discounted,
.dark-mode .product-price {
  color: var(--text-light);
}

/* Enhanced Add to Cart Button Animation */
.add-to-cart {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 5px rgba(var(--primary-color-rgb), 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0.8;
}

.add-to-cart:hover {
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Gradient background animation on hover */
.add-to-cart::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #28a745, #20c997, #28a745);
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.add-to-cart:hover::after {
  opacity: 1;
  animation: gradientShift 1.5s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Click effect */
.add-to-cart::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.add-to-cart:active::before {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.add-to-cart.added {
  animation: success 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.49);
  background-color: #218838;
}

@keyframes success {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  60% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.add-to-cart i {
  transition: all 0.3s ease;
}

.add-to-cart.added i {
  transform: rotate(360deg);
}

/* Floating animation elements */
.basket-particle {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

/* Flying product animation */
.product-fly {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.3) rotate(5deg);
}

.product-fly img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-fly.active {
  animation: flyToBasket 0.7s cubic-bezier(0.17, 0.89, 0.32, 1.49) forwards;
}

@keyframes flyToBasket {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(5deg);
  }

  15% {
    opacity: 1;
    transform: scale(1) rotate(-5deg);
  }

  30% {
    transform: scale(0.9) rotate(3deg) translateY(-20px);
  }

  50% {
    transform: scale(0.8) rotate(-3deg) translateY(10px);
  }

  70% {
    transform: scale(0.7) rotate(2deg) translateY(-5px);
  }

  100% {
    transform: scale(0.2) rotate(0) translateY(30vh);
    opacity: 0;
  }
}

/* Confetti particles */
.confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.8;
}

/* Shine effect on basket when item added */
@keyframes basketShine {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.basket-icon.item-added {
  animation: basketShine 1s ease-out, bounce 0.5s ease 0.2s;
}

/* Floating basket bump animation */
.floating-basket.bump {
  animation: basketBump 0.5s ease-in-out;
}

@keyframes basketBump {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(0);
  }

  70% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Basket count animation */
.basket-count.updated {
  animation: countPop 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes countPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes flyToBasket {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(0.3) translateY(100vh);
  }
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Floating Basket - Enhanced Design */
.floating-basket {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(var(--primary-color-rgb, 40, 167, 69), 0.7);
  /* Transparent background */
  backdrop-filter: blur(10px);
  /* Adds a blur effect behind the element */
  -webkit-backdrop-filter: blur(10px);
  /* For Safari support */
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px 10px 0 0;
  transition: transform 0.3s ease;
}

.dark-mode .floating-basket {
  background-color: #121212;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

/* Basket Icon with improved visual feedback */
.basket-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.basket-icon:hover {
  transform: scale(1.1);
}

/* Improved basket count badge */
.basket-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 0 6px;
}

/* Basket total with improved typography */
.basket-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.basket-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.basket-info span {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Basket Sidebar - Enhanced Design */
.basket-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background-color: white;
  z-index: 2000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  /* IMPORTANT: Prevent background scrolling */
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.dark-mode .basket-sidebar {
  background-color: #1a1a1a;
  color: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}

.basket-sidebar.active {
  right: 0;
}

/* Improved basket overlay */
.basket-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  /* IMPORTANT: Prevent background scrolling */
  overscroll-behavior: contain;
  touch-action: none;
}

.basket-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Improved basket header */
.basket-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
}

.dark-mode .basket-header {
  border-bottom: 1px solid #2d3748;
  background-color: #1a1a1a;
}

.basket-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.close-basket {
  background: none;
  border: none;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .close-basket {
  background-color: rgba(255, 255, 255, 0.1);
}

.close-basket:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.dark-mode .close-basket:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Improved basket items container */
.basket-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  /* IMPORTANT: Prevent background scrolling */
  overscroll-behavior: contain;
}

/* Improved empty basket message */
#emptyBasketMsg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.dark-mode #emptyBasketMsg {
  color: #adb5bd;
}

#emptyBasketMsg i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

#emptyBasketMsg p {
  font-size: 1.1rem;
}

/* Improved basket item */
.basket-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  margin-bottom: 0.5rem;
}

.basket-item:hover {
  background-color: #f8f9fa;
}

.dark-mode .basket-item {
  border-bottom: 1px solid #2d3748;
}

.dark-mode .basket-item:hover {
  background-color: #2d3748;
}

/* Improved basket item image */
.basket-item-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode .basket-item-image {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Improved basket item details */
.basket-item-details {
  flex: 1;
}

.basket-item-name {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.basket-item-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Improved quantity controls */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 30px;
  padding: 3px;
  width: fit-content;
}

.dark-mode .quantity-control {
  background-color: #2d3748;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.dark-mode .quantity-btn {
  background-color: #1a1a1a;
  border: 1px solid #4a5568;
  color: white;
}

.quantity-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.quantity-value {
  width: 24px;
  text-align: center;
  font-weight: 600;
  user-select: none;
}

/* Improved remove item button */
.remove-item {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
  background-color: rgba(220, 53, 69, 0.1);
}

.remove-item:hover {
  background-color: rgba(220, 53, 69, 0.2);
  transform: scale(1.1);
}

/* Improved basket footer */
.basket-footer {
  padding: 1.5rem;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.dark-mode .basket-footer {
  background-color: #1a1a1a;
  border-top: 1px solid #2d3748;
}

.basket-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.basket-total-row:last-of-type {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #dee2e6;
}

.dark-mode .basket-total-row:last-of-type {
  border-top: 1px dashed #4a5568;
}

.basket-total-label {
  font-weight: 500;
  color: #495057;
}

.dark-mode .basket-total-label {
  color: #e2e8f0;
}

.basket-total-value {
  font-weight: 700;
}

.basket-total-row:last-of-type .basket-total-label,
.basket-total-row:last-of-type .basket-total-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.basket-total-row:last-of-type .basket-total-value {
  color: var(--primary-color);
}

.dark-mode .basket-total-value,
.dark-mode .basket-item-price {
  color: var(--text-light);
}

/* Improved checkout button */
.checkout-btn {
  width: 100%;
  padding: 0.85rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn:hover {
  background-color: #218838;
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
  transform: translateY(-2px);
}

.checkout-btn:active {
  transform: translateY(0);
}

.checkout-btn i {
  font-size: 1.2rem;
}

/* Mobile optimization */
@media (max-width: 576px) {
  .basket-sidebar {
    width: 100%;
    max-width: none;
  }

  .basket-item {
    padding: 0.85rem;
  }

  .basket-item-image {
    width: 60px;
    height: 60px;
  }

  .basket-header {
    padding: 1rem;
  }

  .basket-footer {
    padding: 1rem;
  }
}

/* 3D/AR Modal */
.ar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 3000;
  display: none;
}

.ar-modal.active {
  display: block;
}

.ar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.ar-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-mode .ar-content {
  background-color: #1a1a1a;
  color: white;
}

.ar-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
}

.dark-mode .ar-header {
  border-bottom: 1px solid #2d3748;
}

.ar-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.close-ar {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-ar:hover {
  color: var(--primary-color);
}

.ar-body {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.dark-mode .ar-body {
  background-color: #2d3748;
}

.ar-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.1s ease forwards;
}

.fade-out {
  animation: fadeOut 0.1s ease forwards;
}

.slide-up {
  animation: slideUp 0.1s ease forwards;
}

.slide-down {
  animation: slideDown 0.1s ease forwards;
}

.bounce {
  animation: bounce 0.1s ease;
}

/* Pulse animation */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Utilities */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

/* Language Switcher */
.language-switcher {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

.language-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 1px;
}

.language-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.language-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Fix for extra div */
.menu-screen > .floating-basket + div {
  display: none;
}

/* Responsive adjustments */
/* Responsive adjustments - MODIFY THIS SECTION */
@media (max-width: 576px) {
  /* Make welcome screen more compact on mobile */
  .restaurant-logo {
    width: 80px;
    height: 80px;
  }

  .welcome-title {
    font-size: 1.8rem;
  }

  .welcome-description {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .welcome-actions {
    gap: 0.5rem;
    max-width: 230px;
  }

  .action-button {
    padding: 0.5rem 1rem;
  }

  .info-card {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
  }

  /* Reduce spacing in the welcome content */
  .welcome-content {
    padding: 1rem;
  }

  /* Make info rows smaller */
  .info-row {
    font-size: 0.9rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Changed from 1fr to repeat(2, 1fr) */
    gap: 0.75rem;
    /* Reduced gap for better fit on small screens */
  }

  .product-card.list-view .product-image-container {
    width: 120px;
    min-width: 120px;
    padding-top: 150px;
  }
}

/* Additional styling for better display on mobile */
.product-name {
  font-size: 0.9rem;
  /* Smaller font for product names */
}

.product-description {
  font-size: 0.8rem;
  /* Smaller font for descriptions */
}

.product-price {
  font-size: 1rem;
  /* Smaller font for prices */
}

.remove-item {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-item:hover {
  transform: scale(1.1);
}

/* PRODUCT BOTTOM DRAWER */
/* Product Details Drawer Styles */
.product-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  max-height: 80vh;
  background-color: white;
  border-radius: 20px 20px 0 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  z-index: 1100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}

.dark-mode .product-drawer {
  background-color: #1a1a1a;
  color: white;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

/* Active state */
.product-drawer.active {
  bottom: 0;
  transform: translateY(0);
}

/* Handle styling */
.drawer-handle {
  border-radius: 3px;
  margin: 10px auto;
  cursor: grab;
  touch-action: pan-y;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Style when being dragged */
.drawer-handle:active {
  cursor: grabbing;
}
/* Optimizations for the entire drawer */
.product-drawer-container {
  /* Prevent text selection during drag */
  user-select: none;
  /* Apply hardware acceleration for all children */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.drawer-handle-indicator {
  width: 50px;
  height: 7px;
  border-radius: 3px;
  background-color: #e0e0e0;
}

.dark-mode .drawer-handle-indicator {
  background-color: #333;
}

/* Drawer content */
.product-drawer-content {
  padding: 0 20px 30px;
  overflow-y: auto;
  height: 100%;
}

/* Product image */
.product-drawer-image-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  aspect-ratio: 1 / 1;
}

.product-drawer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.drawer-image-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-badge {
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.drawer-badge:hover {
  transform: scale(1.1);
}

/* Product details */
.product-drawer-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.product-drawer-final-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.product-drawer-org-price {
  font-size: 1rem;
  color: #888;
  text-decoration: line-through;
  text-decoration-color: red;
  margin-right: 0.5rem;
}

.product-drawer-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #666;
}

.dark-mode .product-drawer-description,
.dark-mode .product-drawer-final-price {
  color: #aaa;
}

/* Ingredients */
.product-drawer-ingredients {
  margin-bottom: 15px;
}

.product-drawer-ingredients h4,
.product-drawer-nutrition h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.ingredients-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  color: #666;
}

.dark-mode .ingredients-list li {
  color: #aaa;
}

.ingredients-list li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: var(--primary-color);
}

/* Nutrition information */
.nutrition-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

.nutrition-item {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 5px 10px;
  color: #555;
}

.dark-mode .nutrition-item {
  background-color: #333;
  color: #ddd;
}

/* Add to cart section */
.drawer-add-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.dark-mode .drawer-add-section {
  border-top: 1px solid #333;
}

.drawer-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-quantity .quantity-btn {
  width: 35px;
  height: 35px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark-mode .drawer-quantity .quantity-btn {
  background-color: #333;
  color: white;
}

.drawer-quantity .quantity-btn:hover {
  background-color: #eee;
}

.dark-mode .drawer-quantity .quantity-btn:hover {
  background-color: #444;
}

.drawer-quantity .quantity-value {
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 30px;
  text-align: center;
}

.drawer-add-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.drawer-add-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.drawer-add-button:active {
  transform: translateY(0);
}

/* Overlay */
.product-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* BACK TO TOP */

/* Back to Top button styling */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 10px;
  width: 50px;
  height: 50px;
  background-color: rgba(var(--primary-color-rgb, 40, 167, 69), 0.7);
  /* Transparent background */
  backdrop-filter: blur(10px);
  /* Adds a blur effect behind the element */
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Button hover effect */
.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Button when visible */
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .product-drawer-content .row {
    flex-direction: column;
  }

  .product-drawer-content .col-5,
  .product-drawer-content .col-7 {
    width: 100%;
    padding: 0;
  }

  .product-drawer-image-container {
    /* aspect-ratio: 16 / 9; */
    margin-bottom: 15px;
  }
}

/* Menu sections styling */
.menu-section {
  margin-bottom: 2rem;
  transition: opacity 0.3s ease;
}

/* Add animation for when sections come into view */
.menu-section.animate-in {
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Charge Banner Styles */
.service-charge-banner {
  background-color: #f8f9fa;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 900;
}

.dark-mode .service-charge-banner {
  background-color: #2d3748;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-charge-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #495057;
}

.dark-mode .service-charge-content {
  color: #e2e8f0;
}

.service-charge-content i.bi-info-circle-fill {
  color: var(--primary-color);
  font-size: 1rem;
}

.info-button {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.dark-mode .info-button {
  color: #a0aec0;
}

.info-button:hover {
  color: var(--primary-color);
}

/* Instagram Story Component Styles */

/* Apply the gradient effect through the welcome-screen parent */
.logo-container .instagram-effect {
  content: "";
  position: absolute;
  top: -5px;
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  background-size: 200% 200%;
  border-radius: 50%;
  z-index: -1;
  animation: instagram-gradient-rotate 3s ease infinite;
  width: 110px;
  height: 110px;
}

@keyframes instagram-gradient-rotate {
  0% {
    background-position: 0% 50%;
    opacity: 0;
  }

  50% {
    background-position: 100% 50%;
    opacity: 1;
  }

  100% {
    background-position: 0% 50%;
    opacity: 0;
  }
}

/* Main Story Component */
.instagram-story {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.instagram-story.active {
  opacity: 1;
  visibility: visible;
}

.instagram-story-modal {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-story-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.instagram-story-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Story Container */
.instagram-story-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 80vh;
  max-height: 700px;
  background-color: black;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Progress Bars */
.instagram-story-progress {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 3px;
  display: flex;
  gap: 4px;
  z-index: 5;
}

.instagram-story-progress-bar {
  flex: 1;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.instagram-story-progress-bar.active .instagram-story-progress-fill {
  height: 100%;
  background-color: white;
  width: 0;
  border-radius: 3px;
  animation: instagram-progress 5s linear forwards;
}

.instagram-story-progress-bar.completed .instagram-story-progress-fill {
  height: 100%;
  background-color: white;
  width: 100%;
  border-radius: 3px;
}

@keyframes instagram-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Header */
.instagram-story-header {
  position: absolute;
  top: 24px;
  left: 12px;
  right: 12px;
  z-index: 5;
  padding: 0 8px;
}

.instagram-story-user {
  display: flex;
  align-items: center;
}

.instagram-story-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 8px;
  background-color: white;
}

.instagram-story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-story-info {
  display: flex;
  flex-direction: column;
}

.instagram-story-name {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.instagram-story-time {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

/* Story Slides */
.instagram-story-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.instagram-story-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-story-slide.active {
  opacity: 1;
}
/* The image container with blur effect */
.instagram-story-slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.7);
  z-index: 0;
  transform: scale(1.1); /* Scale slightly to avoid blur edges */
}
.instagram-story-slide img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.instagram-story-caption {
  position: absolute;
  bottom: 60px;
  left: 12px;
  right: 12px;
  color: white;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  text-align: left;
}

.instagram-story-caption h3 {
  font-size: 18px;
  margin-bottom: 4px;
  font-weight: 600;
}

.instagram-story-caption p {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

/* Navigation */
.instagram-story-navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  display: flex;
}

.instagram-story-prev,
.instagram-story-next {
  flex: 1;
  height: 100%;
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 576px) {
  .instagram-story-container {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .instagram-story-caption {
    bottom: 80px;
  }
}
