/* Balmoral Chippy - Main Stylesheet */
/* Base styles and design system */

:root {
  /* Color Palette - Balmoral Chippy Brand Colors */
  --primary-color: #c41e3a;
  --primary-dark: #a0182e;
  --primary-light: #d32f2f;
  --button-bg: #2c2c2c;
  --button-hover: #1a1a1a;
  --dark-bg: #1a1a1a;
  --light-bg: #f5f5f5;
  --white: #fafafa;
  --text-dark: #000000;
  --text-light: #666666;
  --border-color: #c41e3a;
  --success-color: #4caf50;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 65px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Mobile optimizations */
  -webkit-tap-highlight-color: rgba(196, 30, 58, 0.1);
  touch-action: manipulation;
}

body.preloader-active {
  overflow: hidden;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 200px;
  height: auto;
  animation: logoPulse 2s ease-in-out infinite;
  transform-origin: center;
  position: relative;
  z-index: 2;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.preloader-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border: 4px solid transparent;
  border-top: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header - Mobile First */
header {
  background-color: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  background-color: var(--white);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 50px;
  transition: transform var(--transition-base);
  z-index: 2;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.logo:hover {
  text-decoration: none;
}

.logo:hover img {
  transform: scale(1.05);
}

.desktop-order-btn {
  display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  gap: 6px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-toggle:hover span {
  background-color: var(--primary-color);
}

/* Navigation - Mobile First (hidden by default) */
nav {
  display: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-base);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: color var(--transition-base);
  line-height: 1;
}

.mobile-menu-toggle:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle span {
  display: block;
  transition: transform var(--transition-base);
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--white);
  color: var(--text-dark);
  padding: 0;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 0;
}

.hero > .hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--spacing-xxl) + 3rem) var(--spacing-lg) var(--spacing-xxl);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
  pointer-events: none;
  display: none;
}

.hero .quick-access {
  position: relative;
  z-index: 10;
  margin-top: auto;
  width: 100%;
  padding: 1rem 0;
}

.quick-access {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-access-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.quick-access-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.quick-access-icon {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  flex-shrink: 0;
  color: var(--white);
  stroke: currentColor;
}

.quick-access-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
}

.quick-access-link:hover {
  color: var(--white);
  opacity: 1;
}

.quick-access-info {
  display: flex;
  align-items: center;
}

.quick-access-value {
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.2px;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.quick-access-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 0.6s ease-out;
}



.hero-content-wrapper {
  max-width: 750px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.3s both;
  position: relative;
  padding: 2rem;
  border-radius: 12px;
}

.hero-content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  z-index: -1;
}

.hero-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  position: relative;
  padding: 0 2rem;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7), 1px 1px 4px rgba(0, 0, 0, 1);
}

.hero-subtitle::before,
.hero-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 3px;
  background: var(--primary-color);
  box-shadow: 0 0 10px rgba(196, 30, 58, 0.8);
}

.hero-subtitle::before {
  left: 0;
}

.hero-subtitle::after {
  right: 0;
}

.hero h1 {
  color: var(--white);
  font-size: 5rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
  text-shadow: 3px 3px 25px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.7), 2px 2px 10px rgba(0, 0, 0, 1), 1px 1px 5px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  letter-spacing: -1px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero h1 .accent-line {
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--spacing-md) auto var(--spacing-lg);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  font-weight: 400;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7), 1px 1px 6px rgba(0, 0, 0, 1);
  animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--spacing-xl);
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-cta .btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 240px;
  font-size: 1.1rem;
  padding: 1.5rem 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-cta-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-cta-btn svg:last-child {
  margin-left: auto;
}

.hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4), 0 0 0 0 rgba(196, 30, 58, 0.5);
}

.hero-cta .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta .btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta .btn-primary:hover::before {
  left: 100%;
}

.hero-cta .btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

.hero-cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(196, 30, 58, 0.5), 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.hero-cta .btn-primary:hover svg:last-child {
  transform: translateX(4px);
}

