/* Views: home, listings, product, basket, checkout and the other pages.
   Load order (see index.html): fonts, base, components, views, utilities, refinements. */

@layer views {
  .view { min-height: 60svh; }
  .view:focus { outline: none; }

  /* home: hero */
  .hero__head { display: grid; gap: 1rem; padding-block: 1.5rem 1.25rem; }
  .hero__title { font-size: clamp(2.5rem, 1.6rem + 4.6vw, 7rem); }
  .hero__lede { color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem); max-width: 42ch; }
  @media (min-width: 64rem) {
    /* Laptops: the heading, the rooms and a way in all fit in the first screen. */
    .hero__head { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: 3rem; padding-block: 2rem 1.5rem; }
    .hero__title { font-size: clamp(2.5rem, 1.2rem + 3.6vw, 6rem); }
    .hero__lede { padding-bottom: 0.5rem; }
  }

  /* home: four doors */
  .rooms { display: flex; flex-direction: column; }
  .room { position: relative; overflow: hidden; height: 4.5rem; transition: height 300ms var(--ease), flex-grow 300ms var(--ease); }
  .room.is-open { height: 22.5rem; }
  .room--aubergine { background: var(--aubergine); color: #fff; }
  .room--sky { background: var(--sky); }
  .room--saffron { background: var(--saffron); }
  .room--forest { background: var(--forest); color: #fff; }
  .room__tab { position: absolute; inset: 0; display: flex; align-items: center; gap: 1rem; width: 100%; padding-inline: var(--gutter); border: 0; background: none; color: inherit; text-align: left; }
  .room__num { font-size: 0.875rem; font-weight: 700; opacity: 0.72; }
  .room__tabname { font-family: var(--display); font-size: 1.75rem; line-height: 1; }
  .room.is-open .room__tab { visibility: hidden; }
  .room__body { position: absolute; inset: 0; padding: 1.5rem var(--gutter); visibility: hidden; opacity: 0; transition: opacity 200ms ease 100ms, visibility 0s linear 300ms; }
  .room.is-open .room__body { visibility: visible; opacity: 1; transition-delay: 100ms, 0s; }
  .room__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.5rem; height: 100%; max-width: 60%; }
  .room__name { font-size: clamp(2.25rem, 1.4rem + 4vw, 6.5rem); line-height: 0.96; overflow-wrap: anywhere; hyphens: auto; }
  .room__line { font-size: 1rem; opacity: 0.88; max-width: 28ch; }
  .room__link { margin-top: auto; align-self: flex-start; }
  .room__art { position: absolute; right: -0.75rem; bottom: -0.5rem; width: min(46%, 26rem); }
  .room__art svg { width: 100%; height: auto; }
  .room__count { position: absolute; right: var(--gutter); top: 1.5rem; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.8125rem; font-weight: 700; line-height: 1.3; }
  @media (max-width: 24rem) { .room__art { width: 42%; } .room__text { max-width: 64%; } }
  /* Japanese room names are single words: sized so they stay on one line. */
  html:lang(ja) .room__name { font-size: clamp(1.75rem, 1rem + 2.6vw, 4rem); word-break: keep-all; }
  @media (min-width: 64rem) {
    .rooms { flex-direction: row; height: clamp(24rem, calc(100svh - 20rem), 44rem); }
    .room, .room.is-open { height: auto; }
    .room { flex: 1 1 0; min-width: 0; }
    .room.is-open { flex-grow: 4.2; }
    .room__tab { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 2rem 1.5rem; }
    .room__tabname { writing-mode: vertical-rl; rotate: 180deg; font-size: clamp(2rem, 1rem + 1.6vw, 3.25rem); }
    html:lang(ja) .room__tabname { rotate: none; letter-spacing: 0.06em; }
    .room__body { padding: 2.5rem; }
    .room__text { max-width: 52%; gap: 1rem; }
    .room__line { font-size: 1.125rem; }
    .room__art { right: 1rem; bottom: 0; width: 44%; max-width: none; }
    .room__count { right: 2.5rem; top: 2.5rem; font-size: 0.875rem; }
  }

  /* home: edit */
  .section { padding-top: 4rem; }
  @media (min-width: 45rem) { .section { padding-top: 6rem; } }
  .section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
  .section__title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.75rem); }
  .section__sub { color: var(--ink-2); margin-top: 0.5rem; max-width: 52ch; }
  /* Shop by room: one card per room, its colour on top, two favourites inside. */
  .quads { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  @media (min-width: 45rem) { .quads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
  @media (min-width: 75rem) { .quads { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .quad { padding: 0.75rem 1rem 1.25rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); border-top: 4px solid var(--room); }
  .quad__title a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: var(--tap); font-family: var(--display); font-size: 1.75rem; font-weight: 400; line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; }
  .quad__title svg { width: 1.25rem; height: 1.25rem; flex: none; transition: translate 160ms var(--ease); }
  @media (hover: hover) { .quad__title a:hover svg { translate: 0.25rem 0; } }
  .quad__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
  .quad__item { display: grid; align-content: start; gap: 0.375rem; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
  .quad__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint, var(--chalk)); }
  .quad__img > svg, .quad__img > .photo { display: block; width: 100%; height: 100%; transition: transform 300ms var(--ease); }
  @media (hover: hover) { .quad__item:hover .quad__img > * { transform: scale(1.03); } .quad__item:hover .quad__name { text-decoration: underline; text-underline-offset: 0.2em; } }
  .quad__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; font-size: 0.9375rem; line-height: 1.3; overflow-wrap: anywhere; }
  .quad__price { display: flex; flex-wrap: wrap; gap: 0 0.5rem; font-weight: 700; }
  .quad__price s { font-weight: 400; font-size: 0.875rem; color: var(--ink-2); }
  .fine-print { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--ink-2); max-width: 70ch; }

  /* home: promise */
  .promise { margin-top: 5rem; background: var(--ink); color: #fff; }
  .promise .wrap { padding-block: 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .promise__title { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 4.5rem); }
  .promise__points { display: grid; gap: 1rem; margin-top: 1.5rem; }
  .promise__points li { padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 0.24); }
  .promise__points b { display: block; }
  .promise__points span { color: rgb(255 255 255 / 0.78); font-size: 0.9375rem; }
  @media (min-width: 64rem) { .promise .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: center; padding-block: 5.5rem; } .promise__points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; } }

  /* listing pages */
  .band { color: var(--ink); }
  .band .wrap { padding-block: 2.5rem 2rem; display: grid; gap: 0.75rem; }
  .band__title { font-size: clamp(2.75rem, 1.6rem + 5vw, 7.5rem); }
  .band__line { font-size: 1.0625rem; max-width: 46ch; opacity: 0.9; }
  .band--aubergine { background: var(--aubergine); color: #fff; }
  .band--sky { background: var(--sky); }
  .band--saffron { background: var(--saffron); }
  .band--forest { background: var(--forest); color: #fff; }
  .band--plain { background: var(--chalk); }
  .toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding-block: 1.25rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
  .toolbar__count { color: var(--ink-2); font-size: 0.9375rem; }
  .toolbar label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; max-width: 100%; font-size: 0.9375rem; }
  .toolbar .select { width: auto; min-width: min(13rem, 100%); max-width: 100%; }
  .empty { padding: 3rem 0; display: grid; gap: 1rem; justify-items: start; }
  .empty__title { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }

  /* product dialog */
  .pd { display: grid; gap: 1.5rem; }
  .pd__media { position: relative; aspect-ratio: 4 / 5; background: var(--tint, var(--chalk)); }
  .pd__media > svg { width: 100%; height: 100%; }
  /* Phones: a smaller picture, so the name, price, sizes and the Add bar all show without scrolling. */
  @media (max-width: 44.99rem) {
    .pd__media { aspect-ratio: auto; height: min(30svh, 18rem); }
    .pd { gap: 1rem; }
    .pd__info { gap: 0.75rem; }
    .pd__title { font-size: 1.75rem; }
    .pd__price .price { font-size: 1.5rem; }
  }
  .pd-foot { gap: 0.5rem; padding-top: 0.75rem; }
  .pd-foot .size-hint { margin: 0; }
  .pd-foot__risk { font-size: 0.8125rem; color: var(--ink-2); text-align: center; }
  .pd__tags { position: absolute; inset: 0.75rem 0.75rem auto 0.75rem; }
  .pd__lowest { font-size: 0.8125rem; color: var(--ink-2); margin-top: -0.5rem; }
  .pd__info { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
  .pd__brand { font-size: 0.875rem; color: var(--ink-2); }
  .pd__title { font-family: var(--display); font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem); line-height: 1.06; font-weight: 400; overflow-wrap: anywhere; }
  .pd__price { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
  .pd__price .price { font-size: 1.75rem; }
  .pd__vat { font-size: 0.875rem; color: var(--ink-2); }
  /* size picker: equal tiles in one row, sold-out sizes crossed through */
  .sizepick { display: grid; gap: 0.75rem; }
  .sizepick__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--tap); margin-bottom: -0.5rem; }
  .sizes { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0.5rem; }
  .size { min-height: 3rem; padding: 0 0.25rem; border: 1px solid var(--line-strong); background: var(--paper); font-weight: 700; font-size: 0.9375rem; transition: background-color 120ms var(--ease), border-color 120ms var(--ease), color 120ms var(--ease); }
  @media (hover: hover) { .size:hover:not(:disabled) { border-color: var(--ink); } }
  .size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .size:disabled { color: var(--ink-2); border-color: var(--line); background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line-strong) 50%, transparent calc(50% + 0.5px)), var(--chalk); }
  .size-hint { font-size: 0.875rem; color: var(--ink-2); margin-top: -0.5rem; }
  .size-hint.is-alert { color: var(--sale); font-weight: 700; }
  .fit { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }
  .fit svg { width: 1.25rem; height: 1.25rem; flex: none; }
  .fit span { color: var(--ink-2); }
  .fit b { color: var(--ink); }
  .chart { display: grid; gap: 0.5rem; padding: 1rem; background: var(--chalk); font-size: 0.875rem; }
  .chart table { width: 100%; border-collapse: collapse; }
  .chart th, .chart td { padding: 0.4375rem 0.5rem; text-align: left; border-bottom: 1px solid var(--line); }
  .chart thead th { font-weight: 700; border-bottom-color: var(--line-strong); }
  .chart tbody th { font-weight: 700; }
  .chart p { color: var(--ink-2); font-size: 0.8125rem; }
  .notice { padding: 0.875rem 1rem; background: var(--chalk); font-size: 1rem; line-height: 1.5; }
  .notice--warn { box-shadow: inset 3px 0 0 var(--sale); }
  .facts { display: grid; gap: 0.625rem; font-size: 0.9375rem; }
  .facts li { display: flex; align-items: flex-start; gap: 0.625rem; }
  .facts svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.0625rem; }
  details.more { border-top: 1px solid var(--line); }
  details.more summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; font-weight: 700; cursor: pointer; list-style: none; }
  details.more summary::-webkit-details-marker { display: none; }
  details.more summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; }
  details.more[open] summary::after { content: "\2212"; }
  details.more > div { padding-bottom: 1rem; font-size: 0.9375rem; display: grid; gap: 0.5rem; }
  @media (min-width: 45rem) { .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; } .pd__media { position: sticky; top: 0; } }

  /* basket */
  .sheet__count { margin-inline-start: 0.625rem; font-family: var(--sans); font-size: 0.9375rem; color: var(--ink-2); vertical-align: 0.25em; }
  /* Your things laid out on a chalk table: one card per parcel, each item marked with its room's colour,
     and a paper receipt at the end. */
  .bk-body { background: var(--chalk); gap: 1rem; }
  .bk-meter { gap: 0.875rem; padding: 0.875rem 1rem 1.125rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
  .bk-meter .meter__text { font-size: 0.9375rem; }
  .bk-meter__track { position: relative; height: 0.375rem; margin-inline: 0.875rem; border-radius: 1rem; background: rgb(22 22 29 / 0.1); }
  .bk-meter__fill { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: var(--ink); transition: width 300ms var(--ease); }
  .bk-meter__truck { position: absolute; top: 50%; left: var(--p); width: 1.75rem; height: 1.75rem; padding: 0.3125rem; translate: -50% -50%; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); transition: left 300ms var(--ease); }
  .bk-meter.is-done { background: var(--ok-wash); box-shadow: inset 0 0 0 1px rgb(31 107 71 / 0.25); }
  .bk-meter.is-done .bk-meter__fill { background: var(--ok); }
  .bk-meter.is-done .bk-meter__truck { color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
  .parcel { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
  .parcel__head { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 1rem; border-bottom: 1px dashed var(--line-strong); }
  .parcel__head svg { width: 1.375rem; height: 1.375rem; flex: none; margin-top: 0.0625rem; }
  .parcel__head b { display: block; font-size: 0.9375rem; }
  .parcel__head span { display: block; font-size: 0.8125rem; color: var(--ink-2); }
  .line { display: grid; grid-template-columns: min(5rem, 24vw) minmax(0, 1fr) auto; gap: 0.25rem 0.875rem; padding: 1rem; }
  .line + .line { border-top: 1px solid var(--line); }
  .line__img { grid-row: span 2; align-self: start; aspect-ratio: 4 / 5; background: var(--tint, var(--chalk)); border-top: 3px solid var(--room, var(--ink)); }
  .line__img > svg, .line__img .no-img { width: 100%; height: 100%; }
  .line__room { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 700; color: var(--ink-2); }
  .line__room::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--room, var(--ink)); box-shadow: inset 0 0 0 1px rgb(22 22 29 / 0.15); }
  .line__title { margin-top: 0.125rem; font-family: var(--display); font-size: 1.1875rem; line-height: 1.15; overflow-wrap: anywhere; }
  .line__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--ink-2); }
  .line__price { font-weight: 700; text-align: right; white-space: nowrap; }
  .line__actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
  .line__remove { font-size: 0.875rem; color: var(--ink-2); }
  .stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); background: var(--paper); }
  .stepper button { display: grid; place-items: center; width: var(--tap); height: var(--tap); max-width: max(44px, 15vw); border: 0; background: none; }
  @media (max-width: 22.5rem) { .line__actions { grid-column: 1 / -1; } }
  .stepper button svg { width: 1rem; height: 1rem; }
  @media (hover: hover) { .stepper button:hover { background: var(--chalk); } }
  .stepper output { min-width: 2rem; text-align: center; font-weight: 700; }
  .summary { display: grid; gap: 0.625rem; padding: 1.125rem 1rem; border: 1px solid var(--line); }
  .summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.9375rem; }
  .summary small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--ink-2); }
  .summary__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 0.25rem; padding-top: 0.875rem; border-top: 1px solid var(--ink); font-weight: 700; }
  .summary__total > span:last-child { font-size: 1.5rem; line-height: 1; }
  .btn--split { flex-wrap: wrap; justify-content: space-between; column-gap: 1rem; }
  /* The receipt: a torn paper top edge, dotted leaders, and the total in the brand serif. */
  .bk-receipt { position: relative; grid-template-columns: minmax(0, 1fr); margin-top: 0.75rem; gap: 0.5rem; padding: 1rem 1rem 1.125rem; border: 0; background: var(--paper); }
  .bk-receipt::before { content: ""; position: absolute; left: 0; right: 0; top: -0.625rem; height: 0.625rem; background: linear-gradient(-45deg, var(--paper) 0.3125rem, transparent 0), linear-gradient(45deg, var(--paper) 0.3125rem, transparent 0); background-position: left bottom; background-repeat: repeat-x; background-size: 0.625rem 0.625rem; }
  .bk-receipt__cap { padding-bottom: 0.75rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
  .bk-receipt .summary__row { justify-content: flex-start; gap: 0.5rem; }
  .bk-receipt .summary__row::after { content: ""; order: 1; flex: 1 1 1rem; min-width: 1rem; border-bottom: 2px dotted var(--line-strong); transform: translateY(-0.25rem); }
  .bk-receipt .summary__row > span:first-child { min-width: 0; }
  .bk-receipt .summary__row > span:last-child { order: 2; white-space: nowrap; }
  .bk-receipt .summary__total { border-top: 2px solid var(--ink); }
  .bk-receipt .summary__total > span:last-child { font-family: var(--display); font-size: 2rem; font-weight: 400; }
  .bk-extras { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.875rem; }
  .bk-pay dt { font-weight: 700; }
  .bk-pay dd { color: var(--ink-2); }
  .bk-foot { gap: 0.625rem; }
  .bk-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; font-size: 0.8125rem; color: var(--ink-2); }
  .bk-trust li { display: inline-flex; align-items: center; gap: 0.375rem; }
  .bk-trust svg { width: 1.125rem; height: 1.125rem; flex: none; }
  .bk-empty { display: grid; justify-items: start; gap: 0.875rem; padding-block: 0.5rem; }
  .bk-empty__icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--paper); }
  /* Empty basket: the four rooms as coloured doors, the same colours as the home page. */
  .bk-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; width: 100%; margin-top: 0.5rem; }
  .bk-room { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; min-height: 6.5rem; padding: 0.875rem 1rem; background: var(--room); color: var(--ink); text-decoration: none; }
  .bk-room--dark { color: #fff; }
  .bk-room__name { font-family: var(--display); font-size: 1.5rem; line-height: 1.05; overflow-wrap: anywhere; }
  .bk-room svg { align-self: flex-end; width: 1.25rem; height: 1.25rem; transition: translate 160ms var(--ease); }
  @media (hover: hover) { .bk-room:hover svg { translate: 0.25rem 0; } }
  .bk-empty__icon svg { width: 1.75rem; height: 1.75rem; }

  /* search */
  .search-box { display: flex; align-items: center; border: 1px solid var(--line-strong); background: var(--paper); }
  .search-box > svg { width: 1.25rem; height: 1.25rem; flex: none; margin-inline-start: 1rem; color: var(--ink-2); }
  .search-box input { flex: 1; min-width: 0; height: 3.25rem; padding: 0 0.75rem; border: 0; font-size: 1.0625rem; background: none; }
  .search-box input::-webkit-search-cancel-button, .search-box input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
  .search-box input:focus-visible { outline: none; }
  .search-box:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
  .search-count { font-size: 0.875rem; color: var(--ink-2); }
  .search-count:empty { display: none; }
  .results { display: grid; gap: 0.25rem; }
  .result { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 0.875rem; align-items: center; width: 100%; padding: 0.5rem; border: 0; background: none; text-align: left; }
  @media (hover: hover) { .result:hover { background: var(--chalk); } }
  .result__img { aspect-ratio: 4 / 5; background: var(--tint, var(--chalk)); }
  .result__img > svg, .result__img .no-img { width: 100%; height: 100%; }
  .result small { display: block; color: var(--ink-2); font-size: 0.8125rem; }
  /* language list */
  .langs { display: grid; gap: 0.5rem; }
  @media (min-width: 30rem) { .langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .lang-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 0.875rem; width: 100%; min-height: 3.75rem; padding: 0.625rem 1rem; border: 1px solid var(--line); background: var(--paper); text-align: left; transition: border-color 120ms var(--ease); }
  .lang-opt .lang-mark { grid-column: 1; grid-row: 1 / span 2; width: 2.25rem; height: 1.9375rem; padding-bottom: 0.375rem; font-size: 1rem; }
  .lang-opt[aria-current="true"] .lang-mark { --bubble-fill: var(--ink); --bubble-stroke: var(--ink); color: #fff; }
  .lang-opt__name { grid-column: 2; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; font-family: var(--sans); }
  .lang-opt__sub { grid-column: 2; font-size: 0.8125rem; color: var(--ink-2); }
  .lang-opt__check { grid-column: 3; grid-row: 1 / span 2; width: 1.25rem; height: 1.25rem; visibility: hidden; }
  .lang-opt[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  .lang-opt[aria-current="true"] .lang-opt__check { visibility: visible; }
  @media (hover: hover) { .lang-opt:hover { border-color: var(--ink); } }
  .lang-opt__name:lang(el) { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
  .lang-opt__name:lang(ja) { font-family: "Hiragino Sans", "Yu Gothic UI", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
  .lang-note { font-size: 0.875rem; color: var(--ink-2); }
  /* Language suggestion: a quiet bar under the header, in the suggested language. Never a switch, never a pop-up. */
  .lang-hint { background: var(--chalk); border-bottom: 1px solid var(--line); }
  .lang-hint__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; padding-block: 0.5rem; }
  .lang-hint__text { display: flex; align-items: center; gap: 0.75rem; margin-inline-end: auto; font-size: 0.9375rem; min-height: var(--tap); }
  .lang-hint__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
  .lang-hint .btn { min-height: var(--tap); padding: 0 1rem; font-size: 0.9375rem; }
  .lang-hint .link-btn { font-size: 0.9375rem; color: var(--ink-2); }
  @media (min-width: 45rem) { .sheet--lang { width: min(36rem, calc(100vw - 4rem)); } }
  .result__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.35; }
  .result__price { text-align: right; white-space: nowrap; }
  .result__price small { color: var(--ink-2); font-weight: 400; }
  .stepper button[aria-disabled="true"] { color: var(--line-strong); cursor: not-allowed; }
  .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .chip { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1rem; border: 1px solid var(--line-strong); text-decoration: none; background: var(--paper); }
  @media (hover: hover) { .chip:hover { border-color: var(--ink); } }

  /* menu */
  .menu-list a { display: flex; align-items: center; min-height: 3.5rem; font-family: var(--display); font-size: 1.875rem; text-decoration: none; border-bottom: 1px solid var(--line); }
  .info-body p + p { margin-top: 0.75rem; }
  .no-img { display: block; width: 100%; height: 100%; }
  /* Photos: fixed frame, whole product visible, sized by the browser from srcset. */
  .photo { display: block; width: 100%; height: 100%; object-fit: contain; }
  .room__art .photo { height: auto; aspect-ratio: 4 / 5; }
  .pd__thumbs { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .pd__thumb { width: var(--tap); height: var(--tap); padding: 0; border: 1px solid var(--line-strong); background: var(--paper); }
  .pd__thumb .photo { object-fit: cover; }
  .pd__thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); border-color: var(--ink); }
  .info-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
  .info-table th, .info-table td { padding: 0.5rem 0.375rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
  .info-table thead th { font-size: 0.8125rem; color: var(--ink-2); border-bottom-color: var(--line-strong); }
  .legal-dl { display: grid; gap: 0.625rem; padding: 1rem; background: var(--chalk); }
  .legal-dl dt { font-size: 0.8125rem; color: var(--ink-2); }
  .info-body { max-width: 70ch; }

  /* checkout */
  /* One page: the form on the left, the order summary on the right (on phones, a summary you can open at the top). */
  .co-layout { display: grid; gap: 1.5rem; }
  .co-aside { order: -1; min-width: 0; }
  @media (min-width: 45rem) { .co-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: start; } .co-aside { order: 0; position: sticky; top: 0; } }
  .co-form { gap: 1.75rem; }
  .co-sec { display: grid; gap: 1rem; min-width: 0; }
  .co-sec + .co-sec { padding-top: 1.75rem; border-top: 1px solid var(--line); }
  .co-sec__h { font-family: var(--display); font-size: 1.5rem; font-weight: 400; line-height: 1.1; }
  .field__hint { margin-top: -0.25rem; font-size: 0.8125rem; color: var(--ink-2); }
  .co-note { font-size: 0.875rem; color: var(--ink-2); }
  .co-ship { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; box-shadow: inset 0 0 0 2px var(--ink); }
  .co-ship svg { width: 1.375rem; height: 1.375rem; }
  .co-ship span { display: block; font-size: 0.8125rem; color: var(--ink-2); }
  .co-sum { padding-inline: 1rem; background: var(--chalk); }
  .co-sum > summary { display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; font-weight: 700; cursor: pointer; list-style: none; }
  .co-sum > summary::-webkit-details-marker { display: none; }
  .co-sum > summary > span:first-child { margin-inline-end: auto; }
  .co-sum > summary::after { content: "+"; font-size: 1.375rem; font-weight: 400; line-height: 1; }
  .co-sum[open] > summary::after { content: "\2212"; }
  .co-sum[open] { padding-bottom: 1rem; }
  .co-sum__lines { display: grid; gap: 0.875rem; padding-block: 0.5rem 0.25rem; }
  .co-sum__lines li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: center; gap: 0.875rem; font-size: 0.9375rem; }
  .co-sum__img { position: relative; aspect-ratio: 4 / 5; background: var(--tint, var(--paper)); }
  .co-sum__img > svg, .co-sum__img .no-img { display: block; width: 100%; height: 100%; }
  .co-sum__qty { position: absolute; top: -0.5rem; right: -0.5rem; min-width: 1.375rem; height: 1.375rem; padding-inline: 0.375rem; border-radius: 1rem; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.375rem; text-align: center; }
  .co-sum__name { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
  .co-sum__name small { display: block; font-size: 0.8125rem; color: var(--ink-2); }
  .co-sum .summary { margin-top: 0.5rem; background: var(--paper); }
  .co-h { font-family: var(--display); font-size: 1.75rem; font-weight: 400; line-height: 1.1; }
  .co-h:focus { outline: none; }
  .co-h:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .co-grid { display: grid; gap: 1rem; }
  @media (min-width: 30rem) { .co-grid--2 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
  .choices { display: grid; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
  .choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.125rem 0.875rem; min-height: 3.5rem; padding: 0.75rem 1rem; border: 1px solid var(--line-strong); cursor: pointer; }
  .choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--ink); }
  .choice small { grid-column: 2 / -1; font-size: 0.8125rem; color: var(--ink-2); }
  .choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  .choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
  .choice input:focus-visible { outline: none; }
  .co-parcels { display: grid; gap: 0.5rem; font-size: 0.9375rem; }
  .co-parcels li { display: grid; padding: 0.75rem 1rem; background: var(--chalk); }
  .co-parcels span { color: var(--ink-2); font-size: 0.875rem; }
  .summary__row--sub { color: var(--ink-2); font-size: 0.875rem; }
  .co-done { display: grid; gap: 1rem; justify-items: start; }
  .co-done > .btn { justify-self: stretch; }
  .co-done__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ok-wash); color: var(--ok); }
  .co-done__icon svg { width: 1.75rem; height: 1.75rem; }
  .co-order { font-size: 1.25rem; letter-spacing: 0.02em; overflow-wrap: anywhere; }
}
