/* ==========================================================================
   Design 2 — Écrin
   The keepsake box, turned into a site. Burgundy ground, deep-wine recesses,
   headlines in Giflika set in the gold of the logo. Anything to do with buying
   (bag, checkout, size guide) arrives on ivory, like the tissue inside the box.
   ========================================================================== */

.ecrin {
  --bg: var(--mk-burgundy);
  --deep: var(--mk-wine);
  --ink: var(--mk-ivory);
  --soft: rgba(246, 241, 234, 0.8);
  --gold: var(--mk-champagne);
  --line: rgba(214, 197, 154, 0.3);
  --paper: var(--mk-ivory);
  --paper-ink: #000;
  --paper-soft: var(--mk-stone-deep);
  --paper-line: rgba(94, 29, 32, 0.22);
  --gutter: clamp(18px, 4.2vw, 68px);
  --bar: 76px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
}
.ecrin :focus-visible { outline: 1px solid var(--mk-gold-a); outline-offset: 3px; }
.ecrin .e-sheet :focus-visible, .ecrin .e-modal :focus-visible, .ecrin .e-tissue :focus-visible { outline-color: var(--mk-burgundy); }

/* gold foil type: the logo's gradient, used only on display type */
.foil {
  background-image: linear-gradient(100deg, #DAC775 0%, #BC8B31 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #DAC775;
  padding-bottom: 0.12em;
}
.foil--sweep {
  background-image: linear-gradient(100deg, #DAC775 0%, #BC8B31 38%, #F4E9B8 50%, #BC8B31 62%, #DAC775 100%);
  background-size: 260% 100%; background-position: 0 0;
  animation: e-sweep 2.6s cubic-bezier(0.3, 0.1, 0.2, 1) 0.25s 1 backwards;
}
@keyframes e-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (forced-colors: active) { .foil { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; } }

.e-h1 { font-family: var(--f-display); font-size: clamp(44px, 6.6vw, 104px); line-height: 1; letter-spacing: -0.005em; }
.e-h2 { font-family: var(--f-display); font-size: clamp(34px, 4.2vw, 62px); line-height: 1.04; }

.ecrin .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 4px 36px 0;
  background: linear-gradient(100deg, #DAC775, #BC8B31); color: var(--mk-wine);
  font-family: var(--f-head); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: filter 0.25s;
}
.ecrin .btn:hover { filter: brightness(1.07); }
.ecrin .btn:disabled { background: rgba(214, 197, 154, 0.22); color: rgba(246, 241, 234, 0.65); filter: none; }
.ecrin .btn--wide { width: 100%; }
.ecrin .btn--dark { background: var(--mk-burgundy); color: var(--mk-ivory); }
.ecrin .btn--dark:hover { filter: none; background: var(--mk-wine); }

.e-textlink { font-family: var(--f-head); font-size: 13.5px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--gold); padding-bottom: 3px; border-bottom: 1px solid currentColor; transition: color 0.2s; }
.e-textlink:hover { color: var(--mk-gold-a); }

/* gold keyline set inside a picture, as if foil-blocked onto it */
.e-framed { position: relative; display: block; }
.e-framed::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(218, 199, 117, 0.72); pointer-events: none; }

/* ---- header ------------------------------------------------------------ */
.e-header { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--bar); padding-inline: var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.e-header__side { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.e-header__side--end { justify-content: flex-end; }
.e-word { font-family: var(--f-head); font-size: 13.5px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink); padding: 10px 0 7px; transition: color 0.2s; }
.e-word:hover { color: var(--mk-gold-a); }
.e-word [data-bag-count]::before, .e-word [data-saved-count]::before { content: "("; }
.e-word [data-bag-count]::after, .e-word [data-saved-count]::after { content: ")"; }
.e-word [data-empty] { display: none; }
.e-logo .mk-mark { width: clamp(168px, 17vw, 236px); }

