
/* ===== BASIC PAGE ===== */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--page-bg);
  margin: 0;
}

input,
button,
textarea,
select {
  font-family: var(--font-sans) !important;
}

/* ===== PAGE LAYOUT ===== */

.page-wrapper {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 100%;
}

.content-area {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
  width: 100%;
}

/* ===== HEADER ===== */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.site-header__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__logo img {
  height: 32px;
}

.site-header__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.site-header__nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
}

.site-header__nav .btn a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-home {
  background: var(--msp-lime) !important;
  color: #fff !important;
}

.btn-cart {
  background: #1db4dd !important;
  color: #fff !important;
}

/* ===== FOOTER ===== */

.footer {
  background: var(--msp-navy);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.8rem;
  border-top: 1px solid #0a4f78;
  line-height: 1.4;
  flex-shrink: 0;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer p {
  margin: 0 0 4px;
}

.footer p:last-child {
  margin-bottom: 0;
}

/* ===== ICONS ===== */

.material-symbols-outlined {
  font-size: 18px;
  vertical-align: middle;
}

/* ===== MOBILE ===== */

@media (max-width: 576px) {
  .content-area {
    padding: 8px 12px;
  }

  .msp-card {
    padding: 18px 16px;
  }

  .site-header__inner {
    padding: 6px 12px;
  }

  .site-header__logo img {
    height: 28px;
  }

  .site-header__nav .btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .footer {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .footer p {
    margin: 0;
  }

  .footer p + p {
    margin-top: 2px;
  }
}

/* Download page may scroll when gallery is large */
.page-wrapper--download {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-wrapper--download .content-area {
  overflow: visible;
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}
