/* Eva+Avo — account, customers, cart page, 404, password skins (owned by account area).
   Loaded site-wide from layout/theme.html (and layout/password.html) after eva.css. */

/* ------------------------------------------------- Shared page helpers -- */

/* P3 Heading 1 — Cormorant Garamond 500, 84/93, -1% (About, Contact, Sign in heroes) */
.eva-hero-title {
  margin: 0;
  font-family: var(--eva-serif);
  font-weight: 500;
  font-size: clamp(40px, 4.375vw, 84px);
  line-height: 1.107;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Breadcrumb — Montserrat 14/24 */
.eva-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.01em;
}
.eva-crumbs a.eva-crumbs__link { color: inherit; text-decoration: none; opacity: 0.8; }
.eva-crumbs a.eva-crumbs__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.eva-crumbs__sep { opacity: 0.3; }
.eva-crumbs__current { font-weight: 700; }

/* Short centred rule under headings (Figma Vector 258, 60px) */
.eva-rule { display: block; width: 60px; height: 1px; margin-top: 6px; background: currentColor; }

/* Monochrome icon from an SVG file: style="--eva-icon: url(...)" */
.eva-mask-icon {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--eva-icon) center / contain no-repeat;
  mask: var(--eva-icon) center / contain no-repeat;
}

.eva-field-label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ------------------------------------------- Orion customer re-theme -- */
/* .eva-acc maps Orion's colour-scheme variables to the Eva palette and
   restyles Orion fields/buttons as hairline inputs + Eva buttons. */

.eva-acc,
.eva-acc[class*="color-"],
.eva-acc [class*=" color-"],
.eva-acc [class^="color-"] {
  --color-background: 255, 248, 236;
  --color-page-background: 255, 248, 236;
  --color-text: 43, 70, 51;
  --color-light-text: 43, 70, 51;
  --color-entry-line: 43, 70, 51;
  --color-button-background: 43, 70, 51;
  --color-button-text: 255, 248, 236;
  --color-button-secondary-background: 255, 248, 236;
  --color-button-secondary-text: 43, 70, 51;
  --color-button-secondary-border: 43, 70, 51;
  --color-button-text-link: 43, 70, 51;
  --color-error-message: 179, 38, 30;
  --input-border-opacity: 20%;
  --input-border-radius: 0px;
  --button-border-radius: 0px;
  --button-border-thickness: 2px;
  --button-border-opacity: 100%;
  --sort-title-font: var(--eva-serif);
  --sort-body-font: var(--eva-sans);
  background-color: var(--eva-crema);
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
}