/* ---- hero -------------------------------------------------------------- */
.e-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); min-height: calc(100vh - var(--bar)); }
.e-hero__text { align-self: end; padding: var(--gutter); padding-bottom: clamp(40px, 8vh, 96px); display: grid; gap: 26px; }
.e-hero__title { font-family: var(--f-display); font-size: clamp(52px, min(8.6vw, 19vh), 138px); line-height: 0.96; letter-spacing: -0.01em; }
.e-hero__text p { max-width: 31em; color: var(--soft); font-size: 16px; }
.e-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 6px; }
.e-hero__img { min-height: 420px; background: var(--deep); }
.e-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.e-hero__cap { position: absolute; left: 30px; bottom: 30px; padding: 7px 14px 5px; background: var(--bg); font-family: var(--f-head); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.e-hero__cap .mk-price { font-family: var(--f-body); letter-spacing: 0.02em; }

/* ---- rail -------------------------------------------------------------- */
.e-rail { background: var(--deep); padding-block: clamp(56px, 7vw, 108px); }
.e-rail__head, .e-block__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding-inline: var(--gutter); margin-bottom: clamp(28px, 3.6vw, 48px); }
.e-rail__head p { color: var(--soft); margin-top: 4px; }
.e-rail__nav { display: flex; align-items: center; gap: 10px; }
.e-rail__nav .e-textlink { margin-right: 14px; }
.e-rail__nav button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); transition: border-color 0.2s, color 0.2s; }
.e-rail__nav button:hover { border-color: var(--mk-gold-a); color: var(--mk-gold-a); }
.e-rail__track { display: flex; gap: clamp(14px, 1.8vw, 28px); overflow-x: auto; padding: 0 var(--gutter) 22px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: rgba(214, 197, 154, 0.45) transparent; }
.e-rail__track .e-card { flex: 0 0 clamp(236px, 23.5vw, 344px); scroll-snap-align: start; }

/* ---- card -------------------------------------------------------------- */
.e-card { min-width: 0; }
.e-card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: rgba(0, 0, 0, 0.25); }
.e-card__media > a { display: block; height: 100%; }
.e-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; }
.e-card__media img.alt { opacity: 0; }
.e-card__media::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(218, 199, 117, 0.8); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.e-card:focus-within .e-card__media::after, .e-card[data-quick] .e-card__media::after { opacity: 1; }
.e-card__badge { position: absolute; left: 18px; top: 18px; padding: 6px 10px 3px; background: var(--mk-champagne); color: var(--mk-wine); font-family: var(--f-head); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.2; }
.e-card__save { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.35)); }
.e-card__save[aria-pressed="true"] .mk-icon, .e-pdp__save[aria-pressed="true"] .mk-icon { fill: var(--mk-gold-a); stroke: var(--mk-gold-a); }
.e-card__info { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; padding-top: 14px; }
.e-card__name { font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; }
.e-card__name a:hover { color: var(--mk-gold-a); }
.e-card__price { align-self: center; font-size: 14px; font-weight: 400; color: var(--gold); }
.e-card__meta, .e-card__quick { grid-area: 2 / 1 / 3 / -1; min-height: 34px; display: flex; align-items: center; transition: opacity 0.25s; }
.e-card__meta { font-size: 13px; color: var(--soft); }
/* the faded label would otherwise form its own layer above the size buttons and take their clicks */
.e-card__quick { position: relative; z-index: 1; opacity: 0; pointer-events: none; }
.e-card__add { display: none; grid-area: 2 / 2; justify-self: end; align-self: center; z-index: 1; font-family: var(--f-head); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid; }
.e-card[data-quick] .e-card__meta, .e-card:focus-within .e-card__meta { opacity: 0; pointer-events: none; }
.e-card[data-quick] .e-card__quick, .e-card:focus-within .e-card__quick { opacity: 1; pointer-events: auto; }
.e-card[data-quick] .e-card__add { display: none; }
@media (hover: hover) {
  .e-card:hover .e-card__media img.alt, .e-card:hover .e-card__media::after { opacity: 1; }
  .e-card:hover .e-card__meta { opacity: 0; pointer-events: none; }
  .e-card:hover .e-card__quick { opacity: 1; pointer-events: auto; }
}
@media (hover: none) { .e-card__add { display: block; } }

.e-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.e-sizes .size { min-width: 36px; height: 30px; padding: 0 7px; border: 1px solid var(--line); font-size: 12px; font-weight: 400; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.e-sizes .size:hover:not(:disabled) { border-color: var(--mk-gold-a); color: var(--mk-gold-a); }
.e-sizes .size:disabled { opacity: 0.38; text-decoration: line-through; }
.e-sizes .size[aria-pressed="true"] { background: linear-gradient(100deg, #DAC775, #BC8B31); border-color: transparent; color: var(--mk-wine); }

.e-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2.4vw, 36px); padding-inline: var(--gutter); }
.e-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.e-empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: 22px; padding: 40px 0 80px; font-size: 17px; }

