/* ==========================================================================
   Design 4 — Atelier
   The architectural reading of the brand: a plan of ruled cells in stone tones.
   Ivory ground, taupe planes, stone-grey rules, with burgundy kept for the logo
   plaque and the one action that matters. Headings in Maregy, everything else
   in the body face at small, even sizes, like the notes on a drawing.
   ========================================================================== */

.atelier {
  --bg: var(--mk-ivory);
  --plane: var(--mk-taupe);
  --ink: var(--mk-black);
  --soft: var(--mk-stone-deep);
  --rule: var(--mk-stone);
  --accent: var(--mk-burgundy);
  --tile: #E4DCD1;
  --bar: 64px;
  --pad: clamp(16px, 2.2vw, 34px);
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.65;
}
.atelier :focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.atelier .a-plaque:focus-visible { outline-color: var(--mk-gold-a); outline-offset: -4px; }

.atelier h1, .atelier h2 { font-family: var(--f-head); text-transform: uppercase; }

.atelier .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  background: var(--accent); color: var(--mk-ivory);
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.03em;
  transition: background-color 0.2s;
}
.atelier .btn:hover { background: var(--mk-wine); }
.atelier .btn:disabled { background: var(--mk-stone); }
.atelier .btn--wide { width: 100%; }
.a-link { font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.2s; }
.a-link:hover { color: var(--accent); }

/* ---- bar --------------------------------------------------------------- */
.a-bar { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: var(--bar) auto minmax(0, 1fr) auto; height: var(--bar); background: var(--bg); border-bottom: 1px solid var(--rule); }
.a-plaque { display: grid; place-items: center; background: var(--mk-burgundy); }
.a-plaque .mk-mark { width: 38px; }
.a-bar__name { display: flex; align-items: center; padding-inline: var(--pad); border-right: 1px solid var(--rule); }
.a-bar__name .mk-mark { width: clamp(150px, 13vw, 182px); }
.a-bar__nav, .a-bar__tools { display: flex; }
.a-bar__nav a, .a-bar__tools > * { display: flex; align-items: center; gap: 7px; padding-inline: clamp(11px, 1.45vw, 22px); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.a-bar__nav a { border-right: 1px solid var(--rule); }
.a-bar__tools > * { border-left: 1px solid var(--rule); }
.a-bar__nav a:hover, .a-bar__tools > *:hover { background: var(--plane); }
.a-bar__nav a[aria-current] { background: var(--ink); color: var(--bg); }
.a-bar__tools span { font-weight: 400; color: var(--soft); min-width: 1ch; }
.a-bar__menu { display: none !important; }

/* ---- hero -------------------------------------------------------------- */
.a-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - var(--bar)); border-bottom: 1px solid var(--rule); }
.a-hero__plane { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: var(--pad) var(--pad) clamp(28px, 5vh, 56px); background: var(--plane); }
.a-hero__kicker { font-weight: 500; }
.a-hero__main { display: grid; gap: 22px; }
.a-hero h1 { font-size: clamp(38px, 5.5vw, 88px); line-height: 1.04; letter-spacing: 0.045em; }
.a-hero__main p { max-width: 31em; font-size: 15px; }
.a-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 6px; }
.a-hero__img { position: relative; min-height: 420px; border-left: 1px solid var(--rule); background: var(--tile); }
.a-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.a-hero--story h1 { font-size: clamp(32px, 4.3vw, 68px); }
.a-hero--story .a-hero__img img { object-position: 50% 60%; }

/* ---- category directory ------------------------------------------------ */
.a-dir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.a-dir a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 22px var(--pad) 20px; border-right: 1px solid var(--rule); transition: background-color 0.2s; }
.a-dir a:last-child { border-right: 0; }
.a-dir a:hover { background: var(--plane); }
.a-dir__name { font-family: var(--f-head); font-size: clamp(20px, 2vw, 28px); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; }
.a-dir__count { grid-area: 1 / 2; align-self: center; font-size: 12.5px; font-weight: 500; }
.a-dir__line { grid-column: 1 / -1; color: var(--soft); }