.hero-cta .btn-primary:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.hero-cta .btn-outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border: 2px solid var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-cta .btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  min-width: 120px;
  position: relative;
  overflow: hidden;
  /* Mobile touch optimizations */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(196, 30, 58, 0.1);
  user-select: none;
}

.btn-primary {
  background-color: var(--button-bg);
  color: var(--white);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background-color: var(--button-hover);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background-color: var(--button-bg);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary:hover {
  background-color: var(--button-hover);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--text-dark);
  text-decoration: none;
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
  padding: var(--spacing-xxl) var(--spacing-md);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--border-color);
}

.section-title.left {
  text-align: left;
  padding-bottom: var(--spacing-sm);
}

.section-title.left::after {
  left: 0;
  transform: none;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(196, 30, 58, 0.15);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-image {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.card-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex: 1;
  font-size: 0.9375rem;
}

.card .btn {
  margin-top: auto;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: inline-block;
}

.card .btn-primary {
  background: var(--button-bg);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card .btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.card .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Menu Highlights Section Enhancements */
.section.bg-light {
  background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
  position: relative;
}

.menu-highlights-section {
  position: relative;
}

.menu-highlights-section .section-title {
  position: relative;
  padding-bottom: 1rem;
}

.menu-highlights-section .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
}

.menu-highlights-section .btn-secondary {
  background: var(--button-bg);
  color: var(--white);
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}

.menu-highlights-section .btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-highlights-section .btn-secondary:hover::before {
  width: 350px;
  height: 350px;
}

.menu-highlights-section .btn-secondary:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.35);
  text-decoration: none;
}

.menu-highlights-section .grid {
  gap: 2rem;
}

@media screen and (max-width: 768px) {
  .menu-highlights-section .grid {
    gap: 1.5rem;
  }
  
  .card-image {
    height: 220px;
  }
  
  .card-content {
    padding: 1.5rem;
  }
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section {
  text-align: center;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-section p {
  text-align: center;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link - visible when focused */
a[href="#main-content"]:focus {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  clip: auto;
  overflow: visible;
}

/* Form Error States */
input.error,
textarea.error,
select.error {
  border-color: var(--primary-color) !important;
  border-width: 2px;
}

.error-message {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.form-success {
  background-color: var(--success-color);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.form-success a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
}

.form-success a:hover {
  color: var(--white);
  opacity: 0.9;
}

/* ============================================
   ORDERING SYSTEM STYLES
   ============================================ */

/* Add to Order Button */
.add-to-order-btn {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--button-bg);
  color: var(--white);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.2px;
  white-space: nowrap;
  visibility: visible !important;
  opacity: 1 !important;
}

.add-to-order-btn:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(196, 30, 58, 0.35);
}

.add-to-order-btn:active {
  transform: translateY(0) scale(0.98);
}

.add-to-order-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Floating Cart Button */
.cart-button {
  position: fixed !important;
  bottom: calc(2rem + env(safe-area-inset-bottom)) !important;
  left: auto !important;
  right: calc(2rem + env(safe-area-inset-right)) !important;
  width: 64px !important;
  height: 64px !important;
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3) !important;
  z-index: 1000 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.cart-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-button:hover::before {
  width: 100px;
  height: 100px;
}

.cart-button:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.45);
}

.cart-button:active {
  transform: translateY(-3px) scale(1.05);
}

.cart-button svg {
  width: 28px;
  height: 28px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 12px;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  border: 2px solid var(--white);
  box-shadow: 0 3px 10px rgba(196, 30, 58, 0.4);
  z-index: 1001;
  line-height: 1;
  letter-spacing: 0.2px;
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  max-height: 100vh;
  max-height: 100dvh;
  background: var(--white);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--button-bg);
  color: var(--white);
}

.cart-header h2 {
  color: var(--white);
  margin: 0;
  font-size: 1.5rem;
}

