@font-face {
  font-family: 'HelveticaNeueBold';
  src: url('fonts/HelveticaNeue-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

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

body, html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: 'HelveticaNeueBold', sans-serif;
  background-color: black;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  backdrop-filter: blur(5px);
  background-color: black;
  z-index: 0;
}

.background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1280px;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
}

.logo-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 0px;
  padding: 0 20px 10px;
}

.text-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  padding: 0 20px 10px;

  /* Szybka animacja */
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.4s ease forwards;
  animation-delay: 0.1s;
}

.logo {
  width: 75%;
  max-width: 800px;
  height: auto;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.4));
}

.custom-text {
  margin-top: 0px;
  color: #D7D6DC;
  font-size: 0.9rem;
  text-align: center;
  max-width: 900px;
  width: 80%;

  /* Szybka animacja */
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.4s ease forwards;
  animation-delay: 0.15s;
}

/* PRODUCTS GRID */
.products-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 60px;
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  padding: 5px;

  /* Szybka animacja */
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.4s ease forwards;
}

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

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-info {
  padding: 8px 10px;
}

.product-name {
  font-size: 0.95rem;
  margin: 3px 0;
  color: #D7D6DC;
}

.product-subname {
  font-size: 0.75rem;
  margin: 3px 0;
  color: #D7D6DC;
}

.product-price {
  font-size: 1rem;
  color: #7e57c2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ANIMACJA */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* OPÓŹNIENIE KAŻDEGO KAFELKA (fala) */
.product-card:nth-child(1) { animation-delay: 0.2s; }
.product-card:nth-child(2) { animation-delay: 0.3s; }
.product-card:nth-child(3) { animation-delay: 0.4s; }
.product-card:nth-child(4) { animation-delay: 0.5s; }
.product-card:nth-child(5) { animation-delay: 0.6s; }
.product-card:nth-child(6) { animation-delay: 0.7s; }


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#hiroeye {
    width: 150px;
    height: 150px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

#preloader-text {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
    max-width: 80%;
}


/* Updated colors for loader */
#hiroeye {
    width: 150px;
    height: 150px;
    animation: pulse 1.5s infinite;
    filter: drop-shadow(0 0 20px #392769) brightness(1.2) saturate(1.5);
}

#preloader-text {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
    max-width: 80%;
    color: #D7D6DC;
}


/* Loader fade-out animation */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
