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

body {
  font-family: Arial, sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  background: linear-gradient(135deg, #2a0a5e, #8b5e34);
  color: white;
}

header,
footer {
  background: linear-gradient(90deg, #4b0082, #d4af37);
  color: white;
  padding: 15px;
  text-align: center;
  width: 100%;
}

header h1 {
  font-family: "Ponomar", serif;
  font-size: 36px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.rotating-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
  margin-bottom: -17px;
}

.rotating-image {
  width: 230px;
  height: auto;
  animation: rotateImage 30s linear infinite;
}

@keyframes rotateImage {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.stock-table-container {
  display: flex;
  justify-content: center;
  margin: 75px auto 15px auto;
  padding: 0;
  overflow-x: auto;
  max-width: 100%;
}

.stock-table {
  width: 90%;
  max-width: 1200px;
  border-collapse: collapse;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.stock-table th,
.stock-table td {
  border: 2px solid #ddd;
  padding: 15px;
  text-align: center;
  vertical-align: middle;
  min-width: 120px;
}

.stock-table th {
  background: linear-gradient(90deg, #4b0082, #d4af37);
  color: white;
}

.available {
  color: #ffd700;
}

.sold {
  color: #ff4d4d;
}

@media (min-width: 1024px) {
  .stock-table {
    width: 100%;
    max-width: 1400px;
  }
}

@media (max-width: 768px) {
  .stock-table {
    width: 95%;
    max-width: none;
    font-size: 18px;
  }

  .stock-table th,
  .stock-table td {
    padding: 10px;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .stock-table {
    font-size: 16px;
    width: 100%;
  }

  .stock-table th,
  .stock-table td {
    padding: 15px;
    min-width: 100px;
  }
}

.youtube-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 10px;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.youtube-box a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  animation: blink 1s infinite;
}

.youtube-box a:hover {
  text-decoration: underline;
}

.youtube-logo {
  width: 40px;
  height: auto;
}

.container {
  display: grid;
  gap: 20px;
  padding: 0 15px;
  margin: 20px auto;
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  line-height: 1.8;
  text-align: center;
  /* Improved line spacing */
}

.content-image {
  width: 100%;
  max-width: 330px;
  border-radius: 20px;
  margin-bottom: 40px;
}

.content-box p {
  margin-bottom: 0;
}

/* Large screens: Desktop */
@media (min-width: 1024px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
  }
}

/* Medium screens: Tablets */
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(2, 1fr) !important;
    justify-content: center;
    padding: 20px 5px;
  }
  .content-box {
    max-width: 350px;
    margin: 0 auto 30px auto;
  }
}

/* Small screens: Mobiles */
@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr !important;
    justify-content: center;
    padding: 10px 0;
  }
  .content-box {
    width: 95vw;
    max-width: 90vw;
    margin: 0 auto 16px auto;
  }
}

.highlight {
  color: #ffd700;
  font-weight: bold;
}

.small-text {
  font-size: 12px;
  color: white;
}

button {
  padding: 15px 30px;
  background: linear-gradient(90deg, #8b5e34, #d4af37);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 24px;
}

button:hover {
  background: linear-gradient(90deg, #d4af37, #8b5e34);
}

.infoButton {
  text-decoration: none;
  background: linear-gradient(90deg, #8b5e34, #d4af37);
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
  text-align: center;
  letter-spacing: 1.5px;
  word-spacing: 2px;
  transition: background 0.3s ease-in-out;
}

.infoButton:hover {
  background: linear-gradient(90deg, #d4af37, #8b5e34);
}

.button-container {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

footer a {
  background: linear-gradient(90deg, #d4af37, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

.filter-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  z-index: 1001;
}

.filter-popup {
  position: fixed;
  bottom: 85px;
  left: 20px;
  width: 260px;
  background: white;
  border-radius: 12px;
  border: 2px solid #ccc;
  padding: 15px 15px 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000;
  animation: raiseUp 0.3s ease-out;
  font-family: Arial, sans-serif;
}

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

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.popup-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.popup-close {
  font-size: 18px;
  cursor: pointer;
  color: #999;
}

.popup-close:hover {
  color: red;
}

.filter-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-content label {
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-content button {
  margin-top: 10px;
  padding: 6px 12px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  width: fit-content;
  align-self: flex-start;
  cursor: pointer;
}

.filter-content button:hover {
  background: #1ebe57;
}

.green-check {
  accent-color: green;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #25d366;
  color: white;
  font-size: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease-in-out;
  z-index: 999;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
}

#bee-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.bee {
  position: absolute;
  width: 40px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.bee.queen {
  width: 60px;
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr !important;
  }
}

#productSearch:focus {
  border-image-slice: 1;
  border-width: 2px;
  border-style: solid;
  border-image-source: linear-gradient(90deg, #7f00ff, #e100ff);
  outline: none;
}

.button-container {
  text-align: center;
}

.product-transparent {
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}

.blink-text {
  animation: blink 1s infinite;
  color: #ffd700;
  font-weight: bold;
}
