/* style.css */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f7fb;
  margin: 0;
  padding: 24px;
  color: #1f2937;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

h1 {
  margin: 0 0 16px;
  font-size: 20px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  margin-bottom: 12px;
}

.student-line {
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  margin: 10px 0;
}

.student-line strong {
  display: inline-block;
  min-width: 120px;
  color: #111827;
}

button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #1d4ed8;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 22px;
  max-width: 720px;
  margin: 0 auto 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nav-brand {
  font-weight: 700;
  font-size: 2rem;
  color: #111827;
}

.lavishly-yours-regular {
  font-family: "Lavishly Yours", cursive;
  font-weight: 400;
  font-style: normal;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 14px;
}

.nav-links a:hover {
  color: #1d4ed8;
}

.db-error-badge {
  list-style: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 60px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* Filter form */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 8px;
}

.filter-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

.filter-form select,
.filter-form input[type="text"] {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  min-width: 140px;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  padding-bottom: 8px;
}

.btn-reset {
  padding: 10px 14px;
  border-radius: 8px;
  background: #e5e7eb;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.btn-reset:hover {
  background: #d1d5db;
}

.active-filter {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
}

.db-error {
  padding: 16px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 600;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  font-size: 9px;
  color: rgba(213, 218, 231, 0.45);
}

.product-image img.zoomable {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.product-image img.zoomable:hover {
  transform: scale(1.03);
}

/* Image zoom modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-modal.show {
  display: flex;
}

.image-modal .modal-content {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
  color: #e5e7eb;
}

.product-info {
  padding: 14px;
}

.product-info h2 {
  margin: 8px 0 6px;
  font-size: 16px;
  color: #111827;
}

.product-info .color {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
}

.product-info .price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
}

/* About modal popup */
.about-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.about-modal.show {
  display: flex;
}

.about-modal-content {
  position: relative;
  background: #ffffff;
  color: #111827;
  max-width: 420px;
  width: 90%;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.about-modal-content h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #111827;
}

.about-modal-content p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

.about-close {
  position: absolute;
  top: 10px;
  right: 16px;
  color: #6b7280;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.about-close:hover {
  color: #111827;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 32px auto 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h1 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #111827;
}

.footer-col h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #374151;
}

.footer-col p,
.footer-col li {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.footer-col ul {
  margin: 0;
  padding-left: 18px;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-qr {
  align-items: center;
  justify-content: center;
}

.footer-qr img {
  max-width: 140px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.copyright {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  color: #6b7280;
}
