:root {
  --primary-gradient: linear-gradient(
    135deg,
    #6366f1 0%,
    #a855f7 50%,
    #ec4899 100%
  );
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --border-color: rgba(226, 232, 240, 0.8);
}

body {
  background-color: #f8fafc;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* --- FLYING ICONS BACKGROUND ANIMATION (Increased Quantity) --- */
.flying-icons-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.flying-icon {
  position: absolute;
  color: rgba(245, 158, 11, 0.25);
  animation: flyAcross 15s linear infinite;
  bottom: -50px;
  user-select: none;
}

@keyframes flyAcross {
  0% {
    transform: translateY(0vh) translateX(0vw) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) translateX(20vw) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Increased and customized flying icon positions & timings */
.flying-icon:nth-child(1) {
  left: 3%;
  animation-duration: 11s;
  animation-delay: 0s;
  font-size: 24px;
}
.flying-icon:nth-child(2) {
  left: 9%;
  animation-duration: 16s;
  animation-delay: 2s;
  font-size: 18px;
  color: rgba(99, 102, 241, 0.2);
}
.flying-icon:nth-child(3) {
  left: 16%;
  animation-duration: 13s;
  animation-delay: 1s;
  font-size: 30px;
}
.flying-icon:nth-child(4) {
  left: 24%;
  animation-duration: 19s;
  animation-delay: 3s;
  font-size: 22px;
  color: rgba(236, 72, 153, 0.2);
}
.flying-icon:nth-child(5) {
  left: 32%;
  animation-duration: 15s;
  animation-delay: 0.5s;
  font-size: 26px;
}
.flying-icon:nth-child(6) {
  left: 40%;
  animation-duration: 21s;
  animation-delay: 4s;
  font-size: 20px;
}
.flying-icon:nth-child(7) {
  left: 48%;
  animation-duration: 12s;
  animation-delay: 1.5s;
  font-size: 28px;
  color: rgba(99, 102, 241, 0.25);
}
.flying-icon:nth-child(8) {
  left: 55%;
  animation-duration: 18s;
  animation-delay: 2.5s;
  font-size: 22px;
}
.flying-icon:nth-child(9) {
  left: 63%;
  animation-duration: 14s;
  animation-delay: 0.8s;
  font-size: 25px;
}
.flying-icon:nth-child(10) {
  left: 71%;
  animation-duration: 17s;
  animation-delay: 3.2s;
  font-size: 19px;
  color: rgba(236, 72, 153, 0.22);
}
.flying-icon:nth-child(11) {
  left: 79%;
  animation-duration: 13s;
  animation-delay: 1.2s;
  font-size: 27px;
}
.flying-icon:nth-child(12) {
  left: 86%;
  animation-duration: 20s;
  animation-delay: 4.5s;
  font-size: 23px;
}
.flying-icon:nth-child(13) {
  left: 93%;
  animation-duration: 15s;
  animation-delay: 2.2s;
  font-size: 29px;
  color: rgba(245, 158, 11, 0.3);
}

/* Background Gradient Orbs Loop */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  animation: orbFloatLoop 12s ease-in-out infinite alternate;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: #6366f1;
  top: 10%;
  left: 5%;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: #f59e0b;
  bottom: 10%;
  right: 5%;
  animation-delay: -4s;
}

@keyframes orbFloatLoop {
  0% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  100% {
    transform: translateY(-30px) translateX(30px) scale(1.1);
  }
}

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

@keyframes pulseBorderLoop {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-card {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Moving Ticker */
.moving-ticker-wrapper {
  background: var(--dark-bg);
  color: #ffb703;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.moving-ticker-content {
  display: inline-block;
  animation: marqueeScroll 25s linear infinite;
}
.moving-ticker-content span {
  margin-right: 60px;
}
.moving-ticker-content span i {
  color: #fff;
  margin-right: 6px;
}

/* Breadcrumb Section */
.as_breadcrum_wrapper {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  padding: 130px 0;
  position: relative;
  margin-top: 90px; /* Navbar ki height ke mutabiq ise 80px ya 100px kar sakte hain */
}
.as_breadcrum_wrapper h1 {
  color: #ffffff !important;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  animation: pulseBorderLoop 3s infinite;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
}
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}
.breadcrumb li {
  display: inline-block;
  font-size: 15px;
  color: #cbd5e1;
}
.breadcrumb li a {
  color: #ffb703;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb li a:hover {
  color: #fff;
}

/* Extreme Product Box */
.as_product_box {
  position: relative;
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.as_product_box:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
  border-color: #f59e0b;
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 15px;
}
.product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.as_product_box:hover .product-img-wrap img {
  transform: scale(1.12) rotate(2deg);
}

/* Animated Badge Loop Glow */
.badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.badge-hot {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  animation: pulseBorderLoop 2s infinite;
}
.badge-new {
  background: linear-gradient(135deg, #2ed573, #7bed9f);
  color: #fff;
}
.badge-trending {
  background: linear-gradient(135deg, #ffa502, #ff7f50);
  color: #fff;
}
.badge-default {
  background: linear-gradient(135deg, #3742fa, #5352ed);
  color: #fff;
}

.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #fff;
  position: relative;
  z-index: 3;
}

.product-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}
.product-metrics span i {
  color: #f59e0b;
  margin-right: 4px;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.product-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}
.product-title a:hover {
  color: #f59e0b;
}

.product-short-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}

.product-price-mt-auto {
  margin-top: auto;
}

/* Slide-up Actions */
.product-actions-slide {
  position: absolute;
  bottom: -65px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.08);
  z-index: 4;
}
.as_product_box:hover .product-actions-slide {
  bottom: 0;
}
.product-actions-slide .btn {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
  transition: transform 0.2s;
}
.product-actions-slide .btn:hover {
  transform: translateY(-2px);
}

/* Widgets Styling */
.sidebar-widget {
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}
.sidebar-widget:hover {
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
  border-color: #cbd5e1;
}

.category-sidebar-list {
  list-style: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}
.category-sidebar-list li a {
  display: block;
  padding: 12px 18px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-sidebar-list li:last-child a {
  border-bottom: none;
}
.category-sidebar-list li a:hover,
.category-sidebar-list li.active a {
  background: var(--gold-gradient);
  color: #fff;
  padding-left: 24px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.offer-slider-box {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.offer-slide-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.as_shop_topbar {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.custom-right-side-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  min-width: 320px;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  animation: slideInRight 0.4s ease-out;
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
