::-webkit-scrollbar {
  width: 8px;
  border-radius: 10px;
  background: #1a0000;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 2px rgb(48, 48, 48);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: linear-gradient(180deg, rgb(255, 54, 54) 45%, rgb(210, 36, 68) 54%);
}

*::selection {
  background-color: #11111146;
  color: #ff0000;
}

*:focus {
  outline: none;
}

@keyframes growAndShrink {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }

  100% {
    transform: scale(1);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

html {
  scroll-behavior: smooth;
}


body {
  background: #111;
  color: white;
  overflow-x: hidden;
}

/* BACKGROUND SYSTEM */

.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* grid pattern */

.bg-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* glowing blobs */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 60, 60, 0.35), transparent 70%);
  filter: blur(120px);
  animation: float 18s infinite linear;
}

.blob:nth-child(2) {
  top: 60%;
  left: 70%;
  animation-duration: 25s;
}

.blob:nth-child(3) {
  top: 20%;
  left: 10%;
  animation-duration: 22s;
}

/* floating animation */

@keyframes float {

  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(120px, -80px);
  }

  100% {
    transform: translate(0, 0);
  }

}


/* NAVBAR */

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  backdrop-filter: blur(3px);
  background: linear-gradient(90deg, rgba(27, 27, 27, 0.7), rgba(20, 20, 20, 0.7));
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
}



/* LOGO */

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo a {
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(90deg, #ff1f32, #dd244f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}



/* PRODUCT COUNTER */

.products-counter {
  background: rgba(62, 62, 62, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #ff9d9d;
}



/* NAV LINKS */

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #ddd;
  font-size: 14px;
  transition: .2s;
}

.nav-links a:hover {
  color: #ff1f32;
}

.nav-high {
  color: #ff1f1f;
  font-weight: 600;
}

@keyframes shake {

  0%,
  92%,
  100% {
    transform: translateX(0);
  }

  94% {
    transform: translateX(-4px);
  }

  96% {
    transform: translateX(4px);
  }

  98% {
    transform: translateX(-2px);
  }
}

/* CTA */

.cta {
  background: linear-gradient(90deg, #ff1f32, #dd244f);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: white;
  font-weight: 600;
  animation: shake 12s infinite;
}

.nav-links .cta:hover {
  color: #222;
}



/* FAVORITES BUTTON */

.favorites-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #ff3b3b;
  cursor: pointer;
  align-items: center;
  position: relative;
  transition: all .3s;
}

.favorites-btn:focus {
  box-shadow: none;
  outline: none;
}

.favorites-btn:hover {
  color: lightgray;
}

.currency-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.currency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: transform .20s ease, box-shadow .20s ease;
}

.currency-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.currency-trigger:focus,
.currency-trigger:active,
.currency-trigger:focus-visible {
  outline: none !important;
  box-shadow: none;
  transform: translateY(0);
  border-color: rgba(255, 255, 255, 0.45);
}

.currency-item:focus,
.currency-item:active,
.currency-item:focus-visible {
  outline: none !important;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.12);
}

.currency-arrow {
  font-size: 10px;
  opacity: .8;
}

.currency-menu {
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(16, 16, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  transform: scale(0.95);
  transform-origin: top right;
  opacity: 0;
  pointer-events: none;
  transition: transform .20s ease, opacity .20s ease;
  z-index: 10;
}

.currency-menu.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.currency-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background .15s ease;
}

.currency-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.currency-code {
  letter-spacing: .03em;
}

.currency-check {
  color: #6bffa4;
  font-size: 11px;
}

.fav-count {
  position: absolute;
  top: -10px;
  right: -16px;
  background: #ff1f32;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 20px;
  color: white;
}

.drawer-close {
  cursor: pointer;
}

/* FAVORITES DRAWER */

.favorites-drawer {

  position: fixed;
  right: -380px;
  top: 0;

  width: 380px;
  height: 100vh;

  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(12px);
  padding: 24px;

  transition: .35s;

  z-index: 1000;

  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);

  display: flex;
  flex-direction: column;

  overflow-x: hidden;
  /* FIX */
}

.favorites-drawer.active {
  right: 0;
}



/* HEADER */

.drawer-header {

  display: flex;
  justify-content: space-between;

  font-size: 18px;
  font-weight: 600;

  margin-bottom: 20px;

}



/* SCROLL AREA */

.drawer-products {

  overflow-y: auto;
  overflow-x: hidden;
  /* prevents horizontal scroll */
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 5px;

}



/* PRODUCT */

.drawer-product {
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);

}

.drawer-product:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.01);
}

.drawer-product a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px;
}

.drawer-product img {

  width: 55px;
  height: 55px;

  object-fit: cover;

  border-radius: 6px;

}



.drawer-product-name {

  font-size: 13px;

  color: white;

}



.remove-fav {

  margin-left: auto;

  cursor: pointer;

  color: #ff1f32;

}

.drawer-product.removing {
  opacity: 0;
  transform: translateX(30px);
}

/* MOBILE MENU */

.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}



/* RESPONSIVE */

@media(max-width:850px) {

  .nav-links {

    position: absolute;

    top: 70px;
    right: 0;

    background: #151515;

    flex-direction: column;

    width: 200px;

    padding: 20px;

    border-radius: 10px;

    display: none;

  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .products-counter {
    display: none;
  }

}


/* FOOTER */

.site-footer {
  position: relative;
  background: rgb(9, 9, 9, 0.8);
  color: #ccc;
  padding: 80px 20px 40px;
  overflow: hidden;
  margin-top: 100px;
}

/* Soft glowing bar behind footer */
.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.15), transparent 60%);
  filter: blur(120px);
  z-index: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 1;
}

/* LEFT COLUMN */

.footer-left .footer-logo a {
  font-size: 28px;
  font-weight: 700;
  color: #ff3b3b;
  margin-bottom: 15px;
}

.footer-left .footer-desc {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
}

/* CENTER COLUMN */

.footer-center h4 {
  color: #ff3b3b;
  margin-bottom: 15px;
}

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

.footer-center ul li a {
  text-decoration: none;
  color: #ccc;
  transition: 0.2s;
}

.footer-center ul li a:hover {
  color: #ff3b3b;
}

/* RIGHT COLUMN */

.footer-right h4 {
  color: #ff3b3b;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(90deg, #ff1f32, #dd244f);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 60, 60, 0.35);
}

.social-icons a:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 8px 20px rgba(255, 60, 60, 0.6);
}

/* BOTTOM COPYRIGHT */

.footer-bottom {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin-top: 50px;
  border-top: 1px solid #222;
  padding-top: 20px;
}

/* RESPONSIVE */

@media(max-width: 950px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    align-items: center;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}