/* MERIVUS product-detail gallery and native Woostify footer, 2026-10-18.
 * All business text and links remain editable Elementor/widgets content.
 * Gallery appears only where these classes are explicitly assigned.
 */
body.mrv-footer-enabled {
  --mrv-footer-ink: #20282c;
  --mrv-footer-muted: #65727b;
  --mrv-footer-line: #dde2e5;
  --mrv-footer-accent: #c7ef45;
  --mrv-footer-font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

body.mrv-footer-enabled .mrv-details-heading,
body.mrv-footer-enabled .mrv-details-gallery,
body.mrv-footer-enabled #colophon {
  font-family: var(--mrv-footer-font);
  color: var(--mrv-footer-ink);
}

/* Keep both native Elementor sections on the existing 1320 px content axis. */
body.mrv-footer-enabled .elementor .mrv-details-heading.e-con {
  width: calc(100% - 40px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 0 42px;
  gap: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  --container-widget-width: 100%;
}

body.mrv-footer-enabled .mrv-details-heading .elementor-widget {
  width: 100%;
  margin: 0;
}

body.mrv-footer-enabled .mrv-details-heading p {
  margin: 0;
}

body.mrv-footer-enabled .mrv-details-eyebrow p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--mrv-footer-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 1.4px;
}

body.mrv-footer-enabled .mrv-details-eyebrow p::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--mrv-footer-accent);
}

body.mrv-footer-enabled .mrv-details-title .elementor-heading-title {
  margin: 17px 0 13px;
  color: var(--mrv-footer-ink);
  font-family: var(--mrv-footer-font);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.8px;
}

body.mrv-footer-enabled .mrv-details-intro p {
  color: var(--mrv-footer-muted);
  font-size: 16px;
  line-height: 1.8;
}

body.mrv-footer-enabled .elementor .mrv-details-gallery.e-con {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: calc(100% - 40px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 0 40px;
  gap: 12px;
  align-items: start;
  background: #fff;
  --display: grid;
  --container-widget-width: 100%;
}

body.mrv-footer-enabled .mrv-details-gallery > .mrv-detail-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  --mrv-detail-label-height: 54px;
}

body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-wrapper {
  position: relative;
  display: block;
  text-align: left;
}

body.mrv-footer-enabled .elementor .mrv-details-gallery .mrv-detail-card .elementor-image-box-wrapper .elementor-image-box-img {
  display: block;
  width: 100%;
  aspect-ratio: 392 / 507;
  margin: 0;
  overflow: hidden;
  background: #e9edef;
}

body.mrv-footer-enabled .elementor .mrv-details-gallery .mrv-detail-card .elementor-image-box-wrapper .elementor-image-box-img a {
  display: block;
  width: 100%;
  height: 100%;
}

body.mrv-footer-enabled .elementor .mrv-details-gallery .mrv-detail-card .elementor-image-box-wrapper .elementor-image-box-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 392 / 507;
  object-fit: cover;
  transform: scale(1);
  transition: transform 420ms cubic-bezier(.2,.65,.3,1);
}

body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-content {
  width: 100%;
}

body.mrv-footer-enabled .mrv-detail-card h3.elementor-image-box-title {
  height: var(--mrv-detail-label-height);
  margin: 0;
  border-bottom: 1px solid var(--mrv-footer-line);
  color: var(--mrv-footer-ink);
  font-family: var(--mrv-footer-font);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  line-height: 1.4;
}

