/* Reset some basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Background video */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  color: white;
  font-size: 1.2rem;
}

.navbar .logo {
  font-weight: bold;
  font-size: 1.4rem;
}

.enter-store-btn {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.enter-store-btn:hover {
  background-color: #f47171;
}

/* Back Button */
.back-button {
  background-color: #f47171;
  color: #333;
  padding: 0.5rem 1rem;
  margin: 1rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #ddd;
}

/* Store Page Layout */
.store-content {
  text-align: center;
  padding: 3rem 1rem;
}

.store-content h1 {
  color: #000000;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.sub-heading {
  font-size: 1.1rem;
  color: #0775ea;
  margin-bottom: 30px;
}

/* Category Boxes Grid */
.category-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

/* Each Category Box */
.category-box {
  position: relative;
  height: 480px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-box img {
  width: 100%;
  height: 50%;
  transition: filter 0.3s ease;
}

.category-box:hover {
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

.category-box:hover img {
  filter: brightness(0.7);
}

/* Text Overlay Inside Each Box */
.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.category-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.category-content marquee {
  font-size: 0.95rem;
  color: #ddd;
}

/* Product List Styles */
.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.product {
  background-color: white;
  width: 280px;
  padding: 1rem;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid black;
  transition: transform 0.3s ease;
}

.product:hover {
  transform: scale(1.05);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.product h3 {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: #333;
}

/* Product Details */
.product-detail {
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.product-detail img {
  width: 100%;
  border-radius: 10px;
}

.product-detail h2 {
  margin-top: 1rem;
  font-size: 1.8rem;
  color: #333;
}

.product-detail p {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #555;
}

.product-detail .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f08d49;
  margin-bottom: 1rem;
}

.product-detail .back-button {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.product-detail .back-button:hover {
  background-color: #45a049;
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
    font-size: 1.5rem;
    padding: 1rem;
  }

  .enter-store-btn {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    margin-top: 0.5rem;
  }

  .category-buttons {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .store-content h1 {
    font-size: 2rem;
  }

  .product-list {
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    
  }

  .product {
    width: 90%;
    max-width: 350px;
  }

  .product-detail h2 {
    font-size: 1.5rem;
  }

  .product-detail .price {
    font-size: 1.3rem;
  }

  .product-detail .back-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .store-content {
    padding: 2rem 0.5rem;
  }

  .product-detail p {
    font-size: 1rem;
  }

  .category-content h3 {
    font-size: 1.1rem;
  }

  .category-content marquee {
    font-size: 0.85rem;
  }
}

.product-list .product h3 {
  font-size: 28px;
  color: #222;
  text-shadow: 1px 1px 2px rgba(150, 150, 150, 0.3);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  margin-top: 1rem;
  text-align: center;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.product-list .product:hover h3 {
  color: #f47171;
  transform: scale(1.05);
}
