/* MejorStyle 2026 — purpose-led fashion storefront
   (green / black / white brand palette — --purpose-gold/coral/blue kept as
   var names since every rule below already references them; only the
   values moved to a green family so nothing needed renaming call sites.) */
:root {
  --purpose-ink: #ffffff;
  --purpose-muted: #a3aca6;
  --purpose-gold: #2fae68;
  --purpose-coral: #4fd48c;
  --purpose-blue: #2fae68;
  --purpose-green: #6fe0a3;
  --purpose-line: rgba(255,255,255,.12);
  --purpose-panel: rgba(18,18,18,.78);
  --purpose-ease: cubic-bezier(.2,.78,.22,1);
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 60% 36% at 12% 4%, rgba(47,174,104,.09), transparent 72%),
    radial-gradient(ellipse 45% 30% at 92% 12%, rgba(47,174,104,.05), transparent 72%),
    var(--ms-bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.purpose-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 100%;
  height: 3px;
  transform: scaleX(var(--purpose-progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg,var(--purpose-gold),var(--purpose-coral));
  box-shadow: 0 0 18px rgba(47,174,104,.55);
}

/* Header */
.ms-nav { border-bottom-color: var(--purpose-line); transition: height .25s ease, background .25s ease, box-shadow .25s ease; }
.ms-nav.is-scrolled { background: rgba(8,8,8,.985); box-shadow: 0 18px 50px -34px rgba(0,0,0,.95); }
.ms-nav__logo { align-items: flex-start; }
.ms-nav__logo img { height: 29px; }
.ms-nav__tagline { color: var(--purpose-muted); letter-spacing: .12em; }
.ms-nav__link { font-size: .72rem; letter-spacing: .1em; }
.ms-nav__link::after { background: linear-gradient(90deg,var(--purpose-coral),var(--purpose-gold)); }
.ms-nav__icon-btn,.ms-nav__hamburger { border-radius: 7px; }
.ms-mega { border-color: var(--purpose-line); background: rgba(12,12,12,.975); box-shadow: 0 30px 80px -30px #000; }

/* Editorial hero */
.ms-hero-purpose {
  position: relative;
  min-height: min(790px,calc(100vh - var(--ms-nav-h)));
  display: grid;
  grid-template-columns: minmax(0,.86fr) minmax(520px,1.14fr);
  align-items: center;
  gap: clamp(34px,6vw,90px);
  max-width: var(--ms-max-w);
  margin: 0 auto;
  padding: clamp(60px,9vw,118px) var(--ms-pad) clamp(70px,8vw,108px);
  overflow: hidden;
}
.ms-hero-purpose::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  left: -220px;
  top: 8%;
  border: 1px solid rgba(47,174,104,.14);
  border-radius: 50%;
}
.ms-hero-copy { position: relative; z-index: 4; }
.ms-hero-copy .ms-hero__eyebrow { justify-content: flex-start; }
.ms-hero-copy .ms-hero__eyebrow::after { display: none; }
.ms-hero-copy .ms-hero__title { max-width: 11ch; margin: 0 0 1.35rem; text-align: left; font-size: clamp(3.6rem,6.8vw,7.5rem); line-height: .91; letter-spacing: -.055em; }
.ms-hero-copy .ms-hero__title em { color: var(--purpose-gold); }
.ms-hero-copy .ms-hero__sub { max-width: 54ch; margin: 0 0 2rem; text-align: left; }
.ms-hero-copy .ms-hero__actions { justify-content: flex-start; }
.ms-purpose-prompt { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.ms-purpose-prompt a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 9px; border: 1px solid var(--purpose-line); border-radius: 999px; color: var(--purpose-muted); font-size: .7rem; font-weight: 700; transition: color .2s,border-color .2s,transform .2s; }
.ms-purpose-prompt a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--purpose-gold); }
.ms-purpose-prompt a:hover { color: var(--purpose-ink); border-color: rgba(47,174,104,.45); transform: translateY(-2px); }