body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-title a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-title a::after {
  content: "→";
  color: #84919a;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-description {
  position: absolute;
  right: 0;
  bottom: var(--mrv-detail-label-height);
  left: 0;
  z-index: 1;
  margin: 0;
  padding: 37px 18px 17px;
  background: linear-gradient(transparent, rgba(20,28,31,.84));
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

body.mrv-footer-enabled .mrv-detail-card:hover .elementor-image-box-img img,
body.mrv-footer-enabled .mrv-detail-card:focus-within .elementor-image-box-img img {
  transform: scale(1.025);
}

body.mrv-footer-enabled .mrv-detail-card:hover .elementor-image-box-description,
body.mrv-footer-enabled .mrv-detail-card:focus-within .elementor-image-box-description {
  opacity: 1;
  transform: none;
}

body.mrv-footer-enabled .mrv-detail-card:hover .elementor-image-box-title,
body.mrv-footer-enabled .mrv-detail-card:focus-within .elementor-image-box-title {
  border-bottom-color: #9ba6ae;
}

body.mrv-footer-enabled .mrv-detail-card:hover .elementor-image-box-title a::after,
body.mrv-footer-enabled .mrv-detail-card:focus-within .elementor-image-box-title a::after {
  color: var(--mrv-footer-ink);
  transform: translateX(2px);
}

/* Native Woostify footer: .woostify-container > .site-footer-widget > .widget */
body.mrv-footer-enabled #colophon.site-footer {
  margin-top: 0;
  padding: 0;
  background: linear-gradient(180deg, #fff 0%, #fafbfb 28%, #eef1f2 100%);
  color: var(--mrv-footer-muted);
}

body.mrv-footer-enabled #colophon > :is(.woostify-container, .container) {
  width: calc(100% - 40px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
}

body.mrv-footer-enabled #colophon :is(.site-footer-widget, .footer-widgets) {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr 1.45fr;
  gap: 40px;
  float: none;
  width: 100%;
  padding: 60px 0 65px;
  border-top: 1px solid #e7ebed;
}

body.mrv-footer-enabled #colophon :is(.site-footer-widget, .footer-widgets) > .widget {
  float: none;
  clear: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.mrv-footer-enabled #colophon .custom-html-widget > div {
  min-width: 0;
}

body.mrv-footer-enabled #colophon .mrv-footer-brand img {
  display: block;
  width: 230px;
  height: auto;
  max-width: 100%;
  margin: 0 0 24px;
}

body.mrv-footer-enabled #colophon .mrv-footer-brand p {
  max-width: 255px;
  margin: 0;
  color: var(--mrv-footer-muted);
  font-size: 14px;
  line-height: 2;
}

body.mrv-footer-enabled #colophon :is(.mrv-footer-products, .mrv-footer-support, .mrv-footer-contact) h2 {
  position: relative;
  margin: 1px 0 18px;
  padding: 0 0 18px;
  color: var(--mrv-footer-ink);
  font-family: var(--mrv-footer-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

body.mrv-footer-enabled #colophon :is(.mrv-footer-products, .mrv-footer-support, .mrv-footer-contact) h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: #cbd2d7;
  content: "";
}

body.mrv-footer-enabled #colophon :is(.mrv-footer-products, .mrv-footer-support) ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.mrv-footer-enabled #colophon :is(.mrv-footer-products, .mrv-footer-support) li {
  margin: 0;
  padding: 0;
  border: 0;
}

body.mrv-footer-enabled #colophon :is(.mrv-footer-products, .mrv-footer-support) li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mrv-footer-muted);
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
  transition: color 180ms ease;
}

body.mrv-footer-enabled #colophon :is(.mrv-footer-products, .mrv-footer-support) li a:hover {
  color: var(--mrv-footer-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

body.mrv-footer-enabled #colophon a.mrv-footer-email {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  margin: 0 0 16px;
  color: var(--mrv-footer-ink);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}

body.mrv-footer-enabled #colophon a.mrv-footer-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 235px;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid var(--mrv-footer-ink);
  border-radius: 999px;
  background: var(--mrv-footer-ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

body.mrv-footer-enabled #colophon a.mrv-footer-quote span {
  color: var(--mrv-footer-accent);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

body.mrv-footer-enabled #colophon a.mrv-footer-quote:hover {
  border-color: var(--mrv-footer-accent);
  background: var(--mrv-footer-accent);
  color: var(--mrv-footer-ink);
}

body.mrv-footer-enabled #colophon a.mrv-footer-quote:hover span {
  color: var(--mrv-footer-ink);
}

body.mrv-footer-enabled #colophon .site-info {
  display: block;
  margin: 0;
  padding: 20px 0 36px;
  border-top: 1px solid var(--mrv-footer-line);
}

body.mrv-footer-enabled #colophon .site-infor-col:first-child:last-child {
  width: 100%;
  text-align: left;
}

