/* ==========================================
   Amit Mishtan Bhandar - Main Stylesheet
   Mobile-First Responsive Design
   ========================================== */

/* CSS Variables for Warm Color Palette */
:root {
  /* Light Theme (Default) */
  --primary-saffron: #FF9933;
  --secondary-amber: #FFBF00;
  --cream: #FFF8DC;
  --warm-orange: #FF8C00;
  --deep-red: #DC143C;
  --gold: #FFD700;
  --text-dark: #2C1810;
  --text-light: #5C4033;
  --bg-light: #FFFAF0;
  --bg-white: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.15);
  --whatsapp-green: #25D366;
  --border-color: #E8D5C4;
  --card-bg: #FFFFFF;
  --header-gradient-start: #FF9933;
  --header-gradient-end: #FFBF00;
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-saffron: #FF6600;
  --secondary-amber: #FFA500;
  --cream: #2D2416;
  --warm-orange: #FF7F00;
  --deep-red: #B22222;
  --gold: #DAA520;
  --text-dark: #F5E6D3;
  --text-light: #D4C4B0;
  --bg-light: #1A1410;
  --bg-white: #251E17;
  --shadow: rgba(0, 0, 0, 0.5);
  --whatsapp-green: #128C7E;
  --border-color: #3D3027;
  --card-bg: #2A2118;
  --header-gradient-start: #8B4513;
  --header-gradient-end: #A0522D;
}

/* Spirituality Theme */
[data-theme="spiritual"] {
  --primary-saffron: #D84315;
  --secondary-amber: #F57C00;
  --cream: #FFF9E6;
  --warm-orange: #FF6D00;
  --deep-red: #BF360C;
  --gold: #FF8F00;
  --text-dark: #4E342E;
  --text-light: #6D4C41;
  --bg-light: #FFF3E0;
  --bg-white: rgba(255, 255, 255, 0.92);
  --shadow: rgba(191, 54, 12, 0.15);
  --whatsapp-green: #2E7D32;
  --border-color: #FF8F00;
  --card-bg: rgba(255, 255, 255, 0.88);
  --header-gradient-start: #D84315;
  --header-gradient-end: #F57C00;
}

/* Spiritual Background Pattern */
[data-theme="spiritual"] body {
  background-image: url('../images/theme/spritual/background.png');
  background-repeat: repeat;
  background-size: 600px auto;
  background-attachment: fixed;
  background-position: center;
}

[data-theme="spiritual"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 243, 224, 0.5);
  pointer-events: none;
  z-index: -1;
}

/* Enhanced spiritual theme cards */
[data-theme="spiritual"] .menu-item,
[data-theme="spiritual"] .product-card,
[data-theme="spiritual"] .blessing-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 2px solid #FF8F00;
  box-shadow: 0 6px 20px rgba(191, 54, 12, 0.2);
}

