:root {
  --primary-color: #860505;
  --secondary-color: yellow;
  --glass-bg: black;
  --white: #fff;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --blur-effect: blur(8px);
  --btn-hover-bg: #860505;
  --btn-shadow: rgba(202, 65, 15, 0.5);
}

/* 🌑 Dark Glassmorphism Navbar */
.As-navbar {
  background: var(--glass-bg); /* Glassmorphism effect */
  backdrop-filter: var(--blur-effect); /* Blurred background */
  color: var(--white);
  padding: 15px 30px;
  box-shadow: 0 4px 12px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  animation: fadeInDown 0.6s ease-in-out;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}
.blinking-text {
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 0 5px rgb(255, 0, 0), 0 0 10px rgb(0, 7, 7), 0 0 20px rgb(255, 0, 0);
  animation: blink 1s infinite;
  letter-spacing: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Container Layout */
.As-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

/* Logo with Hover Effect */
.As-logo a {
  display: flex;
  align-items: center;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
  position: absolute;
  top: -40%;
  left: 45%;
  z-index: 1000;
}

.As-logo img {
  /* border-radius: 1rem; */
  width: 150px;
  height: auto;
  object-fit: contain;
  margin-top: -8px;
  transition: transform 0.3s ease-in-out;
}

/* Navbar Links */
.As-nav-links,
.AS-nav-btn {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* Navbar Item Styling */
.As-nav-links li a {
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease-in-out;
  font-weight: bolder;
}

/* Stylish Underline Effect */
.As-nav-links li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: all 0.3s ease-in-out;
}

.As-nav-links li a:hover {
  color: var(--primary-color);
}

.As-nav-links li a:hover::after {
  width: 100%;
  left: 0;
}

/* Navbar Buttons with Glow Effect */
.AS-nav-btn li a {
  display: flex;
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.AS-nav-btn li a:hover {
  background: var(--btn-hover-bg);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--btn-shadow);
}
.cart-icon {
  position: relative;
  display: inline-block;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Profile Icon Effect */
.AS-nav-btn li a i {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  opacity: 0.8;
}

.AS-nav-btn li a:hover i {
  opacity: 1;
  transform: rotate(10deg);
  color: var(--secondary-color);
}

/* Hamburger Menu */
.As-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.As-hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Animated Hamburger Menu */
.As-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.As-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.As-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .As-hamburger {
    display: flex;
  }

  .As-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    opacity: 0;
    gap: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
  }
  .AS-nav-btn {
    gap: 1rem;
  }
  .AS-nav-btn li a span {
    display: none;
  }
  .AS-nav-btn li a {
    font-size: smaller;
    padding: 10px;
  }

  .As-nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .As-nav-links li {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  .As-nav-links li a {
    font-size: 1.2rem;
    width: 100%;
  }
  .As-logo a {
    position: relative;
    left: 0;
  }
  .As-logo img {
    width: 80px;
  }
}

/* 🔥 Smooth Fade-In Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
/* From Uiverse.io by JaydipPrajapati1910 */
.spinner {
  width: 160px;
  height: 160px;
  color: #860505;
  background: conic-gradient(
        from 165deg at top,
        #0000,
        currentColor 1deg 30deg,
        #0000 31deg
      )
      top,
    conic-gradient(
        from 75deg at left,
        #0000,
        currentColor 1deg 30deg,
        #0000 31deg
      )
      left,
    conic-gradient(
        from -15deg at bottom,
        #0000,
        currentColor 1deg 30deg,
        #0000 31deg
      )
      bottom,
    conic-gradient(
        from -105deg at right,
        #0000,
        currentColor 1deg 30deg,
        #0000 31deg
      )
      right;
  background-size: 100% 50%, 50% 100%;
  -webkit-mask: radial-gradient(circle 10px, #0000 90%, #000);
  background-repeat: no-repeat;
  animation: sh1 1.5s infinite linear;
}
.page-loader h1 {
  color: #fff;
  font-size: 5rem;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

@keyframes sh1 {
  100% {
    transform: rotate(1turn);
  }
}
.slide-in {
  opacity: 0;
  transform: translateX(100%);
  animation: slideFromRight 1s ease-out forwards;
}

@keyframes slideFromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
