/* =========================================
   1. GLOBAL VARIABLES & RESET
========================================= */
:root {
  --dark: #050b2e;
  --dark-accent: #071b4d;
  --aqua: #22e6ff;
  --green: #3dff8c;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.2);
  --text-gray: #dbe7ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--dark), var(--dark-accent));
  color: #fff;
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. NAVBAR
========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 11, 46, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo span { color: var(--aqua); }

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:not(.nav-btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aqua);
  transition: 0.3s;
}

.nav-links a:not(.nav-btn):hover::after { width: 100%; }

.nav-btn {
  padding: 8px 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--aqua), var(--green));
  color: #001 !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(34, 230, 255, 0.3);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 230, 255, 0.5);
}

/* Cart Icon Badge */
.cart-btn { position: relative; }
#cartCount {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff3d3d;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
}

/* यह कोड Mobile Toggle सेक्शन में होगा (Line ~100 के आसपास) */
.menu-toggle {
  display: none ; /* Desktop पर छुपा रहेगा */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10002; /* सबसे ऊपर रहने के लिए */
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
/* =========================================
   3. HERO SECTION
========================================= */
.hero {
  min-height: 100vh;
  padding: 120px 6% 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glass {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 20px; }

.btn {
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--aqua), var(--green));
  color: #050b2e;
}

.btn.glass {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
}
.btn.glass:hover { background: rgba(255, 255, 255, 0.1); }

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 320px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* =========================================
   4. FEATURES & SECTIONS
========================================= */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 80px 6%;
}

.feature {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: 0.3s;
}
.feature:hover { transform: translateY(-10px); background: var(--glass-hover); }

/* =========================================
   5. PRODUCT CARDS
========================================= */
.products, .shop {
  padding: 80px 6%;
}
.shop { padding-top: 140px; } /* Spacer for fixed nav */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: 0.4s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(34, 230, 255, 0.15);
  border-color: rgba(34, 230, 255, 0.4);
}

.product-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: 0.4s;
}
.product-card:hover .product-img img { transform: scale(1.1); }

.product-card h3 { font-size: 1.2rem; margin-bottom: 10px; min-height: 50px;}

.price {
  font-size: 1.3rem;
  color: var(--aqua);
  font-weight: 700;
  margin-bottom: 15px;
}
.old-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: #aaa;
  margin-right: 8px;
}

.add-cart-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--aqua), var(--green));
  color: #050b2e;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.add-cart-btn:hover { opacity: 0.9; transform: scale(1.02); }

.wa-btn {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 0.85rem;
  background: rgba(37, 211, 102, 0.2);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #25D366;
}
.wa-btn:hover { background: #25D366; }

/* =========================================
   6. CART & CHECKOUT
========================================= */
.cart-page {
  padding: 120px 5% 50px;
  max-width: 800px;
  margin: 0 auto;
}

.cart-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.back-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.qty-box button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--aqua);
  font-weight: bold;
  cursor: pointer;
}

.remove-btn {
  background: #ff3d3d;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: 15px;
}

.cart-summary {
  margin-top: 40px;
  padding: 30px;
  background: var(--glass);
  border-radius: 20px;
  text-align: center;
}
.cart-summary h3 { font-size: 1.8rem; margin-bottom: 20px; }
.primary-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--aqua), var(--green));
  border: none;
  cursor: pointer;
}

