:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #6ea8fe;
  --secondary: #198754;
  --accent: #ff6b35;
  --aqua: #0dcaf0;
  --teal: #20c997;
  --ocean: #006994;
  --dark: #212529;
  --light: #f0f6fc;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #dee2e6;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-md: 0 5px 25px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

[data-theme="dark"] {
  --dark: #f8f9fa;
  --light: #212529;
  --white: #2d3236;
  --gray-light: #495057;
  --shadow: 0 2px 15px rgba(0,0,0,0.3);
  --shadow-md: 0 5px 25px rgba(0,0,0,0.35);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.45);
}

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

html { scroll-behavior: smooth; }
#page-content { overflow-x: hidden; }
@media (min-width: 992px) {
  body.page-admin .navbar-brand { padding-left: 270px; }
  body.page-admin #mainNavbar { display: none !important; }
  body.page-admin .top-bar { display: none !important; }
  body.page-admin .mobile-nav { display: none !important; }
  body.page-admin .footer { display: none !important; }
  body.page-admin .whatsapp-float { display: none !important; }
  body.page-admin .call-float { display: none !important; }
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(13,110,253,0.06) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(13,202,240,0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--aqua)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Navbar */
.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-brand i {
  -webkit-text-fill-color: initial;
  color: var(--aqua);
}
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  -webkit-text-fill-color: initial;
  border-radius: 4px;
}
.navbar {
  padding: 0.6rem 0;
  transition: var(--transition);
  background: var(--white) !important;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  box-shadow: 0 4px 25px rgba(13,110,253,0.12);
  border-bottom: 1px solid rgba(13,110,253,0.08);
}
.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--aqua));
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: rgba(13,110,253,0.06); }
.nav-icon {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--dark);
}
.nav-icon:hover {
  background: rgba(13,110,253,0.1);
  color: var(--primary);
  transform: translateY(-1px);
}
.nav-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: linear-gradient(135deg, var(--accent), #ff8f65);
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

/* Top Bar */
.top-bar {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: rgba(255,255,255,0.9);
  padding: 6px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar a { color: rgba(255,255,255,0.7); }
.top-bar a:hover { color: var(--aqua); }

/* Hero Carousel */
.hero-carousel {
  position: relative;
}
.hero-carousel .carousel-item {
  min-height: 65vh;
  max-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,110,253,0.45), rgba(0,105,148,0.35), rgba(0,0,0,0.2));
  z-index: 1;
}
.hero-carousel .carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  z-index: 1;
  pointer-events: none;
}
.hero-carousel .carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  max-width: 800px;
  width: 90%;
  padding: 0;
}
.hero-carousel .carousel-caption .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.hero-carousel .carousel-caption h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.hero-carousel .carousel-caption p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(0,0,0,0.1);
}
.hero-carousel .carousel-caption .hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.hero-carousel .carousel-caption .hero-stats div h4 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0;
}
.hero-carousel .carousel-caption .hero-stats div small {
  opacity: 0.75;
  font-size: 0.8rem;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 55px;
  height: 55px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  opacity: 1;
  transition: var(--transition);
  z-index: 3;
}
.hero-carousel .carousel-control-prev { left: 30px; }
.hero-carousel .carousel-control-next { right: 30px; }
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}
.hero-carousel .carousel-indicators {
  bottom: 30px;
  z-index: 3;
  gap: 8px;
}
.hero-carousel .carousel-indicators button {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  border: none;
  transition: var(--transition);
  opacity: 1;
}
.hero-carousel .carousel-indicators button.active {
  width: 60px;
  background: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.hero-carousel .carousel-inner {
  overflow: hidden;
}
.hero-carousel .carousel-item {
  transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Buttons */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.5s ease;
}
.btn:hover::after { transform: translateX(100%) skewX(-15deg); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  padding: 0.6rem 1.8rem;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13,110,253,0.35);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ff8f65);
  border: none;
  color: #fff;
  padding: 0.6rem 1.8rem;
}
.btn-accent:hover {
  background: linear-gradient(135deg, #e55a2b, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,53,0.35);
  color: #fff;
}
.btn-outline-primary { border-radius: var(--radius-sm); font-weight: 600; }
.btn-success {
  background: linear-gradient(135deg, var(--secondary), #157347);
  border: none;
}
.btn-success:hover {
  background: linear-gradient(135deg, #157347, var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(25,135,84,0.35);
}
.btn-light {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.btn-light:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
}
.btn-lg { padding: 0.8rem 2.2rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn-sm { border-radius: 6px; padding: 0.4rem 1rem; }
.btn-group .btn { border-radius: var(--radius-sm) !important; }

/* Category horizontal scroll (semi-circle layout) */
.cat-scroll-wrapper {
  position: relative;
  padding: 0.5rem 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(13,110,253,0.04), transparent 70%);
}
.cat-scroll-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0.3rem 0.8rem 0.8rem;
  margin: 0 -0.5rem;
  scroll-behavior: smooth;
}
.cat-scroll-track::-webkit-scrollbar {
  height: 6px;
}
.cat-scroll-track::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 3px;
}
.cat-scroll-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary), var(--aqua));
  border-radius: 3px;
}
.cat-scroll-item {
  flex: 0 0 185px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}