.cart-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.cart-close:hover {
  opacity: 0.8;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  min-height: 0; /* Allows flex child to shrink below content size */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.cart-empty {
  text-align: center;
  color: var(--text-light);
  padding: 3rem 1rem;
}

.cart-group {
  margin-bottom: 2rem;
}

.cart-group-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-bg);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--light-bg);
  border-radius: 8px;
  border: 1px solid rgba(196, 30, 58, 0.1);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.cart-item-details {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.cart-item-quantity {
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 600;
}

.cart-item-condiments {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.125rem;
}

.cart-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.cart-item-edit,
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.cart-item-edit:hover {
  color: var(--primary-color);
}

.cart-item-remove:hover {
  color: var(--primary-color);
}

.cart-footer {
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 2px solid var(--border-color);
  background: var(--light-bg);
  flex-shrink: 0; /* Prevents footer from shrinking */
  position: relative;
  z-index: 10;
}

.cart-total {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-dark);
}

.cart-total strong {
  color: var(--primary-color);
}

.cart-footer .btn {
  width: 100%;
}

.cart-footer .btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border: none;
}

.cart-footer .btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.cart-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Item Configuration Modal */
.item-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  padding: 1rem;
}

.item-modal.active {
  opacity: 1;
  visibility: visible;
}

.item-modal-content {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.item-modal.active .item-modal-content {
  transform: scale(1) translateY(0);
}

.item-modal-header {
  padding: 1.75rem 2rem;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-modal-header h2 {
  color: var(--white);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.item-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all var(--transition-fast);
  width: 36px;
  height: 36px;
}

.item-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.item-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.item-modal-body .form-group {
  margin-bottom: 1.75rem;
}

.item-modal-body .form-group:last-of-type {
  margin-bottom: 0;
}

.item-modal-body label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9375rem;
  letter-spacing: 0.2px;
}

.item-modal-body input[type="text"],
.item-modal-body input[type="number"] {
  width: 100%;
  padding: 0.9375rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: all var(--transition-fast);
  color: var(--text-dark);
}

.item-modal-body input[type="text"]:focus,
.item-modal-body input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
  background: #fafafa;
}

.item-modal-body input[type="text"]:hover,
.item-modal-body input[type="number"]:hover {
  border-color: #d0d0d0;
}

.name-input-wrapper {
  position: relative;
}

.customer-names-dropdown {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 0.25rem;
}

.customer-name-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.customer-name-item:last-child {
  border-bottom: none;
}

.customer-name-item:hover {
  background: var(--primary-color);
  color: var(--white);
}

.customer-name-item:first-child {
  border-radius: 8px 8px 0 0;
}

.customer-name-item:last-child {
  border-radius: 0 0 8px 8px;
}

.customer-name-item:only-child {
  border-radius: 8px;
}

.item-modal-body small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.condiments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin-top: 0.75rem;
}

.flavours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0.75rem 0.75rem 0.5rem;
  box-sizing: border-box;
}

.flavours-grid::-webkit-scrollbar {
  width: 6px;
}

.flavours-grid::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.flavours-grid::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 10px;
}

.flavours-grid::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

.condiment-checkbox {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid #e8e8e8;
  position: relative;
  overflow: hidden;
}

.condiment-checkbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, rgba(196, 30, 58, 0.12) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.condiment-checkbox.checked::before {
  opacity: 1;
}

.condiment-checkbox::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: transform var(--transition-base);
  z-index: 1;
}

.condiment-checkbox.checked::after {
  transform: scaleY(1);
}

.condiment-checkbox:hover {
  border-color: rgba(196, 30, 58, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.15);
}

.condiment-checkbox.checked {
  border-color: var(--primary-color);
  background: rgba(196, 30, 58, 0.05);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
}

.condiment-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  position: relative;
  z-index: 2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  background: var(--white);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.condiment-checkbox input[type="checkbox"]:checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.condiment-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.condiment-checkbox input[type="checkbox"]:hover {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.condiment-checkbox input[type="checkbox"]:checked:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.condiment-checkbox.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.condiment-checkbox.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.condiment-checkbox.disabled:hover {
  transform: none;
  border-color: #e8e8e8;
  box-shadow: none;
}

.condiment-checkbox span {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-dark);
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  padding-top: 1px;
}

