:root {
  --mw-navy: #1e2a43;
  --mw-navy-deep: #141c2e;
  --mw-gold: #c9a45c;
  --mw-cream: #fbf8f2;
  --mw-ink: #161616;
  --mw-muted: #666a73;
  --mw-line: rgba(30, 42, 67, 0.12);
  --mw-font-display: "Cormorant Garamond", Georgia, serif;
  --mw-font-body: "Manrope", system-ui, sans-serif;
  --mw-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mw-max: 560px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.mw-page {
  font-family: var(--mw-font-body);
  color: var(--mw-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.mw-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(201, 164, 92, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 8%, rgba(30, 42, 67, 0.07), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--mw-cream) 55%, #f3ece0 100%);
}

/* Shell integration (path-switch + site footer) */
.mw-page .topbar {
  background: rgba(255, 255, 255, 0.94);
}

.mw-page .topbar .nav {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
}

.mw-page .topbar .nav-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.mw-page .topbar .nav-cta .btn-primary {
  background: linear-gradient(135deg, var(--mw-gold), #e2c684);
  color: #111;
}

.mw-page .topbar .nav-cta .btn-secondary {
  background: #fff;
  border-color: rgba(30, 42, 67, 0.12);
  color: var(--mw-navy);
}

.mw-page .mw-site-footer {
  width: 100%;
  margin: 0;
  padding: 0 0 calc(1.5rem + var(--mw-safe-bottom));
  background: transparent;
}

.mw-page .mw-site-footer .container {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
}

@media (max-width: 720px) {
  .mw-page .topbar .nav-cta .btn-secondary {
    display: none;
  }
}

.mw-main {
  width: min(var(--mw-max), calc(100% - 28px));
  margin: 0 auto;
  padding: 1.4rem 0 calc(2.5rem + var(--mw-safe-bottom));
}

.mw-hero h1 {
  margin: 0.15rem 0 0.55rem;
  font-family: var(--mw-font-display);
  font-size: clamp(2.15rem, 7vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--mw-navy);
  letter-spacing: -0.01em;
}

.mw-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mw-gold);
}

.mw-lede {
  margin: 0;
  max-width: 34rem;
  color: var(--mw-muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

.mw-pick {
  margin-top: 1.55rem;
}

.mw-pick h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.mw-hint {
  margin: 0.35rem 0 0.85rem;
  color: var(--mw-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.mw-garments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.mw-garment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 4.4rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--mw-line);
  border-radius: 14px;
  background: #fff;
  color: var(--mw-navy);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mw-garment strong {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.mw-garment span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mw-muted);
}

.mw-garment:hover {
  border-color: rgba(201, 164, 92, 0.55);
  transform: translateY(-1px);
}

.mw-garment[aria-pressed="true"] {
  background: var(--mw-navy);
  border-color: var(--mw-navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 42, 67, 0.18);
}

.mw-garment[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.72);
}

.mw-empty {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--mw-line);
  color: var(--mw-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.mw-empty[hidden],
.mw-form-wrap[hidden],
.mw-section[hidden],
.mw-error[hidden] {
  display: none !important;
}

.mw-form-wrap {
  margin-top: 1.35rem;
  animation: mw-in 0.35s ease both;
}

@keyframes mw-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mw-help {
  margin: 0 0 0.95rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--mw-gold);
  background: rgba(184, 149, 74, 0.08);
  color: var(--mw-ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.mw-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border: 1px solid var(--mw-line);
  border-radius: 12px;
  background: #fff;
}

.mw-fit-btn {
  min-height: 2.5rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mw-navy);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.mw-fit-btn.is-selected {
  background: var(--mw-navy);
  color: #fff;
}

.mw-section {
  margin-bottom: 1.15rem;
  animation: mw-in 0.3s ease both;
}

.mw-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.mw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.mw-field {
  display: grid;
  gap: 0.2rem;
  padding: 0.45rem 0.5rem 0.5rem;
  border: 1px solid var(--mw-line);
  border-radius: 10px;
  background: #fff;
}

.mw-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 1.35rem;
}

.mw-field-name {
  min-width: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mw-muted);
  line-height: 1.2;
  cursor: pointer;
}

.mw-field-name .mw-req {
  color: var(--mw-gold);
}

.mw-play {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--mw-line);
  border-radius: 999px;
  background: var(--mw-navy);
  color: #fff;
  cursor: pointer;
  line-height: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mw-play:hover,
.mw-play:focus-visible {
  background: #1a2f4a;
  border-color: var(--mw-gold);
  outline: none;
  transform: scale(1.06);
}

.mw-play svg {
  display: block;
  margin-left: 1px;
}

.mw-field input {
  width: 100%;
  border: 0;
  padding: 0.15rem 0 0;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mw-navy);
  background: transparent;
}