.cat-scroll-item:hover {
  transform: translateY(-3px);
}
/* Fade edges to indicate more content */
.cat-scroll-wrapper::before,
.cat-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 2;
  pointer-events: none;
}
.cat-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--light), transparent);
}
.cat-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--light), transparent);
}
.cat-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 3px 15px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
  font-size: 0.9rem;
}
.cat-scroll-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 20px rgba(13,110,253,0.35);
  transform: translateY(-50%) scale(1.08);
}
.cat-scroll-left { left: 0; }
.cat-scroll-right { right: 0; }

@media (max-width: 768px) {
  .cat-scroll-item { flex: 0 0 140px; }
  .cat-scroll-track { gap: 0.6rem; padding: 0.2rem 0.3rem 0.5rem; }
  .cat-scroll-wrapper { padding: 0.2rem 0; }
  .cat-scroll-wrapper::before,
  .cat-scroll-wrapper::after { width: 20px; }
  .category-card .cat-img-wrapper { height: 100px; }
  .category-card .cat-body { padding: 0.5rem 0.5rem 0.7rem; }
  .category-card .cat-body i { font-size: 1.1rem; }
  .category-card h5 { font-size: 0.8rem; }
  .category-card .cat-count { font-size: 0.7rem; }
}

/* Section */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--gray); margin-bottom: 2.5rem; font-size: 1.05rem; }
.section-title-wrapper {
  position: relative;
  margin-bottom: 3rem;
}
.section-title-wrapper::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--aqua));
  margin: 0.8rem auto 0;
  border-radius: 4px;
}

/* Category Card */
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
  border: none;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.category-card .cat-img-wrapper {
  height: 130px;
  overflow: hidden;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}