/* Fields: underline only */
.eva-acc .field { margin-block-end: 24px; background: transparent; }
.eva-acc .field::after {
  border-width: 0 0 1px;
  border-color: var(--eva-line);
  border-radius: 0;
  box-shadow: none;
}
.eva-acc .field:hover::after,
.eva-acc .field:focus-within::after { border-width: 0 0 1px; border-color: var(--eva-bosque); }
.eva-acc .field--error::after { border-color: var(--eva-error); }
.eva-acc .field__input {
  padding: 22px 0 8px;
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.eva-acc .field__input:-webkit-autofill { box-shadow: 0 0 0 1000px var(--eva-crema) inset !important; }
.eva-acc .field__label {
  inset-inline-start: 0;
  color: var(--eva-bosque);
  font-size: 14px;
  letter-spacing: 0.01em;
  opacity: 0.8;
}
.eva-acc .field__input:focus ~ .field__label,
.eva-acc .field__input:not(:placeholder-shown) ~ .field__label,
.eva-acc .field__input:-webkit-autofill ~ .field__label {
  font-weight: 500;
  text-transform: uppercase;
  opacity: 1;
}
.eva-acc .field__input.textarea { margin-block: 24px 6px; padding-inline: 0; }
.eva-acc .field__suffix { padding-inline-end: 0; color: var(--eva-bosque); }
.eva-acc select.field__input { cursor: pointer; }

/* Buttons */
.eva-acc .button:not(.button--link, .button--icon) {
  min-height: 58px;
  padding: 14px 32px;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--eva-sans);
  font-weight: 400;
  font-size: clamp(15px, 0.9375vw, 18px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eva-acc .button:not(.button--link, .button--icon)::after { box-shadow: 0 0 0 2px rgb(var(--color-button-background)); border-radius: 0; }
.eva-acc .button:not([disabled], .button--icon, .button--link):hover { background-color: var(--eva-green); }
.eva-acc .button--secondary:not(.button--link)::after { box-shadow: 0 0 0 2px var(--eva-bosque); }
.eva-acc .button--secondary:not([disabled], .button--icon, .button--link):hover {
  background-color: var(--eva-bosque);
  color: var(--eva-crema);
}
.eva-acc .button--link {
  font-family: var(--eva-link-font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-underline-offset: 4px;
}
.eva-acc .field-checkbox .checkbox { border-radius: 0; }

/* Tabs (email / phone switch) */
.eva-acc .customer__tab { justify-content: flex-start; }
.eva-acc .customer__tab span { font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ------------------------------------------------ Auth split layout -- */
/* Sign in (Figma 625:17913): 5/12 photo flush left, 7/12 form column. */

.eva-auth {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(24px, 2.9vw, 56px);
  min-height: clamp(560px, 37.5vw, 720px);
  padding-right: var(--eva-gutter);
}
.eva-auth--no-image { grid-template-columns: minmax(0, 1fr); padding-inline: var(--eva-gutter); }
.eva-auth--no-image .eva-auth__body { justify-self: center; width: min(100%, 672px); }
.eva-auth__media { min-height: 100%; background: #f5f3f0; }
.eva-auth__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(40px, 6.4vw, 123px) clamp(0px, 2.5vw, 48px);
}
.eva-auth__body > * { width: 100%; max-width: 576px; }
.eva-auth .customer {
  width: 100%;
  max-width: 576px;
  margin: 0;
  padding: 0;
  background: transparent;
}
.eva-auth .customer-container,
.eva-auth .customers-forgot-password__container,
.eva-auth .customer-company__container { background: transparent; }
.eva-auth .page-width { max-width: none; padding: 0; }

/* Titles: Eva hero heading, left aligned (Orion titles inherit the look) */
.eva-auth__head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 32px; }
.eva-auth .customer__title,
.eva-auth .customers-forgot-password__title,
.eva-auth .customer-company__title {
  margin: 0 0 24px;
  font-family: var(--eva-serif);
  font-weight: 500;
  font-size: clamp(40px, 4.375vw, 84px);
  line-height: 1.107;
  letter-spacing: -0.01em;
  text-align: left;
  text-transform: none;
}
.eva-auth .eva-auth__head .customer__title { margin: 0; }
.eva-auth__sub {
  max-width: 448px;
  margin: 0;
  font-size: var(--eva-fs-eyebrow);
  line-height: 1.667;
  letter-spacing: 0.05em;
}
.eva-auth .text-center:not(button) { text-align: left; }
.eva-auth .customers-forgot-password__shown-in-email,
.eva-auth .customers-forgot-password__shown-in-mobile { justify-content: flex-start; }

/* Labelled fields (login): label above, placeholder visible, icon on the left */
.eva-auth__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.eva-auth__field .field { margin-block-end: 0; }
.eva-auth__label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eva-auth__label {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.eva-auth__field .field__label { display: none; }
.eva-auth__field .field__input { padding: 15px 16px 16px 0; }
.eva-auth__field .field__input::placeholder { color: var(--eva-bosque); opacity: 0.8; }
.eva-auth__field--mail .field__input,
.eva-auth__field--lock .field__input { padding-left: 44px; }
.eva-auth__field--mail .field__inner::before,
.eva-auth__field--lock .field__inner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 15px;
  height: 16px;
  background: currentColor;
  transform: translateY(-50%);
  -webkit-mask: var(--eva-icon-mail) center / contain no-repeat;
  mask: var(--eva-icon-mail) center / contain no-repeat;
}
.eva-auth__field--lock .field__inner::before {
  width: 12px;
  -webkit-mask-image: var(--eva-icon-lock);
  mask-image: var(--eva-icon-lock);
}
.eva-auth__field--lock .field__suffix { padding-inline-end: 14px; }

a.eva-auth__link,
.eva-auth a.eva-auth__link {
  color: var(--eva-bosque);
  font-family: var(--eva-link-font);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.eva-auth .eva-auth__submit { width: 100%; margin-top: 8px; }
.eva-auth .eva-auth__submit [data-step-type] { display: inline-flex; align-items: center; gap: 12px; }
.eva-auth .eva-auth__submit .hidden { display: none; }
.eva-auth__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding-top: 40px;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.01em;
}
.eva-auth .customer__extra,
.eva-auth .customer__jump-link { justify-content: flex-start; gap: 24px; }
.eva-auth .customer-login__third-desc span { background: var(--eva-crema); }

@media (max-width: 959px) {
  .eva-auth { grid-template-columns: 1fr; min-height: 0; padding-inline: 0; }
  .eva-auth__media { aspect-ratio: 16 / 10; min-height: 0; }
  .eva-auth__body { padding: 32px var(--eva-gutter) 16px; }
  .eva-auth__head { padding-bottom: 24px; }
}

/* --------------------------------------------------- Account pages -- */

.eva-acc-page { padding-bottom: var(--eva-section-y-sm); }
.eva-acc-page.page-width,
.eva-acc-page .page-width { max-width: var(--eva-page); padding-inline: var(--eva-gutter); }
.eva-acc-head { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 32px; }

.eva-acc .customer-navbar {
  margin-block-end: 40px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--eva-line);
}
.eva-acc .customer-navbar__menu-item {
  padding: 10px 0;
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.5;
}
.eva-acc .customer-navbar__menu-item.active { border-bottom: 2px solid var(--eva-bosque); opacity: 1; }

/* Cards (account overview) */
.eva-acc .card {
  padding-inline: clamp(16px, 2.0833vw, 40px);
  border: 1px solid var(--eva-line);
  border-radius: 0;
  background: transparent;
}
.eva-acc .card__title { border-block-end-color: var(--eva-line); }
.eva-acc .card__title-text,
.eva-acc .card__title .body2,
.eva-acc .panel__title {
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: var(--eva-fs-h3);
  line-height: 1.2;
  letter-spacing: 0;
}

/* Order list */
.eva-acc .customer-order-item {
  border: 1px solid var(--eva-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.eva-acc .customer-order-item:hover { border-color: var(--eva-bosque); box-shadow: none; }
.eva-acc .customer-order-item__head { border-bottom-color: var(--eva-line); background: rgba(43, 70, 51, 0.04); }
.eva-acc .customer-order-item__seq,
.eva-acc .order-detail__seq {
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: var(--eva-fs-h4);
  letter-spacing: 0;
}
.eva-acc .customer-order-item__price-total { font-size: 18px; letter-spacing: 0.05em; }
.eva-acc .customer-order-list__empty .empty-title {
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: var(--eva-fs-h3);
}

/* Order detail */
.eva-acc .order-detail__panel,
.eva-acc .order-detail__content,
.eva-acc .order-detail__cost { border-color: var(--eva-line); border-radius: 0; background: transparent; }
.eva-acc .order-detail__product-table thead { background: rgba(43, 70, 51, 0.04); }
.eva-acc .order-detail__product-table th,
.eva-acc .order-detail__product-table td { border-color: var(--eva-line); }
.eva-acc .product-item__title { font-family: var(--eva-serif); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: 0; }

/* Addresses */
.eva-acc .customers-addresses__title {
  margin-bottom: 32px;
  font-family: var(--eva-serif);
  font-weight: 500;
  font-size: clamp(36px, 3.333vw, 64px);
  line-height: 1.107;
  letter-spacing: -0.01em;
}
.eva-acc .customers-addresses-section .field::after { border-width: 0 0 1px; }

/* Messages / empty states */
.eva-acc .customer-message-bar__item { border: 1px solid var(--eva-line); border-radius: 0; background: rgba(43, 70, 51, 0.04); }

@media (max-width: 959px) {
  .eva-acc-head { padding: 16px 0 20px; }
  .eva-acc .customer-navbar { margin-block-end: 24px; }
}

/* ------------------------------------------------ Password chrome -- */

.password-page { background: var(--eva-crema); color: var(--eva-bosque); font-family: var(--eva-sans); }
.password-page .main-password__header {
  --color-text: 43, 70, 51;
  min-height: 80px;
  padding-inline: var(--eva-gutter);
  max-width: none;
  background: var(--eva-crema);
  color: var(--eva-bosque);
}
.password-page .main-password__header::before { background-color: var(--eva-line); }
.eva-password-logo { display: inline-flex; color: var(--eva-bosque); }
.eva-password-logo .eva-logo { width: clamp(120px, 9.4vw, 180px); height: auto; }
.password-page .password-modal__trigger {
  font-family: var(--eva-link-font);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.password-page .password-modal .modal__content {
  --color-background: 255, 248, 236;
  --color-text: 43, 70, 51;
  --color-button-background: 43, 70, 51;
  --color-button-text: 255, 248, 236;
  background: var(--eva-crema);
}
.password-page .password-modal__detail-heading {
  font-family: var(--eva-serif);
  font-weight: 500;
  font-size: var(--eva-fs-h1);
  letter-spacing: -0.01em;
}
/* Footer: full-width Bosque band like the site footer (the Orion section was boxed in page-width). */
.password-page .main-password__footer {
  max-width: none;
  margin: 0;
  gap: 16px;
  padding: 32px var(--eva-gutter);
  background: var(--eva-bosque);
  color: var(--eva-crema);
  font-size: 14px;
  line-height: 24px;
}
.password-page .main-password__footer::before { display: none; }
.password-page .main-password__footer .footer__social-medias { gap: 12px; color: var(--eva-crema); }
.password-page .main-password__footer .footer__social-medias a { color: inherit; }
.password-page .main-password__footer .footer__tip { font-size: 14px; line-height: 24px; letter-spacing: 0.01em; }
.password-page .main-password__footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Focus: keep the Eva underline (darkens on focus) — no square browser/Orion outline on the input. */
.eva-acc .field__input:focus,
.eva-acc .field__input:focus-visible { outline: none; box-shadow: none; }
.eva-acc .field:has(.field__input:focus-visible)::after { border-width: 0 0 2px; border-color: var(--eva-bosque); }
/* Floating label: readable 11px when raised (Orion scales it to 0.7 → 9.8px). */
.eva-acc .field__input:focus ~ .field__label,
.eva-acc .field__input:not(:placeholder-shown) ~ .field__label,
.eva-acc .field__input:-webkit-autofill ~ .field__label { transform: translateY(-21px) scale(0.786); transform-origin: left center; }
/* Sign in uses labels above the fields: never show Orion's floating label there. */
.eva-acc .eva-auth__field .field__label { display: none !important; }
/* Forgot password: same column width as sign in. */
.eva-auth .customers-forgot-password-section { width: 100%; max-width: 576px; }