.mw-field input:focus {
  outline: none;
}

.mw-field:focus-within {
  border-color: var(--mw-gold);
  box-shadow: 0 0 0 1px var(--mw-gold);
}

.mw-field.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.25);
}

.mw-name {
  display: grid;
  gap: 0.35rem;
  margin: 0.35rem 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.mw-optional {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #8a8f98;
}

.mw-name input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--mw-line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mw-navy);
  text-transform: none;
  letter-spacing: 0;
}

.mw-name input:focus {
  outline: none;
  border-color: var(--mw-gold);
  box-shadow: 0 0 0 1px var(--mw-gold);
}

.mw-error {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(180, 35, 24, 0.08);
  color: #8a1c14;
  font-size: 0.9rem;
  font-weight: 700;
}

.mw-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.mw-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.mw-cta[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.mw-cta-note {
  margin: 0.55rem 0 0;
  text-align: center;
  color: var(--mw-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.mw-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: min(var(--mw-max), calc(100% - 28px));
  margin: 0 auto 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mw-line);
  color: var(--mw-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.mw-foot a {
  color: var(--mw-navy);
  font-weight: 800;
  text-decoration: none;
}

/* Video overlay — same pattern as configurator */
.mw-video {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.mw-video[hidden] {
  display: none !important;
}

.mw-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, 0.72);
}

.mw-video-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #0f1724;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  animation: mw-in 0.25s ease both;
}

.mw-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
}

.mw-video-title {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mw-video-close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.mw-video-close:hover,
.mw-video-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.mw-video-el {
  display: block;
  width: 100%;
  max-height: min(70vh, 420px);
  background: #000;
}

body.mw-video-open {
  overflow: hidden;
}

@media (max-width: 420px) {
  .mw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mw-garment {
    min-height: 4.1rem;
    padding: 0.75rem 0.55rem;
  }

  .mw-garment strong {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mw-form-wrap,
  .mw-section,
  .mw-video-panel,
  .mw-garment,
  .mw-cta,
  .mw-play {
    animation: none !important;
    transition: none !important;
  }
}


/* Height / weight / note */
.mw-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.1rem 0 0.85rem;
}
.mw-req {
  color: #b42318;
  font-weight: 800;
}
.mw-name textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--mw-line);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  color: var(--mw-ink);
  background: #fff;
  resize: vertical;
  min-height: 5.5rem;
}
.mw-name textarea:focus {
  outline: 2px solid rgba(201, 164, 92, 0.45);
  border-color: rgba(201, 164, 92, 0.7);
}
.mw-name.is-invalid input,
.mw-name.is-invalid textarea {
  border-color: #b42318;
  background: #fff5f5;
}
.mw-note {
  display: block;
  margin-top: 0.85rem;
}
@media (max-width: 420px) {
  .mw-meta {
    grid-template-columns: 1fr;
  }
}

/* Premium checkout iframe embed */
body.mw-embed .topbar,
body.mw-embed .site-footer,
body.mw-embed .path-switch { display: none !important; }
body.mw-embed { background: #fff; }
body.mw-embed .mw-main { padding-top: 0.35rem; max-width: 720px; margin: 0 auto; }
body.mw-embed .mw-hero { padding-bottom: 0.5rem; }
body.mw-embed .mw-hero h1 { font-size: 1.6rem; }