.category-card .cat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.category-card .cat-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}
.category-card .cat-body {
  padding: 0.8rem 0.8rem 1rem;
  position: relative;
}
.category-card .cat-body i {
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
}
.category-card h5 {
  font-weight: 700;
  margin-bottom: 0.1rem;
  color: var(--dark);
  font-size: 0.95rem;
}
.category-card .cat-count {
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 500;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.category-card:hover .cat-img-wrapper img {
  transform: scale(1.12);
}
.category-card .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,110,253,0.85), rgba(0,206,209,0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-slow);
}
.category-card:hover .cat-overlay {
  opacity: 1;
}
.category-card .cat-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 20px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  backdrop-filter: blur(5px);
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.product-card .card-img-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--light);
}
.product-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
  padding: 0.5rem;
}
.wishlist-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition-normal);
  cursor: pointer;
}
.wishlist-overlay:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.wishlist-overlay i { font-size: 1rem; }
.wishlist-overlay-lg {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition-normal);
  cursor: pointer;
}
.wishlist-overlay-lg:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.wishlist-overlay-lg i { font-size: 1.3rem; }
.wishlist-active { background: rgba(220,53,69,0.15); }
.product-card:hover .card-img-top {
  transform: scale(1.08);
}
.product-card .card-body {
  padding: 1.2rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--dark);
  transition: var(--transition);
}
.product-card a:hover .card-title { color: var(--primary); }
.product-card .card-category {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0.5rem;
}
.product-rating .stars {
  color: #ffc107;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.product-rating .count {
  color: var(--gray);
  font-size: 0.78rem;
}
.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
}
.product-price .old-price {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 400;
}
.product-price .discount-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 0.5rem;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-badge .badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.badge-sale { background: linear-gradient(135deg, var(--accent), #ff8f65); color: #fff; }
.badge-new { background: linear-gradient(135deg, var(--secondary), #20c997); color: #fff; }
.badge-featured { background: linear-gradient(135deg, var(--primary), var(--aqua)); color: #fff; }

.product-card .btn-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.product-card .btn-group .btn {
  flex: 1;
  padding: 0.45rem;
  font-size: 0.82rem;
}

/* Review Card */
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(13,110,253,0.05);
  position: relative;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 18px;
  font-size: 4rem;
  color: rgba(13,110,253,0.08);
  font-family: Georgia, serif;
  line-height: 1;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.review-card .stars { color: #ffc107; font-size: 0.9rem; letter-spacing: 1px; }
.review-card .reviewer { font-weight: 600; margin-top: 0.5rem; color: var(--dark); }

/* Why Choose Us */
.feature-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-5px);
}
.feature-card i { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.feature-card h6 { font-weight: 700; margin-bottom: 0.3rem; }

/* WhatsApp & Call Float */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #20bd5a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 6px 25px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.12) rotate(-5deg); color: #fff; }
.call-float {
  position: fixed;
  bottom: 150px;
  right: 20px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 6px 25px rgba(13,110,253,0.45);
  transition: var(--transition);
}
.call-float:hover { transform: scale(1.12) rotate(-5deg); color: #fff; }

@keyframes pulse-green {
  0% { box-shadow: 0 6px 25px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 35px rgba(37,211,102,0.7); }
  100% { box-shadow: 0 6px 25px rgba(37,211,102,0.45); }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--aqua), var(--teal), var(--accent));
}
.footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='rgba(13,110,253,0.05)' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,35 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 1440px 60px;
  pointer-events: none;
  opacity: 0.5;
}
.footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--primary));
  border-radius: 3px;
}
.footer a { color: rgba(255,255,255,0.65); }
.footer a:hover { color: var(--aqua); padding-left: 3px; }
.footer ul li { margin-bottom: 0.6rem; }
.footer .social-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer .social-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  padding-left: 0;
}
.footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.footer .contact-item i {
  margin-top: 4px;
  color: var(--aqua);
  width: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: all 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: all 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-scale { opacity: 0; transform: scale(0.9); transition: all 0.6s ease; }
.fade-in-scale.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, rgba(13,110,253,0.08) 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 350px;
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.skeleton-card .skeleton-img { height: 200px; width: 100%; }
.skeleton-card .skeleton-body { padding: 1rem; }
.skeleton-card .skeleton-line { height: 14px; margin-bottom: 10px; width: 80%; }
.skeleton-card .skeleton-line:last-child { width: 50%; }

/* Loading */
.spinner-custom {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rippleAnim { to { transform: scale(2.5); opacity: 0; } }

/* Dark Mode Toggle */
.theme-toggle {
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover {
  background: rgba(13,110,253,0.1);
  transform: rotate(15deg);
}

/* Breadcrumb */
.breadcrumb {
  background: none;
  padding: 0;
  margin: 1rem 0;
}
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--gray); }

/* Product Detail */
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  padding: 1rem;
  height: 420px;
  position: relative;
}
.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: crosshair;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.product-detail-img.zoomed img { opacity: 0; }
.product-detail-img .zoom-lens {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  pointer-events: none;
  border-radius: var(--radius);
}
.product-detail-img.zoomed .zoom-lens { display: block; }
.product-detail-info h1 { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.product-detail-info .price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.product-detail-info .old-price { color: var(--gray); text-decoration: line-through; font-weight: 400; }

/* Tabs */
.nav-tabs .nav-link {
  border: none;
  color: var(--gray);
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.nav-tabs .nav-link.active {
  color: var(--primary);
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(13,110,253,0.08);
}
.tab-content {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Cart */
.cart-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-md); }
.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--light);
  padding: 0.3rem;
}
.cart-item input[type="number"] {
  border: 1px solid #dee2e6;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.3rem;
  -moz-appearance: textfield;
}
.cart-item input[type="number"]::-webkit-inner-spin-button,
.cart-item input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.saved-item {
  opacity: 0.85;
  background: rgba(255,255,255,0.5);
}
.saved-item:hover {
  opacity: 1;
}

