:root {
  --primary: #0a6cff;
  --secondary: #e9f2ff;
  --dark: #0f172a;
  --light: #ffffff;
  --muted: #64748b;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Pagination */
      #pagination {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 30px 0;
      }
      #pagination button {
        padding: 8px 15px;
        border-radius: 5px;
        border: 1px solid var(--primary);
        background: #fff;
        color: var(--primary);
        cursor: pointer;
      }
      #pagination button.active {
        background: var(--primary);
        color: #fff;
      }
      #pagination button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }


header {
  background: var(--light);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
header h1 {
  font-size: 22px;
  color: var(--primary);
  letter-spacing: 1px;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.card {
  background: var(--light);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 25px 60px rgba(10, 108, 255, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(10, 108, 255, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 90px rgba(10, 108, 255, 0.25);
}
.card:hover::after {
  opacity: 1;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 15px;
}
.price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}
.details {
  display: none;
  animation: fadeSlide 0.6s ease forwards;
}
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.back-btn {
  display: inline-block;
  margin-bottom: 25px;
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.details-box {
  background: var(--light);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  box-shadow: 0 40px 90px rgba(10, 108, 255, 0.2);
}
.details-box img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
}
.details-box h2 {
  font-size: 28px;
  margin-bottom: 15px;
}
.details-box ul {
  margin: 20px 0;
  padding-left: 20px;
}
.details-box li {
  margin-bottom: 10px;
  color: var(--muted);
}
.details-box p.notes {
  color: var(--primary);
  font-weight: 500;
  margin-top: 10px;
}
.buy-btn {
  padding: 14px 30px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, #0a6cff, #4da3ff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(10, 108, 255, 0.4);
}
@media (max-width: 900px) {
  .details-box {
    grid-template-columns: 1fr;
  }
}
input,
textarea {
  font-size: 14px;
}

/* Admin Modal */
/* Admin Modal */
#adminModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 100;
  overflow-y: auto; /* allow scrolling if content is taller than viewport */
}

#adminModal .modal-content {
  background: var(--light);
  padding: 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh; /* prevent modal from being taller than viewport */
  overflow-y: auto; /* enable internal scroll if content exceeds max-height */
  display: grid;
  gap: 15px;
  position: relative;
  box-shadow: 0 20px 60px rgba(10, 108, 255, 0.3);
}

#adminModal .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
}
#details {
  display: none;
}
/* Brand Filter */
#brandFilter {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;
}
#brandFilter button {
  flex: 0 0 auto;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
}
#brandFilter button.active,
#brandFilter button:hover {
  background: var(--primary);
  color: #fff;
}
/* From Uiverse.io by neerajbaniwal */
.btn-shine {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 48px;
  color: #fff;
  background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
  background-position: 0;
  -webkit-text-fill-color: transparent;
  animation: shine 3s infinite linear;
  animation-fill-mode: forwards;
  -webkit-text-size-adjust: none;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}
@-moz-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@-webkit-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@-o-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
/* From Uiverse.io by neerajbaniwal */
.btn-shine {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  padding: 12px 48px;
  color: #215ce7;
  background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
  background-position: 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s infinite linear;
  animation-fill-mode: forwards;
  -webkit-text-size-adjust: none;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}
@-moz-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@-webkit-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@-o-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