.condiment-checkbox.checked span {
  font-weight: 600;
  color: var(--primary-color);
}

/* Go Large Checkbox */
.go-large-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f8f8;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.go-large-checkbox:hover {
  border-color: var(--primary-color);
  background: rgba(196, 30, 58, 0.05);
}

.go-large-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--primary-color);
}

.go-large-checkbox span {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-dark);
  font-weight: 500;
}

.go-large-checkbox input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: var(--primary-color);
}

/* Choice Select */
.choice-select {
  width: 100%;
  padding: 0.9375rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.choice-select:hover {
  border-color: #d0d0d0;
}

.choice-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
  background: #fafafa;
}

.choice-select.error {
  border-color: var(--primary-color) !important;
  border-width: 2px !important;
  background-color: rgba(196, 30, 58, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1) !important;
}

.choice-select.error:focus {
  border-color: var(--primary-color) !important;
  background-color: rgba(196, 30, 58, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2) !important;
}

.choice-select option {
  padding: 0.5rem;
}

/* Ice Cream Flavour Selection */
.flavour-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1rem;
  background: #ffffff;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  transition: border-color var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: visible;
  min-height: 60px;
  cursor: pointer;
  margin: 0;
  box-sizing: border-box;
}

.flavour-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, rgba(196, 30, 58, 0.12) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.flavour-item-selected::before {
  opacity: 1;
}

.flavour-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: transform var(--transition-base);
  z-index: 1;
}

.flavour-item-selected::after {
  transform: scaleY(1);
}

.flavour-item:hover:not(.flavour-item-disabled):not(.flavour-item-selected) {
  border-color: rgba(196, 30, 58, 0.3);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.1);
}

.flavour-item-selected {
  border-color: var(--primary-color);
  background: rgba(196, 30, 58, 0.05);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
}

/* Backup flavor selection styling */
.flavour-item.backup-selected {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.08);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
  position: relative;
}

.flavour-item.backup-selected::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #4caf50;
  transform: scaleY(1);
  z-index: 1;
}

.flavour-item.backup-selected .flavour-label {
  font-weight: 600;
  color: #4caf50;
}