/* ---- quote, split, values, newsletter ---------------------------------- */
.e-quote { position: relative; min-height: min(78vh, 760px); display: grid; place-items: center; padding: 80px var(--gutter); overflow: hidden; }
.e-quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.9); }
.e-quote blockquote { position: relative; max-width: 13em; text-align: center; font-family: var(--f-display); font-size: clamp(34px, 5.4vw, 84px); line-height: 1.06; }

.e-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(28px, 6vw, 110px); padding: clamp(64px, 9vw, 140px) var(--gutter); }
.e-split__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.e-split__text { display: grid; gap: 20px; justify-items: start; max-width: 34em; }
.e-split__text p { color: var(--soft); }

.e-block { padding-block: 0 clamp(64px, 9vw, 140px); }

.e-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.e-values > div { padding: clamp(36px, 5vw, 72px) var(--gutter); }
.e-values > div + div { border-left: 1px solid var(--line); }
.e-values h2 { font-family: var(--f-display); font-size: clamp(26px, 2.5vw, 34px); line-height: 1.1; margin-bottom: 14px; }
.e-values p { color: var(--soft); font-size: 14.5px; }

.e-news { background: var(--deep); padding: clamp(64px, 9vw, 128px) var(--gutter); display: grid; justify-items: center; gap: 8px; text-align: center; }
.e-news > p { color: var(--soft); }
.ecrin .newsletter { display: flex; width: min(100%, 540px); margin-top: 26px; border-bottom: 1px solid var(--gold); }
.ecrin .newsletter input { flex: 1; min-width: 0; padding: 13px 0; background: transparent; border: 0; color: var(--ink); font-weight: 300; }
.ecrin .newsletter input::placeholder { color: rgba(246, 241, 234, 0.6); }
.ecrin .newsletter input:focus { outline: none; }
.ecrin .newsletter:focus-within { border-bottom-color: var(--mk-gold-a); box-shadow: 0 1px 0 var(--mk-gold-a); }
.ecrin .newsletter .btn { min-height: 46px; padding: 3px 0 0 20px; background: none; color: var(--mk-gold-a); }
.ecrin .newsletter.is-invalid { border-bottom-color: #F0A9A4; }
.ecrin .form-done { margin-top: 24px; max-width: 34em; }

/* ---- footer ------------------------------------------------------------ */
.e-footer { background: var(--deep); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 84px) var(--gutter) 28px; }
.e-footer__mark { display: block; width: 86px; margin: 0 auto clamp(40px, 5vw, 64px); }
.e-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 980px; margin: 0 auto; }
.e-footer h2 { font-family: var(--f-head); font-size: 14px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.e-footer li { margin-bottom: 6px; font-size: 14px; }
.e-footer li a:hover, .e-footer li button:hover { color: var(--mk-gold-a); }
.e-footer li button { font-weight: 300; }
.e-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 980px; margin: clamp(40px, 5vw, 64px) auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--soft); }

/* ---- panels ------------------------------------------------------------ */
.e-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(20, 4, 7, 0.62); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
body[data-open="bag"] .e-scrim, body[data-open="sizes"] .e-scrim, body[data-open="account"] .e-scrim { opacity: 1; pointer-events: auto; }

.e-sheet, .e-modal { background: var(--paper); color: var(--paper-ink); font-weight: 400; font-size: 14px; }
.e-sheet { position: fixed; top: 0; bottom: 0; right: 0; z-index: 60; width: min(480px, 100vw); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s 0.5s; }
body[data-open="bag"] .e-sheet { transform: none; visibility: visible; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.e-sheet__head { display: flex; align-items: baseline; justify-content: space-between; padding: 26px 30px 16px; }
.e-sheet__head h2 { font-family: var(--f-display); font-size: 36px; line-height: 1; color: var(--mk-burgundy); }
.e-close { font-family: var(--f-head); font-size: 13px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--mk-burgundy); border-bottom: 1px solid; padding-bottom: 2px; }
.e-sheet__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.e-lines { flex: 1; overflow-y: auto; padding: 0 30px; }
.e-line { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--paper-line); }
.e-line__img img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; }
.e-line__body { min-width: 0; display: grid; align-content: start; gap: 3px; }
.e-line__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.e-line__name { font-family: var(--f-display); font-size: 22px; line-height: 1.15; color: var(--mk-burgundy); }
.e-line__meta { font-size: 13px; color: var(--paper-soft); }
.e-line__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.e-qty { display: inline-flex; align-items: center; border: 1px solid var(--paper-line); }
.e-qty button { width: 34px; height: 34px; display: grid; place-items: center; }
.e-qty span { min-width: 22px; text-align: center; }
.e-line__remove { font-size: 12.5px; color: var(--paper-soft); text-decoration: underline; text-underline-offset: 3px; }
.e-line__remove:hover { color: var(--mk-burgundy); }
.e-bag__foot { padding: 22px 30px 30px; border-top: 1px solid var(--paper-line); display: grid; gap: 10px; }
.e-bag__total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-size: 26px; color: var(--mk-burgundy); }
.e-bag__total .mk-price { font-family: var(--f-body); font-size: 17px; color: var(--paper-ink); }
.e-bag__foot p { font-size: 13px; color: var(--paper-soft); margin-bottom: 8px; }
.e-bag__empty { margin: auto; padding: 40px 30px; display: grid; justify-items: center; gap: 22px; text-align: center; font-size: 16px; }