[data-theme="spiritual"] .section-title {
  color: #BF360C;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

[data-theme="spiritual"] .btn-primary {
  background: linear-gradient(135deg, #D84315, #F57C00);
  box-shadow: 0 4px 15px rgba(216, 67, 21, 0.4);
}

[data-theme="spiritual"] .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: #D84315;
  color: #D84315;
}

[data-theme="spiritual"] header {
  background: linear-gradient(135deg, rgba(216, 67, 21, 0.95), rgba(245, 124, 0, 0.95));
  backdrop-filter: blur(10px);
}

[data-theme="spiritual"] .top-bar {
  background: linear-gradient(90deg, #BF360C, #D84315, #BF360C);
}

/* Additional Spiritual Theme Enhancements */
[data-theme="spiritual"] .container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
}

[data-theme="spiritual"] h1,
[data-theme="spiritual"] h2,
[data-theme="spiritual"] h3,
[data-theme="spiritual"] h4 {
  color: #BF360C;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

[data-theme="spiritual"] p,
[data-theme="spiritual"] .text-dark {
  color: #4E342E;
}

[data-theme="spiritual"] nav ul li a {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="spiritual"] .whatsapp-float {
  background: #2E7D32;
  box-shadow: 0 6px 24px rgba(46, 125, 50, 0.4);
}

[data-theme="spiritual"] footer {
  background: linear-gradient(135deg, rgba(216, 67, 21, 0.9), rgba(245, 124, 0, 0.9));
  backdrop-filter: blur(10px);
}

[data-theme="spiritual"] .hero {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
}

[data-theme="spiritual"] input,
[data-theme="spiritual"] textarea,
[data-theme="spiritual"] select {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #FF8F00;
  color: #4E342E;
}

[data-theme="spiritual"] input:focus,
[data-theme="spiritual"] textarea:focus,
[data-theme="spiritual"] select:focus {
  border-color: #D84315;
  box-shadow: 0 0 10px rgba(216, 67, 21, 0.3);
}

/* Theme Toggle Switch - 3 Options */
.theme-toggle-container {
  position: fixed;
  top: 100px;
  right: 10px;
  z-index: 1001;
  background: var(--card-bg);
  border-radius: 30px;
  padding: 6px 10px;
  box-shadow: 0 3px 10px var(--shadow);
  display: none; /* Hidden on desktop by default */
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--border-color);
  transition: all 0.3s ease;
  max-width: 140px;
}

.theme-toggle-container:hover {
  box-shadow: 0 4px 12px var(--shadow);
}

.theme-option {
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 15px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1.5px solid transparent;
  background: transparent;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-width: 32px;
  text-align: center;
}

.theme-option:hover {
  transform: scale(1.1);
}

.theme-option.active {
  background: linear-gradient(135deg, var(--primary-saffron), var(--secondary-amber));
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(255, 153, 51, 0.4);
}

.theme-divider {
  width: 2px;
  height: 24px;
  background: var(--border-color);
  opacity: 0.5;
}

/* Background Music Player */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 1001;
  background: var(--card-bg);
  border-radius: 50px;
  padding: 8px 12px;
  box-shadow: 0 4px 12px var(--shadow);
  display: none; /* Hidden on desktop by default */
  align-items: center;
  gap: 8px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  max-width: 280px;
}

.music-player:hover {
  box-shadow: 0 6px 16px var(--shadow);
}

.music-control {
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  padding: 5px;
}

.music-control:hover {
  transform: scale(1.2);
}