/* Glass Card */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Form */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}
.toast-custom {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  animation: slideIn 0.3s ease;
  min-width: 300px;
  border-left: 4px solid var(--primary);
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Admin */
.pay-option.disabled { opacity: 0.5; cursor: not-allowed; background: #f5f5f5; }
.pay-option.disabled input { pointer-events: none; }
.pay-option.disabled label { cursor: not-allowed; }

.admin-sidebar {
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #1a1a2e, #16213e);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  padding-top: 0;
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.admin-sidebar .nav { padding-bottom: 2rem; }
.admin-sidebar-header { padding: 1rem 1.5rem 0.8rem; position: relative; }
.admin-sidebar-header h5 { margin-bottom: 0.2rem; }
.admin-sidebar-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.6);
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-left-color: var(--aqua);
}
.admin-sidebar .nav-link i { width: 20px; text-align: center; }
.admin-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1039; }
.admin-sidebar-toggle {
  display: inline-block;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  margin-right: 0.8rem;
}
.admin-sidebar-toggle:hover { background: var(--primary); }
.admin-sidebar.collapsed { transform: translateX(-100%); }
.admin-content { margin-left: 260px; padding: 1.5rem; min-height: 100vh; transition: margin-left 0.3s ease; color: #212529; }
.admin-content.expanded { margin-left: 0; }
.admin-stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.admin-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.admin-stat h3 { font-size: 2rem; font-weight: 700; }
.admin-stat p { color: var(--gray); margin: 0; }

/* Table */
.table { border-radius: var(--radius); overflow: hidden; }
.table thead { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); }
.table th { border: none; font-weight: 600; padding: 0.8rem 1rem; }

/* Service card */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.service-card i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-carousel .carousel-caption h1 { font-size: 2.2rem; }
  .hero-carousel .carousel-item { min-height: 50vh; max-height: 450px; }
  .hero-carousel .carousel-control-prev { left: 15px; }
  .hero-carousel .carousel-control-next { right: 15px; }
}