/* ---- ruled product grid ------------------------------------------------ */
.a-rowhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: clamp(28px, 4vw, 52px) var(--pad) 16px; border-bottom: 1px solid var(--rule); }
.a-rowhead h2 { font-size: clamp(20px, 2.1vw, 28px); letter-spacing: 0.09em; line-height: 1.2; }
.a-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.a-cell { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.a-cell__media { position: relative; margin: 14px 14px 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tile); }
.a-cell__media > a { display: block; height: 100%; }
.a-cell__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s ease; }
.a-cell__media img.alt { opacity: 0; }
@media (hover: hover) { .a-cell:hover .a-cell__media img.alt { opacity: 1; } }
.a-cell__badge { position: absolute; left: 0; top: 0; padding: 4px 10px; background: var(--bg); font-size: 12px; font-weight: 500; }
.a-cell__save { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; display: grid; place-items: center; }
.a-cell__save[aria-pressed="true"] .mk-icon, .a-pdp__save[aria-pressed="true"] .mk-icon { fill: var(--accent); stroke: var(--accent); }
.a-cell__info { flex: 1; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 0 12px; padding: 12px 14px 13px; }
.a-cell__name { font-family: var(--f-body); font-size: 13.5px; font-weight: 500; text-transform: none; }
.a-cell__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.a-cell__meta { grid-column: 1 / -1; color: var(--soft); font-size: 12.5px; }
.a-sizes { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.a-sizes__label { display: flex; align-items: center; padding: 0 12px 0 14px; font-size: 12px; color: var(--soft); white-space: nowrap; }
.a-sizes .size { height: 38px; border-left: 1px solid var(--rule); font-size: 12px; transition: background-color 0.15s, color 0.15s; }
.a-sizes .size:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.a-sizes .size:disabled { color: #A59D95; text-decoration: line-through; }
.a-empty { grid-column: 1 / -1; padding: 48px var(--pad) 72px; display: grid; justify-items: start; gap: 20px; font-size: 15px; border-bottom: 1px solid var(--rule); }

/* ---- feature + triptych ------------------------------------------------ */
.a-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-bottom: 1px solid var(--rule); }
.a-feature__img { position: relative; min-height: clamp(360px, 46vw, 640px); border-right: 1px solid var(--rule); background: var(--tile); }
.a-feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-feature__text { display: grid; align-content: end; justify-items: start; gap: 18px; padding: var(--pad) var(--pad) clamp(28px, 4vw, 56px); }
.a-feature__text h2 { font-size: clamp(26px, 3.3vw, 52px); line-height: 1.08; letter-spacing: 0.05em; }
.a-feature__text p { max-width: 34em; font-size: 14.5px; color: var(--soft); }
.a-triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.a-triptych > div { padding: clamp(28px, 4vw, 56px) var(--pad); border-right: 1px solid var(--rule); }
.a-triptych > div:last-child { border-right: 0; }
.a-triptych h2 { font-size: 19px; letter-spacing: 0.1em; margin-bottom: 12px; }
.a-triptych p { color: var(--soft); }

/* ---- footer ------------------------------------------------------------ */
.a-footer__grid { display: grid; grid-template-columns: clamp(180px, 20vw, 280px) 1fr 1fr 1fr 1.5fr; }
.a-footer__grid > div { padding: var(--pad); border-right: 1px solid var(--rule); }
.a-footer__grid > div:last-child { border-right: 0; }
.a-footer__brand { padding: 0 !important; }
.a-plaque--lg { height: 100%; min-height: 200px; }
.a-plaque--lg .mk-mark { width: min(150px, 66%); }
.a-footer h2 { font-family: var(--f-body); font-size: 13px; font-weight: 600; text-transform: none; margin-bottom: 10px; }
.a-footer li { margin-bottom: 4px; }
.a-footer li a:hover, .a-footer li button:hover { text-decoration: underline; text-underline-offset: 3px; }
.atelier .newsletter { display: flex; border: 1px solid var(--rule); margin-top: 4px; }
.atelier .newsletter input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: transparent; }
.atelier .newsletter input:focus { outline: none; }
.atelier .newsletter:focus-within { border-color: var(--ink); }
.atelier .newsletter .btn { min-height: 46px; padding-inline: 18px; }
.atelier .newsletter.is-invalid { border-color: #A32020; }
.atelier .form-done { margin-top: 10px; max-width: 30em; }
.a-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 14px var(--pad); border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--soft); }