.flavour-item-disabled {
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.flavour-item-disabled:hover {
  transform: none;
  box-shadow: none;
}

.flavour-content {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.flavour-label {
  font-size: 0.9375rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: all var(--transition-base);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flavour-item-selected .flavour-label {
  font-weight: 600;
  color: var(--primary-color);
}

.flavour-quantity-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(196, 30, 58, 0.3);
  border: 2px solid var(--white);
  min-width: 26px;
  box-sizing: border-box;
}

.flavour-qty-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #e8e8e8;
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.flavour-qty-btn:hover:not(:disabled):not(.disabled) {
  border-color: var(--primary-color);
  background: rgba(196, 30, 58, 0.05);
  color: var(--primary-color);
  transform: scale(1.1);
}

.flavour-qty-btn:active:not(:disabled):not(.disabled) {
  transform: scale(0.95);
}

.flavour-qty-btn:disabled,
.flavour-qty-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #999;
}

.flavour-qty-btn:disabled:hover,
.flavour-qty-btn.disabled:hover {
  transform: none;
  border-color: #e0e0e0;
  background: #f5f5f5;
  color: #999;
}

.flavour-qty-input {
  width: 48px;
  text-align: center;
  padding: 0.5rem 0.25rem;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  background: var(--white);
  color: var(--text-dark);
  transition: all var(--transition-fast);
  -moz-appearance: textfield;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.flavour-qty-input::-webkit-outer-spin-button,
.flavour-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.flavour-item-selected .flavour-qty-input {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.flavour-remove-btn {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: 22px;
  height: 22px;
  background: rgba(196, 30, 58, 0.1);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 11;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
}

.flavour-remove-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.15);
}

.flavour-remove-btn:active {
  transform: scale(0.95);
}

.item-modal-footer {
  padding: 1.75rem 2rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: #fafafa;
}

.item-modal-footer .btn {
  min-width: 130px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.item-modal-footer .btn-secondary {
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid #e5e5e5;
}

.item-modal-footer .btn-secondary:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-modal-footer .btn-primary {
  background: var(--button-bg);
  color: var(--white);
  border: 2px solid var(--button-bg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.item-modal-footer .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-modal-footer .btn-primary:hover::before {
  width: 250px;
  height: 250px;
}

.item-modal-footer .btn-primary:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Receipt Modal */
.receipt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  padding: 1rem;
}

.receipt-modal.active {
  opacity: 1;
  visibility: visible;
}

.receipt-modal-content {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 95vh;
  overflow-y: auto;
  border: 3px solid #c41e3a !important;
  box-shadow: 0 8px 32px rgba(196, 30, 58, 0.2), 0 0 0 1px rgba(196, 30, 58, 0.1) !important;
  transform: scale(0.9);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  outline: none !important;
  box-sizing: border-box;
}

.receipt-modal-content:focus,
.receipt-modal-content:focus-visible,
.receipt-modal-content:focus-within {
  outline: none !important;
  border-color: #c41e3a !important;
  box-shadow: 0 8px 32px rgba(196, 30, 58, 0.2), 0 0 0 1px rgba(196, 30, 58, 0.1) !important;
}

.receipt-modal.active .receipt-modal-content {
  transform: scale(1);
}

.receipt-modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.receipt-modal-header h2 {
  color: var(--white);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.receipt-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all var(--transition-fast);
  width: 36px;
  height: 36px;
}

.receipt-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.receipt-modal-body {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

/* Receipt Form Styling */
#receipt-form {
  margin-bottom: 2rem;
}

#receipt-form .form-group {
  margin-bottom: 1.5rem;
}

#receipt-form label {
  display: block;
  margin-bottom: 0.625rem;
}

/* Order Type Selection */
.order-type-selection {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.order-type-option {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
}

.order-type-option:hover:not(.order-type-disabled) {
  border-color: var(--primary-color);
  background: rgba(196, 30, 58, 0.05);
}

.order-type-option input[type="radio"] {
  margin-right: 0.75rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.order-type-option span {
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.order-type-option input[type="radio"]:checked + span {
  color: var(--primary-color);
}

.order-type-option.order-type-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

.order-type-option.order-type-disabled input[type="radio"] {
  cursor: not-allowed;
}

.order-type-option.order-type-disabled span {
  color: var(--text-light);
}

.order-type-option.order-type-disabled small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.25rem;
}

.order-type-option input[type="radio"]:checked ~ span {
  color: var(--primary-color);
}

.order-type-option:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background: rgba(196, 30, 58, 0.1);
}

/* Payment Section */
#payment-section {
  margin-top: 2rem;
  padding-top: 2rem;
}

.payment-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 2rem 0;
}

#payment-section h3 {
  margin: 1.5rem 0 1rem 0;
  color: var(--text-dark);
  font-size: 1.25rem;
}

/* Demo Mode Banner */
.demo-mode-banner {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #856404;
  font-size: 0.9375rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.demo-mode-banner strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mock Payment Form */
.mock-payment-form {
  background: #f9f9f9;
  border: 2px dashed #d0d0d0;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.mock-payment-form .form-group {
  margin-bottom: 1.25rem;
}

.mock-payment-form .form-group:last-of-type {
  margin-bottom: 0;
}

.mock-payment-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.mock-payment-form input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: all var(--transition-fast);
  color: var(--text-dark);
}

.mock-payment-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
  background: var(--white);
}

.mock-payment-form input:hover {
  border-color: #d0d0d0;
}

.mock-payment-form input::placeholder {
  color: #999;
}