.music-title {
  font-size: 0.85rem;
  color: var(--text-dark);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.volume-control {
  width: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ==========================================
   Header & Navigation
   ========================================== */

/* Top Bar with Ram Ram */
.top-bar {
  background: linear-gradient(90deg, var(--deep-red), #8B0000, var(--deep-red));
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
}

.ram-ram-text {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  animation: scrollText 20s linear infinite;
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
}

@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

header {
  background: linear-gradient(135deg, var(--header-gradient-start), var(--header-gradient-end));
  color: white;
  padding: 1rem 0;
  min-height: 80px;
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 80px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo p {
  font-size: 0.85rem;
  opacity: 0.95;
}

/* Header Call Buttons */
.header-call-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.call-btn {
  background: var(--card-bg);
  color: var(--deep-red);
  padding: 0.4rem 0.8rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.call-btn:hover {
  background: var(--deep-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1003;
}

nav {
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav ul li a {
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255, 255, 255, 0.2);
}

/* Order Link Highlight */
nav ul li a.order-link {
  background: var(--deep-red);
  font-weight: 700;
  animation: pulse 2s infinite;
}

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

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  background: linear-gradient(135deg, var(--cream), var(--bg-light));
  padding: 4rem 1rem;
  text-align: center;
}

/* Image Slider */
.image-slider {
  max-width: 1200px;
  margin: 0 auto 3rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 400px; /* Fallback if aspect-ratio not supported */
  background: var(--cream);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease-in-out;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slider Controls */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--deep-red);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary-saffron);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slider-dot.active {
  background: var(--primary-saffron);
  border-color: var(--primary-saffron);
  transform: scale(1.3);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--primary-saffron);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .subtext {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-image {
  max-width: 300px;
  margin: 2rem auto;
  filter: drop-shadow(0 4px 12px var(--shadow));
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-saffron), var(--warm-orange));
  color: white;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--primary-saffron);
  border: 2px solid var(--primary-saffron);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-saffron);
  color: white;
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn-special {
  background: linear-gradient(135deg, var(--gold), var(--secondary-amber));
  color: var(--text-dark);
  font-weight: 700;
}

.btn-special:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
}

.btn-premium {
  background: linear-gradient(135deg, #8B4513, #D2691E);
  color: white;
  font-weight: 700;
}

.btn-premium:hover {
  background: linear-gradient(135deg, #654321, #8B4513);
  transform: translateY(-2px) scale(1.05);
}

/* ==========================================
   Main Content Sections
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-saffron);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-amber);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* ==========================================
   Menu/Product Grid
   ========================================== */

.menu-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.menu-category {
  margin-bottom: 3rem;
}

.menu-category h3 {
  font-size: 1.5rem;
  color: var(--deep-red);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-amber);
  transition: color 0.3s ease;
}

.category-title {
  font-size: 1.8rem;
  color: var(--deep-red);
  margin-bottom: 1rem;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--cream), #FFE4B5);
  border-radius: 12px;
}

/* Menu Item Cards */
.menu-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

.menu-item-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--cream), #FFE4B5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.menu-item-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.menu-item-image:hover img {
  transform: scale(1.05);
}

/* Zoom overlay */
.image-zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(5px);
}

.image-zoom-overlay.active {
  display: flex;
}

.image-zoom-overlay img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s ease;
  cursor: grab;
}

.image-zoom-overlay img:active {
  cursor: grabbing;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.2s ease, color 0.2s ease;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.zoom-close:hover {
  transform: scale(1.2) rotate(90deg);
  color: var(--primary-saffron);
  background: rgba(255, 255, 255, 0.2);
}

.menu-item-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.menu-item-info h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.menu-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-red);
  margin: 0.5rem 0;
}

.sawamani-price {
  font-size: 1rem;
  color: var(--warm-orange);
  font-weight: 600;
  margin-bottom: 1rem;
}