/* ---- the tray (bag) ---------------------------------------------------- */
.a-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.32); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
body[data-open] .a-scrim { opacity: 1; pointer-events: auto; }
.a-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: min(68vh, 600px); background: var(--bg); border-top: 1px solid var(--ink); transform: translateY(101%); visibility: hidden; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s 0.5s; }
body[data-open="bag"] .a-tray { transform: none; visibility: visible; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.a-tray__body { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 380px); grid-template-rows: auto minmax(0, 1fr); }
.a-tray__head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; padding: 14px var(--pad) 12px; border-bottom: 1px solid var(--rule); }
.a-tray__head h2 { font-size: 22px; letter-spacing: 0.1em; line-height: 1.2; }
.a-tray__head span { color: var(--soft); }
.a-tray__head .a-link { margin-left: auto; }
.a-tray__items { display: flex; overflow-x: auto; min-height: 0; }
.a-item { flex: 0 0 clamp(210px, 19vw, 264px); display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding: 14px; border-right: 1px solid var(--rule); min-height: 0; }
.a-item__img { min-height: 0; background: var(--tile); }
.a-item__img img { width: 100%; height: 100%; object-fit: cover; }
.a-item__body { display: grid; gap: 1px; }
.a-item__name { font-weight: 500; }
.a-item__meta { font-size: 12.5px; color: var(--soft); }
.a-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.a-qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.a-qty button { width: 32px; height: 32px; display: grid; place-items: center; }
.a-qty button:hover { background: var(--plane); }
.a-qty span { min-width: 24px; text-align: center; }
.a-tray__sum { display: grid; align-content: end; gap: 12px; padding: var(--pad); background: var(--plane); border-left: 1px solid var(--rule); }
.a-tray__sum dl { display: grid; gap: 6px; }
.a-tray__sum dl div { display: flex; justify-content: space-between; }
.a-tray__sum dl div:first-child { font-size: 17px; font-weight: 500; }
.a-tray__empty { grid-column: 1 / -1; display: grid; align-content: center; justify-items: start; gap: 20px; padding: var(--pad); font-size: 15px; max-width: 34em; }

/* ---- drop sheets: menu and search -------------------------------------- */
.a-drop { position: fixed; left: 0; right: 0; top: 0; z-index: 60; max-height: 90vh; max-height: 90dvh; overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--ink); transform: translateY(-102%); visibility: hidden; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s 0.45s; }
body[data-open="menu"] .a-drop[data-panel="menu"], body[data-open="search"] .a-drop[data-panel="search"] { transform: none; visibility: visible; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.a-drop__head { display: flex; align-items: baseline; justify-content: space-between; padding: 18px var(--pad) 14px; border-bottom: 1px solid var(--rule); }
.a-drop__head h2 { font-size: 20px; letter-spacing: 0.1em; line-height: 1.2; }
.a-drop__nav a { display: block; padding: 15px var(--pad); border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 500; }
.a-drop__nav a:hover, .a-drop__nav a[aria-current] { background: var(--plane); }
.a-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; border-bottom: 1px solid var(--rule); }
.a-search label { display: flex; align-items: center; padding-inline: var(--pad); border-right: 1px solid var(--rule); font-weight: 500; }
.a-search input { padding: 22px var(--pad); border: 0; background: transparent; font-size: clamp(17px, 2vw, 24px); }
.a-search input:focus { outline: none; background: #FBF8F3; }
.a-search .a-link { display: flex; align-items: center; padding-inline: var(--pad); border-left: 1px solid var(--rule); }
.a-search__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px var(--pad) 22px; color: var(--soft); }
.a-search__hint button { padding: 7px 14px; border: 1px solid var(--rule); color: var(--ink); }
.a-search__hint button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.a-search__none { padding: 26px var(--pad) 34px; font-size: 15px; }

