/*
Theme Name: Moaiven Commerce 2.6.19
Author: Autanas
Description: Tema e-commerce mobile-first para Moaiven Logística Internacional, optimizado para WooCommerce y Full Site Editing.
Version: 2.6.19
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: moaiven
Tags: e-commerce, full-site-editing, custom-logo, block-patterns, wide-blocks
*/

:root {
  --moaiven-navy: #083f73;
  --moaiven-blue: #0a75b9;
  --moaiven-cyan: #13b7d4;
  --moaiven-cyan-soft: #e5f8fb;
  --moaiven-sky: #dff2f8;
  --moaiven-ice: #f5f9fc;
  --moaiven-white: #fff;
  --moaiven-ink: #102b40;
  --moaiven-muted: #647786;
  --moaiven-line: #dbe7ee;
  --moaiven-success: #1f8056;
  --moaiven-warning: #a86108;
  --moaiven-danger: #a33838;
  --moaiven-radius-sm: 12px;
  --moaiven-radius: 18px;
  --moaiven-radius-lg: 28px;
  --moaiven-shadow: 0 14px 34px rgba(8, 63, 115, .08);
  --moaiven-shadow-strong: 0 22px 55px rgba(8, 63, 115, .13);
  --moaiven-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(19, 183, 212, .55);
  outline-offset: 3px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------- Header ---------- */
.moaiven-topbar {
  background: var(--moaiven-navy);
  color: #fff;
  text-align: center;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .035em;
}
.moaiven-topbar p { margin: 0; }

.moaiven-header-shell {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--moaiven-line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
}
.moaiven-header-main {
  max-width: 1380px;
  margin-inline: auto;
}
.moaiven-header-row {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  min-height: 88px;
}
.moaiven-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.moaiven-brand { text-decoration: none; }
.moaiven-brand--logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 230px;
}
.moaiven-brand--logo img {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 66px;
  object-fit: contain;
}
.moaiven-brand--text {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--moaiven-navy);
  line-height: 1;
  padding-right: 33px;
}
.moaiven-brand-name {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 900;
  letter-spacing: .055em;
}
.moaiven-brand-tagline {
  margin-top: 5px;
  color: #6d7f8d;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.moaiven-brand-mark {
  position: absolute;
  right: 2px;
  top: 6px;
  width: 21px;
  height: 21px;
  border-top: 6px solid var(--moaiven-blue);
  border-right: 6px solid var(--moaiven-cyan);
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.moaiven-header-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--moaiven-line);
  border-radius: 999px;
  background: #fff;
  color: var(--moaiven-navy);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}
.moaiven-header-action:hover {
  border-color: #b7d1e1;
  background: var(--moaiven-ice);
}
.moaiven-header-action svg,
.moaiven-mobile-shop-bar svg,
.moaiven-mobile-menu svg,
.moaiven-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.moaiven-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--moaiven-cyan);
  color: #052f4a;
  font-size: .72rem;
  font-weight: 900;
}

.moaiven-nav-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  max-width: 1380px;
  margin-inline: auto;
  border-top: 1px solid #edf2f5;
}
.moaiven-primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}
.moaiven-primary-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--moaiven-ink);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 750;
}
.moaiven-primary-nav a:hover { color: var(--moaiven-blue); }
.moaiven-mobile-menu { display: none; }

/* ---------- Search ---------- */
.moaiven-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 5px;
  min-height: 50px;
  padding: 5px 5px 5px 14px;
  background: #fff;
  border: 1px solid #cbdbe6;
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(8, 63, 115, .05);
}
.moaiven-search-form:focus-within {
  border-color: var(--moaiven-cyan);
  box-shadow: 0 0 0 4px rgba(19, 183, 212, .12);
}
.moaiven-search-icon {
  display: inline-flex;
  color: var(--moaiven-blue);
}
.moaiven-search-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.moaiven-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 8px 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--moaiven-ink);
  font-size: 1rem;
}
.moaiven-search-form input[type="search"]::placeholder { color: #80909c; }
.moaiven-search-form button {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--moaiven-navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.moaiven-search-form button:hover { background: var(--moaiven-blue); }
.moaiven-shop-search { max-width: 760px; margin: 0 0 22px; }

/* ---------- Buttons ---------- */
.moaiven-btn,
.moaiven-product-contact-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border: 1px solid var(--moaiven-navy);
  border-radius: 999px;
  background: var(--moaiven-navy);
  color: #fff !important;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
}
.moaiven-btn:hover,
.moaiven-product-contact-button:hover { background: var(--moaiven-blue); border-color: var(--moaiven-blue); }
.moaiven-btn--outline {
  background: transparent;
  color: var(--moaiven-navy) !important;
}
.moaiven-btn--outline:hover { background: #fff; }
.moaiven-btn svg { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.moaiven-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--moaiven-line);
  background:
    radial-gradient(circle at 82% 13%, rgba(19, 183, 212, .19), transparent 29%),
    linear-gradient(135deg, #fff 0%, #f7fbfd 51%, #e8f6fb 100%);
}
.moaiven-hero::before,
.moaiven-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-11deg);
}
.moaiven-hero::before {
  width: 730px;
  height: 165px;
  right: -175px;
  top: -28px;
  border: 22px solid rgba(10, 117, 185, .14);
  border-left-color: rgba(19, 183, 212, .28);
  border-bottom-color: transparent;
}
.moaiven-hero::after {
  width: 640px;
  height: 120px;
  right: -75px;
  top: 82px;
  border: 12px solid rgba(8, 63, 115, .11);
  border-top-color: rgba(10, 117, 185, .26);
  border-bottom-color: transparent;
}
.moaiven-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(19, 183, 212, .11);
  color: var(--moaiven-navy);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.moaiven-hero-copy { max-width: 700px; }
