.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.prose a { color: #002B98; text-decoration: underline; }

/* Rich content (product descriptions, blog) */
.rich-content { line-height: 1.65; }
.rich-content > * + * { margin-top: 0.75em; }
.rich-content h1 { font-size: 1.75rem; font-weight: 700; margin: 1.25em 0 0.5em; }
.rich-content h2 { font-size: 1.375rem; font-weight: 700; margin: 1.25em 0 0.5em; }
.rich-content h3 { font-size: 1.125rem; font-weight: 600; margin: 1em 0 0.5em; }
.rich-content h4, .rich-content h5, .rich-content h6 { font-size: 1rem; font-weight: 600; margin: 1em 0 0.5em; }
.rich-content ul, .rich-content ol { padding-left: 1.5em; margin: 0.75em 0; }
.rich-content ul[data-type="taskList"] { list-style: none; padding-left: 0; }
.rich-content ul[data-type="taskList"] li { display: flex; gap: 0.5em; align-items: flex-start; margin: 0.35em 0; }
.rich-content blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid #d1d5db; color: #4b5563; }
.rich-content pre { margin: 1em 0; padding: 1em; background: #f3f4f6; border-radius: 6px; overflow-x: auto; font-size: 0.875rem; }
.rich-content code { font-family: ui-monospace, monospace; font-size: 0.9em; background: #f3f4f6; padding: 0.1em 0.35em; border-radius: 3px; }
.rich-content pre code { background: none; padding: 0; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.9375rem; }
.rich-content th, .rich-content td { border: 1px solid #e5e7eb; padding: 0.5em 0.75em; vertical-align: top; }
.rich-content th { background: #f9fafb; font-weight: 600; }
.rich-content img { max-width: 100%; height: auto; border-radius: 4px; }
.rich-content img[data-align="center"] { display: block; margin-left: auto; margin-right: auto; }
.rich-content img[data-align="left"] { display: block; margin-right: auto; }
.rich-content img[data-align="right"] { display: block; margin-left: auto; }
.rich-content hr { border: 0; border-top: 1px solid #e5e7eb; margin: 1.5em 0; }
.rich-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; margin: 1em 0; }
.rich-content a { color: #002B98; text-decoration: underline; }
.text-mazsa-blue { color: #002B98; }
.category-tile-label { font-family: 'Noto Sans Thai', sans-serif; }
.hero-dot.active { background-color: #fff; opacity: 1; }
.home-has-overlay-header .home-page {
  padding-top: 0;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  font-family: 'Noto Sans Thai', system-ui, sans-serif;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.text-mazsa-red { color: #d71920; }
.bg-mazsa-red { background-color: #d71920; }
.bg-mazsa-black { background-color: #090909; }
.hover\:text-mazsa-red:hover { color: #d71920; }

.marketplace-icon-img--white {
  filter: brightness(0) invert(1);
}

.CroppedImage {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.CroppedImage--fill {
  height: 100%;
  aspect-ratio: calc(var(--crop-w, 100) / var(--crop-h, 100));
}

.CroppedImage--max-h {
  max-height: 20rem;
}

.CroppedImage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  width: calc(100% * 100 / var(--crop-w, 100));
  height: auto;
  margin-left: calc(-1% * var(--crop-x, 0) * 100 / var(--crop-w, 100));
  margin-top: calc(-1% * var(--crop-y, 0) * 100 / var(--crop-h, 100));
}

.ScrollTop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 4px;
  background: #fff;
  color: #111827;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}

.ScrollTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ScrollTop:hover {
  background: #f9fafb;
}

.ScrollTop:focus-visible {
  outline: 2px solid #002B98;
  outline-offset: 2px;
}

.ScrollTop svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 767px) {
  .ScrollTop {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}
