@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: rgb(185, 185, 185);
  color: #fff;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: #111; /* Bez zmian */
  position: sticky;
  height: 7vh;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

nav .logo {
  display: block;
}

nav .logo img {
  height: 120px;
  width: 120px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #00eeff;
}

.nav-icons {
  display: flex;
  gap: 8px;
  position: relative; /* Dodajemy, aby tooltipy były pozycjonowane względem .nav-icons */
}

.nav-icons a.icon {
  color: #fff;
  transition: color 0.3s;
  position: relative; /* Pozycja relatywna dla tooltipa */
}

.nav-icons a.icon:hover {
  color: #00eeff;
}

.nav-icons a.icon:hover::after {
  content: attr(data-tooltip); /* Używamy wartości z atrybutu data-tooltip */
  position: absolute;
  bottom: -30px; /* Tooltip poniżej ikonki */
  left: 50%;
  transform: translateX(-50%); /* Wyśrodkowanie tooltipa */
  background: #333; /* Ciemne tło tooltipa */
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap; /* Tekst w jednej linii */
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s;
}

.nav-icons a.icon::after {
  content: attr(data-tooltip);
  opacity: 0; /* Domyślnie niewidoczny */
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  transition: opacity 0.3s;
}

.nav-icons svg {
  width: 30px;
  height: 30px;
}

.banner {
  text-align: center;
  padding: 150px 20px;
  background: transparent; /* Usuwamy poprzedni gradient, bo tło jest teraz w body */
  position: relative;
  overflow: hidden;
}

.banner h1 {
  font-size: 60px;
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-in-out;
}

.banner h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-in-out 0.5s;
}

@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

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

#products {
  padding: 60px 20px;
  text-align: center;
  background: transparent; /* Upewniamy się, że sekcja produktów nie ma własnego tła */
}

#products h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-item {
  background: #1a1a1a;
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.3s;
}

.product-item:hover img {
  opacity: 0.9;
}

.product-item h3 {
  font-size: 20px;
  margin: 15px 0 10px;
  text-transform: uppercase;
}

.product-item p {
  font-size: 18px;
  color: #00eeff;
  margin-bottom: 15px;
}

.product-item button {
  background: linear-gradient(90deg, #00eeff, #00eeff);
  color: #000;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-item button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgb(0, 143, 153);
}

.product-item button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.5s;
}

.product-item button:hover::before {
  left: 100%;
}

.product-item button:active {
  transform: scale(0.95);
}

#cart {
  padding: 60px 20px;
  text-align: center;
  background: transparent; /* Upewniamy się, że sekcja koszyka nie ma własnego tła */
}

#cart h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.cart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cart-item {
  background: #1a1a1a;
  border-radius: 15px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s;
}

.cart-item:hover {
  transform: translateY(-5px);
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item h3 {
  font-size: 18px;
  margin: 0;
  text-transform: uppercase;
}

.cart-item p {
  font-size: 16px;
  color: #00eeff;
}

#cart-total {
  margin-top: 40px;
}

#cart-total h3 {
  font-size: 24px;
}

#total-price {
  color: #00eeff;
}

#checkout-btn {
  background: linear-gradient(90deg, #ff00ff, #cc00cc);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

#checkout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 255, 0.5);
}

#checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.5s;
}

#checkout-btn:hover::before {
  left: 100%;
}

#checkout-btn:active {
  transform: scale(0.95);
}

footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img {
  height: 100px;
  width: 100px;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 200px;
}

.footer-column h3 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #00eeff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
}