.mock-payment-form small {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Payment Info Box */
.payment-info-box {
  background: rgba(196, 30, 58, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.payment-info-box p {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.payment-info-box ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-dark);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.payment-info-box li {
  margin-bottom: 0.5rem;
}

.payment-info-box li:last-child {
  margin-bottom: 0;
}

/* Stripe Elements Styling */
.stripe-card-element {
  padding: 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  background: var(--white);
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast);
}

.stripe-card-element:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.stripe-card-errors {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 20px;
}

#payment-loading {
  text-align: center;
  padding: 1rem;
  color: var(--text-light);
}

#payment-loading p {
  margin: 0;
}

/* Order Success Message */
.order-success {
  margin-bottom: 2rem;
}

/* Order Confirmation - Complete Redesign */
.order-confirmation-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 0;
}

.order-confirmation-container {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(196, 30, 58, 0.12);
  border: 2px solid #c41e3a;
  position: relative;
}

.order-confirmation-success-icon {
  background: linear-gradient(135deg, #c41e3a 0%, #a0182e 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
}

.order-confirmation-success-icon::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #c41e3a;
}

.success-icon-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c41e3a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: successIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

@keyframes successIconPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon-circle svg {
  width: 50px;
  height: 50px;
}

.order-confirmation-content {
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.order-confirmation-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.order-confirmation-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

.order-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  border: 2px solid #ffc107;
  border-radius: 50px;
  padding: 0.625rem 1.25rem;
  margin: 0 0 2rem 0;
  color: #856404;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.order-demo-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.order-number-card {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.06) 0%, rgba(196, 30, 58, 0.02) 100%);
  border: 2px solid rgba(196, 30, 58, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0 0 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.order-number-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #c41e3a 0%, #a0182e 100%);
}

.order-number-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.order-number-display {
  font-size: 1.75rem;
  font-weight: 700;
  color: #c41e3a;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  word-break: break-all;
}

.order-status-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(196, 30, 58, 0.05);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem 0;
  text-align: left;
  color: var(--text-dark);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.order-status-message svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #c41e3a;
}

.order-email-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  justify-content: center;
  color: var(--text-dark);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem 0;
  padding: 0.875rem;
  background: rgba(196, 30, 58, 0.03);
  border-radius: 10px;
}

.order-email-info svg {
  flex-shrink: 0;
  color: #c41e3a;
}

.order-email-info strong {
  color: #c41e3a;
  font-weight: 600;
}

.order-production-card {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.06) 0%, rgba(196, 30, 58, 0.02) 100%);
  border: 2px solid rgba(196, 30, 58, 0.2);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 1.5rem 0 0 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.order-production-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #c41e3a 0%, #a0182e 100%);
}

.order-production-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1.25rem 0;
  font-family: var(--font-heading);
}

.order-production-heading svg {
  flex-shrink: 0;
  color: #c41e3a;
}

.order-production-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-production-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  color: var(--text-dark);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.order-production-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #c41e3a;
}

.order-production-features li strong {
  color: #c41e3a;
  font-weight: 600;
}

.order-close-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#receipt-form label .required {
  color: var(--primary-color);
  margin-left: 0.25rem;
}

#receipt-form input[type="text"],
#receipt-form input[type="tel"],
#receipt-form input[type="email"],
#receipt-form textarea,
#receipt-form select {
  width: 100%;
  padding: 0.9375rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: all var(--transition-fast);
  color: var(--text-dark);
  resize: vertical;
}

#receipt-form textarea {
  min-height: 80px;
  line-height: 1.5;
}

#receipt-form input[type="text"]:focus,
#receipt-form input[type="tel"]:focus,
#receipt-form input[type="email"]:focus,
#receipt-form textarea:focus,
#receipt-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
  background: #fafafa;
}