.moaiven-hero-copy h1 { max-width: 780px; }
.moaiven-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.moaiven-hero-card {
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(8, 63, 115, .12);
  border-radius: 24px;
  box-shadow: var(--moaiven-shadow-strong);
}
.moaiven-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.moaiven-chip {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--moaiven-line);
  border-radius: 999px;
  background: var(--moaiven-ice);
  color: var(--moaiven-ink);
  font-size: .75rem;
  font-weight: 800;
}

/* ---------- General sections ---------- */
.moaiven-section-title { margin-bottom: 8px !important; }
.moaiven-section-subtitle { margin-top: 0 !important; color: var(--moaiven-muted); }
.moaiven-feature-card {
  height: 100%;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--moaiven-line);
  border-radius: var(--moaiven-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 63, 115, .045);
}
.moaiven-feature-card h3 { margin-top: 0; }
.moaiven-step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin: 0 0 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--moaiven-navy), var(--moaiven-blue));
  color: #fff;
  font-weight: 900;
}
.moaiven-trust-strip {
  border-block: 1px solid var(--moaiven-line);
  background: #fff;
}
.moaiven-trust-item {
  min-width: 0;
  padding: 7px 0;
}
.moaiven-trust-item strong { display: block; color: var(--moaiven-navy); }
.moaiven-trust-item span { color: var(--moaiven-muted); font-size: .85rem; }
.moaiven-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--moaiven-radius-lg);
  background: linear-gradient(135deg, #083f73, #0a75b9 58%, #13b7d4);
  color: #fff;
}
.moaiven-cta h2, .moaiven-cta p { color: #fff; }
.moaiven-contact-note {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--moaiven-line);
  border-left: 4px solid var(--moaiven-cyan);
  border-radius: var(--moaiven-radius-sm);
  background: var(--moaiven-ice);
}

