:root {
  --temple-red: #8b0000;
  --temple-red-light: #c0392b;
  --deep-maroon: #5c0a0a;
  --gold: #c8961c;
  --gold-bright: #e8b800;
  --gold-light: #f5d67a;
  --saffron: #e07b00;
  --cream: #fff8f0;
  --cream-dark: #f5ead8;
  --parchment: #fdf0e0;
  --text-dark: #2a0a0a;
  --text-medium: #5a2a2a;
  --text-muted: #8a5a4a;
  --card-bg: #ffffff;
  --card-border: rgba(200, 150, 28, 0.3);
  --shadow: rgba(139, 0, 0, 0.12);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--temple-red);
}

/* Om / Mandala Background Pattern */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fff8f0 0%, #fdf0e0 50%, #fae8cc 100%);
  z-index: -1;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/batthern.png');
  opacity: 0.05;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0 !important;
  right: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  background: transparent;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: #ffffff;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.15);
}

nav.scrolled .nav-links a {
  color: var(--text-medium) !important;
}

nav.scrolled .nav-links a:hover {
  color: var(--temple-red) !important;
}

nav.scrolled .cart-icon {
  color: var(--temple-red);
}

nav.scrolled .btn-secondary {
  color: var(--temple-red);
  border-color: var(--temple-red);
}

nav.scrolled .nav-mobile-toggle {
  color: var(--temple-red);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.logo img {
  max-width: 100%;
  max-height: 55px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a,
.nav-links a:visited {
  text-decoration: none;
  color: var(--gold-light) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a:active {
  color: white !important;
}

.lang-switcher select {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  border: 1px solid rgba(200, 150, 28, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.lang-switcher select option {
  background: var(--temple-red);
  color: white;
}

.nav-mobile-toggle {
  display: none;
  cursor: pointer;
  color: var(--temple-red);
  font-size: 1.8rem;
  transition: 0.3s;
  z-index: 1001;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

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

nav.scrolled .nav-mobile-toggle {
  color: var(--temple-red);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  color: var(--gold-light);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: white;
  color: var(--temple-red);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 8% 4rem;
  gap: 5%;
  background: linear-gradient(135deg, rgba(92, 10, 10, 0.45) 0%, rgba(139, 0, 0, 0.45) 100%),
    url('../assets/galaxy.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://www.transparenttextures.com/patterns/batthern.png');
  opacity: 0.04;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 60% at 50% 100%);
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.6rem;
  margin-bottom: 1.2rem;
  color: var(--gold-light);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 245, 220, 0.95);
  margin-bottom: 2.5rem;
  max-width: 480px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-group {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--deep-maroon);
  box-shadow: 0 4px 15px rgba(200, 150, 28, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-light));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200, 150, 28, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(200, 150, 28, 0.15);
  border-color: var(--gold-light);
}

/* btn-secondary inside white sections */
section .btn-secondary {
  color: var(--temple-red);
  border-color: var(--temple-red);
}

section .btn-secondary:hover {
  background: rgba(139, 0, 0, 0.08);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-image img {
  max-width: 100%;
  max-height: 420px;
  filter: drop-shadow(0 0 40px rgba(232, 184, 0, 0.6));
  animation: spin-clockwise 18s linear infinite;
  transform-origin: center center;
}

@keyframes spin-clockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Sections */
section {
  padding: 5rem 10%;
}

section:nth-child(even) {
  background: var(--cream-dark);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--temple-red);
}

.section-title p {
  color: var(--text-muted);
}

.section-title .divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--temple-red), var(--gold));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Cards - Premium */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(200, 150, 28, 0.2);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 15px rgba(139, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--temple-red), var(--gold));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

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

.card:hover {
  border-color: var(--gold);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(139, 0, 0, 0.15);
}

.card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.08), rgba(200, 150, 28, 0.12));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(200, 150, 28, 0.25);
  transition: all 0.3s;
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--temple-red), rgba(200, 150, 28, 0.3));
  border-color: var(--gold);
}

.card:hover .card-icon svg {
  stroke: white;
}

.card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card h3 {
  margin-bottom: 0.8rem;
  color: var(--temple-red);
  font-size: 1.15rem;
}

.card p {
  color: var(--text-medium);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Products */
.product-card {
  position: relative;
  overflow: hidden;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--temple-red);
  color: white;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: bold;
}

.pricing {
  margin: 1rem 0;
}

.mrp {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-right: 8px;
}

.final-price {
  font-size: 1.3rem;
  color: var(--temple-red);
  font-weight: bold;
}

.gst-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 40px var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--temple-red);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  background: var(--parchment);
  border: 1.5px solid #e8d5b7;
  color: var(--text-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 28, 0.1);
}

/* Footer */
footer {
  background: var(--temple-red);
  padding: 5rem 10% 2rem;
  border-top: 3px solid var(--gold);
  color: var(--gold-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: var(--gold-light);
  font-family: var(--font-heading);
}

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

.footer-col ul li {
  margin-bottom: 0.8rem;
  color: rgba(255, 245, 220, 0.75);
  font-size: 0.9rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: rgba(255, 245, 220, 0.75);
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--gold-light);
}

.logo-footer {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Floating Buttons */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  transition: 0.3s;
}

.booking-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  z-index: 1000;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  transition: 0.3s;
}

.whatsapp-float:hover,
.booking-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Admin Panel */
.admin-container {
  display: flex;
  gap: 2rem;
}

.sidebar {
  width: 240px;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--card-border);
  height: fit-content;
  box-shadow: 0 4px 20px var(--shadow);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f0e8d8;
  transition: 0.3s;
  color: var(--text-medium);
  border-radius: 8px;
  margin-bottom: 4px;
}

.sidebar li:hover,
.sidebar li.active {
  color: var(--temple-red);
  background: rgba(139, 0, 0, 0.06);
  font-weight: 600;
}

.main-content {
  flex: 1;
  background: white;
  padding: 3rem;
  border-radius: 15px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 20px var(--shadow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

th,
td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid #f0e8d8;
}

th {
  color: var(--temple-red);
  font-family: var(--font-heading);
  background: #fff8f0;
}

tr:hover {
  background: #fffaf5;
}

/* Responsive */
@media (max-width: 968px) {
  nav {
    padding: 0.8rem 1.5rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    min-height: auto;
    padding: 7rem 5% 4rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    margin: 0 auto 2.5rem;
  }

  .cta-group {
    justify-content: center;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--temple-red);
    background: linear-gradient(135deg, var(--temple-red) 0%, #600000 100%);
    flex-direction: column;
    padding: 6rem 2rem;
    gap: 1.5rem;
    text-align: left;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-left: 2px solid var(--gold);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a,
  .nav-links a:visited,
  nav.scrolled .nav-links a {
    color: var(--gold-light) !important;
    font-size: 1.25rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    width: 100%;
    font-weight: 600;
  }

  .nav-links a:hover,
  .nav-links a:active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 10px;
  }

  .nav-mobile-toggle {
    display: block;
  }

  /* Horizontal Filter Scroll */
  .filter-tabs {
    justify-content: flex-start !important;
    padding: 0 1.5rem 1.5rem;
    gap: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tabs .btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Tablet Responsiveness (768px) */
@media (max-width: 768px) {
  section {
    padding: 4rem 5%;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 6rem 5% 4rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile Responsiveness (480px) */
@media (max-width: 480px) {
  nav {
    padding: 0.6rem 5%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-col ul li i {
    justify-content: center;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .card {
    padding: 1.5rem 1rem;
  }

  .hero-image img {
    max-height: 300px;
  }
}