#receipt-form input[type="text"].error,
#receipt-form input[type="tel"].error,
#receipt-form input[type="email"].error,
#receipt-form textarea.error,
#receipt-form select.error,
#receipt-form .choice-select.error,
#receipt-form input.error,
#receipt-form select.error {
  border: 2px solid var(--primary-color) !important;
  background-color: rgba(196, 30, 58, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1) !important;
}

#receipt-form input[type="text"].error:focus,
#receipt-form input[type="tel"].error:focus,
#receipt-form input[type="email"].error:focus,
#receipt-form textarea.error:focus,
#receipt-form select.error:focus,
#receipt-form .choice-select.error:focus {
  border-color: var(--primary-color) !important;
  background-color: rgba(196, 30, 58, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2) !important;
}

#receipt-form input[type="text"]:hover,
#receipt-form input[type="tel"]:hover,
#receipt-form input[type="email"]:hover,
#receipt-form textarea:hover,
#receipt-form select:hover {
  border-color: #d0d0d0;
}

#receipt-form .error-message {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  font-weight: 600;
  animation: fadeInUp 0.3s ease-out;
}

#receipt-form input[type="text"]::placeholder,
#receipt-form input[type="tel"]::placeholder,
#receipt-form input[type="email"]::placeholder,
#receipt-form textarea::placeholder {
  color: #999;
}

#receipt-form small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.receipt-view-toggle {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
  padding: 0.5rem;
  background: #f8f8f8;
  border-radius: 12px;
}

.receipt-view-toggle .btn {
  flex: 1;
  max-width: 200px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-fast);
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid #e8e8e8;
}

.receipt-view-toggle .btn:hover {
  border-color: var(--button-bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.receipt-view-toggle .btn.active {
  background: var(--button-bg);
  color: var(--white);
  border-color: var(--button-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.receipt-container {
  margin-top: 1.5rem;
}

/* Receipt Styles - Screen View */
.receipt-screen .receipt {
  background: var(--white);
  padding: 2rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  max-width: 600px;
  margin: 0 auto;
}

.receipt-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--text-dark);
}

.receipt-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.receipt-header p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.receipt-order-info {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 4px;
}

.receipt-order-info p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.receipt-divider {
  border-top: 2px dashed var(--text-dark);
  margin: 1rem 0;
}

.receipt-items {
  margin: 1.5rem 0;
}

.receipt-group {
  margin-bottom: 1.5rem;
}

.receipt-group-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.receipt-item {
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.receipt-item-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.receipt-item-bullet {
  margin-right: 0.5rem;
  font-weight: 700;
}

.receipt-item-name {
  flex: 1;
}

.receipt-item-quantity {
  margin: 0 0.5rem;
  font-weight: 600;
}

.receipt-item-price {
  font-weight: 700;
  color: var(--primary-color);
}

.receipt-item-condiments {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.25rem;
  padding-left: 1.5rem;
}

.receipt-total {
  text-align: center;
  font-size: 1.5rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 4px;
  margin: 1.5rem 0;
  color: var(--primary-color);
}

.receipt-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--text-light);
  font-size: 0.9rem;
  color: var(--text-light);
}

.receipt-footer p {
  margin: 0.5rem 0;
}

.order-success {
  background: var(--success-color);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.order-success a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
}

.order-success p {
  margin: 0.5rem 0;
}

/* Receipt Styles - Print View */
.receipt-print .receipt {
  background: var(--white);
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  max-width: 100%;
  page-break-inside: avoid;
}

.receipt-modal-footer {
  padding: 1.5rem;
  border-top: 2px solid var(--light-bg);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: var(--light-bg);
  position: sticky;
  bottom: 0;
}

.receipt-modal-footer .btn {
  min-width: 150px;
}

/* Place Order Button States */
#receipt-submit-btn.btn-placing {
  background: #ff9800 !important;
  background-color: #ff9800 !important;
  border-color: #ff9800 !important;
  color: var(--white) !important;
}

#receipt-submit-btn.btn-placing:hover {
  background: #f57c00 !important;
  background-color: #f57c00 !important;
  border-color: #f57c00 !important;
}