.a-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; background: var(--bg); border: 1px solid var(--ink); transform: translate(-50%, -46%); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s; }
body[data-open="sizes"] .a-modal[data-panel="sizes"], body[data-open="account"] .a-modal[data-panel="account"] { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity 0.3s, transform 0.3s; }
.a-modal__lead { padding: 18px var(--pad) 0; color: var(--soft); }
.atelier .sizeguide { width: 100%; }
.atelier .sizeguide th, .atelier .sizeguide td { padding: 12px 8px; text-align: center; font-weight: 400; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.atelier .sizeguide th:last-child, .atelier .sizeguide td:last-child { border-right: 0; }
.atelier .sizeguide thead th, .atelier .sizeguide tbody th { font-weight: 600; }
.atelier .sizeguide__note { padding: 16px var(--pad) 22px; font-size: 12.5px; color: var(--soft); }
.atelier .account { display: grid; gap: 10px; padding: 16px var(--pad) 26px; }
.atelier .account label { font-size: 12.5px; font-weight: 500; }
.atelier .account input { padding: 13px 14px; border: 1px solid var(--rule); background: transparent; }
.atelier .account.is-invalid input { border-color: #A32020; }
.atelier .a-modal .form-done { padding: 0 var(--pad) 26px; margin: 0; }

/* ---- shop -------------------------------------------------------------- */
.a-pagehead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding: clamp(30px, 4.6vw, 68px) var(--pad) 18px; }
.a-pagehead h1 { font-size: clamp(32px, 4.8vw, 72px); line-height: 1.06; letter-spacing: 0.05em; }
.a-pagehead p { color: var(--soft); max-width: 34em; }
.a-filter { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; border-block: 1px solid var(--rule); }
.a-seg { display: flex; flex-wrap: wrap; }
.a-seg a { display: flex; align-items: center; min-height: 46px; padding-inline: clamp(12px, 1.5vw, 22px); border-right: 1px solid var(--rule); font-weight: 500; transition: background-color 0.2s; }
.a-seg a:hover { background: var(--plane); }
.a-seg a[aria-current] { background: var(--ink); color: var(--bg); }
.a-sort { display: flex; align-items: center; gap: 8px; padding-inline: var(--pad); border-left: 1px solid var(--rule); color: var(--soft); }
.a-sort select { border: 0; background: transparent; padding: 8px 2px; color: var(--ink); font-weight: 500; cursor: pointer; }

/* ---- product page: thumbs, plate, specification ------------------------- */
.a-pdp { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(340px, min(34vw, 620px)); align-items: start; border-bottom: 1px solid var(--rule); }
.a-thumbs { position: sticky; top: var(--bar); display: grid; gap: 8px; padding: 12px; }
.a-thumbs button { opacity: 0.6; transition: opacity 0.2s; }
.a-thumbs button img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.a-thumbs button:hover { opacity: 0.9; }
.a-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 1px var(--ink); }
.a-pdp__main { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); border-inline: 1px solid var(--rule); background: var(--tile); }
.a-pdp__main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.a-pdp__spec { display: grid; gap: 14px; padding: clamp(18px, 2.4vw, 36px) clamp(18px, 2.8vw, 44px) clamp(32px, 4vw, 56px); }
.a-crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--soft); }
.a-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.a-pdp__spec h1 { font-size: clamp(28px, 3vw, 46px); line-height: 1.1; letter-spacing: 0.07em; margin-top: 6px; }
.a-pdp__price { font-size: 17px; }
.a-pdp__desc { color: var(--soft); font-size: 14px; margin-bottom: 6px; }
.a-pdp__sizehead { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; }
.a-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); }
.a-pick .size { height: 48px; border-right: 1px solid var(--rule); transition: background-color 0.15s, color 0.15s; }
.a-pick .size:last-child { border-right: 0; }
.a-pick .size:hover:not(:disabled) { background: var(--plane); }
.a-pick .size:disabled { color: #A59D95; text-decoration: line-through; }
.a-pick .size[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.a-pdp__error { color: #A32020; }
.a-pdp__sold { color: var(--soft); }
.a-pdp__save { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 500; }
.a-table { margin-top: 10px; border-bottom: 1px solid var(--rule); }
.a-table > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); }
.a-table dt { font-weight: 500; }
.a-table dd { color: var(--soft); display: flex; align-items: center; gap: 8px; }
.a-swatch { flex: none; width: 13px; height: 13px; box-shadow: 0 0 0 1px var(--rule); }

/* ---- story, service, checkout ------------------------------------------ */
.a-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-bottom: 1px solid var(--rule); }
.a-text h2 { padding: clamp(28px, 4vw, 56px) var(--pad); font-size: clamp(22px, 2.4vw, 34px); letter-spacing: 0.08em; line-height: 1.15; }
.a-text > div { display: grid; gap: 16px; padding: clamp(28px, 4vw, 56px) var(--pad); border-left: 1px solid var(--rule); font-size: 15px; max-width: none; }
.a-text > div p { max-width: 44em; }