.e-menu, .e-search { position: fixed; inset: 0; z-index: 60; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; }
.e-menu { background: var(--deep); }
.e-search { background: var(--bg); }
body[data-open="menu"] .e-menu, body[data-open="search"] .e-search { opacity: 1; visibility: visible; transition: opacity 0.4s; }
.e-menu__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--bar); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.e-menu__bar .e-word { justify-self: start; }
.e-menu__logo { width: clamp(168px, 17vw, 236px); }
.e-menu__cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 6vw, 96px); padding: clamp(28px, 5vh, 64px) var(--gutter) 48px; align-items: start; }
.e-menu__nav { display: grid; }
.e-menu__nav a { font-family: var(--f-display); font-size: clamp(38px, 6.2vh, 78px); line-height: 1.16; color: var(--mk-champagne); transition: color 0.2s, padding-left 0.3s; }
.e-menu__nav a:hover, .e-menu__nav a[aria-current] { color: var(--mk-gold-a); padding-left: 14px; }
.e-menu__aside img { width: 100%; aspect-ratio: 4 / 5; max-height: 46vh; object-fit: cover; margin-bottom: 26px; }
.e-menu__aside li { margin-bottom: 8px; }
.e-menu__aside a, .e-menu__aside button { font-family: var(--f-head); font-size: 14px; letter-spacing: 0.17em; text-transform: uppercase; }
.e-menu__aside a:hover, .e-menu__aside button:hover { color: var(--mk-gold-a); }

.e-search__form { padding: clamp(32px, 7vh, 84px) var(--gutter) 0; }
.e-search__form input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0 16px; font-family: var(--f-display); font-size: clamp(32px, 5.2vw, 76px); line-height: 1.1; color: var(--mk-gold-a); }
.e-search__form input::placeholder { color: rgba(214, 197, 154, 0.5); }
.e-search__form input:focus { outline: none; border-bottom-color: var(--mk-gold-a); }
.e-search__results { padding: 30px 0 72px; }
.e-search__hint, .e-search__count, .e-search__none { padding: 0 var(--gutter) 26px; }
.e-search__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--soft); }
.e-search__hint button { padding: 7px 16px; border: 1px solid var(--line); font-weight: 300; transition: border-color 0.2s, color 0.2s; }
.e-search__hint button:hover { border-color: var(--mk-gold-a); color: var(--mk-gold-a); }
.e-search__none { font-size: 17px; }