.ms-lookbook {
  position: relative;
  min-height: 600px;
  isolation: isolate;
  perspective: 1200px;
}
.ms-lookbook::before {
  content: "";
  position: absolute;
  inset: 12% 7% 5% 9%;
  border: 1px solid rgba(47,174,104,.2);
  border-radius: 50%;
  animation: purposeOrbit 18s linear infinite;
}
.ms-lookbook-card { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: #181818; box-shadow: 0 35px 80px -34px rgba(0,0,0,.9); }
.ms-lookbook-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: transform .8s var(--purpose-ease),filter .4s ease; }
.ms-lookbook-card:hover img { transform: scale(1.055); filter: saturate(1); }
.ms-lookbook-card--main { inset: 3% 17% 4% 19%; z-index: 2; border-radius: 4px 34px 4px 4px; transform: rotate(1.5deg); }
.ms-lookbook-card--shoe { width: 37%; height: 35%; left: 0; bottom: 1%; z-index: 4; border-radius: 4px; transform: rotate(-6deg); }
.ms-lookbook-card--work { width: 31%; height: 38%; right: 0; top: 4%; z-index: 3; border-radius: 24px 4px 4px 4px; transform: rotate(5deg); }
.ms-lookbook-label { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 7px 10px; background: rgba(8,8,8,.78); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ms-lookbook-index { position: absolute; right: 2%; bottom: 10%; z-index: 5; color: rgba(255,255,255,.28); font-family: var(--ms-font-display); font-size: 6rem; font-style: italic; line-height: 1; }
@keyframes purposeOrbit { to { transform: rotate(360deg); } }

/* Intent runway */
.ms-gender-bar { position: relative; z-index: 4; background: rgba(13,13,13,.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ms-gender-bar__inner { justify-content: center; }
.ms-purposes-section { padding: clamp(72px,9vw,124px) 0; }
.ms-purposes-header { margin-bottom: 3.5rem; }
.ms-section-title { font-size: clamp(2.2rem,4.4vw,4.5rem); letter-spacing: -.045em; }
.ms-purpose-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.ms-purpose-card { min-height: 250px; align-items: flex-start; justify-content: flex-end; text-align: left; border-radius: 4px; padding: 22px 18px; background: radial-gradient(320px circle at var(--purpose-x,50%) var(--purpose-y,-10%),rgba(47,174,104,.13),transparent 46%),linear-gradient(155deg,rgba(255,255,255,.055),rgba(255,255,255,.012)); }
.ms-purpose-card:nth-child(2n) { transform: translateY(28px); }
.ms-purpose-card:hover { transform: translateY(-8px); }
.ms-purpose-card:nth-child(2n):hover { transform: translateY(18px); }
.ms-purpose-icon { width: 48px; height: 48px; margin: 0 0 auto; border-radius: 4px; background: rgba(47,174,104,.1); color: var(--purpose-gold); }
.ms-purpose-icon svg { width: 24px; height: 24px; }
.ms-purpose-card__name { font-family: var(--ms-font-display); font-size: 1.25rem; }
.ms-purpose-card__desc { min-height: 3.5em; }

/* Shared cards and commerce surfaces */
.ms-product-card,.ms-shop-promo-card,.ms-filter-panel,.ms-cart-summ,.ms-co__panel,.ms-co__summ,.ms-pdp__main-wrap,.ms-pdp__accordion { border-radius: 5px !important; border-color: var(--purpose-line) !important; background: radial-gradient(420px circle at var(--purpose-x,50%) var(--purpose-y,-10%),rgba(47,174,104,.09),transparent 46%),linear-gradient(155deg,rgba(255,255,255,.045),rgba(255,255,255,.012)) !important; }
.ms-product-card { position: relative; box-shadow: 0 26px 65px -48px #000; }
.ms-product-card::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg,var(--purpose-gold),var(--purpose-coral)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--purpose-ease); }
.ms-product-card:hover::after { transform: scaleX(1); }
.ms-product-card:hover { border-color: rgba(47,174,104,.35) !important; transform: translateY(-9px); }
.ms-product-card__img-wrap { aspect-ratio: 4/5; }
.ms-product-card__body { padding: 1rem 1rem 1.2rem; }
.ms-product-card__name { font-family: var(--ms-font-display); font-size: 1.05rem; }
.ms-btn { border-radius: 5px; }
.ms-btn--primary { background: var(--purpose-gold); color: #04140b; }
.ms-btn--primary:hover { background: var(--purpose-coral); }
.ms-input,.ms-select,.ms-newsletter-input,.ms-cart-promo input { border-radius: 5px !important; }
.ms-shop-page,.ms-cart-page,.ms-co,.ms-pdp { padding-top: clamp(38px,5vw,70px); }
.ms-shop-heading__title,.ms-pdp__name { font-size: clamp(2.4rem,5vw,5rem); line-height: .98; letter-spacing: -.045em; }
.ms-shop-promo-card { min-height: 140px; justify-content: flex-end; }
.ms-filter-link.active { color: var(--purpose-gold); }
.ms-pdp__layout { gap: clamp(28px,5vw,72px); }
.ms-pdp__info { position: sticky; top: calc(var(--ms-nav-h) + 28px); }
.ms-cart-summ,.ms-co__summ { box-shadow: 0 28px 70px -48px #000; }
.ms-co__panel-title svg { color: var(--purpose-gold); }

/* Trust and footer */
.ms-trust-bar { border-radius: 5px; background: transparent; }
.ms-trust-icon { border-radius: 50%; background: transparent; color: var(--purpose-gold); }
.ms-newsletter { border-radius: 5px; background: linear-gradient(110deg,rgba(47,174,104,.08),rgba(47,174,104,.04)); }
.ms-footer { border-top-color: var(--purpose-line); background: #070707; }
.ms-footer__brand-logo { height: 34px; }

/* Motion */
.purpose-reveal { opacity: 0; transform: translateY(28px); clip-path: inset(0 0 8% 0); transition: opacity .7s var(--purpose-ease),transform .7s var(--purpose-ease),clip-path .7s var(--purpose-ease); transition-delay: var(--purpose-delay,0ms); }
.purpose-reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0); }

@media (max-width:1100px) {
  .ms-hero-purpose { grid-template-columns: 1fr; }
  .ms-hero-copy .ms-hero__title,.ms-hero-copy .ms-hero__sub { max-width: 760px; }
  .ms-lookbook { width: min(760px,100%); margin-inline: auto; }
  .ms-purpose-grid { grid-template-columns: repeat(3,1fr); }
  .ms-purpose-card:nth-child(2n) { transform: none; }
  .ms-purpose-card:nth-child(2n):hover { transform: translateY(-8px); }
}
@media (max-width:700px) {
  .ms-hero-purpose { min-height: 0; padding-top: 58px; }
  .ms-hero-copy .ms-hero__title { font-size: clamp(3.2rem,15vw,4.6rem); }
  .ms-purpose-prompt { display: none; }
  .ms-lookbook { min-height: 410px; }
  .ms-lookbook-card--main { inset: 1% 8% 2% 12%; }
  .ms-lookbook-card--shoe { width: 42%; height: 32%; }
  .ms-lookbook-card--work { width: 36%; height: 34%; }
  .ms-lookbook-index { font-size: 4rem; }
  .ms-purpose-grid { grid-template-columns: repeat(2,1fr); }
  .ms-purpose-card { min-height: 220px; }
  .ms-gender-bar__inner { justify-content: flex-start; }
  .ms-pdp__info { position: static; }
  .ms-product-card__quick-add { transform: translateY(0); padding: .6rem; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important; }
  .purpose-reveal { opacity:1;transform:none;clip-path:none; }
}