/* =========================
   SPOOKY FUNPHOBIA HOME
========================= */

body {
  color: white;
  overflow-x: hidden;
}

main {
  padding: 120px 16px 60px;
  position: relative;
}

/* subtle fog overlay */
main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.03), transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.02), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.02), transparent 30%);
  animation: fogMove 18s linear infinite;
  z-index: 0;
}

@keyframes fogMove {
  from {
    transform: translateX(0px);
  }
  to {
    transform: translateX(-40px);
  }
}

/* =========================
   EVENT BAR
========================= */

.event-bar {
  max-width: 1100px;
  margin: 30px auto;
  position: relative;
  z-index: 1;
}

.event-link {
  display: block;
  padding: 20px 26px;
  text-align: center;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 94, 0, 0.95), rgba(70, 0, 0, 0.96));
  border: 2px solid rgba(255, 120, 0, 0.5);
  color: #fff;
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 900;
  letter-spacing: 0.8px;
  box-shadow:
    0 0 18px rgba(255, 94, 0, 0.4),
    0 0 45px rgba(255, 50, 0, 0.18);
  transition: all 0.3s ease;
}

.event-link:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 24px rgba(255, 115, 0, 0.7),
    0 0 60px rgba(255, 60, 0, 0.3);
}

#event-countdown {
  color: #ffd36a;
  text-shadow: 0 0 8px rgba(255, 211, 106, 0.7);
}

/* =========================
   SOCIALS
========================= */

.social-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 35px auto;
  position: relative;
  z-index: 1;
}

.social-btn {
  min-width: 120px;
  padding: 12px 22px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 14px rgba(0,0,0,0.45);
  transition: all 0.25s ease;
}
.newsletter-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.newsletter-box {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, #1a1a1a, #080808);
  border: 1px solid rgba(255, 100, 0, 0.35);
  box-shadow: 0 0 35px rgba(255, 94, 0, 0.35);
}

.newsletter-box h2 {
  color: #ff8c42;
  margin-bottom: 10px;
}

.newsletter-box p {
  color: #ddd;
}

.newsletter-box input {
  width: 100%;
  padding: 13px;
  margin: 18px 0 12px;
  border-radius: 999px;
  border: none;
}

.newsletter-box button[type="submit"] {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5e00, #6e0000);
  color: white;
}

.newsletter-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
.social-btn:hover {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.15);
  box-shadow: 0 0 22px rgba(255, 94, 0, 0.4);
}
.dynamic-social-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #111;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin: 5px;
  font-weight: bold;
}

.dynamic-social-btn:hover {
  background: #ff6600;
}
/* =========================
   PRODUCTS SECTION
========================= */

.random-products {
  max-width: 1450px;
  margin: 55px auto 0;
  padding: 35px 22px;
  border-radius: 26px;
  position: relative;
  z-index: 1;

  background:
    linear-gradient(to bottom,
      rgba(25, 25, 25, 0.95),
      rgba(10, 10, 10, 0.98));

  border: 1px solid rgba(255, 100, 0, 0.12);

  box-shadow:
    0 0 40px rgba(255, 60, 0, 0.08),
    inset 0 0 40px rgba(255, 255, 255, 0.015);
}

.random-products h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ff8c42;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow:
    0 0 10px rgba(255, 140, 66, 0.5),
    0 0 22px rgba(255, 80, 0, 0.3);
}

/* =========================
   HORIZONTAL SCROLLER
========================= */

#random-products {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
}

/* spooky scrollbar */
#random-products::-webkit-scrollbar {
  height: 10px;
}

#random-products::-webkit-scrollbar-track {
  background: #0b0b0b;
  border-radius: 999px;
}

#random-products::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #ff5e00, #6e0000);
  border-radius: 999px;
}

/* =========================
   PRODUCT CARDS
========================= */

.random-products .product-card {
  min-width: 245px;
  max-width: 245px;
  flex-shrink: 0;

  background:
    linear-gradient(to bottom,
      #181818,
      #0d0d0d);

  border-radius: 20px;
  padding: 14px;
  overflow: hidden;
  cursor: pointer;

  border: 1px solid rgba(255, 90, 0, 0.15);

  box-shadow:
    0 0 18px rgba(0,0,0,0.5),
    0 0 12px rgba(255, 60, 0, 0.05);

  transition: all 0.3s ease;
}

.random-products .product-card:hover {
  transform: translateY(-8px) scale(1.02);

  border-color: rgba(255, 120, 0, 0.45);

  box-shadow:
    0 0 18px rgba(255, 90, 0, 0.4),
    0 0 45px rgba(255, 40, 0, 0.16);
}

.random-products .product-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease;
}

.random-products .product-card:hover img {
  transform: scale(1.04);
}

.random-products .product-card h3 {
  margin: 14px 0 6px;
  font-size: 1.08rem;
  color: #ffb066;
  text-shadow: 0 0 8px rgba(255, 120, 0, 0.25);
}

.random-products .product-card p {
  margin: 0;
  color: #cfcfcf;
  font-weight: 600;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  main {
    padding-top: 150px;
  }

  #random-products {
    flex-direction: column;
    overflow-x: visible;
    gap: 18px;
  }

  .random-products .product-card {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .random-products .product-card img {
    height: 220px;
  }
}