.e-modal { position: fixed; z-index: 60; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; transform: translate(-50%, -46%); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s; }
body[data-open="sizes"] .e-modal[data-panel="sizes"], body[data-open="account"] .e-modal[data-panel="account"] { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity 0.3s, transform 0.3s; }
.e-modal__lead { padding: 0 30px; color: var(--paper-soft); }
.ecrin .sizeguide { width: calc(100% - 60px); margin: 6px 30px 0; }
.ecrin .sizeguide th, .ecrin .sizeguide td { padding: 12px 6px; text-align: center; font-weight: 400; border-bottom: 1px solid var(--paper-line); }
.ecrin .sizeguide thead th { font-family: var(--f-head); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mk-burgundy); }
.ecrin .sizeguide__note { padding: 18px 30px 30px; font-size: 13px; color: var(--paper-soft); }
.ecrin .account { display: grid; gap: 10px; padding: 18px 30px 30px; }
.ecrin .account label { font-size: 13px; color: var(--paper-soft); }
.ecrin .account input { padding: 13px 14px; border: 1px solid var(--paper-line); background: transparent; }
.ecrin .account.is-invalid input { border-color: #A32020; }
.ecrin .e-modal .form-done { padding: 0 30px 30px; margin: 0; }

/* ---- shop -------------------------------------------------------------- */
.e-shop { padding-bottom: clamp(72px, 9vw, 140px); }
.e-shop__head { padding: clamp(44px, 7vw, 104px) var(--gutter) clamp(28px, 4vw, 52px); display: grid; gap: 8px; }
.e-shop__head p { color: var(--soft); font-size: 16px; }
.e-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 16px var(--gutter); margin-bottom: clamp(32px, 4vw, 56px); border-block: 1px solid var(--line); }
.e-tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.e-tabs a { font-family: var(--f-head); font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 0 3px; border-bottom: 1px solid transparent; color: var(--soft); transition: color 0.2s; }
.e-tabs a:hover { color: var(--ink); }
.e-tabs a[aria-current] { color: var(--mk-gold-a); border-bottom-color: currentColor; }
.e-sort { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--soft); }
.e-sort select { background: transparent; border: 1px solid var(--line); padding: 8px 10px; color: var(--ink); font-weight: 300; cursor: pointer; }
.e-sort select option { background: var(--mk-wine); color: var(--mk-ivory); }

/* ---- product page ------------------------------------------------------ */
.e-pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
.e-pdp__gallery { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding: clamp(14px, 2vw, 28px); }
.e-pdp__main { min-height: 0; background: rgba(0, 0, 0, 0.25); }
.e-pdp__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.e-thumbs { display: flex; gap: 8px; }
.e-thumbs button { width: 64px; opacity: 0.55; outline-offset: 2px; transition: opacity 0.2s; }
.e-thumbs button img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.e-thumbs button:hover { opacity: 0.85; }
.e-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 1px var(--mk-gold-a); }
.e-pdp__info { min-height: calc(100vh - var(--bar)); background: var(--deep); padding: clamp(32px, 5vw, 84px) clamp(22px, 5vw, 84px); display: grid; align-content: start; gap: 16px; }
.e-pdp__back { justify-self: start; margin-bottom: 8px; }
.e-pdp__info .e-h1 { font-size: clamp(42px, 5.2vw, 80px); }
.e-pdp__price { font-size: 20px; font-weight: 400; color: var(--gold); margin-top: -6px; }
.e-pdp__desc { color: var(--soft); max-width: 36em; margin-bottom: 10px; }
.e-pdp__sizehead { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.e-pdp__sizehead strong { font-weight: 500; color: var(--mk-gold-a); }
.e-sizes--pick { gap: 8px; }
.e-sizes--pick .size { min-width: 58px; height: 48px; font-size: 13.5px; }
.e-pdp__error { color: #F4B5B0; font-size: 14px; }
.e-pdp__sold { color: var(--soft); }
.e-pdp__save { justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; font-weight: 300; }
.e-pdp__save:hover { color: var(--mk-gold-a); }
.e-spec { margin-top: 18px; border-bottom: 1px solid var(--line); }
.e-spec > div { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 14px 0 13px; border-top: 1px solid var(--line); font-size: 14px; }
.e-spec dt { font-family: var(--f-head); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); padding-top: 2px; }
.e-spec dd { color: var(--soft); display: flex; align-items: center; gap: 9px; }
.e-swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(246, 241, 234, 0.5); flex: none; }

/* ---- story + service pages -------------------------------------------- */
.e-story__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; gap: clamp(24px, 5vw, 80px); padding: clamp(56px, 9vw, 140px) var(--gutter) clamp(40px, 6vw, 88px); }
.e-story__head p { color: var(--soft); font-size: 16px; max-width: 32em; padding-bottom: 1.2em; }
.e-story__imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); padding-inline: var(--gutter); }
.e-story__imgs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.e-story__text { max-width: 820px; margin: 0 auto; padding: clamp(64px, 9vw, 140px) var(--gutter); display: grid; gap: 20px; }
.e-story__text p { color: var(--soft); font-size: 17px; line-height: 1.8; }
.e-story__end { padding: clamp(56px, 7vw, 104px) var(--gutter); text-align: center; }

