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

:root {
  --blue: #0b3d91;
  --blue-dark: #082c69;
  --header-h: 72px;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
  background: linear-gradient(160deg, #e8eeff 0%, #f7f9ff 45%, #e3ecff 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ---------- Header (stays on top, glassy) ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  color: #fff;
  background: rgba(11, 61, 145, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

header h1 {
  font-size: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

/* ---------- Poster ---------- */
.poster {
  display: block;
  width: calc(100% - 32px);
  max-width: 1100px;
  max-height: 350px;
  object-fit: cover;
  margin: 16px auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 61, 145, 0.2);
  animation: fadeUp 0.6s ease both;
}

/* ---------- Category bar (sticks under header, glassy) ---------- */
nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  scrollbar-width: none;
}

nav::-webkit-scrollbar { display: none; }

nav button {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--blue);
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s ease;
}

nav button:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

nav button.active {
  background: var(--blue);
  color: #fff;
}

/* ---------- Product grid: 3 per row desktop, 2 per row mobile ---------- */
main {
  padding: 24px 16px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

#product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 61, 145, 0.12);
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(11, 61, 145, 0.25);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img { transform: scale(1.06); }

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body h3 { font-size: 15px; line-height: 1.3; }

.card-body .price {
  font-weight: bold;
  font-size: 17px;
  color: var(--blue);
}

.card-body button {
  margin-top: auto;
  padding: 11px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.card-body button:hover { background: var(--blue-dark); }
.card-body button:active { transform: scale(0.96); }

/* ---------- Pop-up ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
  animation: fadeIn 0.25s ease;
}

.modal.hidden { display: none; }

.modal-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: popIn 0.3s ease;
}

.modal-box img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

#close-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

#modal-options { display: flex; gap: 8px; flex-wrap: wrap; }

#modal-options button {
  padding: 8px 14px;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#modal-options button.active { background: var(--blue); color: #fff; }

#modal-price { font-size: 22px; font-weight: bold; color: var(--blue); }

.bank-details {
  background: rgba(11, 61, 145, 0.08);
  padding: 12px;
  border-radius: 10px;
  line-height: 1.7;
}

#order-ref { font-size: 13px; color: #555; }

#paid-btn {
  padding: 13px;
  border: none;
  background: #25d366;
  color: #fff;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

#paid-btn:hover { filter: brightness(1.08); }
#paid-btn:active { transform: scale(0.97); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  :root { --header-h: 60px; }

  header h1 { font-size: 15px; }
  .logo { height: 38px; width: 38px; }

  .poster { max-height: 200px; margin: 12px auto; }

  main { padding: 16px 12px 32px; }

  #product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-body { padding: 10px; }
  .card-body h3 { font-size: 13px; }
  .card-body .price { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Header contact buttons ---------- */
header {
  justify-content: space-between;
  gap: 10px;
}

header h1 {
  flex: 1;
  min-width: 0;
}

.header-contact {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.contact-btn {
  padding: 8px 14px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.contact-btn.whatsapp { background: #25d366; }
.contact-btn.facebook { background: #1877f2; }

/* ---------- Footer ---------- */
footer {
  margin-top: 40px;
  padding: 36px 20px;
  text-align: center;
  color: #fff;
  background: rgba(11, 61, 145, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

footer h3 { font-size: 22px; margin-bottom: 10px; }

footer p {
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-btn {
  display: inline-block;
  padding: 13px 26px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* ---------- Header on mobile ---------- */
@media (max-width: 700px) {
  header { gap: 8px; padding: 0 10px; }
  header h1 { font-size: 12px; }
  .contact-btn { padding: 6px 10px; font-size: 12px; }
  footer h3 { font-size: 18px; }
}

/* ---------- Menu button and dropdown ---------- */
.menu-wrap {
  position: relative;
  flex-shrink: 0;
}

#menu-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#menu-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.menu-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: popIn 0.25s ease;
}

.menu-list.hidden { display: none; }

.menu-list a {
  padding: 12px 14px;
  color: var(--blue);
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.menu-list a:hover { background: rgba(11, 61, 145, 0.1); }

/* ---------- Services and Contact sections ---------- */
html { scroll-behavior: smooth; }

.info-section {
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 24px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(11, 61, 145, 0.12);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.info-section h2 { color: var(--blue); margin-bottom: 14px; }

.info-section ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.info-section li {
  padding: 8px 16px;
  background: rgba(11, 61, 145, 0.08);
  color: var(--blue);
  border-radius: 20px;
  font-weight: bold;
}

.info-section p { margin-bottom: 14px; }

.info-section .header-contact { justify-content: center; }

@media (max-width: 700px) {
  .info-section { margin: 24px 12px 0; }
  #menu-btn { padding: 6px 12px; font-size: 12px; }
}

/* ---------- Center the category buttons ---------- */
nav button:first-child { margin-left: auto; }
nav button:last-child { margin-right: auto; }