.a-info { border-bottom: 1px solid var(--rule); }
.a-info .a-pagehead { border-bottom: 1px solid var(--rule); padding-bottom: clamp(20px, 3vw, 40px); }
.a-table--wide { margin: 0; border-bottom: 0; }
.a-table--wide > div { grid-template-columns: minmax(140px, 5fr) minmax(0, 7fr); gap: 0; padding: 0; border-top: 0; border-bottom: 1px solid var(--rule); }
.a-table--wide dt, .a-table--wide dd { padding: 20px var(--pad); font-size: 14px; }
.a-table--wide dd { border-left: 1px solid var(--rule); }
.a-info__sample { padding: 16px var(--pad); font-size: 12.5px; color: var(--soft); }
.a-info__act { padding: var(--pad); }

.a-checkout__cols { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 32vw, 440px); border-block: 1px solid var(--rule); align-items: stretch; }
.a-checkout fieldset { margin: 0; min-width: 0; padding: var(--pad); border: 0; border-bottom: 1px solid var(--rule); }
.a-checkout fieldset:last-child { border-bottom: 0; }
.a-checkout legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-family: var(--f-head); font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; }
.a-checkout legend + * { clear: both; }
.a-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.atelier .field { display: grid; gap: 4px; }
.atelier .field--full { grid-column: 1 / -1; }
.atelier .field label { font-size: 12.5px; font-weight: 500; }
.atelier .field input { width: 100%; padding: 12px 13px; border: 1px solid var(--rule); background: transparent; }
.atelier .field input:focus { outline: none; border-color: var(--ink); background: #FBF8F3; }
.atelier .field.is-invalid input { border-color: #A32020; }
.atelier .delivery { display: grid; grid-template-columns: auto 1fr auto; gap: 1px 12px; align-items: center; padding: 14px 15px; border: 1px solid var(--rule); cursor: pointer; }
.atelier .delivery + .delivery { border-top: 0; }
.atelier .delivery input { grid-row: 1 / 3; width: 16px; height: 16px; accent-color: var(--accent); }
.atelier .delivery__name { font-weight: 500; }
.atelier .delivery__detail { grid-column: 2; font-size: 12.5px; color: var(--soft); }
.atelier .delivery__cost { grid-column: 3; grid-row: 1 / 3; }
.a-checkout__note { color: var(--soft); margin-bottom: 20px; max-width: 44em; }
.a-sum { padding: var(--pad); background: var(--plane); border-left: 1px solid var(--rule); }
.a-sum h2 { font-size: 18px; letter-spacing: 0.1em; margin-bottom: 8px; }
.a-sum__lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.28); }
.a-sum__lines img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; }
.a-sum__name { font-weight: 500; }
.a-sum__meta { font-size: 12.5px; }
.a-sum__totals { margin-top: 14px; display: grid; gap: 6px; }
.a-sum__totals div { display: flex; justify-content: space-between; gap: 16px; }
.a-sum__grand { font-size: 16px; font-weight: 500; padding-top: 6px; }
.a-sum--plain { background: none; border-left: 0; border-bottom: 1px solid var(--rule); max-width: 720px; }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 1180px) {
  .a-bar { grid-template-columns: var(--bar) minmax(0, 1fr) auto; }
  .a-bar__nav { display: none; }
  .a-bar__menu { display: flex !important; }
  .a-bar__name { border-right: 0; }
  .a-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .a-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .a-footer__brand { grid-row: span 2; }
  .a-footer__grid > div { border-bottom: 1px solid var(--rule); }
  .a-footer__news { grid-column: 2 / -1; border-bottom: 0 !important; }
}
@media (max-width: 900px) {
  .a-hero, .a-feature, .a-text, .a-checkout__cols { grid-template-columns: minmax(0, 1fr); }
  .a-hero { min-height: 0; }
  .a-hero__img { order: -1; height: 56vh; border-left: 0; border-bottom: 1px solid var(--rule); }
  .a-feature__img { border-right: 0; border-bottom: 1px solid var(--rule); }
  .a-text > div, .a-sum { border-left: 0; }
  .a-text h2 { padding-bottom: 0; }
  .a-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-dir a { border-bottom: 1px solid var(--rule); }
  .a-dir a:nth-child(2n) { border-right: 0; }
  .a-triptych { grid-template-columns: minmax(0, 1fr); }
  .a-triptych > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .a-triptych > div:last-child { border-bottom: 0; }
  .a-pdp { grid-template-columns: minmax(0, 1fr); }
  .a-thumbs { position: static; order: 2; grid-auto-flow: column; grid-auto-columns: 64px; justify-content: start; border-bottom: 1px solid var(--rule); }
  .a-pdp__main { position: static; height: auto; aspect-ratio: 4 / 5; border-inline: 0; border-bottom: 1px solid var(--rule); }
  .a-pdp__spec { order: 3; }
  .a-sum { border-top: 1px solid var(--rule); }
}
@media (max-width: 700px) {
  .a-hide-sm, .a-bar__name { display: none !important; }
  .a-bar { grid-template-columns: var(--bar) minmax(0, 1fr); }
  .a-bar__tools { justify-content: flex-end; }
  .a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-cell__media { margin: 8px 8px 0; }
  .a-cell__info { padding: 10px 8px; }
  .a-sizes__label { display: none; }
  .a-sizes .size:first-of-type { border-left: 0; }
  .a-sizes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .a-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-footer__brand { grid-row: auto; grid-column: 1 / -1; }
  .a-plaque--lg { min-height: 150px; }
  .a-footer__news { grid-column: 1 / -1; }
  .a-fields { grid-template-columns: minmax(0, 1fr); }
  .a-filter { flex-direction: column; flex-wrap: nowrap; }
  .a-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule); }
  .a-seg a { flex: none; }
  .a-sort { border-left: 0; min-height: 44px; }
  .a-tray { height: 88vh; height: 88dvh; }
  .a-tray__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .a-tray__items { flex-direction: column; overflow-x: hidden; overflow-y: auto; }
  .a-item { flex: none; grid-template-columns: 84px 1fr; grid-template-rows: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .a-item__img img { aspect-ratio: 3 / 4; height: auto; }
  .a-tray__sum { border-left: 0; border-top: 1px solid var(--rule); }
  .a-table--wide > div { grid-template-columns: minmax(0, 1fr); }
  .a-table--wide dd { border-left: 0; padding-top: 0; }
  .a-table--wide dt { padding-bottom: 6px; }
}