.e-info { max-width: 800px; margin: 0 auto; padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(72px, 9vw, 140px); }
.e-info__intro { font-size: 18px; color: var(--soft); margin: 14px 0 44px; max-width: 30em; }
.e-info section { padding: 26px 0; border-top: 1px solid var(--line); }
.e-info section h2 { font-family: var(--f-head); font-size: 15px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.e-info section p { color: var(--soft); }
.e-info__sample { margin-top: 28px; font-size: 12.5px; color: rgba(246, 241, 234, 0.6); }
.e-info--center { display: grid; justify-items: center; text-align: center; min-height: 60vh; align-content: center; }
.e-info--center .e-info__intro { margin-inline: auto; }

/* ---- checkout: an ivory sheet laid in the box --------------------------- */
.e-checkout { padding: clamp(20px, 4vw, 64px) var(--gutter) clamp(56px, 8vw, 120px); }
.e-tissue { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 5vw, 72px); background: var(--paper); color: var(--paper-ink); font-weight: 400; font-size: 14px; }
.e-tissue h1 { font-family: var(--f-display); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--mk-burgundy); }
.e-tissue h2 { font-family: var(--f-head); font-size: 15px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--mk-burgundy); margin: 34px 0 16px; }
.e-checkout__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: clamp(28px, 5vw, 80px); margin-top: 12px; align-items: start; }
.e-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ecrin .field { display: grid; gap: 5px; }
.ecrin .field--full { grid-column: 1 / -1; }
.ecrin .field label { font-size: 13px; color: var(--paper-soft); }
.ecrin .field input { width: 100%; padding: 13px 14px; border: 1px solid var(--paper-line); background: transparent; }
.ecrin .field input:focus { outline: none; border-color: var(--mk-burgundy); }
.ecrin .field.is-invalid input { border-color: #A32020; }
.ecrin .delivery { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 15px 16px; border: 1px solid var(--paper-line); cursor: pointer; }
.ecrin .delivery + .delivery { border-top: 0; }
.ecrin .delivery input { grid-row: 1 / 3; width: 16px; height: 16px; accent-color: var(--mk-burgundy); }
.ecrin .delivery__name { font-weight: 500; }
.ecrin .delivery__detail { grid-column: 2; font-size: 13px; color: var(--paper-soft); }
.ecrin .delivery__cost { grid-column: 3; grid-row: 1 / 3; }
.e-checkout__note { color: var(--paper-soft); margin-bottom: 26px; }
.e-sum { padding: 4px 28px 28px; background: rgba(184, 168, 154, 0.24); }
.e-sum__lines li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
.e-sum__lines img { width: 60px; aspect-ratio: 3 / 4; object-fit: cover; }
.e-sum__name { font-family: var(--f-display); font-size: 19px; line-height: 1.15; color: var(--mk-burgundy); }
.e-sum__meta { font-size: 12.5px; color: var(--paper-soft); }
.e-sum__totals { margin-top: 16px; display: grid; gap: 8px; }
.e-sum__totals div { display: flex; justify-content: space-between; }
.e-sum__grand { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--mk-burgundy); font-size: 17px; }
.e-tissue--narrow { max-width: 660px; display: grid; justify-items: center; text-align: center; gap: 14px; }
.e-tissue--narrow .e-sum__lines { width: 100%; text-align: left; margin-top: 12px; }
.e-confirm__mark { width: 74px; color: var(--mk-burgundy); margin-bottom: 10px; }
.e-confirm__lead { color: var(--paper-soft); max-width: 30em; }
.e-confirm__total { margin: 8px 0 14px; }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .e-grid--four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .e-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .e-hero__img { order: -1; height: 64vh; }
  .e-hero__text { padding-top: 36px; }
  .e-split, .e-story__head, .e-checkout__cols { grid-template-columns: minmax(0, 1fr); }
  .e-pdp { grid-template-columns: minmax(0, 1fr); }
  .e-pdp__gallery { position: static; height: auto; grid-template-rows: auto auto; }
  .e-pdp__main { aspect-ratio: 4 / 5; }
  .e-pdp__info { min-height: 0; }
  .e-values { grid-template-columns: minmax(0, 1fr); }
  .e-values > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .e-menu__cols { grid-template-columns: minmax(0, 1fr); }
  .e-menu__aside img { display: none; }
  .e-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .e-hide-sm { display: none; }
  .ecrin { --bar: 66px; }
  .e-rail__track .e-card { flex-basis: 68vw; }
  .e-rail__nav button { display: none; }
  .e-footer__cols, .e-fields, .e-story__imgs { grid-template-columns: minmax(0, 1fr); }
  .e-framed::after { inset: 10px; }
  .e-hero__cap { left: 22px; bottom: 22px; }
  .e-card__name { font-size: 19px; }
  .e-spec > div { grid-template-columns: 92px 1fr; }
}