/* Modal */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.checkout-box {
  background: #fff;
  color: #111;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}
.checkout-box h3 { margin-bottom: 20px; color: var(--dark); }

.checkout-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

.cancel-btn {
  margin-top: 10px;
  background: #eee;
  color: #333;
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
}
.success-actions { display: none; margin-top: 15px; }

/* =========================================
   7. UTILS & ANIMATIONS
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

#pageLoader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  margin-top: 20px;
  overflow: hidden;
  border-radius: 4px;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--aqua);
  animation: load 1.5s infinite linear;
}
@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 999;
  transition: 0.3s;
}
.wa-float:hover { transform: scale(1.1); }

/* =========================================
  

/* ADMIN PANEL */
.admin-login, .admin-panel { max-width: 900px; margin: 120px auto; padding: 0 5%; }
.admin-bg { display: flex; align-items: center; justify-content: center; height: 100vh; }
.admin-box { background: var(--glass); padding: 20px; border-radius: 15px; border: 1px solid var(--border); margin-bottom: 20px; }
.admin-order { background: rgba(0,0,0,0.2); padding: 15px; margin-bottom: 10px; border-radius: 10px; }
/* =========================================
   9. ACCESSORIES FILTERS
========================================= */
.filter-bar {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}

.filter-group, .sort-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-bar select {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(5, 11, 46, 0.8);
  color: #fff;
  cursor: pointer;
  outline: none;
  font-size: 0.9rem;
}

.filter-bar select:hover {
  border-color: var(--aqua);
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group, .sort-group {
    flex-direction: column;
  }
}
/* LOGO STYLING */
.logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* "wish" text gradient */
.logo span {
  background: linear-gradient(120deg, #22e6ff, #3dff8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(34, 230, 255, 0.3);
}

/* Water Drop Icon before text */
.logo::before {
  content: '💧'; /* Simple Emoji Icon */
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(34, 230, 255, 0.6));
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
/* === BLINKING TRACK ORDER BUTTON === */
.track-float-btn {
  position: fixed;
  bottom: 90px;       /* WhatsApp बटन से थोड़ा ऊपर */
  right: 20px;        /* दाएँ कोने में */
  background: #ff3b30; /* लाल रंग (Red) */
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px; /* गोल किनारे */
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 9999;       /* सबसे ऊपर दिखे */
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  
  /* Blinking Animation */
  animation: pulse-red 2s infinite;
}

/* एनीमेशन: बटन धड़केगा */
@keyframes pulse-red {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(255, 59, 48, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

/* मोबाइल के लिए सेटिंग */
@media (max-width: 768px) {
  .track-float-btn {
    bottom: 85px;
    right: 15px;
    padding: 8px 15px;
    font-size: 0.8rem;
  }
}
/* Toast Notification */
#toast-box {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 11, 46, 0.95);
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  border: 1px solid var(--aqua);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  z-index: 10000;
}
#toast-box.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
.glass, .hero-glass, .product-card, .nav-container {
  /* Existing styles... */
  backdrop-filter: blur(12px); /* Makes text sharper */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* =========================================
   8. MOBILE RESPONSIVE (CORRECTED)
   इसे फाइल के सबसे नीचे पेस्ट करें
========================================= */
@media (max-width: 900px) {
  
  /* 1. हीरो सेक्शन फिक्स */
  .hero-glass {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px;
  }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-actions { justify-content: center; }
  
  /* 2. मेनू बटन (Hamburger) */
  .menu-toggle { 
    display: flex; /* मोबाइल पर दिखेगा */
    position: relative;
    z-index: 10005; /* मेनू से ज्यादा होना चाहिए (Very Important) */
  }
  
  /* 3. मेनू लिस्ट (Blue Background) */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* स्क्रीन के बाहर */
    width: 100%;  /* फुल स्क्रीन */
    height: 100vh;
    background: rgba(5, 11, 46, 0.98); /* गहरा नीला */
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    z-index: 10004; /* बटन से कम होना चाहिए */
  }

  /* जब मेनू खुलेगा */
  .nav-links.show { 
    right: 0; 
  }

  /* फोंट साइज़ बढ़ाएं मोबाइल के लिए */
  .nav-links a {
    font-size: 1.5rem;
  }
  
  /* === CLOSE BUTTON ANIMATION (X) === */
  
  /* पहली लाइन */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background-color: #ff3d3d; /* लाल रंग */
  }

  /* दूसरी लाइन (गायब) */
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  /* तीसरी लाइन */
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background-color: #ff3d3d; /* लाल रंग */
  }
}
/* === CUSTOM FILE UPLOAD & PROGRESS BAR === */
.file-upload-wrapper {
  position: relative;
  margin-bottom: 15px;
  background: #000;
  border: 1px dashed #444;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-upload-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #aaa;
  font-size: 0.9rem;
}

.file-upload-label:hover {
  color: #fff;
}

.upload-btn-style {
  background: var(--dark-accent);
  color: var(--aqua);
  padding: 5px 15px;
  border-radius: 5px;
  border: 1px solid var(--aqua);
  font-size: 0.8rem;
  font-weight: bold;
}

/* असली इनपुट को छुपाएं */
input[type="file"].hidden-input {
  display: none; 
}

/* Progress Bar Container */
.progress-container {
  width: 100%;
  height: 6px;
  background: #222;
  border-radius: 3px;
  overflow: hidden;
  display: none; /* शुरू में छुपा रहेगा */
}

/* Progress Bar Fill */
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--aqua), var(--green));
  transition: width 0.2s;
}