/* ---- responsive hardening ---------------------------------------------- */
/* very wide screens: more cells across rather than larger cells */
@media (min-width: 1700px) { .a-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 2300px) { .a-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* single rows (home page, "you may also like") always fill exactly one row of the plan */
.a-grid--row > :nth-child(n + 5) { display: none; }
@media (min-width: 1700px) { .a-grid--row > :nth-child(5) { display: flex; } }
@media (min-width: 2300px) { .a-grid--row > :nth-child(6) { display: flex; } }
@media (min-width: 701px) and (max-width: 1180px) { .a-grid--row > :nth-child(4) { display: none; } }

.a-dir a { min-width: 0; }
@media (max-width: 520px) {
  .a-dir { grid-template-columns: minmax(0, 1fr); }
  .a-dir a { border-right: 0; }
}

/* touch: text-sized links and buttons get a taller hit area */
@media (pointer: coarse), (max-width: 860px) {
  .a-link, .a-crumbs a { display: inline-block; padding-block: 7px; }
  .a-footer li a, .a-footer li button, .a-cell__name a, .a-item__name { display: inline-block; padding-block: 5px; }
  .a-footer li { margin-bottom: 0; }
  .a-cell__info { padding-top: 7px; }
  .a-sizes .size { height: 42px; }
  .a-search .a-link, .a-tray__head .a-link { padding-block: 10px; }
}

/* a phone on its side: the tray takes the whole screen and trims its summary */
@media (max-height: 560px) {
  .a-tray { height: 100vh; height: 100dvh; }
  .a-tray__head { padding-block: 4px; align-items: center; }
  .a-tray__sum { padding-block: 10px; gap: 8px; }
  .a-tray__sum p, .a-tray__sum dl div + div { display: none; }
  .a-item { padding: 10px; gap: 6px; }
  .a-item__row { margin-top: 2px; }
}
@media (max-height: 560px) and (max-width: 700px) {
  .a-item { grid-template-columns: 64px 1fr; }
}