/* ---- responsive hardening ---------------------------------------------- */
.e-card__name { overflow-wrap: anywhere; }

/* very wide screens: more tiles across rather than larger tiles, and picture-led blocks hold a measure */
@media (min-width: 1600px) {
  .e-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .e-grid--four { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .e-split, .e-story__imgs, .e-story__head { max-width: 1900px; margin-inline: auto; }
}
@media (min-width: 2200px) {
  .e-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .e-grid--four { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* the home page row stays three across (its fourth tile only shows when the grid is two across) */
@media (min-width: 901px) {
  .e-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1900px; margin-inline: auto; }
  .e-grid--three > :nth-child(4) { display: none; }
}

/* narrow phones: name over price, tighter paddings, a smaller wordmark */
@media (max-width: 480px) {
  .e-card__info { grid-template-columns: minmax(0, 1fr); }
  .e-card__price { grid-area: 2 / 1; justify-self: start; }
  .e-card__meta, .e-card__quick { grid-area: 3 / 1 / 4 / -1; }
  .e-card__add { grid-area: 3 / 1; }
  .e-tissue { padding: 22px 16px 28px; }
  .e-sum { padding-inline: 16px; }
  .e-sheet__head, .e-lines, .e-bag__foot { padding-inline: 20px; }
  .e-line { grid-template-columns: 80px 1fr; gap: 14px; }
  .e-line__img img { width: 80px; }
  .e-line__top { flex-wrap: wrap; gap: 0 12px; }
}
@media (max-width: 380px) {
  .e-header, .e-menu__bar { padding-inline: 14px; }
  .e-logo .mk-mark, .e-menu__logo { width: 136px; }
  .e-word { font-size: 13px; letter-spacing: 0.1em; }
}

/* touch: text-sized links and buttons get a taller hit area */
@media (pointer: coarse), (max-width: 860px) {
  .e-footer li a, .e-footer li button, .e-menu__aside a, .e-menu__aside button, .e-card__name a, .e-line__name { display: inline-block; padding-block: 5px; }
  .e-footer li, .e-menu__aside li { margin-bottom: 0; }
  .e-line__remove { padding-block: 8px; }
  .e-textlink, .e-close, .e-card__add { padding-top: 9px; }
  .e-logo { display: block; padding-block: 12px; }
  .e-sizes .size { min-width: 40px; height: 36px; }
  .e-card__meta, .e-card__quick { min-height: 40px; }
}

/* a phone on its side: the bag gives its height to the list */
@media (max-height: 560px) {
  .e-sheet__head { padding: 10px 30px 6px; }
  .e-sheet__head h2 { font-size: 26px; }
  .e-line { grid-template-columns: 60px 1fr; padding: 10px 0; }
  .e-line__img img { width: 60px; }
  .e-line__row { margin-top: 4px; }
  .e-bag__foot { padding: 10px 30px 12px; gap: 8px; }
  .e-bag__foot p { display: none; }
  .e-bag__total { font-size: 22px; }
  .ecrin .e-bag__foot .btn { min-height: 44px; }
}

/* order summary: holds a long piece name in a narrow column without letting it spill */
.e-sum { padding-inline: clamp(16px, 2vw, 28px); }
.e-sum__lines li { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
.e-sum__lines img { width: 52px; }
.e-sum__name { overflow-wrap: anywhere; }
@media (max-width: 380px) { .e-sum__name { font-size: 17px; } }

.ecrin { --mk-error: #F4B5B0; }
.ecrin .e-sheet, .ecrin .e-modal, .ecrin .e-tissue { --mk-error: #A32020; }

/* on ivory sheets the action is burgundy, never the gold used on the burgundy ground */
.ecrin .e-modal .btn, .ecrin .e-sheet .btn { background: var(--mk-burgundy); color: var(--mk-ivory); }
.ecrin .e-modal .btn:hover, .ecrin .e-sheet .btn:hover { background: var(--mk-wine); filter: none; }