#receipt-submit-btn.btn-complete {
  background: #4caf50 !important;
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
  color: var(--white) !important;
}

#receipt-submit-btn.btn-complete:hover {
  background: #45a049 !important;
  background-color: #45a049 !important;
  border-color: #45a049 !important;
}

/* Print Styles */
/* Ice Cream Flavours Section */
.ice-cream-flavours-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--primary-color);
}

.flavours-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
}

.flavours-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.flavours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  max-width: 1000px;
  margin: 0 auto;
}

.flavour-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 2px solid #e8e8e8;
  border-radius: 25px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  cursor: default;
}

@media screen and (max-width: 768px) {
  .flavours-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.625rem;
  }

  .flavour-badge {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .flavours-section-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  
  .receipt-print,
  .receipt-print * {
    visibility: visible;
  }
  
  .receipt-print {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  
  .receipt-modal-header,
  .receipt-modal-footer,
  .receipt-view-toggle,
  .receipt-modal-close,
  .order-success {
    display: none !important;
  }
  
  .receipt {
    border: none !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  
  .receipt-group {
    page-break-inside: avoid;
  }
}

/* Responsive Styles */
@media (min-width: 1024px) {
  .cart-button {
    bottom: 2rem;
    left: auto;
    right: 2rem;
  }
}

@media (max-width: 768px) {
  .cart-button {
    bottom: 1rem;
    left: auto;
    right: 1rem;
    width: 56px;
    height: 56px;
  }
  
  .cart-sidebar {
    max-width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for Chrome on iOS */
    max-height: 100vh;
    max-height: 100dvh;
  }
  
  .cart-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  
  .item-modal {
    padding: 0.5rem;
  }
  
  .item-modal-content {
    width: 100%;
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .item-modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .item-modal-body {
    padding: 1.5rem;
  }
  
  .item-modal-footer {
    padding: 1.25rem 1.5rem;
    flex-direction: column-reverse;
  }
  
  .item-modal-footer .btn {
    width: 100%;
  }
  
  .condiments-grid {
    grid-template-columns: 1fr;
  }
  
  .flavours-grid {
    grid-template-columns: 1fr;
    max-height: 350px;
    padding: 0.75rem 0.5rem 0.75rem 0.5rem;
  }
  
  .flavour-item {
    padding: 1rem 0.875rem;
  }
  
  .flavour-quantity-badge {
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    font-size: 0.6875rem;
  }
  
  .flavour-remove-btn {
    top: 0.25rem;
    right: 0.25rem;
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
  }
  
  .receipt-modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .receipt-screen .receipt {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
  
  .receipt-item-line {
    flex-wrap: wrap;
  }
  
  .receipt-item-price {
    width: 100%;
    text-align: right;
    margin-top: 0.25rem;
  }
  
  .receipt-modal-footer {
    flex-direction: column;
  }
  
  .receipt-modal-footer .btn {
    width: 100%;
  }
  
  .menu-item-card {
    padding: 1.25rem;
    min-height: 130px;
  }
  
  .menu-item-card-content {
    padding-bottom: 3rem;
  }
  
  .add-to-order-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    bottom: 1rem;
    right: 1rem;
  }
  
  .add-to-order-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .cart-header,
  .item-modal-header,
  .receipt-modal-header {
    padding: 1rem;
  }
  
  .cart-content,
  .item-modal-body,
  .receipt-modal-body {
    padding: 1.5rem;
  }
  
  #receipt-form .form-group {
    margin-bottom: 1.25rem;
  }
  
  #receipt-form input[type="text"],
  #receipt-form input[type="tel"],
  #receipt-form input[type="email"] {
    padding: 0.875rem;
    font-size: 0.9375rem;
  }
  
  .receipt-view-toggle {
    padding: 0.375rem;
    gap: 0.5rem;
  }
  
  .receipt-view-toggle .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
  
  .receipt-screen .receipt {
    padding: 1rem;
    font-size: 0.85rem;
  }
}