/* MJ Pearls Updates center + shop preview */
.mj-updates {
  --mj-u-ink: #29392e;
  --mj-u-muted: #65695f;
  --mj-u-line: #dedcd4;
  --mj-u-bg: #f5f3ee;
  --mj-u-card: #fffcf7;
  --mj-u-max: 1240px;
  color: var(--mj-u-ink);
  background: var(--mj-u-bg);
}

.mj-updates * { box-sizing: border-box; }
.mj-updates a { color: inherit; }
.mj-updates a:hover { text-decoration: underline; }

.mj-updates__wrap {
  width: min(var(--mj-u-max), calc(100% - 40px));
  margin: 0 auto;
}

.mj-updates__hero {
  padding: 26px 0 24px;
}

.mj-updates__banner { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; background: #302b24; color: #fff; box-shadow: 0 15px 40px #372c2014; }
.mj-updates__banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -2; }
.mj-updates__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #15130fe8, #15130f88 65%, #15130f33); z-index: -1; }
.mj-updates__banner-copy { padding: clamp(28px, 5vw, 58px); max-width: 850px; }
.mj-updates__banner .mj-updates__eyebrow { color: #e8ddc9; font-size: 10px; }
.mj-updates .mj-updates__banner h1 { font-family: Arial, sans-serif; font-weight: 650; font-size: clamp(34px, 4.2vw, 56px); color: #fff; }
.mj-updates__banner .mj-updates__lead { color: #f7f1e7; max-width: 630px; font-size: 14px; }
.mj-updates__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mj-updates__badges span { border: 1px solid #ffffff55; background: #ffffff18; border-radius: 30px; padding: 5px 12px; font-size: 11px; }
.mj-updates__banner-date { font-size: 11px; margin: 20px 0 0; color: #eee4d6; }
.mj-updates__hero .mj-updates__helper { max-width: 100%; margin-top: 20px; line-height: 1.85; }

.mj-updates__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7a7266;
  font-weight: 700;
}

.mj-updates__hero h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.mj-updates__lead,
.mj-updates__helper {
  max-width: 720px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mj-u-muted);
}

.mj-updates__helper { font-size: 14px; margin-bottom: 0; }

.mj-updates__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.mj-updates__channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--mj-u-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mj-u-ink);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 650;
}

.mj-updates__channel[aria-current="page"] {
  background: var(--mj-u-ink);
  border-color: var(--mj-u-ink);
  color: #fff;
}

.mj-updates__channel-intro {
  padding: 28px 0 8px;
}

.mj-updates__channel-intro p {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #4d584d;
}

.mj-updates__latest {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--mj-u-muted);
}

.mj-updates__feed-section { padding: 12px 0 40px; }

.mj-updates__masonry {
  column-count: 3;
  column-gap: 24px;
}

.mj-updates__card {
  break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  width: 100%;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--mj-u-line);
  border-radius: 18px;
  background: var(--mj-u-card);
  box-shadow: 0 8px 24px rgba(41, 57, 46, .04);
  scroll-margin-top: 110px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.mj-updates__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(41, 57, 46, .07);
}

.mj-updates__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mj-u-muted);
}

.mj-updates__meta time {
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  white-space: nowrap;
}

.mj-updates__card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mj-updates__copy {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #4d584d;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.mj-updates__gallery {
  display: grid;
  gap: 5px;
  margin: 4px 0 18px;
  border-radius: 12px;
  overflow: hidden;
}

.mj-updates__gallery[data-count="1"] { grid-template-columns: 1fr; }
.mj-updates__gallery[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mj-updates__gallery[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mj-updates__gallery[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mj-updates__gallery[data-count="5"],
.mj-updates__gallery[data-count="6"],
.mj-updates__gallery[data-count="7"],
.mj-updates__gallery[data-count="8"],
.mj-updates__gallery[data-count="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mj-updates__photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: #efeee6;
  aspect-ratio: 1;
  text-decoration: none !important;
}

.mj-updates__gallery[data-count="1"] .mj-updates__photo { aspect-ratio: 4 / 3; }

.mj-updates__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mj-updates__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(21, 34, 23, .55);
  color: #fff;
  font: 600 22px/1 Georgia, serif;
}

.mj-updates__video-wrap {
  position: relative;
  margin: 0 0 18px;
  background: #20251f;
  border-radius: 12px;
  overflow: hidden;
}

.mj-updates__video {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #20251f;
}

.mj-updates__video-fallback {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #d7ddd4;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.mj-updates__play {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(16, 23, 17, .45);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  padding-left: 3px;
}

.mj-updates__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--mj-u-line);
}

.mj-updates__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  text-underline-offset: 4px;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d3c4af;
  border-radius: 999px;
  padding: 8px 15px;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s ease;
}