@media (max-width: 768px) {
  .hero-carousel .carousel-caption h1 { font-size: 1.5rem; }
  .hero-carousel .carousel-caption p { font-size: 0.9rem; margin-bottom: 0.8rem; }
  .hero-carousel .carousel-item { min-height: 45vh; max-height: 380px; }
  .hero-carousel .carousel-caption .hero-stats { gap: 1.2rem; flex-wrap: wrap; margin-top: 1rem; }
  .hero-carousel .carousel-caption .hero-stats div h4 { font-size: 1.1rem; }
  .hero-carousel .carousel-caption .hero-stats div small { font-size: 0.7rem; }
  .hero-carousel .carousel-caption .hero-badge { font-size: 0.7rem; padding: 3px 12px; margin-bottom: 0.6rem; }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next { width: 32px; height: 32px; font-size: 0.7rem; }
  .hero-carousel .carousel-control-prev { left: 8px; }
  .hero-carousel .carousel-control-next { right: 8px; }
  .hero-carousel .carousel-indicators { bottom: 12px; }
  .hero-carousel .carousel-indicators button { width: 24px; height: 3px; }
  .hero-carousel .carousel-indicators button.active { width: 36px; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.6rem; }
  .product-card .card-img-wrapper { height: 200px; }
  .category-card .cat-img-wrapper { height: 120px; }
  .hero-carousel .btn-lg { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
  .hero-carousel .btn-lg i { font-size: 0.8rem; }
  .cart-item { flex-direction: column; text-align: center; }
  .admin-sidebar { transform: translateX(-100%); width: 280px; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar.collapsed { transform: translateX(-100%); }
  .admin-sidebar-overlay.open { display: block; }
  .admin-sidebar-close { display: block; }
  .admin-sidebar-toggle { display: inline-block; }
  .admin-content { margin-left: 0; padding: 1rem; width: 100%; overflow-x: auto; }
  .admin-content .card { min-width: 0; }
  .admin-content .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-content .d-flex { flex-wrap: wrap; gap: 0.5rem; }
  .admin-content input, .admin-content select { max-width: 100% !important; }
  .whatsapp-float, .call-float { width: 50px; height: 50px; font-size: 1.4rem; }
  .whatsapp-float { bottom: 70px; }
  .call-float { bottom: 130px; }
}

@media (max-width: 576px) {
  .hero-carousel .carousel-caption h1 { font-size: 1.3rem; }
  .hero-carousel .carousel-item { min-height: 40vh; max-height: 320px; }
  .product-card .card-img-wrapper { height: 180px; }
  .category-card .cat-img-wrapper { height: 110px; }
}

@media (max-width: 991px) {
  .navbar { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .navbar-brand { max-width: 50%; overflow: hidden; font-size: 1rem; }
  .navbar-brand .brand-text { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; vertical-align: middle; }
  .brand-logo { height: 32px; max-width: 120px; }
}

@media (max-width: 767px) {
  .footer { padding: 2rem 0 0; }
  .footer h5 { font-size: 0.95rem; margin-bottom: 0.8rem; padding-bottom: 0.5rem; }
  .footer ul li { margin-bottom: 0.3rem; }
  .footer ul li a { font-size: 0.85rem; }
  .footer .contact-item { margin-bottom: 0.4rem; font-size: 0.85rem; }
  .footer .contact-item i { font-size: 0.8rem; }
  .footer .social-btn { width: 32px; height: 32px; font-size: 0.8rem; }
  .footer p { font-size: 0.85rem; }
  .footer-bottom { margin-top: 1.5rem; padding: 1rem 0; }
}

/* Mobile Bottom Nav */
.mobile-nav {
  position: fixed;
  inset: auto 0 0 0;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  z-index: 1050;
  padding: 6px 0;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
  display: flex;
  height: 56px;
  will-change: transform;
}
.mobile-nav > .container { display: flex; justify-content: space-around; }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  font-size: 0.65rem;
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.mobile-nav-item i {
  font-size: 1.2rem;
  color: var(--gray);
}
.mobile-nav-item.active i,
.mobile-nav-item.active span {
  color: var(--primary);
}
.mobile-nav-item.active {
  background: rgba(13,110,253,0.06);
}
.mobile-nav-item span {
  font-weight: 600;
  font-size: 0.6rem;
  line-height: 1;
}
@media (max-width: 991px) {
  body { padding-bottom: 60px; }
}
@media (min-width: 992px) {
  .mobile-nav { display: none !important; }
}

/* Flipkart-style Mobile Theme */
@media (max-width: 576px) {
  .product-card {
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  }
  .product-card .card-img-wrapper {
    height: 160px;
    padding: 0.3rem;
  }
  .product-card .card-body {
    padding: 0.6rem 0.6rem 1rem;
  }
  .product-card .card-title {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0.2rem;
  }
  .product-price {
    font-size: 1rem;
  }
  .product-price .old-price {
    font-size: 0.7rem;
  }
  .product-price .discount-tag {
    font-size: 0.6rem;
    padding: 1px 6px;
  }
  .product-card .btn-group .btn {
    font-size: 0.7rem;
    padding: 0.3rem;
  }
  .card-category {
    font-size: 0.65rem !important;
  }
  .product-rating .stars {
    font-size: 0.7rem;
  }
  .product-rating .count {
    font-size: 0.65rem;
  }
  .category-card {
    border-radius: 8px;
  }
  .category-card .cat-img-wrapper {
    height: 85px;
  }
  .category-card .cat-body {
    padding: 0.3rem 0.3rem 0.5rem;
  }
  .category-card .cat-body i {
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  .category-card h5 {
    font-size: 0.7rem;
  }
  .category-card .cat-count {
    font-size: 0.6rem;
  }
  .cat-scroll-wrapper::before,
  .cat-scroll-wrapper::after {
    display: none;
  }
  .section {
    padding: 1.5rem 0;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .section-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  .section-title-wrapper {
    margin-bottom: 1rem;
  }
  .section-title-wrapper::after {
    width: 50px;
    height: 3px;
  }
  .glass-card {
    border-radius: 8px;
    padding: 0.8rem !important;
  }
  .btn-sm {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }
  .btn-lg {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }
}
/* Homepage Promotions */
.promo-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.promo-carousel .carousel-item { transition: transform 0.6s ease; }