.description-small {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.premium-box {
  border: 3px solid var(--gold);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.premium-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Order Info Box */
.order-info-box {
  background: linear-gradient(135deg, var(--cream), #FFE4B5);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  margin-top: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-box {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px var(--shadow);
}

.contact-box h3 {
  color: var(--deep-red);
  margin-bottom: 1rem;
}

.contact-box p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.contact-box a {
  color: var(--primary-saffron);
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-box a:hover {
  color: var(--deep-red);
  text-decoration: underline;
}

.product-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow);
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.product-image::after {
  content: '🔍';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-image:hover::after {
  opacity: 1;
}

.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-info h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ==========================================
   Blessings Section
   ========================================== */

.blessings {
  background: linear-gradient(135deg, var(--cream), #FFE4B5);
  padding: 3rem 1rem;
  text-align: center;
}

.blessings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

.blessing-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blessing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--shadow);
}

.blessing-card img {
  max-width: 150px;
  margin: 0 auto 1rem;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.blessing-card img:hover {
  transform: scale(1.1);
}

.blessing-card h3 {
  color: var(--deep-red);
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ==========================================
   Gallery
   ========================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  aspect-ratio: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow);
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ==========================================
   Forms
   ========================================== */

.order-form,
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-saffron);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================
   Contact Info
   ========================================== */

.contact-info {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 8px;
}

.contact-item svg,
.contact-item .icon {
  font-size: 1.5rem;
  color: var(--primary-saffron);
}

.contact-item strong {
  color: var(--text-dark);
  display: block;
}

.map-container {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ==========================================
   About Content
   ========================================== */

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-light);
  font-size: 1.1rem;
}

.about-content h3 {
  color: var(--deep-red);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.about-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.about-content ul li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* ==========================================
   Footer
   ========================================== */

footer {
  background: linear-gradient(135deg, var(--text-dark), #1a0f0a);
  color: white;
  padding: 3rem 1rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary-amber);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li a:hover {
  color: var(--secondary-amber);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ==========================================
   WhatsApp Floating Button
   ========================================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  text-decoration: none;
  animation: bounce 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
  /* Increase base font size for better mobile readability */
  html {
    font-size: 16px;
  }

  body {
    font-size: 1rem;
    line-height: 1.6;
    padding-top: 0;
  }

  /* Header improvements for mobile */
  header {
    position: relative;
    padding: 0.8rem 0;
    min-height: auto;
  }

  .top-bar {
    padding: 0.4rem 0;
  }

  .ram-ram-text {
    font-size: 0.85rem;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    min-height: auto;
  }

  .logo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo h1 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .logo p {
    font-size: 0.75rem;
  }

  /* Show hamburger menu button on mobile */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    z-index: 1003;
    pointer-events: auto;
    touch-action: manipulation;
    cursor: pointer;
  }

  /* Hide desktop navigation on mobile */
  header nav {
    display: none;
  }

  .header-call-buttons {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0;
    order: 3;
  }

  .call-btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
    text-align: center;
  }

  /* Navigation Mobile Menu */
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-saffron), var(--secondary-amber));
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding-top: 20px;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  nav ul li a {
    display: block;
    padding: 1.2rem 1.5rem;
    border-radius: 0;
    font-size: 1.05rem;
    width: 100%;
    text-align: left;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background: rgba(255, 255, 255, 0.25);
  }

  nav ul li a.order-link {
    background: var(--deep-red);
    font-weight: 700;
  }

  /* Mobile menu overlay backdrop */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    pointer-events: none;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  /* Theme Toggle - Mobile Optimized */
  .theme-toggle-container {
    display: flex; /* Show on mobile */
    position: fixed;
    top: 60px;
    right: 5px;
    padding: 4px 6px;
    gap: 3px;
    border-radius: 20px;
    z-index: 999;
    max-width: 120px;
  }

  .theme-option {
    padding: 4px 6px;
    font-size: 0.85rem;
    border-radius: 10px;
    min-width: 28px;
  }

  .theme-divider {
    height: 14px;
    width: 1px;
  }

  /* Music Player - Mobile Optimized */
  .music-player {
    display: flex; /* Show on mobile for spiritual theme */
    bottom: 70px;
    right: 10px;
    padding: 5px 8px;
    gap: 5px;
    border-radius: 30px;
    max-width: 180px;
    font-size: 0.85rem;
  }

  .music-control {
    font-size: 1.1rem;
    padding: 2px;
  }

  .music-title {
    font-size: 0.7rem;
    max-width: 55px;
  }

  .volume-control {
    width: 45px;
  }

  /* Hero Section - Mobile */
  .hero {
    padding: 2rem 1rem;
    margin-top: 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }

  .hero .subtext {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-image {
    max-width: 200px;
    margin: 1.5rem auto;
  }

  /* Image Slider - Mobile */
  .image-slider {
    margin-bottom: 1.5rem;
    border-radius: 8px;
  }

  .slider-wrapper {
    aspect-ratio: 16 / 9;
  }

  .slider-prev,
  .slider-next {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .slider-dots {
    bottom: 8px;
    gap: 6px;
  }

  .slider-dot {
    width: 7px;
    height: 7px;
  }

  /* Sections */
  .container {
    padding: 2rem 1rem;
  }

  .section {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .section-title::after {
    width: 50px;
    height: 3px;
  }

  /* Category Titles */
  .category-title {
    font-size: 1.4rem;
    padding: 0.8rem;
  }

  /* Menu and Product Grids */
  .menu-grid,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .menu-item,
  .product-card {
    margin: 0;
  }

  .menu-item-image,
  .product-image {
    height: 200px;
  }

  .menu-item-info,
  .product-info {
    padding: 1.2rem;
  }

  .menu-item-info h3,
  .product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .menu-price {
    font-size: 1.3rem;
    margin: 0.4rem 0;
  }

  .sawamani-price {
    font-size: 0.95rem;
  }

  .description-small {
    font-size: 0.9rem;
  }

  /* Buttons */
  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .btn-small {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  /* Blessings Section */
  .blessings {
    padding: 2rem 1rem;
  }

  .blessings-grid {
    gap: 1.5rem;
  }

  .blessing-card {
    padding: 1.5rem;
  }

  .blessing-card img {
    max-width: 120px;
  }

  .blessing-card h3 {
    font-size: 1rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Forms */
  .order-form,
  .contact-form {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.7rem;
    font-size: 1rem;
  }

  /* Contact Info */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-box,
  .contact-info {
    padding: 1.5rem;
  }

  .contact-box h3,
  .contact-item h3 {
    font-size: 1.1rem;
  }

  .contact-item {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }

  .contact-item svg,
  .contact-item .icon {
    font-size: 1.2rem;
  }

  /* Order Info Box */
  .order-info-box {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  /* Map Container */
  .map-container iframe {
    height: 300px;
  }

  /* About Content */
  .about-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .about-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .footer-section p,
  .footer-section ul li {
    font-size: 0.95rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 1.5rem;
  }

  /* WhatsApp Float Button */
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    font-size: 1.8rem;
  }

  /* Text Utilities */
  p {
    font-size: 1rem;
  }

  /* Trust Badges */
  .trust-badges {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .badge {
    padding: 1.2rem;
  }

  .badge-icon {
    font-size: 2.5rem;
  }

  .badge-text {
    font-size: 1rem;
  }
}

/* Extra Small Screens (Mobile Portrait) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .logo h1 {
    font-size: 1rem;
  }

  .logo p {
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .category-title {
    font-size: 1.2rem;
  }

  .menu-item-image,
  .product-image {
    height: 180px;
  }

  .call-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    bottom: 15px;
    right: 15px;
  }

  nav {
    width: 85%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .menu-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 2.5rem 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Extra Small Screens (Mobile Portrait) */
@media (max-width: 480px) {
  /* Keep base font size large for readability */
  html {
    font-size: 17px;
  }

  .theme-toggle-container {
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    gap: 4px;
    border-radius: 25px;
    border-width: 1.5px;
  }

  .theme-option {
    padding: 5px 7px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .theme-divider {
    height: 16px;
    width: 1px;
  }

  .music-player {
    bottom: 10px;
    right: 8px;
    padding: 6px 10px;
    gap: 6px;
    border-radius: 40px;
  }

  .music-control {
    font-size: 1.3rem;
    padding: 2px;
  }

  .music-title {
    font-size: 0.8rem;
    max-width: 70px;
  }

  .volume-control {
    width: 55px;
    height: 4px;
  }

  /* Maintain readable heading sizes */
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Keep images large enough */
  .menu-item-image {
    height: 260px;
  }

  .product-card img {
    height: 260px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .menu-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   Utility Classes
   ========================================== */

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
  display: none;
}

/* Lazy Loading Image Placeholder */
img[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Print Styles */
@media print {
  .whatsapp-float,
  .menu-toggle,
  .cta-buttons,
  .theme-toggle-container,
  .music-player {
    display: none;
  }
}

/* Touch Device Optimizations */
.touch-device button,
.touch-device .btn,
.touch-device a {
  -webkit-tap-highlight-color: transparent;
}

.touch-active {
  opacity: 0.7 !important;
  transform: scale(0.98) !important;
}

/* Improve click target sizes for mobile */
@media (max-width: 768px) {
  a, button, .btn, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Exception for text links */
  p a, li a:not(.btn) {
    min-height: auto;
    min-width: auto;
    display: inline;
  }
}
