/* ===== Global CSS - ElecZio ===== */
/* Google Fonts import - Sora font family */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Variables - Color System ===== */
:root {
  --black: #000000;
  --dark1: #111111;
  --dark2: #1a1a1a;
  --white: #ffffff;
  --white70: rgba(255, 255, 255, 0.7);
  --white10: rgba(255, 255, 255, 0.1);
  --white05: rgba(255, 255, 255, 0.05);
  --white20: rgba(255, 255, 255, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.8);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max-width: 1200px;
}

/* ===== CSS Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Sora', sans-serif;
  background-color: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ===== Loading Screen ===== */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hide {
  opacity: 0;
  visibility: hidden;
}

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

.loader-logo {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  animation: pulse-logo 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--white10);
  border-radius: 999px;
  margin: 16px auto 0;
  overflow: hidden;
}

.loader-bar-inner {
  height: 100%;
  background: var(--white);
  border-radius: 999px;
  animation: load-bar 2s ease forwards;
}

@keyframes pulse-logo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes load-bar {
  0% { width: 0%; }
  100% { width: 100%; }
}

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1100px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--white70);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--white10);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Cart Icon */
.cart-icon-btn {
  background: var(--white10);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.cart-icon-btn:hover {
  background: var(--white20);
}

.cart-count {
  background: var(--white);
  color: var(--black);
  border-radius: 999px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  text-align: center;
}

.mobile-nav a:hover {
  background: var(--white10);
}

/* ===== Glassmorphic Card ===== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

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

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(255,255,255,0.25);
}

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

.btn-outline:hover {
  background: var(--white10);
  border-color: var(--white70);
  transform: scale(1.04);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* ===== Section Headings ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white70);
  background: var(--white05);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.section-sub {
  font-size: 0.95rem;
  color: var(--white70);
  margin-top: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark1);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--white70);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white70);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--white70);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--white70);
  font-size: 0.82rem;
}

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

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

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--dark1);
  border-left: 1px solid var(--glass-border);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition);
  overflow: hidden;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.cart-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
}

.close-cart {
  background: var(--white10);
  border: none;
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.close-cart:hover {
  background: var(--white20);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-items::-webkit-scrollbar {
  width: 4px;
}

.cart-items::-webkit-scrollbar-track {
  background: var(--dark2);
}

.cart-items::-webkit-scrollbar-thumb {
  background: var(--white20);
  border-radius: 999px;
}

.cart-item {
  display: flex;
  gap: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  align-items: center;
}

.cart-item-img {
  width: 60px; height: 60px;
  background: var(--dark2);
  border-radius: 10px;
  object-fit: cover;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-word;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--white70);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white10);
  border: 1px solid var(--glass-border);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: var(--white20);
}

.qty-num {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.remove-item {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  padding: 4px;
}

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

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total span:first-child {
  font-size: 0.85rem;
  color: var(--white70);
}

.cart-total-price {
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white70);
  text-align: center;
  padding: 40px;
}

.cart-empty-icon {
  font-size: 3rem;
  opacity: 0.3;
}

/* ===== Form Styles ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white70);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--white70);
  background: var(--white10);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-group input.error,
.form-group textarea.error {
  border-color: rgba(255, 80, 80, 0.7);
}

.form-error-msg {
  font-size: 0.75rem;
  color: rgba(255, 120, 120, 0.9);
  margin-top: -4px;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--white);
  color: var(--black);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  max-width: 280px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== Star Rating ===== */
.stars {
  display: flex;
  gap: 3px;
}

.star {
  color: rgba(255,255,255,0.2);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.star.filled {
  color: var(--white);
}

.star:hover {
  transform: scale(1.2);
}

/* ===== Footer Social Icons ===== */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white10);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white70);
  text-decoration: none;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.social-icon:hover {
  background: var(--white20);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== Footer Connect List ===== */
.footer-connect-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-connect-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white70);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-connect-link:hover {
  color: var(--white);
  transform: translateX(3px);
}

.fc-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fc-wa  { background: rgba(37, 211, 102, 0.18); color: #25d366; }
.fc-ig  { background: rgba(225, 48, 108, 0.15); color: #e1306c; }
.fc-fb  { background: rgba(66, 103, 178, 0.18); color: #4267b2; }

/* ===== Floating WhatsApp Button ===== */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 20px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.floating-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

/* On very small phones, hide text label, show icon only */
@media (max-width: 380px) {
  .floating-wa span {
    display: none;
  }
  .floating-wa {
    padding: 14px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
}

/* ===== Mobile Nav Social Buttons ===== */
.mobile-nav-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  width: 100%;
  max-width: 280px;
}

.mobile-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: var(--white10);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--white70);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.mobile-social-btn:hover {
  background: var(--white20);
  color: var(--white);
}

.mobile-wa-btn {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.mobile-wa-btn:hover {
  background: rgba(37, 211, 102, 0.25);
  color: #25d366;
}

/* ===== Responsive - Tablet ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    padding: 12px 18px;
    top: 12px;
    width: calc(100% - 24px);
  }

  /* Footer mobile - sab center mein */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-col ul,
  .footer-connect-list {
    align-items: center;
  }

  .footer-connect-link:hover {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Cart sidebar mobile */
  .cart-sidebar {
    max-width: 100%;
    width: 100%;
  }

  /* Toast mobile */
  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 22px;
    font-size: 0.85rem;
  }

  .section-header {
    margin-bottom: 40px;
  }
}