body.mrv-footer-enabled #colophon .mrv-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.mrv-footer-enabled #colophon .mrv-footer-copyright {
  margin: 0;
  color: var(--mrv-footer-muted);
  font-size: 12px;
  line-height: 1.8;
}

body.mrv-footer-enabled #colophon a.mrv-back-top {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  color: var(--mrv-footer-muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}

body.mrv-footer-enabled #colophon .mrv-back-top span {
  font-size: 24px;
  line-height: 1;
}

body.mrv-footer-enabled #colophon a:focus-visible,
body.mrv-footer-enabled .mrv-detail-card a:focus-visible {
  outline: 2px solid #596a31;
  outline-offset: 4px;
  border-radius: 1px;
}

body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-img a:focus-visible {
  outline-offset: -4px;
}

body.mrv-footer-enabled #scroll-to-top {
  width: 44px;
  height: 44px;
  background-color: var(--mrv-footer-ink);
  color: #fff;
}

body.mrv-footer-enabled #scroll-to-top:hover,
body.mrv-footer-enabled #scroll-to-top:focus-visible {
  background-color: var(--mrv-footer-accent);
  color: var(--mrv-footer-ink);
}

body.mrv-footer-enabled #scroll-to-top .woostify-svg-icon {
  color: inherit;
}

@media (max-width: 999px) {
  body.mrv-footer-enabled .elementor .mrv-details-heading.e-con {
    padding: 54px 0 30px;
  }
  body.mrv-footer-enabled .elementor .mrv-details-gallery.e-con {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 24px;
  }
  body.mrv-footer-enabled #colophon :is(.site-footer-widget, .footer-widgets) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 36px;
    padding: 40px 0;
  }
  body.mrv-footer-enabled #colophon :is(.site-footer-widget, .footer-widgets) > .widget:first-child,
  body.mrv-footer-enabled #colophon :is(.site-footer-widget, .footer-widgets) > .widget:last-child {
    grid-column: 1 / -1;
  }
  body.mrv-footer-enabled #colophon .mrv-footer-brand p {
    max-width: 460px;
  }
  body.mrv-footer-enabled #colophon a.mrv-footer-email {
    font-size: 20px;
  }
}

@media (max-width: 599px) {
  body.mrv-footer-enabled .elementor .mrv-details-heading.e-con,
  body.mrv-footer-enabled .elementor .mrv-details-gallery.e-con,
  body.mrv-footer-enabled #colophon > :is(.woostify-container, .container) {
    width: calc(100% - 32px);
  }
  body.mrv-footer-enabled .elementor .mrv-details-heading.e-con {
    padding: 44px 0 26px;
  }
  body.mrv-footer-enabled .mrv-details-intro p {
    font-size: 14px;
  }
  body.mrv-footer-enabled .elementor .mrv-details-gallery.e-con {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    padding-bottom: 30px;
  }
  body.mrv-footer-enabled .mrv-details-gallery > .mrv-detail-card {
    --mrv-detail-label-height: 48px;
  }
  body.mrv-footer-enabled .mrv-detail-card h3.elementor-image-box-title {
    font-size: 15px;
  }
  body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-description {
    padding: 27px 12px 10px;
    font-size: 12px;
    opacity: 1;
    transform: none;
  }
  body.mrv-footer-enabled #colophon .mrv-footer-bottom {
    flex-wrap: wrap;
    gap: 6px 20px;
  }
  body.mrv-footer-enabled #colophon .site-info {
    padding: 18px 0 24px;
  }
}

@media (max-width: 379px) {
  body.mrv-footer-enabled #colophon :is(.site-footer-widget, .footer-widgets) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (hover: none) {
  body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-description {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mrv-footer-enabled .mrv-detail-card img,
  body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-description,
  body.mrv-footer-enabled .mrv-detail-card .elementor-image-box-title a::after,
  body.mrv-footer-enabled #colophon a,
  body.mrv-footer-enabled #scroll-to-top {
    transition: none;
  }
  body.mrv-footer-enabled .mrv-detail-card:hover .elementor-image-box-img img,
  body.mrv-footer-enabled .mrv-detail-card:focus-within .elementor-image-box-img img {
    transform: none;
  }
}
