:root {
  --paper: #fcf7ee;
  --ink: #31251e;
  --muted: #62564b;
  --peach: #f6dfcf;
  --clay: #844a36;
  --olive: #354b36;
  --sage: #e5eadc;
  --line: #daccbd;
  --serif: "Instrument Serif", "Baskerville", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(100% - 7.5rem, 1240px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset: .6rem auto auto .6rem; z-index: 10; background: var(--paper); padding: .7rem 1rem; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 1.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .62rem;
  text-decoration: none;
  font: 400 clamp(1.55rem, 2.2vw, 2.1rem)/1 var(--serif);
  white-space: nowrap;
}
.brand-cat {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #f9d2b8 url("./assets/wens-logo.jpg") 84% 42% / 420% auto no-repeat;
}
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 2.75rem); }
.primary-nav a { text-decoration: none; font-size: .91rem; font-weight: 600; white-space: nowrap; }
.primary-nav a:hover, .text-link:hover { color: var(--clay); }
.cart-trigger {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  padding: .52rem .78rem .52rem .88rem;
  font-size: .86rem;
  line-height: 1.2;
  font-weight: 700;
  min-height: 42px;
  white-space: nowrap;
}
.cart-trigger:hover { background: #f3eadf; }
.cart-count {
  display: grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 100px;
  padding: 0 .22rem;
  color: white;
  background: var(--olive);
  font-size: .72rem;
}

.hero {
  position: relative;
  background: radial-gradient(ellipse at 16% 38%, #faeadd 1%, transparent 66%), var(--peach);
  border-bottom: 1px solid #e8cfc0;
}
.hero-inner {
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  align-items: center;
  gap: clamp(2.25rem, 5vw, 5.75rem);
  padding: 2.4rem 0 2.7rem;
}
.hero-copy { padding: 1rem 0 1.3rem clamp(0px, 2.4vw, 2rem); }
.location {
  display: flex;
  gap: .55rem;
  align-items: center;
  color: var(--clay);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.location span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero h1 {
  margin: .84rem 0 1.2rem;
  font: 400 clamp(4.9rem, 8.65vw, 8rem)/.84 var(--serif);
  letter-spacing: -.027em;
}
.hero h1 em { color: var(--olive); font-weight: 400; }
.hero-description { color: var(--muted); max-width: 34ch; font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero-actions, .contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; margin-top: 1.65rem; }
.button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  font-weight: 700;
  font-size: .91rem;
  line-height: 1.25;
}
.button { min-height: 48px; padding: .75rem 1.12rem; border-radius: 5px; border: 1px solid transparent; text-decoration: none; }
.button-primary { background: var(--olive); color: #fffaf2; }
.button-primary:hover { background: #263b29; }
.button-primary:disabled { background: #52634c; }
.button-outline { border-color: var(--olive); background: transparent; color: var(--olive); }
.button-outline:hover { background: #d9e1d1; }
.text-link {
  background: none;
  border: 0;
  padding: .45rem 0;
  text-decoration: underline;
  text-underline-offset: .28em;
  text-decoration-thickness: 1px;
  min-height: 44px;
}
.hero-art { position: relative; width: 100%; max-width: 548px; justify-self: end; padding-left: 1.15rem; }
.hero-photo {
  height: clamp(390px, 38.7vw, 545px);
  overflow: hidden;
  border-radius: 42% 42% 9px 9px / 31% 31% 9px 9px;
  background: #315482;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-inset {
  position: absolute;
  bottom: 1.45rem;
  left: -.72rem;
  width: clamp(112px, 11vw, 152px);
  aspect-ratio: 4 / 5;
  background: var(--paper);
  padding: 6px;
  border-radius: 6px;
  transform: rotate(-6deg);
  box-shadow: 0 10px 28px #37201526;
}
.hero-inset img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 56%; border-radius: 2px; }
.hero-art figcaption { position: absolute; bottom: 1rem; right: 1rem; }
.hero-caption {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: 3px;
  font-size: .8rem;
  font-weight: 700;
  padding: .58rem .7rem;
  min-height: 40px;
}
.hero-caption { text-decoration: none; }
.hero-caption:hover { background: #fffaf1; color: var(--clay); }

.catalog { padding-block: 3.5rem 5rem; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 1.15rem; margin-bottom: 1.6rem; }
.section-header h2, .contact h2, .dialog-panel h2 {
  font: 400 clamp(2.75rem, 4.7vw, 4.2rem)/.98 var(--serif);
  letter-spacing: -.015em;
}
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.product-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  text-align: left;
  text-decoration: none;
}
.card-media {
  display: block;
  overflow: hidden;
  border-radius: 7px;
  aspect-ratio: 4 / 5;
  background: #e9ded0;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; transition: transform .25s ease; }
.product-card:hover .card-media img { transform: scale(1.035); }
.card-title-row { display: flex; align-items: start; justify-content: space-between; gap: .36rem; margin: .78rem 0 .2rem; }
.card-title { font: 400 clamp(1.45rem, 2.3vw, 1.96rem)/1.05 var(--serif); }
.card-arrow { color: var(--olive); margin-top: .32rem; }
.card-description { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.contact { background: var(--sage); border-block: 1px solid #d5ddcd; }
.contact-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.4rem; align-items: center; padding-block: 3.6rem; }
.contact-copy p { margin-top: .95rem; max-width: 48ch; color: #495742; }
.contact-links { margin-top: 1.25rem; gap: .65rem; }
.qr-card {
  justify-self: center;
  display: grid;
  gap: .3rem;
  justify-items: center;
  background: #fffefa;
  padding: .75rem .8rem .8rem;
  border: 1px solid #d4ddca;
  border-radius: 8px;
  text-decoration: none;
  font-size: .8rem;
  color: var(--olive);
  font-weight: 700;
}
.qr-card:hover { color: var(--clay); }
.qr-image { width: 140px; aspect-ratio: 1; background: white url("./assets/instagram-qr.jpg") center 36.1% / 176% auto no-repeat; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; padding-block: 1.4rem; }
.footer-logo { display: block; width: 174px; height: 79px; overflow: hidden; border-radius: 5px; }
.footer-logo img { width: 100%; height: 100%; object-fit: cover; }
.footer-location { color: var(--ink); font-size: .93rem; font-weight: 700; text-align: center; }
.footer-location span { color: var(--muted); font-size: .8rem; font-weight: 400; }

dialog { border: 0; padding: 0; border-radius: 11px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 65px #251e2154; max-height: calc(100dvh - 2rem); }
dialog::backdrop { background: rgb(38 31 24 / .62); }
.dialog-panel { position: relative; }
.dialog-close { position: absolute; top: .8rem; right: .8rem; z-index: 1; }
.dialog-close button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 1.6rem; line-height: 1; }
.dialog-close button:hover { background: var(--peach); }
.product-page { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem); }
.shop-trail { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-bottom: 1rem; color: var(--muted); }
.shop-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--olive);
  font-size: .88rem;
  font-weight: 700;
  text-underline-offset: .24em;
}
.product-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}
.product-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: #e9ded0;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-copy { display: grid; justify-items: start; gap: 1.05rem; }
.product-copy h1, .collection-intro h1 { font: 400 clamp(3rem, 6.3vw, 5.75rem)/.94 var(--serif); letter-spacing: -.02em; }
.product-description, .collection-intro p { color: var(--muted); max-width: 42ch; }
.product-price { color: var(--olive); font-size: 1.16rem; font-weight: 700; }
.product-copy > .text-link { min-height: 38px; }
.collection-intro p { margin-block: .65rem 2.05rem; }
.collection-intro:not([hidden]) + .collection-header { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: .6rem; }
.photo-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 1rem;
  background: var(--collection-tone, #eee5d6);
  color: var(--muted);
  text-align: center;
  font: 400 clamp(1.25rem, 2.25vw, 1.9rem)/1.1 var(--serif);
}

@media (max-width: 1050px) {
  .shell { width: calc(100% - 4.4rem); }
  .hero-inner { gap: 2.25rem; }
  .hero-copy { padding-left: 0; }
  .primary-nav { gap: 1.15rem; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 112px; }
  .shell { width: calc(100% - 2.15rem); }
  .header-inner { grid-template-columns: 1fr auto; column-gap: .7rem; row-gap: .1rem; min-height: auto; padding: .62rem 0 .5rem; }
  .brand { font-size: 1.65rem; gap: .46rem; }
  .brand-cat { width: 33px; height: 33px; flex-basis: 33px; }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; gap: 1.5rem; padding: .12rem .1rem 0; }
  .primary-nav a { min-height: 37px; display: inline-flex; align-items: center; font-size: .82rem; }
  .cart-trigger { grid-row: 1; grid-column: 2; padding-inline: .55rem; font-size: .75rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.2rem 1.25rem; }
  .hero-copy { padding: 0 .17rem; }
  .hero h1 { font-size: clamp(4.55rem, 14vw, 6.3rem); margin-block: .72rem .92rem; }
  .hero-description { max-width: 31ch; }
  .hero-actions { margin-top: 1.25rem; gap: .42rem .9rem; }
  .hero-art { justify-self: center; padding-left: .35rem; }
  .hero-photo { height: auto; aspect-ratio: 1 / 1.02; max-height: 445px; border-top-left-radius: 36% 30%; border-top-right-radius: 36% 30%; }
  .hero-inset { width: clamp(84px, 23vw, 113px); bottom: 1rem; left: -.12rem; padding: 4px; }
  .hero-art figcaption { bottom: .68rem; right: .65rem; }
  .hero-caption { font-size: .72rem; padding: .46rem .5rem; }
  .catalog { padding-block: 2.65rem 3.1rem; }
  .section-header { align-items: start; flex-direction: column; gap: .95rem; margin-bottom: 1.2rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .8rem; }
  .card-title { font-size: 1.48rem; }
  .card-description { font-size: .74rem; }
  .contact-inner { grid-template-columns: 1fr auto; padding-block: 2.5rem; gap: .9rem; align-items: start; }
  .qr-image { width: 88px; }
  .qr-card { padding: .42rem; font-size: .61rem; }
  .footer-inner { gap: .6rem; flex-wrap: wrap; }
  .footer-logo { width: 133px; height: 59px; }
  .footer-location { text-align: left; }
  .footer-inner > .text-link { font-size: .82rem; }
  .product-panel { grid-template-columns: 1fr; gap: 1.3rem; }
  .product-copy { gap: .8rem; }
}
@media (max-width: 390px) {
  .contact-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .qr-card { justify-self: start; }
  .qr-image { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
}

.arrow-ne { display: inline-block; position: relative; width: .75em; height: .75em; flex: none; text-decoration: none; }
.arrow-ne::before, .arrow-ne::after { content: ""; position: absolute; }
.arrow-ne::before { top: 0; right: 0; width: .47em; height: .47em; border-top: 1.5px solid; border-right: 1.5px solid; }
.arrow-ne::after { top: .34em; left: -.08em; width: .91em; height: 1.5px; background: currentColor; transform: rotate(-45deg); }

body:has(dialog[open]) { overflow: hidden; }
:where(input, select, textarea):focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
}
.collection-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
  background: var(--collection-tone, var(--peach));
  text-align: left;
  text-decoration: none;
}
.collection-cover {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 8 / 5;
  background: #e9ded0;
}
.collection-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.collection-cover[data-cover="category-keychain.jpg"] img { object-position: center 46%; }
.collection-cover[data-cover="category-potted-market.jpg"] img,
.collection-cover[data-cover="category-hanging-market.jpg"] img,
.collection-cover[data-cover="category-hair-clips.jpg"] img {
  inset: var(--cover-top) auto auto var(--cover-left);
  width: var(--cover-width);
  height: auto;
  max-width: none;
}
.collection-cover[data-cover="category-potted-market.jpg"] { --cover-width: 200%; --cover-left: -82.3%; --cover-top: -56.7%; }
.collection-cover[data-cover="category-hanging-market.jpg"] { --cover-width: 355%; --cover-left: -18.6%; --cover-top: -409.3%; }
.collection-cover[data-cover="category-hair-clips.jpg"] { --cover-width: 173.08%; --cover-left: -32.05%; --cover-top: -223.08%; }
.collection-caption {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .34rem;
  padding: .72rem 1.65rem .8rem .85rem;
}
:is(.collection-card, .card-media, .product-media)[data-tone="peach"] { --collection-tone: #f7e4d6; }
:is(.collection-card, .card-media, .product-media)[data-tone="sage"] { --collection-tone: #e8ebdf; }
:is(.collection-card, .card-media, .product-media)[data-tone="sand"] { --collection-tone: #f5ebd8; }
:is(.collection-card, .card-media, .product-media)[data-tone="rose"] { --collection-tone: #f5e4e1; }
:is(.collection-card, .card-media, .product-media)[data-tone="lilac"] { --collection-tone: #eee8ef; }
.collection-card:hover { border-color: var(--olive); }
.collection-name { font: 400 clamp(1.4rem, 2.25vw, 1.85rem)/1.02 var(--serif); }
.collection-note { color: var(--muted); font-size: .77rem; line-height: 1.3; }
.collection-caption .arrow-ne { position: absolute; right: .7rem; top: .82rem; color: var(--olive); font-size: .82rem; }
.collection-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .95rem; }
.collection-header h2 { font: 400 clamp(1.8rem, 3.5vw, 2.65rem)/1 var(--serif); }
.collection-header h2 a { display: inline-flex; align-items: baseline; gap: .45em; text-decoration: none; }
.collection-header h2 a:hover { color: var(--clay); }
.collection-header h2 .arrow-ne { color: var(--olive); font-size: .45em; }
#catalog-status { color: var(--muted); font-size: .85rem; }
.collection-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffaf2;
  color: var(--muted);
}
.product-tile { display: flex; flex-direction: column; align-items: start; gap: .55rem; min-width: 0; }
.product-card { flex: 1; }
.card-price { font-size: .88rem; font-weight: 700; color: var(--olive); }
.quick-add {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 40px;
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--olive);
  font-size: .81rem;
  font-weight: 700;
}
.quick-add:hover { border-color: var(--olive); background: var(--sage); }
.quick-add:active { background: #d9e1d1; }

.custom-section { background: #f4e3d6; border-block: 1px solid #e8cfc0; }
.custom-inner {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  align-items: center;
  gap: clamp(1.9rem, 6vw, 6.5rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.custom-photo {
  overflow: hidden;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1.32;
  border-radius: 40% 40% 7px 7px / 31% 31% 7px 7px;
  background: #cdd7be;
}
.custom-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.custom-copy h2 { font: 400 clamp(2.85rem, 5.8vw, 5.5rem)/.94 var(--serif); letter-spacing: -.015em; }
.custom-copy p { max-width: 42ch; color: var(--muted); margin-block: .85rem 1.2rem; }
.contact { border-top: 0; }

.order-dialog { width: min(640px, calc(100% - 1.7rem)); max-width: none; }
.transaction-panel { padding: clamp(1.4rem, 4.4vw, 2.4rem); }
.transaction-panel h2 { padding-right: 2.7rem; font-size: clamp(2.65rem, 6vw, 3.7rem); }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.panel-intro { color: var(--muted); margin-top: .75rem; font-size: .94rem; }
.cart-items { list-style: none; margin: 1rem 0 0; padding: 0; }
.cart-items:empty { display: none; }
.cart-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
}
.cart-line img, .cart-item-placeholder { width: 58px; height: 68px; object-fit: cover; border-radius: 4px; background: var(--peach); }
.cart-line-info strong { font: 400 clamp(1.37rem, 3vw, 1.75rem)/1.08 var(--serif); display: block; }
.cart-line-info p, .cart-total p { color: var(--muted); font-size: .84rem; margin-top: .3rem; }
.cart-line-controls { display: grid; justify-items: end; gap: .2rem; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fffaf2; }
.quantity-control button { min-width: 38px; min-height: 39px; border: 0; background: transparent; color: var(--olive); font-weight: 700; font-size: 1.15rem; }
.quantity-control button:hover:enabled { background: var(--sage); }
.quantity-control button:disabled { opacity: .42; }
.quantity-control span { min-width: 1.75rem; text-align: center; font-variant-numeric: tabular-nums; font-size: .87rem; }
.cart-remove { min-height: 29px; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; font-size: .78rem; }
.cart-total { margin-top: 1.15rem; }
.cart-total > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
.cart-total strong { color: var(--olive); }
.cart-actions, #order-review > .dialog-actions, #order-result > .dialog-actions { margin-top: 1.25rem; }
.back-button { margin-block: -.35rem .35rem; }
.form-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .85rem; }
#order-form, #custom-form { margin-top: 1rem; }
.field-wide { grid-column: 1 / -1; }
.field { min-width: 0; color: var(--ink); font-size: .87rem; font-weight: 700; }
.field-hint { color: var(--muted); font-weight: 400; font-size: .75rem; margin-inline-start: .17rem; }
.field :where(input, select, textarea), .custom-message textarea {
  display: block;
  min-height: 45px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin-top: .28rem;
  padding: .55rem .62rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffcf6;
  font-size: 1rem;
  font-weight: 400;
}
.field textarea, .custom-message textarea { resize: vertical; }
.field input[readonly] { color: var(--muted); background: #f4ede2; }
.address-fields { min-width: 0; margin: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 5px; }
.address-fields legend { font-size: .9rem; font-weight: 700; padding-inline: .2rem; }
.order-submit .button { margin-top: .8rem; }
.delivery-payment-note, .order-payment-note { color: var(--muted); font-size: .9rem; }
.delivery-payment-note { margin-top: .35rem; }
.order-payment-note { margin-top: 1rem; }
.preview-note { color: var(--clay); font-size: .84rem; margin-top: .3rem; }
.form-status { color: var(--olive); font-size: .86rem; margin-top: .5rem; }
#order-error { color: var(--clay); font-weight: 700; }
.order-summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .55rem .85rem;
  background: #f7eee3;
  border-radius: 5px;
  padding: 1rem;
  margin: 1.15rem 0 0;
  font-size: .88rem;
  line-height: 1.4;
}
.order-summary dt { font-weight: 700; }
.order-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
#order-result > .order-contact { margin-top: .35rem; }
.custom-message { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.custom-message .dialog-actions { margin-top: .7rem; }

@media (max-width: 1050px) {
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .catalog .section-header { flex-direction: row; align-items: center; }
  .catalog .section-header h2 { font-size: clamp(2.4rem, 10vw, 3.3rem); }
  .collection-intro p { margin-bottom: 1.45rem; }
  .collection-header { margin-bottom: .8rem; }
  .collection-empty { padding: 1rem; }
  .custom-inner { grid-template-columns: 1fr; gap: 1.15rem; }
  .custom-photo { max-width: 100%; aspect-ratio: 1.6; }
  .transaction-panel { padding: 1.3rem 1rem; }
}
@media (max-width: 390px) {
  .collection-caption { padding-inline-start: .65rem; }
  .collection-note { font-size: .72rem; }
  .cart-line { grid-template-columns: 45px minmax(0, 1fr) auto; gap: .52rem; }
  .cart-line img, .cart-item-placeholder { width: 45px; height: 59px; }
  .quantity-control button { min-width: 33px; }
  .order-summary { grid-template-columns: 1fr; gap: .28rem; }
  .order-summary dd + dt { margin-top: .35rem; }
}
