.mk-catalogue, .mk-product, .mk-card {
  --mk-ink: #272722;
  --mk-muted: #65635a;
  --mk-line: #d8d3c9;
  --mk-tint: #f1ece2;
  --mk-accent: #872d23;
  --mk-serif: var(--serif, "Songti TC", "Noto Serif TC", Georgia, serif);
  color: var(--mk-ink);
}
.mk-catalogue, .mk-product { padding-bottom: clamp(64px, 8vw, 120px); }
.mk-heading { padding: clamp(48px, 6vw, 90px) 0 clamp(28px, 3.9vw, 55px); border-bottom: 1px solid var(--mk-ink); }
.mk-heading h1, .mk-detail-copy h1, .mk-related h2, .mk-card-name h3, .mk-empty h2 {
  margin: 0; font-family: var(--mk-serif); font-weight: 600; color: inherit;
}
.mk-heading h1, .mk-detail-copy h1 { font-size: clamp(42px, 5.2vw, 74px); line-height: 1.16; letter-spacing: -.035em; }
.mk-heading p, .mk-detail-copy > p {
  margin: 16px 0 0; color: var(--mk-muted); line-height: 1.75;
  max-width: 56ch; font-size: clamp(15px, 1.25vw, 18px);
}
.mk-catalogue-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--mk-line); }
.mk-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-filters button, .mk-search, .mk-empty button { font: inherit; }
.mk-filters button {
  cursor: pointer; min-height: 40px; padding: 7px 17px; border: 1px solid var(--mk-line);
  border-radius: 2px; color: var(--mk-ink); background: transparent; font-size: 14px; font-weight: 550;
}
.mk-filters button[aria-pressed="true"] { color: #fffdf8; border-color: var(--mk-ink); background: var(--mk-ink); }
.mk-search {
  box-sizing: border-box; display: flex; align-items: center; gap: 9px;
  width: clamp(190px, 24vw, 310px); padding: 9px 12px; min-height: 42px;
  border: 1px solid var(--mk-line); border-radius: 2px; color: var(--mk-muted); background: transparent;
}
.mk-search svg { flex: none; }
.mk-search input { min-width: 0; width: 100%; padding: 0; font: inherit; font-size: 14px; border: none; color: var(--mk-ink); background: transparent; }
.mk-search:focus-within, .mk-filters button:focus-visible, .mk-card:focus-visible, .mk-empty button:focus-visible {
  outline: 2px solid var(--mk-accent); outline-offset: 3px;
}
.mk-search input:focus { outline: 0; }
.mk-search input::placeholder { color: var(--mk-muted); opacity: 1; }
.mk-result-count { padding: 19px 0; color: var(--mk-muted); font-size: 13px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.3vw, 38px); }
.mk-card { display: block; min-width: 0; text-decoration: none; }
.mk-card-image, .mk-detail-image { position: relative; overflow: hidden; width: 100%; aspect-ratio: 3 / 2; background: var(--mk-tint); }
.mk-card-image img, .mk-detail-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-image-label {
  position: absolute; left: 12px; top: 12px; padding: 4px 8px; line-height: 1.3; font-family: inherit;
  font-size: 11px; font-weight: 550; letter-spacing: .02em; background: #faf8f1; color: #554d40; border: 1px solid #cfc6b7;
}
.mk-card-type { display: flex; align-items: center; gap: 9px; margin: 17px 0 5px; color: var(--mk-muted); font-size: 12px; font-weight: 550; }
.mk-card-type span { opacity: .6; }
.mk-card-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mk-card-name h3 { font-size: clamp(21px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.35; }
.mk-card-brand { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 9px; padding: 7px 0 16px; color: var(--mk-muted); border-bottom: 1px solid var(--mk-line); font-family: inherit; font-size: 12px; }
.mk-detail-hint { color: var(--mk-accent); text-decoration: underline; text-underline-offset: 3px; }
.mk-empty { grid-column: 1/-1; padding: 62px 18px; text-align: center; border: 1px solid var(--mk-line); }
.mk-empty h2 { font-size: 24px; }
.mk-empty button { margin-top: 16px; padding: 8px 12px; cursor: pointer; border: 1px solid var(--mk-line); background: transparent; color: var(--mk-accent); }
.mk-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 30px 0; color: var(--mk-muted); font-size: 13px; }
.mk-breadcrumb a { color: inherit; text-underline-offset: 3px; }
.mk-detail-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); align-items: start; gap: clamp(30px, 5vw, 84px); }
.mk-detail-image { align-self: start; }
.mk-detail-copy { border-top: 1px solid var(--mk-ink); padding-top: clamp(20px, 2.5vw, 38px); }
.mk-detail-copy h1 { font-size: clamp(34px, 3.6vw, 55px); line-height: 1.22; }
.mk-facts { margin: 24px 0; }
.mk-facts div { display: flex; gap: 16px; justify-content: space-between; padding: 12px 0; line-height: 1.5; border-bottom: 1px solid var(--mk-line); font-size: 14px; }
.mk-facts dt { color: var(--mk-muted); }
.mk-facts dd { margin: 0; text-align: right; font-weight: 600; }
.mk-enquire { display: inline-flex; align-items: center; gap: 16px; }
.mk-related { margin-top: clamp(58px, 7vw, 110px); padding-top: clamp(20px, 2.7vw, 44px); border-top: 1px solid var(--mk-ink); }
.mk-related h2 { margin-bottom: 25px; font-size: clamp(26px, 3vw, 42px); }
@media (hover: hover) {
  .mk-card:hover h3, .mk-filters button[aria-pressed="false"]:hover { color: var(--mk-accent); }
}
@media (max-width: 820px) {
  .mk-detail-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 25px; }
  .mk-related .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .mk-catalogue-tools { align-items: stretch; flex-direction: column; gap: 16px; padding: 18px 0; }
  .mk-search { width: 100%; }
  .mk-filters button { padding-inline: 13px; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 13px; }
  .mk-image-label { left: 6px; top: 6px; font-size: 10px; padding: 3px 5px; }
  .mk-card-name h3 { font-size: 20px; }
  .mk-card-type { margin-top: 11px; }
  .mk-breadcrumb { margin: 20px 0; }
  .mk-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mk-detail-copy { padding-top: 20px; }
}
@media (max-width: 370px) {
  .mk-grid, .mk-related .mk-grid { grid-template-columns: minmax(0, 1fr); }
}
