* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: #fff;
  color: #171717;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  padding: 0 6.3%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #eee;
}
h1 {
  margin: 0;
  font-size: inherit;
}
.logo {
  font-size: 0;
  line-height: 1;
  display: block;
  padding: 0;
}
.logo::before {
  content: "林";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: #fff;
  background: #050505;
}
.nav-link {
  font-size: 10px;
  letter-spacing: 1.2px;
  justify-self: start;
  padding: 15px 0;
}
.nav-link.right {
  justify-self: end;
}
.nav-link:hover,
footer a:hover {
  text-decoration: underline;
}
.collection-title {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #777;
}
.campaign {
  position: relative;
  height: calc(100svh - 90px);
  min-height: 420px;
  max-height: 900px;
  overflow: hidden;
  background: #202020;
}
.campaign > picture {
  display: block;
  width: 100%;
  height: 100%;
}
.campaign > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.campaign-caption {
  position: absolute;
  bottom: 47px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  font-size: 11px;
  letter-spacing: 1px;
  text-shadow: 0 1px 5px #000;
}
.campaign-caption > a {
  font-size: 10px;
  border: 1px solid #ffffffb0;
  border-radius: 7px;
  padding: 12px 21px;
  background: #0002;
  transition: background 0.2s;
}
.campaign-caption > a:hover {
  background: #0006;
}
#collection {
  max-width: 1140px;
  margin: 0 auto;
  padding: 53px 20px 46px;
}
.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.catalog-top h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 400;
  margin: 0;
}
.catalog-top > span {
  font-size: 11px;
  color: #888;
}
.categories {
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid #eee;
  padding-bottom: 17px;
  margin-bottom: 28px;
  overflow: auto;
}
.categories button {
  font: inherit;
  font-size: 12px;
  color: #777;
  white-space: nowrap;
  border: 0;
  background: none;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
}
.categories button[aria-pressed="true"] {
  color: #111;
}
.categories button[aria-pressed="true"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #111;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.products article {
  border: 1px solid #eee;
  min-width: 0;
}
.products article[hidden] {
  display: none;
}
.product-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f5f5f5;
}
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-image:hover img {
  transform: scale(1.035);
}
.product-image.pants img {
  object-fit: cover;
  transform: scale(1.7);
  transform-origin: center bottom;
}
.product-image.pants:hover img {
  transform: scale(1.75);
}
.product-image.black-kimono img {
  object-position: 24% center;
}
.caption {
  padding: 15px 11px 17px;
}
.caption h3 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.5;
  margin: 0;
}
.caption p {
  font-size: 11px;
  color: #707070;
  margin: 7px 0 12px;
}
.caption > span {
  font-size: 10px;
  color: #999;
}
.catalog-note {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
  margin: 25px 0 0;
}
footer {
  border-top: 1px solid #eee;
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 0 23px;
  font-size: 11px;
  color: #777;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 35px;
}
.footer-logo {
  font-size: 0;
  color: #fff;
}
.footer-logo::before {
  content: "林";
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: #fff;
  background: #050505;
}
.footer-main nav {
  display: flex;
  gap: 30px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #999;
}
@media (max-width: 1180px) {
  footer {
    margin: 0 20px;
  }
}
@media (max-width: 700px) {
  header {
    height: 54px;
    padding: 0 20px;
  }
  .logo {
    font-size: 27px;
  }
  .nav-link {
    font-size: 9px;
    letter-spacing: 0.7px;
  }
  .collection-title {
    height: 30px;
    font-size: 9px;
  }
  .campaign {
    height: calc(82svh - 84px);
    min-height: 420px;
    max-height: 720px;
  }
  .campaign > picture > img {
    object-position: 46% center;
  }
  .campaign-caption {
    bottom: 32px;
    font-size: 10px;
    gap: 11px;
  }
  #collection {
    padding: 32px 15px;
  }
  .catalog-top {
    margin-bottom: 15px;
  }
  .categories {
    gap: 24px;
    margin-bottom: 22px;
    padding-bottom: 12px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .caption {
    padding: 12px 9px 14px;
  }
  .caption h3 {
    font-size: 10px;
  }
  .caption p {
    font-size: 10px;
  }
  .caption > span {
    font-size: 9px;
  }
  .catalog-note {
    font-size: 10px;
  }
  footer {
    margin: 0 15px;
    padding-top: 27px;
  }
  .footer-main {
    padding-bottom: 26px;
  }
  .footer-main nav {
    gap: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
.products article {
  position: relative;
}
.card-open {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: right;
}
.card-open > span {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #fffffff2;
  padding: 8px 10px;
  font:
    10px Arial,
    sans-serif;
  color: #222;
  opacity: 0;
  transition: opacity 0.2s;
}
.card-open:hover > span,
.card-open:focus-visible > span {
  opacity: 1;
}
.products article:has(.card-open:hover) {
  border-color: #ccc;
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog {
  width: min(920px, calc(100% - 48px));
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 0;
  color: #171717;
  background: #fff;
  overflow: auto;
}
dialog::backdrop {
  background: #0008;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 12px;
  z-index: 2;
  border: 0;
  background: #fffffff0;
  width: 36px;
  height: 36px;
  font:
    27px Arial,
    sans-serif;
  cursor: pointer;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.detail-photo {
  background: #eee;
  min-height: 460px;
}
.detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 710px;
  object-fit: cover;
}
.detail-info {
  padding: 68px 35px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.detail-edition {
  font-size: 10px;
  color: #888;
  letter-spacing: 1px;
}
.detail-info h2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.4px;
  margin: 24px 0 12px;
}
.detail-color {
  font-size: 12px;
  color: #777;
}
.detail-info > p:last-of-type {
  font-size: 14px;
  line-height: 1.7;
  margin: 24px 0 32px;
}
.detail-status {
  font-size: 12px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.detail-status span {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 9px;
}
.return-catalog {
  border: 1px solid #222;
  background: #fff;
  color: #222;
  padding: 15px;
  font:
    12px Arial,
    sans-serif;
  cursor: pointer;
  margin: 25px 0 32px;
}
.return-catalog:hover {
  background: #111;
  color: #fff;
}
.detail-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}
.detail-navigation button {
  background: #fff;
  border: 0;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 20px;
}
.detail-navigation span {
  font-size: 11px;
  color: #888;
}
@media (max-width: 600px) {
  dialog {
    width: 100%;
    max-height: 100svh;
    height: 100svh;
    margin: 0;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-photo {
    min-height: 0;
    height: 55svh;
  }
  .detail-photo img {
    object-fit: contain;
  }
  .detail-info {
    padding: 28px 24px;
  }
  .detail-info h2 {
    font-size: 18px;
    margin-top: 18px;
  }
  .detail-info > p:last-of-type {
    margin: 15px 0 24px;
  }
  .dialog-close {
    position: sticky;
    float: right;
    margin-bottom: -48px;
    top: 12px;
  }
  .card-open > span {
    font-size: 9px;
    padding: 6px;
    opacity: 1;
  }
}

.detail-navigation[hidden] {
  display: none;
}
/* Compact product catalog, matching the supplied layout. */
header {
  padding-left: max(24px, calc((100% - 1200px) / 2));
  padding-right: max(24px, calc((100% - 1200px) / 2));
}
#collection {
  max-width: 1240px;
  padding-top: 38px;
}
.catalog-top {
  margin-bottom: 18px;
}
.catalog-top h2 {
  font-size: 11px;
  color: #777;
}
.categories {
  justify-content: center;
  gap: 36px;
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.categories button {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.2px;
}
.products {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.product-image {
  aspect-ratio: 1/1.12;
  background: #fff;
  display: flex;
  align-items: center;
}
.product-image img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  background: #fff;
}
.product-image.pants img,
.product-image.pants:hover img {
  transform: none;
}
.product-image.black-kimono img {
  object-position: center;
}
.caption {
  padding: 15px 9px 14px;
}
.caption h3 {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.caption p {
  font-size: 10px;
  margin: 7px 0 10px;
}
.caption > span {
  font-size: 9px;
}
.card-open > span {
  display: none;
}
.products article:hover {
  border-color: #ccc;
}
@media (max-width: 1000px) {
  .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .categories {
    justify-content: flex-start;
    gap: 25px;
  }
  .caption h3 {
    font-size: 10px;
  }
  .product-image {
    aspect-ratio: 1/1.2;
  }
}
.legal-panel {
  border-top: 1px solid #eee;
  margin: 10px auto 0;
  max-width: 1240px;
  padding: 28px 20px 42px;
}
.legal-panel h2 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 0 18px;
  color: #777;
}
.legal-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.legal-panel-links a {
  font-size: 11px;
  color: #444;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-panel-links a:hover {
  color: #000;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 18px 20px 0;
  border-top: 1px solid #ededeb;
}
.legal-links a {
  color: #777;
  font-size: 10px;
  letter-spacing: .35px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-links a:hover {
  color: #111;
}
.products-loading .products article {
  visibility: hidden;
}
.products-loading .products article:first-child {
  visibility: visible;
}
.products-loading .products article:first-child .product-image img {
  opacity: 0;
}
.products-loading .products article:first-child .caption {
  opacity: 0.45;
}
.categories {
  display: none;
}
.product-layout {
  visibility: hidden;
}

/* Single-piece collection layout. */
#collection {
  max-width: 1180px;
  padding: 64px 24px 70px;
}
.catalog-top {
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.products {
  display: block;
  width: min(520px, 100%);
  margin: 0 auto;
}
.products article {
  border: 0;
}
.product-image {
  aspect-ratio: 4/5;
  border: 1px solid #eee;
}
.caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 20px;
  padding: 16px 0;
}
.caption h3 {
  font-size: 12px;
  white-space: normal;
}
.caption p {
  grid-column: 2;
  margin: 0;
  font-size: 11px;
  color: #555;
}
.caption > span {
  grid-column: 1/-1;
}
.catalog-note {
  width: min(520px, 100%);
  margin: 14px auto 0;
  border-top: 1px solid #eee;
  padding-top: 15px;
}
.legal-panel {
  max-width: 1100px;
  margin-top: 30px;
  padding: 42px 0 54px;
}
.legal-panel h2 {
  color: #111;
}
.legal-panel-links {
  justify-content: space-between;
  gap: 16px 30px;
}
.legal-panel-links a {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-bottom: 1px solid #777;
  padding-bottom: 3px;
}
footer {
  max-width: 1100px;
}
.products-loading .products article:first-child {
  min-height: 650px;
  background: #fafafa;
}
.products-loading .products article:first-child > * {
  opacity: 0;
}
.header-right-group {
  min-width: 0;
}

/* Unified LIN mark: the same compact glyph + wordmark used in the admin UI. */
.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: #111;
  font: 600 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 3.5px;
}
.logo::before,
.footer-logo::before {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #111;
  background: transparent;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -1px;
}
.footer-logo::before {
  width: 40px;
  height: 40px;
  font-size: 29px;
}
.footer-logo {
  font-size: 12px;
  letter-spacing: 4px;
}
.logo,
.footer-logo {
  transition: opacity .22s ease, transform .22s ease;
}
.logo:hover,
.footer-logo:hover {
  opacity: .7;
  transform: translateY(-1px);
}
.collection-title,
.catalog-top h2,
.catalog-top > span,
.caption,
.catalog-note,
.footer-main,
.footer-bottom {
  line-height: 1.5;
}
.caption {
  align-items: baseline;
}
.caption h3 {
  letter-spacing: .45px;
}
.caption p {
  text-align: right;
}
.footer-main nav {
  align-items: center;
}
.nav-link,
.header-account,
.footer-main nav a {
  transition: color .2s ease, opacity .2s ease;
}
.nav-link:hover,
.header-account:hover,
.footer-main nav a:hover {
  color: #555;
}
@media (max-width: 700px) {
  header {
    grid-template-columns: minmax(55px, 1fr) auto minmax(112px, 1fr);
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }
  header > h1,
  header > .logo {
    justify-self: center;
  }
  .logo {
    gap: 6px;
  }
  .logo::before {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }
  .logo {
    font-size: 9px;
    letter-spacing: 2.4px;
  }
  .header-right-group {
    gap: 10px;
  }
  .header-account,
  .header-right-group .nav-link {
    font-size: 8px;
    letter-spacing: .45px;
  }
  #collection {
    padding: 42px 16px 48px;
  }
  .products {
    width: 100%;
  }
  .legal-panel {
    margin: 10px 16px 0;
    padding: 32px 0 42px;
  }
  .legal-panel-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .legal-panel-links a {
    line-height: 1.5;
  }
  .caption {
    grid-template-columns: 1fr;
  }
  .caption p {
    grid-column: 1;
    text-align: left;
  }
  .products-loading .products article:first-child {
    min-height: 120vw;
  }
  .footer-main {
    align-items: flex-start;
    gap: 22px;
  }
  .footer-main nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 12px;
  }
}

@media (max-width: 380px) {
  header {
    grid-template-columns: minmax(48px, 1fr) auto minmax(92px, 1fr);
    gap: 7px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .logo {
    font-size: 0;
    letter-spacing: 0;
  }
  .header-right-group {
    gap: 7px;
  }
  .header-account,
  .header-right-group .nav-link,
  .nav-link {
    font-size: 7.5px;
  }
}