/* ---------- Product status ---------- */
.moaiven-availability {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin: 4px 0 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf7f2;
  color: #1f6c4b;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.25;
}
.moaiven-availability::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}
.moaiven-availability--importacion { background: #edf5fb; color: #24678f; }
.moaiven-availability--consulta { background: #fff5e6; color: var(--moaiven-warning); }
.moaiven-availability--mayor { background: #edf7f8; color: #176f7c; }
.moaiven-availability--agotado { background: #f6eeee; color: var(--moaiven-danger); }
.moaiven-price-on-request {
  margin: 6px 0 9px;
  color: var(--moaiven-navy);
  font-size: .95rem;
  font-weight: 900;
}
.moaiven-product-contact-button { margin-top: 10px; background: #fff; color: var(--moaiven-navy) !important; }
.moaiven-product-contact-button:hover { color: #fff !important; }

/* ---------- Classic WooCommerce product grids ---------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  display: flex;
  width: auto;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--moaiven-line);
  border-radius: var(--moaiven-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 63, 115, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  border-color: #bad3e2;
  box-shadow: var(--moaiven-shadow);
}
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 0 13px;
  border-radius: 13px;
  background: #f8fafb;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 7px;
  padding: 0;
  color: var(--moaiven-ink);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.35;
}
.woocommerce ul.products li.product .price {
  margin: 5px 0 6px;
  color: var(--moaiven-navy);
  font-size: 1.06rem;
  font-weight: 900;
}
.woocommerce ul.products li.product .button {
  min-height: 43px;
  margin-top: auto;
  padding: 11px 13px;
  border-radius: 999px;
  background: var(--moaiven-navy);
  color: #fff;
  text-align: center;
  font-size: .86rem;
  font-weight: 800;
}
.woocommerce ul.products li.product .button:hover { background: var(--moaiven-blue); }
.woocommerce ul.products li.product-category a img { object-fit: cover; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title { color: var(--moaiven-ink); text-align: center; }
.woocommerce ul.products li.product-category .count { background: transparent; color: var(--moaiven-muted); }

/* ---------- Block-based WooCommerce cards ---------- */
.moaiven-block-product-card {
  height: 100%;
  padding: 12px;
  border: 1px solid var(--moaiven-line);
  border-radius: var(--moaiven-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 63, 115, .045);
}
.moaiven-block-product-card:hover {
  border-color: #bad3e2;
  box-shadow: var(--moaiven-shadow);
}
.moaiven-block-product-card .wp-block-woocommerce-product-image {
  overflow: hidden;
  border-radius: 13px;
  background: #f8fafb;
}
.moaiven-block-product-card .wp-block-woocommerce-product-image img { aspect-ratio: 1 / 1; object-fit: contain; }
.moaiven-block-product-card .wp-block-post-title {
  margin: 2px 0 0;
  font-size: .98rem !important;
  font-weight: 800;
  line-height: 1.35 !important;
}
.moaiven-block-product-card .wp-block-post-title a { color: var(--moaiven-ink); text-decoration: none; }
.moaiven-block-product-card .wp-block-woocommerce-product-price { margin: 0; color: var(--moaiven-navy); font-weight: 900; }
.moaiven-block-product-card .wp-block-woocommerce-product-button { margin-top: auto; width: 100%; }
.moaiven-block-product-card .wp-block-woocommerce-product-button > div { width: 100%; }

/* ---------- Store pages ---------- */
.moaiven-store-main {
  padding-top: clamp(28px, 5vw, 58px);
  padding-bottom: clamp(50px, 7vw, 86px);
}
.woocommerce .woocommerce-breadcrumb,
.wp-block-woocommerce-breadcrumbs { color: var(--moaiven-muted); font-size: .82rem; }
.woocommerce .woocommerce-breadcrumb a { color: var(--moaiven-blue); }
.woocommerce-result-count { color: var(--moaiven-muted); }
.woocommerce-ordering select,
.wc-block-product-results-count,
.wc-block-components-product-sort-select__select {
  min-height: 44px;
  border-color: var(--moaiven-line);
  border-radius: 10px;
}

/* Product page */
.moaiven-single-product-grid { gap: clamp(28px, 5vw, 68px); }
.woocommerce div.product .product_title,
.single-product .wp-block-post-title { color: var(--moaiven-ink); }
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.single-product .wp-block-woocommerce-product-price { color: var(--moaiven-navy); font-weight: 900; }
.woocommerce div.product div.images img { border-radius: var(--moaiven-radius); background: #f8fafb; }
.single-product .wp-block-woocommerce-product-image-gallery { min-width: 0; }
.single-product .wp-block-woocommerce-product-meta { color: var(--moaiven-muted); font-size: .86rem; }
.single-product .wp-block-woocommerce-product-meta a { color: var(--moaiven-blue); }
.single-product .wp-block-woocommerce-product-details { margin-top: 42px; }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.single-product form.cart .quantity .qty { min-height: 46px; border: 1px solid var(--moaiven-line); border-radius: 10px; }
.woocommerce div.product form.cart .button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button:not(.is-link) {
  min-height: 46px;
  border-radius: 999px;
  background: var(--moaiven-navy);
  color: #fff;
  font-weight: 800;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover { background: var(--moaiven-blue); }

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid var(--moaiven-line);
  border-top: 0;
  border-radius: 14px;
  background: #f5f9fb;
  color: var(--moaiven-ink);
}

/* Forms / account / checkout */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-account input,
.woocommerce-account select,
.woocommerce-account textarea {
  min-height: 46px;
  border: 1px solid #cbdbe6;
  border-radius: 10px;
  padding: 10px 12px;
}
.woocommerce form .form-row textarea { min-height: 120px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus { border-color: var(--moaiven-cyan); outline: 3px solid rgba(19,183,212,.12); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  min-height: 44px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--moaiven-line);
  color: var(--moaiven-ink);
  text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--moaiven-blue); font-weight: 800; }

/* Tables remain usable on narrow screens. */
.wp-block-table,
.woocommerce table.shop_table { max-width: 100%; }
.wp-block-table { overflow-x: auto; }
.woocommerce table.shop_table { border-color: var(--moaiven-line); border-radius: 14px; }

/* Checkout reduced header */
.moaiven-checkout-header {
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, #062f58 0%, #083f73 100%);
  box-shadow: 0 12px 30px rgba(8, 63, 115, .16);
}
.moaiven-checkout-header-inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.moaiven-checkout-header .moaiven-brand--official {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.moaiven-checkout-header .moaiven-brand--official img {
  width: clamp(170px, 18vw, 240px);
  height: auto;
  object-fit: contain;
}
.moaiven-checkout-security {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.moaiven-checkout-legal { margin-top: 30px; text-align: center; color: var(--moaiven-muted); font-size: .78rem; }
@media (max-width: 782px) {
  .moaiven-checkout-header-inner {
    min-height: auto;
    padding-block: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .moaiven-checkout-security {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ---------- FAQ / details ---------- */
.wp-block-details {
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--moaiven-line);
  border-radius: var(--moaiven-radius-sm);
  background: #fff;
}
.wp-block-details summary {
  min-height: 52px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--moaiven-ink);
  font-weight: 800;
}
.wp-block-details > :not(summary) { margin-inline: 16px; }
.wp-block-details > :last-child { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.moaiven-footer {
  border-top: 1px solid var(--moaiven-line);
  background: var(--moaiven-ice);
}
.moaiven-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.7fr);
  gap: clamp(32px, 7vw, 92px);
}
.moaiven-footer-brand-copy { max-width: 410px; color: var(--moaiven-muted); font-size: .9rem; }
.moaiven-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.moaiven-footer-links h3 {
  margin: 0 0 10px;
  color: var(--moaiven-ink);
  font-size: .9rem;
  font-weight: 900;
}
.moaiven-footer-links nav { display: flex; flex-direction: column; gap: 8px; }
.moaiven-footer-links a {
  color: var(--moaiven-muted);
  text-decoration: none;
  font-size: .85rem;
}
.moaiven-footer-links a:hover { color: var(--moaiven-blue); }
.moaiven-footer-bottom {
  border-top: 1px solid var(--moaiven-line);
  color: var(--moaiven-muted);
  font-size: .76rem;
}

/* ---------- Mobile commerce bar ---------- */
.moaiven-mobile-shop-bar {
  display: none;
  position: fixed;
  z-index: 9998;
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px;
  border: 1px solid var(--moaiven-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 15px 42px rgba(8, 63, 115, .2);
  backdrop-filter: blur(14px);
}
.moaiven-mobile-shop-bar a {
  display: flex;
  min-width: 0;
  min-height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  color: var(--moaiven-ink);
  text-decoration: none;
  font-size: .67rem;
  font-weight: 850;
}
.moaiven-mobile-shop-bar a:hover { background: var(--moaiven-ice); }
.moaiven-mobile-shop-bar svg { width: 19px; height: 19px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .moaiven-header-row { grid-template-columns: minmax(185px, 230px) minmax(260px, 1fr) auto; gap: 18px; }
  .moaiven-header-action span:not(.moaiven-cart-count) { display: none; }
  .moaiven-header-action { width: 44px; padding: 9px; }
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .moaiven-header-row {
    grid-template-columns: minmax(180px, 230px) 1fr auto;
    min-height: 76px;
  }
  .moaiven-header-search { grid-column: 1 / -1; order: 3; padding-bottom: 14px; }
  .moaiven-nav-row { min-height: 0; }
  .moaiven-primary-nav { display: none; }
  .moaiven-mobile-menu { display: block; width: 100%; }
  .moaiven-mobile-menu summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    list-style: none;
    cursor: pointer;
    color: var(--moaiven-ink);
    font-size: .86rem;
    font-weight: 800;
  }
  .moaiven-mobile-menu summary::-webkit-details-marker { display: none; }
  .moaiven-mobile-menu[open] nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    padding: 6px 0 14px;
  }
  .moaiven-mobile-menu nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    color: var(--moaiven-ink);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 750;
  }
  .moaiven-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 781px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .moaiven-topbar { font-size: .69rem; }
  .moaiven-header-row { grid-template-columns: 1fr auto; gap: 10px; }
  .moaiven-header-brand { min-width: 0; }
  .moaiven-brand--logo .custom-logo-link,
  .moaiven-brand--logo img { max-width: 190px; max-height: 56px; }
  .moaiven-header-actions .moaiven-header-action:first-child { display: none; }
  .moaiven-header-search { grid-column: 1 / -1; }
  .moaiven-nav-row { border-top: 0; }
  .moaiven-mobile-shop-bar { display: grid; }
  .moaiven-hero::before { right: -480px; opacity: .66; }
  .moaiven-hero::after { right: -420px; opacity: .66; }
  .moaiven-hero-card { margin-top: 8px; }
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product { padding: 9px; border-radius: 15px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .88rem; }
  .woocommerce ul.products li.product .price { font-size: .96rem; }
  .woocommerce ul.products li.product .button { min-height: 42px; padding: 10px 8px; font-size: .8rem; }
  .moaiven-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moaiven-checkout-header-inner { min-height: 68px; }
  .moaiven-checkout-security { display: none; }
}

@media (max-width: 520px) {
  .moaiven-header-row { padding-top: 11px !important; }
  .moaiven-brand-name { font-size: 1.5rem; }
  .moaiven-brand-tagline { font-size: .52rem; }
  .moaiven-brand--logo .custom-logo-link,
  .moaiven-brand--logo img { max-width: 162px; max-height: 50px; }
  .moaiven-search-form { min-height: 48px; padding-left: 12px; }
  .moaiven-search-form button { padding-inline: 13px; }
  .moaiven-hero-actions .moaiven-btn { width: 100%; }
  .moaiven-mobile-menu[open] nav { grid-template-columns: 1fr; }
  .moaiven-footer-links { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .single-product .wp-block-columns.moaiven-single-product-grid { gap: 24px; }
  .wp-block-woocommerce-catalog-sorting { width: 100%; }
}

@media (max-width: 390px) {
  .moaiven-topbar { display: none; }
  .moaiven-header-action { width: 42px; height: 42px; min-height: 42px; }
  .moaiven-search-form button { font-size: .82rem; }
  .woocommerce ul.products,
  .woocommerce-page ul.products { gap: 9px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .83rem; }
  .moaiven-footer-links { grid-template-columns: 1fr; }
}

/* Prevent mobile browser zoom on focused form fields. */
@media (max-width: 781px) {
  input, select, textarea { font-size: 16px !important; }
}

/* Respect motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Print: hide navigation chrome and leave order/content readable. */
@media print {
  .moaiven-topbar,
  .moaiven-header-shell,
  .moaiven-mobile-shop-bar,
  .moaiven-footer { display: none !important; }
  body { padding: 0 !important; }
}


/* ===== v1.3.0 richer design ===== */
.moaiven-wave-bg{position:relative;overflow:hidden;background:
  radial-gradient(circle at 10% 15%, rgba(19,183,212,.16), transparent 33%),
  radial-gradient(circle at 88% 12%, rgba(10,117,185,.12), transparent 32%),
  linear-gradient(135deg, #f8fbfd 0%, #eef7fb 100%);
}
.moaiven-hero-visual{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;align-items:stretch;min-height:360px}
.moaiven-hero-panel{background:linear-gradient(150deg,#ffffff 0%,#eef6fb 100%);border:1px solid var(--moaiven-line);border-radius:26px;box-shadow:var(--moaiven-shadow);padding:18px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.moaiven-hero-panel:before{content:'';position:absolute;inset:auto -30% -30% auto;width:220px;height:220px;background:radial-gradient(circle, rgba(19,183,212,.22), transparent 65%);pointer-events:none}
.moaiven-hero-panel h3{margin:0 0 8px;font-size:1.15rem;color:var(--moaiven-navy)}
.moaiven-hero-panel p{margin:0;color:var(--moaiven-muted);font-size:.95rem;line-height:1.55}
.moaiven-hero-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.moaiven-hero-media a{position:relative;display:block;border-radius:22px;overflow:hidden;min-height:172px;background:#f3f7fa;border:1px solid var(--moaiven-line);box-shadow:var(--moaiven-shadow)}
.moaiven-hero-media img{width:100%;height:100%;object-fit:cover;display:block}
.moaiven-hero-media span{position:absolute;left:12px;bottom:12px;padding:8px 11px;border-radius:999px;background:rgba(8,63,115,.85);color:#fff;font-size:.76rem;font-weight:700;backdrop-filter: blur(6px)}
.moaiven-stat-grid,.moaiven-link-card-grid,.moaiven-page-extra-grid,.moaiven-home-collections,.moaiven-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.moaiven-stat-card,.moaiven-link-card,.moaiven-info-card,.moaiven-highlight-card{background:#fff;border:1px solid var(--moaiven-line);border-radius:22px;box-shadow:var(--moaiven-shadow);padding:22px}
.moaiven-stat-card strong,.moaiven-info-card strong{display:block;color:var(--moaiven-navy);font-size:1.4rem;margin-bottom:6px}
.moaiven-link-card{display:flex;flex-direction:column;gap:12px;text-decoration:none;color:inherit;transition:transform .18s ease, box-shadow .18s ease}
.moaiven-link-card:hover{transform:translateY(-2px);box-shadow:var(--moaiven-shadow-strong)}
.moaiven-link-card h3,.moaiven-highlight-card h3,.moaiven-page-gallery h3{margin:0;color:var(--moaiven-navy);font-size:1.05rem}
.moaiven-link-card p,.moaiven-highlight-card p,.moaiven-page-gallery p,.moaiven-page-intro p,.moaiven-info-card p{margin:0;color:var(--moaiven-muted);line-height:1.6}
.moaiven-category-grid,.moaiven-product-grid,.moaiven-mini-gallery{display:grid;gap:18px}
.moaiven-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.moaiven-category-card,.moaiven-product-card,.moaiven-page-gallery{background:#fff;border:1px solid var(--moaiven-line);border-radius:24px;overflow:hidden;box-shadow:var(--moaiven-shadow)}
.moaiven-category-card a,.moaiven-product-card a{text-decoration:none;color:inherit}
.moaiven-category-media,.moaiven-product-media{display:block;aspect-ratio:1 / 1;background:#f2f7fa;overflow:hidden}
.moaiven-category-media img,.moaiven-product-media img,.moaiven-mini-gallery img{width:100%;height:100%;object-fit:cover;display:block}
.moaiven-category-content,.moaiven-product-content{padding:18px}
.moaiven-category-content h3,.moaiven-product-content h3{margin:0 0 8px;font-size:1.05rem;color:var(--moaiven-navy)}
.moaiven-category-count{display:inline-flex;padding:7px 10px;border-radius:999px;background:var(--moaiven-cyan-soft);color:var(--moaiven-blue);font-weight:700;font-size:.8rem}
.moaiven-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.moaiven-product-card{display:flex;flex-direction:column;height:100%}
.moaiven-product-content{display:flex;flex-direction:column;gap:10px;flex:1}
.moaiven-product-price{font-weight:800;color:var(--moaiven-navy);font-size:1.05rem}
.moaiven-product-title{display:block;min-height:3em;line-height:1.45}
.moaiven-product-actions{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}
.moaiven-link-inline{display:inline-flex;align-items:center;gap:8px;color:var(--moaiven-blue);font-weight:700;text-decoration:none}
.moaiven-section-shell{padding-block:var(--wp--preset--spacing--50)}
.moaiven-page-shell{padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--50)}
.moaiven-page-hero{padding:clamp(20px,4vw,28px);border-radius:30px;background:linear-gradient(135deg,#fff 0%,#eef7fb 60%,#e6f6fa 100%);border:1px solid var(--moaiven-line);box-shadow:var(--moaiven-shadow-strong);overflow:hidden;position:relative}
.moaiven-page-hero:after{content:'';position:absolute;right:-40px;top:-40px;width:260px;height:260px;background:radial-gradient(circle, rgba(10,117,185,.18), transparent 63%)}
.moaiven-page-hero .wp-block-columns{margin-bottom:0}
.moaiven-page-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(8,63,115,.08);color:var(--moaiven-blue);font-weight:800;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}
.moaiven-page-hero-copy h1{margin:14px 0 12px;color:var(--moaiven-navy)}
.moaiven-page-hero-copy p{color:var(--moaiven-muted);font-size:1rem;line-height:1.72;margin:0}
.moaiven-page-hero-media{display:flex;justify-content:center}
.moaiven-page-hero-media img{width:100%;max-height:340px;object-fit:cover;border-radius:24px;box-shadow:var(--moaiven-shadow)}
.moaiven-page-hero-fallback{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.moaiven-page-hero-fallback .mini{background:#fff;border:1px solid var(--moaiven-line);border-radius:18px;padding:18px;box-shadow:var(--moaiven-shadow);min-height:120px}
.moaiven-page-hero-fallback .mini strong{display:block;color:var(--moaiven-navy);font-size:1.05rem;margin-bottom:8px}
.moaiven-page-hero-fallback .mini span{color:var(--moaiven-muted);font-size:.9rem;line-height:1.5}
.moaiven-page-content-card{margin-top:22px;background:#fff;border:1px solid var(--moaiven-line);border-radius:26px;box-shadow:var(--moaiven-shadow);padding:clamp(20px,3vw,34px)}
.moaiven-page-content-card .wp-block-post-content > * + *{margin-top:1.1em}
.moaiven-page-extra-wrap{padding-top:var(--wp--preset--spacing--40)}
.moaiven-page-gallery{padding:18px}
.moaiven-mini-gallery{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}
.moaiven-mini-gallery a{display:block;border-radius:16px;overflow:hidden;aspect-ratio:1/1;background:#f2f7fa}
.moaiven-highlight-card{background:linear-gradient(145deg,#0a5ea6 0%,#13b7d4 100%);color:#fff;border:none}
.moaiven-highlight-card h3,.moaiven-highlight-card p{color:#fff}
.moaiven-highlight-card .moaiven-btn,.moaiven-page-extra-wrap .moaiven-btn{margin-top:14px}
.moaiven-archive-hero{margin-bottom:24px;padding:clamp(20px,4vw,28px);border-radius:30px;background:linear-gradient(135deg,#fff 0%,#eef7fb 50%,#f8fdff 100%);border:1px solid var(--moaiven-line);box-shadow:var(--moaiven-shadow)}
.moaiven-archive-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.moaiven-archive-pill{background:#fff;border:1px solid var(--moaiven-line);border-radius:18px;padding:14px 16px;color:var(--moaiven-muted)}
.moaiven-archive-pill strong{display:block;color:var(--moaiven-navy);font-size:1rem;margin-bottom:4px}
.moaiven-support-band{margin-top:24px;padding:24px;border-radius:24px;background:linear-gradient(135deg,#0a5ea6 0%,#13b7d4 100%);box-shadow:var(--moaiven-shadow-strong);display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.moaiven-support-band h2,.moaiven-support-band p{color:#fff;margin:0}
.moaiven-support-band p{max-width:720px;opacity:.96}
.moaiven-support-band .moaiven-btn--outline{color:#fff;border-color:rgba(255,255,255,.7)}
.moaiven-support-band .moaiven-btn--outline:hover{background:#fff;color:var(--moaiven-navy)}
.wp-block-details{border:1px solid var(--moaiven-line);border-radius:18px;padding:16px 18px;background:#fff;box-shadow:var(--moaiven-shadow)}
.wp-block-details summary{cursor:pointer;font-weight:800;color:var(--moaiven-navy)}
.wp-block-details[open]{background:#fbfdfe}
@media (max-width: 1100px){
  .moaiven-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .moaiven-category-grid,.moaiven-home-collections,.moaiven-info-grid,.moaiven-page-extra-grid,.moaiven-link-card-grid,.moaiven-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .moaiven-archive-meta{grid-template-columns:1fr 1fr}
}
@media (max-width: 781px){
  .moaiven-hero-visual,.moaiven-page-hero .wp-block-columns{grid-template-columns:1fr;display:block}
  .moaiven-hero-media,.moaiven-page-hero-fallback,.moaiven-product-grid,.moaiven-category-grid,.moaiven-home-collections,.moaiven-link-card-grid,.moaiven-page-extra-grid,.moaiven-info-grid,.moaiven-stat-grid,.moaiven-mini-gallery,.moaiven-archive-meta{grid-template-columns:1fr 1fr}
  .moaiven-support-band{padding:22px}
}
@media (max-width: 560px){
  .moaiven-hero-media,.moaiven-page-hero-fallback,.moaiven-product-grid,.moaiven-category-grid,.moaiven-home-collections,.moaiven-link-card-grid,.moaiven-page-extra-grid,.moaiven-info-grid,.moaiven-stat-grid,.moaiven-mini-gallery,.moaiven-archive-meta{grid-template-columns:1fr}
  .moaiven-hero-panel,.moaiven-page-content-card,.moaiven-page-gallery,.moaiven-highlight-card,.moaiven-info-card,.moaiven-link-card,.moaiven-stat-card{padding:18px}
}


/* ===== v1.4.0 — wider desktop / less boxed ===== */
:root{
  --moaiven-content:1480px;
  --moaiven-edge:clamp(20px,3.2vw,58px);
  --moaiven-section-y:clamp(58px,7vw,104px);
}

/* Wider global canvas on desktop */
.moaiven-header-main,
.moaiven-header-nav > .wp-block-group,
.moaiven-footer-inner,
.moaiven-hero > .wp-block-columns,
.moaiven-trust-strip > .wp-block-columns,
.moaiven-home-inner,
.moaiven-store-main.alignwide,
.moaiven-store-main > .alignwide,
.moaiven-single-product-grid.alignwide{
  width:min(100% - (var(--moaiven-edge) * 2),1480px) !important;
  max-width:1480px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Home becomes a sequence of full-width editorial bands, not floating cards */
.moaiven-hero{
  min-height:640px;
  display:flex;
  align-items:center;
  padding-left:var(--moaiven-edge) !important;
  padding-right:var(--moaiven-edge) !important;
}
.moaiven-hero > .wp-block-columns{width:100% !important;}
.moaiven-hero-copy{max-width:760px;}
.moaiven-hero-copy h1{font-size:clamp(3rem,5.2vw,5.7rem) !important;line-height:.98 !important;letter-spacing:-.045em !important;max-width:900px;}
.moaiven-hero-copy .has-lg-font-size{max-width:670px;}
.moaiven-hero-visual{min-height:500px;grid-template-columns:.72fr 1.28fr;gap:22px;}
.moaiven-hero-panel{
  border:0;
  box-shadow:none;
  background:transparent;
  border-radius:0;
  padding:28px 6px 28px 0;
  justify-content:flex-end;
}
.moaiven-hero-panel:before{display:none;}
.moaiven-hero-panel h3{font-size:1.45rem;line-height:1.15;}
.moaiven-hero-media{gap:16px;grid-template-columns:1fr 1fr;}
.moaiven-hero-media a{
  border:0;
  border-radius:28px;
  min-height:235px;
  box-shadow:0 22px 60px rgba(8,63,115,.14);
  transform:translateZ(0);
}
.moaiven-hero-media a:first-child{grid-row:span 2;min-height:486px;}
.moaiven-hero-media img{object-fit:cover;}

.moaiven-home-section{
  width:100%;
  max-width:none !important;
  margin:0 !important;
  padding:var(--moaiven-section-y) var(--moaiven-edge) !important;
}
.moaiven-home-section--tint{background:linear-gradient(180deg,#f5fafc 0%,#edf7fa 100%);}
.moaiven-home-section--white{background:#fff;}
.moaiven-home-inner{width:100%;}
.moaiven-section-title{font-size:clamp(2rem,3vw,3.25rem) !important;letter-spacing:-.035em !important;}
.moaiven-section-subtitle{font-size:1.02rem;max-width:680px;}

/* Trust strip uses the width instead of looking like a small centered module */
.moaiven-trust-strip{padding:22px var(--moaiven-edge) !important;background:#fff;border-block:1px solid var(--moaiven-line);}
.moaiven-trust-strip > .wp-block-columns{gap:0 !important;}
.moaiven-trust-strip .wp-block-column{padding:8px clamp(18px,3vw,44px);border-right:1px solid var(--moaiven-line);}
.moaiven-trust-strip .wp-block-column:first-child{padding-left:0;}
.moaiven-trust-strip .wp-block-column:last-child{border-right:0;padding-right:0;}
.moaiven-trust-item strong{font-size:1rem;}

/* Category tiles: image-forward, lighter framing */
.moaiven-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:34px;}
.moaiven-category-card{
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}
.moaiven-category-card a{display:block;}
.moaiven-category-media{aspect-ratio:16/10;border-radius:26px;box-shadow:0 16px 42px rgba(8,63,115,.10);}
.moaiven-category-content{padding:16px 2px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;}
.moaiven-category-content h3{font-size:1.15rem;margin:0;}

/* Product cards: keep the product as the visual object, remove the card-within-card look */
.moaiven-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 24px;margin-top:34px;}
.moaiven-product-card{
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}
.moaiven-product-media{border-radius:24px;box-shadow:0 12px 34px rgba(8,63,115,.08);background:#f5f8fa;}
.moaiven-product-media img{transition:transform .35s ease;}
.moaiven-product-card:hover .moaiven-product-media img{transform:scale(1.025);}
.moaiven-product-content{padding:16px 2px 0;}
.moaiven-product-content h3{font-size:1rem;}
.moaiven-product-actions .moaiven-btn{padding:.72rem 1rem;}

/* The three-step process is an editorial row, not three separate boxes */
.moaiven-process-section{padding:var(--moaiven-section-y) var(--moaiven-edge) !important;}
.moaiven-process-section > .wp-block-heading,
.moaiven-process-section > .wp-block-columns{width:min(100%,1480px);max-width:1480px !important;margin-left:auto !important;margin-right:auto !important;}
.moaiven-process-section > .wp-block-columns{gap:0 !important;margin-top:38px;}
.moaiven-process-section .wp-block-column{padding:0 clamp(22px,3vw,50px);border-left:1px solid #cfe0e9;}
.moaiven-process-section .wp-block-column:first-child{border-left:0;padding-left:0;}
.moaiven-feature-card{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
.moaiven-step-number{width:52px;height:52px;border-radius:50%;font-size:1rem;}

/* Full width CTA band */
.moaiven-cta-wrap{padding:0 var(--moaiven-edge) var(--moaiven-section-y);background:#fff;}
.moaiven-support-band,.moaiven-cta{
  width:min(100%,1480px);
  max-width:1480px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  border-radius:30px;
  padding:clamp(30px,4vw,58px) !important;
}

/* Informational pages: full-bleed hero and open body, not a centered card */
.moaiven-page-shell{padding:0 0 var(--moaiven-section-y) !important;max-width:none !important;width:100% !important;}
.moaiven-page-hero{
  width:100%;
  max-width:none !important;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:clamp(58px,8vw,112px) var(--moaiven-edge);
  background:
    radial-gradient(circle at 82% 18%,rgba(19,183,212,.22),transparent 30%),
    linear-gradient(135deg,#f7fbfd 0%,#eaf5fa 100%);
}
.moaiven-page-hero > .wp-block-columns{width:min(100%,1480px);max-width:1480px;margin:0 auto;gap:clamp(34px,7vw,96px);}
.moaiven-page-hero-media img{border-radius:30px;box-shadow:0 24px 70px rgba(8,63,115,.15);}
.moaiven-page-content-card{
  width:min(100% - (var(--moaiven-edge) * 2),1040px);
  max-width:1040px;
  margin:0 auto;
  padding:clamp(58px,7vw,92px) 0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}
.moaiven-page-extra-wrap{padding:0 var(--moaiven-edge);max-width:none !important;width:100%;}
.moaiven-page-extra-wrap > *{width:min(100%,1480px);max-width:1480px;margin-left:auto;margin-right:auto;}
.moaiven-stat-card,.moaiven-info-card,.moaiven-link-card{
  border:0;
  border-radius:18px;
  box-shadow:none;
  background:#f3f8fb;
}
.moaiven-page-gallery{border:0;border-radius:0;box-shadow:none;padding:0;background:transparent;}
.moaiven-mini-gallery{gap:14px;}
.moaiven-mini-gallery a{border-radius:20px;box-shadow:0 10px 26px rgba(8,63,115,.08);}

/* Shop: use the desktop width, flatten cards and expand catalog */
.moaiven-store-main{max-width:none !important;width:100% !important;padding:0 var(--moaiven-edge) var(--moaiven-section-y) !important;}
.moaiven-archive-hero{
  width:calc(100% + (var(--moaiven-edge) * 2));
  margin-left:calc(var(--moaiven-edge) * -1);
  margin-right:calc(var(--moaiven-edge) * -1);
  margin-bottom:42px;
  padding:clamp(54px,7vw,94px) var(--moaiven-edge);
  border:0;border-radius:0;box-shadow:none;
  background:linear-gradient(135deg,#f7fbfd,#eaf5fa);
}
.moaiven-archive-hero > *{max-width:1480px;margin-left:auto;margin-right:auto;}
.moaiven-archive-hero h1{font-size:clamp(2.6rem,4vw,4.6rem);margin:.2em auto;}
.moaiven-archive-meta{max-width:1480px;margin:28px auto 0;grid-template-columns:repeat(3,minmax(0,1fr));}
.moaiven-archive-pill{border:0;border-radius:0;background:transparent;padding:16px 22px;border-left:2px solid var(--moaiven-cyan);}
.moaiven-store-main > .wp-block-group.alignwide{width:100% !important;max-width:1480px !important;margin-left:auto !important;margin-right:auto !important;}
.moaiven-store-main > .wp-block-woocommerce-product-collection{width:100% !important;max-width:1480px !important;margin-left:auto !important;margin-right:auto !important;}
.moaiven-block-product-card{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;}
.moaiven-block-product-card:hover{border:0;box-shadow:none;}
.moaiven-block-product-card .wp-block-woocommerce-product-image{border-radius:22px;box-shadow:0 10px 28px rgba(8,63,115,.07);}

/* Product detail: wider, calmer, more premium */
.moaiven-single-product-grid{gap:clamp(38px,6vw,90px) !important;padding-top:24px;}
.moaiven-single-product-grid > .wp-block-column:first-child{flex-basis:58% !important;}
.moaiven-single-product-grid > .wp-block-column:last-child{flex-basis:42% !important;padding-top:18px;}
.moaiven-single-product-grid .wp-block-woocommerce-product-image-gallery{position:sticky;top:120px;}
.wp-block-woocommerce-product-details.alignwide,
.moaiven-store-main > .wp-block-pattern{max-width:1480px !important;width:100%;}

/* Header/footer breathe on large screens */
.moaiven-header-shell{padding-left:var(--moaiven-edge) !important;padding-right:var(--moaiven-edge) !important;}
.moaiven-header-main{max-width:1540px !important;width:min(100%,1540px) !important;}
.moaiven-header-nav{padding-left:var(--moaiven-edge) !important;padding-right:var(--moaiven-edge) !important;}
.moaiven-footer{padding-left:var(--moaiven-edge) !important;padding-right:var(--moaiven-edge) !important;}

@media (min-width:1550px){
  .moaiven-product-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
}
@media (max-width:1180px){
  :root{--moaiven-edge:clamp(18px,3vw,32px);}
  .moaiven-hero{min-height:auto;}
  .moaiven-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:900px){
  .moaiven-hero-copy h1{font-size:clamp(2.5rem,8vw,4.2rem) !important;}
  .moaiven-hero-visual{min-height:auto;grid-template-columns:1fr;}
  .moaiven-hero-media a:first-child{grid-row:auto;min-height:260px;}
  .moaiven-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .moaiven-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .moaiven-single-product-grid > .wp-block-column:first-child,.moaiven-single-product-grid > .wp-block-column:last-child{flex-basis:50% !important;}
}
@media (max-width:781px){
  .moaiven-hero{padding-top:48px !important;padding-bottom:56px !important;}
  .moaiven-hero-media{grid-template-columns:1fr 1fr;}
  .moaiven-hero-media a,.moaiven-hero-media a:first-child{min-height:190px;}
  .moaiven-trust-strip .wp-block-column{border-right:0;border-bottom:1px solid var(--moaiven-line);padding:13px 0;}
  .moaiven-trust-strip .wp-block-column:last-child{border-bottom:0;}
  .moaiven-process-section .wp-block-column{border-left:0;border-top:1px solid #cfe0e9;padding:26px 0;}
  .moaiven-process-section .wp-block-column:first-child{border-top:0;padding-top:0;}
  .moaiven-page-hero{padding-top:50px;padding-bottom:54px;}
  .moaiven-page-content-card{padding-top:44px;padding-bottom:44px;}
  .moaiven-single-product-grid .wp-block-woocommerce-product-image-gallery{position:static;}
  .moaiven-single-product-grid > .wp-block-column:first-child,.moaiven-single-product-grid > .wp-block-column:last-child{flex-basis:100% !important;}
}
@media (max-width:560px){
  .moaiven-category-grid,.moaiven-product-grid{grid-template-columns:1fr;gap:28px;}
  .moaiven-hero-media{grid-template-columns:1fr;}
  .moaiven-hero-media a,.moaiven-hero-media a:first-child{min-height:235px;}
  .moaiven-category-media{aspect-ratio:4/3;}
  .moaiven-product-media{aspect-ratio:4/3;}
  .moaiven-archive-meta{grid-template-columns:1fr;}
  .moaiven-support-band,.moaiven-cta{border-radius:22px;}
}

/* Production consultation states */
.moaiven-loop-consult { text-align: center; }
.moaiven-contact-note a { font-weight: 800; }