.mj-updates__actions .mj-updates__action--whatsapp { color: #187846; background: #eef8ef; border-color: #7ec990; }
.mj-updates__actions .mj-updates__action--whatsapp:hover { background: #dff0e3; text-decoration: none; }
.mj-updates__actions .mj-updates__action--contact { color: #fff; background: #66543f; border-color: #66543f; }
.mj-updates__actions .mj-updates__action--contact:hover { background: #4e4031; text-decoration: none; }

.mj-updates__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.mj-updates__status {
  margin: 0;
  font-size: 13px;
  color: var(--mj-u-muted);
  line-height: 1.6;
}

.mj-updates__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mj-updates__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--mj-u-ink);
  border-radius: 8px;
  background: var(--mj-u-ink);
  color: #fff;
  font: 650 13px/1.4 Georgia, serif;
  cursor: pointer;
  text-decoration: none !important;
}

.mj-updates__btn.secondary {
  background: #fff;
  color: var(--mj-u-ink);
}

.mj-updates__btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.mj-updates__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mj-updates__pages a,
.mj-updates__pages span {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none !important;
}

.mj-updates__pages a {
  border: 1px solid var(--mj-u-line);
  background: #fff;
}

.mj-updates__pages [aria-current="page"] {
  background: var(--mj-u-ink);
  color: #fff;
  border-color: var(--mj-u-ink);
}

.mj-updates__empty,
.mj-updates__error {
  padding: 28px 0;
  font-size: 15px;
  color: var(--mj-u-muted);
}

.mj-updates__seo {
  padding: 28px 0 64px;
  scroll-margin-top: 110px;
}
.mj-updates__seo-panel, .mj-updates__seo-cta { border: 1px solid #ddc9ad; background: linear-gradient(135deg,#fffdf9,#f3efe7); border-radius: 24px; padding: clamp(22px,3vw,38px); }
.mj-updates__seo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.mj-updates__seo-tile { border: 1px solid #e5d5be; border-radius: 17px; padding: 22px; background: #ffffff66; }
.mj-updates__seo-callout { background: #ede7dc; padding: 22px; border: 1px solid #ddc9ad; border-radius: 17px; margin-top: 16px; }
.mj-updates__seo-cta { margin-top: 24px; text-align: center; }
.mj-updates__about-link { display: inline-flex; margin-top: 16px; min-height: 44px; align-items: center; font-size: 13px; }

.mj-updates__seo h2 {
  margin: 0 0 12px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
}

.mj-updates__seo h3 {
  margin: 0 0 10px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.mj-updates__seo p {
  max-width: none;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.85;
  color: #4d584d;
}

.mj-updates__seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
  justify-content: center;
}

.mj-updates__seo-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  text-underline-offset: 4px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #66543f;
  color: #fff;
  text-decoration: none;
}

.mj-updates__sentinel {
  width: 100%;
  height: 1px;
}

.mj-updates--shop {
  background: var(--mj-u-bg);
  padding: 64px 0;
  scroll-margin-top: 100px;
}

.mj-updates--shop.is-retail { background: #f8f6f0; }

.mj-updates__shop-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.mj-updates__shop-head h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
}

.mj-updates__shop-head p {
  max-width: 500px;
  margin: 0;
  color: var(--mj-u-muted);
  font-size: 14px;
  line-height: 1.7;
}

.mj-updates__lightbox {
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: #101711;
  color: #f4f2ea;
  overflow: hidden;
}

.mj-updates__lightbox::backdrop { background: rgba(10, 14, 11, .88); }

.mj-updates__lightbox-inner {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  max-height: calc(100dvh - 24px);
  min-height: min(70dvh, 640px);
}

.mj-updates__lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  font-size: 14px;
}

.mj-updates__lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40dvh;
  overflow: hidden;
  touch-action: none;
  background: #0c100d;
}

.mj-updates__lightbox-stage img {
  max-width: 100%;
  max-height: calc(100dvh - 220px);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.mj-updates__lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px;
  font-size: 14px;
}

.mj-updates__lightbox button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: inherit;
  cursor: pointer;
  font: 14px/1.4 Georgia, serif;
}

.mj-updates__lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 14px;
}

.mj-updates__lightbox-thumbs button {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  opacity: .65;
}

.mj-updates__lightbox-thumbs button[aria-current="true"] {
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.mj-updates__lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mj-updates__lightbox-caption {
  margin: 0;
  padding: 0 16px 14px;
  text-align: center;
  font-size: 13px;
  color: #c9cec5;
  overflow-wrap: anywhere;
}

.mj-updates :focus-visible {
  outline: 2px solid #5d7458;
  outline-offset: 3px;
}

@media (max-width: 1099px) {
  .mj-updates__masonry { column-count: 2; column-gap: 18px; }
  .mj-updates__card { margin-bottom: 18px; }
}

@media (max-width: 699px) {
  .mj-updates__seo-grid { grid-template-columns: 1fr; }
  .mj-updates__banner { border-radius: 20px; }
  .mj-updates__banner-copy { padding: 28px 22px; }
  .mj-updates__wrap { width: min(100% - 32px, var(--mj-u-max)); }
  .mj-updates__masonry { column-count: 1; }
  .mj-updates__card { padding: 18px; margin-bottom: 16px; }
  .mj-updates__shop-head { flex-direction: column; align-items: start; }
  .mj-updates__hero { padding-top: 28px; }
  .mj-updates__lightbox { width: calc(100% - 12px); max-height: calc(100dvh - 12px); }
  .mj-updates__lightbox-stage img { max-height: calc(100dvh - 240px); }
}

@media (prefers-reduced-motion: reduce) {
  .mj-updates__card { transition: none; }
  .mj-updates__card:hover { transform: none; }
}
