/* Homepage presentation only. Catalog, drawers and customer flows keep their styles. */
.home-page {
  --home-gutter: max(24px, calc((100vw - 1252px) / 2));
  --home-yellow: #ffdf27;
  --home-ink: #111311;
  --home-gray: #666b65;
  --home-line: #e7e6df;
  --home-paper: #f5f3ed;
  color: var(--home-ink);
  font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
body:has(#shop-view:not([hidden])) > .preview-ribbon,
body:has(#shop-view:not([hidden])) > .site-header {
  padding-inline: max(24px, calc((100vw - 1252px) / 2));
}
body:has(#shop-view:not([hidden])) > .preview-ribbon {
  background: #ffdf27;
  min-height: 36px;
  padding-block: 0;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0;
}
body:has(#shop-view:not([hidden])) > .site-header {
  min-height: 76px;
  padding-block: 10px;
  gap: 24px;
  background: #fff;
}
body:has(#shop-view:not([hidden])) .site-header .brand { --brand-width: 200px; }
body:has(#shop-view:not([hidden])) .site-header nav {
  gap: clamp(16px, 2vw, 28px);
  font-weight: 700;
}
body:has(#shop-view:not([hidden])) .header-actions { gap: 18px; }
body:has(#shop-view:not([hidden])) .bag-icon { display: block; width: 24px; height: 24px; margin-right: 5px; }
.home-page .home-container { margin-inline: var(--home-gutter); }
.home-page .hero {
  min-height: 420px;
  height: auto;
  background: #f7f6f2;
}
.home-page .hero::before { display: none; }
.home-picture { display: contents; }
.brand:has(img[data-home-custom]) { background: transparent; }
.brand img.brand-logo[data-home-custom] { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.home-page .hero:has(img[data-home-custom])::before {
  display: block;
  background: linear-gradient(90deg, #fff 0%, #fffffff2 27%, #ffffffb3 40%, transparent 62%);
}
.home-page .hero-art { inset: 0; }
.home-page .hero-art img { object-position: center; }
.home-page .hero-copy {
  width: min(47%, 650px);
  max-width: none;
  padding: 28px 0 26px var(--home-gutter);
  margin: 0;
  animation: home-copy-in 650ms ease-out both;
}
.home-page .home-eyebrow {
  margin: 0 0 16px;
  color: var(--home-gray);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.home-page .home-eyebrow::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 8px;
  background: var(--home-yellow);
}
#shop-view #hero-title {
  font-size: clamp(38px, 3.45vw, 50px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.045em;
  margin: 0 0 18px;
}
.home-page .hero h1 > span { display: block; }
.home-page .home-dot { color: #f6bd00; }
.home-page .hero-copy .hero-description {
  color: #626660;
  font-size: 17px;
  line-height: 1.5;
  max-width: 390px;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.home-page .button {
  min-height: 48px;
  padding: 12px 21px;
  font-size: 15px;
  border-radius: 5px;
  gap: 20px;
}
.home-page .button-yellow { background: var(--home-yellow); }
.home-page .button:hover { transform: none; }
.home-page .button:hover svg,
.home-page .text-link:hover svg,
.home-page a.home-category:hover .home-category-action svg { transform: translateX(3px); }
.home-page :is(.button, .text-link, .home-category-action) svg {
  width: 19px;
  height: 19px;
  transition: transform 200ms ease;
}
.home-page .home-hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; max-width: 470px; }
.home-page .home-hero-actions .button { flex: 1 1 165px; justify-content: space-between; max-width: 230px; min-width: 0; }
.home-page .button-outline { background: #ffffffed; border: 1px solid var(--home-ink); color: var(--home-ink); }
.home-page .home-hero-actions svg { flex-shrink: 0; }
.home-page :is(.button, .text-link):focus-visible { outline: 2px solid var(--home-ink); outline-offset: 5px; }
.home-page .image-credit {
  right: var(--home-gutter);
  bottom: 12px;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 3px;
}
.home-page .home-discovery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-block: 48px 52px;
}
.home-page :is(.home-categories, .scene-banner) {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.home-page .home-section-heading { display: block; min-height: 106px; padding-bottom: 22px; }
.home-page .home-section-heading .home-eyebrow { margin: 0 0 10px; font-size: 10px; letter-spacing: .1em; font-weight: 700; }
.home-page .home-section-heading .home-eyebrow::after { display: none; }
.home-page .home-section-heading h2 {
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.2;
  margin: 0 0 8px;
}
.home-page .home-section-intro { margin: 0; color: var(--home-gray); font-size: 15px; line-height: 1.5; }
.home-page .home-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; min-height: 440px; }
.home-page .home-category {
  position: relative;
  isolation: isolate;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--home-paper);
  color: white;
}
.home-page .home-category img { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform 380ms ease; }
.home-page .home-category::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #0008, transparent 43%, transparent 68%, #0009); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .home-page a.home-category:hover img { transform: scale(1.035); }
}
.home-page .home-category-copy { position: absolute; inset: 17px 18px auto; z-index: 1; }
.home-page .home-category h3 { margin: 0 0 5px; font-size: 22px; line-height: 1.2; font-weight: 750; letter-spacing: -.02em; }
.home-page .home-category p { margin: 0; font-size: 12px; line-height: 1.45; max-width: 95%; }
.home-page .home-category-action { position: absolute; inset: auto 18px 14px; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.home-page .home-category-action svg { width: 16px; height: 16px; }
.home-page :is(.home-category-figures, .home-category-diorama) { color: var(--home-ink); }
.home-page :is(.home-category-figures, .home-category-diorama)::after { background: linear-gradient(180deg, #fff9, transparent 43%, transparent 68%, #fff9); }
.home-page .home-atelier-card { display: flex; flex-direction: column; overflow: hidden; background: var(--home-paper); border-radius: 10px; }
.home-page .home-workshop { display: block; width: 100%; height: auto; aspect-ratio: 2.5; object-fit: cover; object-position: center 65%; }
.home-page .home-scene-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 25px 28px; }
.home-page .home-scene-copy h3 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
.home-page .home-scene-description { color: var(--home-gray); font-size: 15px; line-height: 1.6; margin: 10px 0 0; max-width: 480px; }
.home-page .home-section-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; }
.home-page .home-section-actions .text-link { min-height: 44px; font-size: 14px; text-decoration: none; white-space: normal; }
.home-page .home-section-actions .text-link svg { flex-shrink: 0; }
.home-page .home-section-actions .text-button { min-height: 44px; padding: 6px 0; color: var(--home-gray); font-size: 12px; }
.home-page .collection { margin-inline: var(--home-gutter); padding-top: 0; padding-bottom: 64px; }
.home-page .collection-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; border-color: var(--home-line); padding-top: 32px; margin-bottom: 24px; }
.home-page .collection-heading h2 { font-size: 30px; letter-spacing: -.03em; margin-bottom: 8px; }
.home-page .collection-heading p { font-size: 15px; color: var(--home-gray); margin: 0; }
.home-page .collection-heading .result-count { grid-column: 2; grid-row: 1; align-self: center; }
.home-page .collection-heading .filters { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px; width: auto; order: initial; margin: 0; }
.home-page .filters button { min-height: 42px; padding: 10px 16px; border-radius: 5px; font-size: 13px; }
.home-page .filters button[aria-pressed="true"] { background: var(--home-yellow); color: var(--home-ink); border-color: var(--home-yellow); }
:is(html[lang^="zh"], html[lang="ja"], html[lang="ko"]) .home-page .hero h1 { letter-spacing: -.035em; }
@keyframes home-copy-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1600px) {
  .home-page .hero-copy { width: calc(var(--home-gutter) + 450px); }
}
@media (max-width: 1100px) {
  body:has(#shop-view:not([hidden])) .site-header .brand { --brand-width: 180px; }
  body:has(#shop-view:not([hidden])) .site-header nav { gap: 18px; }
  .home-page .hero-copy { width: 49%; }
  .home-page .hero-art img { object-position: 58% center; }
  .home-page .hero-copy .hero-description { font-size: 15px; max-width: 350px; }
  .home-page .home-discovery { gap: 24px; }
  .home-page .home-category-copy { inset: 14px 12px auto; }
  .home-page .home-category h3 { font-size: 20px; }
  .home-page .home-scene-copy { padding: 22px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  body:has(#shop-view:not([hidden])) > .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding-bottom: 0; }
  body:has(#shop-view:not([hidden])) .site-header .brand { grid-column: 1; grid-row: 1; }
  body:has(#shop-view:not([hidden])) .header-actions { grid-column: 2; grid-row: 1; }
  body:has(#shop-view:not([hidden])) .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-top: 1px solid var(--line); }
  body:has(#shop-view:not([hidden])) .site-header nav a { white-space: nowrap; }
  .home-page .hero::before { display: block; background: linear-gradient(90deg, #fffffff5 0%, #ffffffeb 26%, #ffffffb3 43%, #ffffff00 70%); }
}
@media (min-width: 721px) and (max-width: 900px) {
  .home-page .home-discovery { grid-template-columns: 1fr; gap: 36px; }
  .home-page .home-section-heading { min-height: 0; }
  .home-page .hero-copy { width: 53%; }
  #shop-view #hero-title { font-size: 37px; }
}
@media (max-width: 720px) {
  .home-page { --home-gutter: 20px; }
  body:has(#shop-view:not([hidden])) > .preview-ribbon,
  body:has(#shop-view:not([hidden])) > .site-header { padding-inline: 20px; }
  body:has(#shop-view:not([hidden])) > .preview-ribbon { font-size: 10px; gap: 6px; grid-template-columns: minmax(0, 1fr) auto; }
  body:has(#shop-view:not([hidden])) .locale-controls { flex-wrap: nowrap; gap: 4px; }
  body:has(#shop-view:not([hidden])) .language-control svg { display: none; }
  body:has(#shop-view:not([hidden])) .language-control select { font-size: 10px; max-width: 94px; min-height: 36px; padding: 6px 0; }
  body:has(#shop-view:not([hidden])) .currency-control { padding-left: 5px; }
  body:has(#shop-view:not([hidden])) .currency-control select { max-width: 118px; }
  body:has(#shop-view:not([hidden])) > .site-header { padding-block: 10px 0; gap: 6px 10px; }
  body:has(#shop-view:not([hidden])) .site-header .brand { --brand-width: 154px; }
  body:has(#shop-view:not([hidden])) .header-actions { gap: 0; }
  body:has(#shop-view:not([hidden])) .header-actions .icon-button { padding: 10px; width: 40px; min-width: 40px; }
  body:has(#shop-view:not([hidden])) .account-link span,
  body:has(#shop-view:not([hidden])) .bag-button > [data-i18n="Bag"] { display: none; }
  body:has(#shop-view:not([hidden])) .bag-button { min-height: 44px; padding: 8px 0 8px 6px; gap: 3px; font-size: 11px; }
  body:has(#shop-view:not([hidden])) .bag-icon { width: 22px; height: 22px; }
  body:has(#shop-view:not([hidden])) .site-header nav { overflow-x: auto; justify-content: space-between; flex-wrap: nowrap; max-width: 100%; gap: 20px; padding-top: 0; border-top-color: #f0f0ec; scrollbar-width: none; }
  body:has(#shop-view:not([hidden])) .site-header nav a { white-space: nowrap; font-size: 13px; padding-block: 12px; }
  .home-page .hero { min-height: 0; background: #fff; }
  .home-page .hero-copy { width: 100%; padding: 27px var(--home-gutter) 22px; }
  .home-page .hero .home-eyebrow { font-size: 10px; margin-bottom: 12px; }
  #shop-view #hero-title { font-size: clamp(35px, 9.6vw, 48px); margin-bottom: 14px; line-height: 1.12; }
  .home-page .hero-copy .hero-description { font-size: 15px; max-width: 350px; margin-bottom: 17px; }
  .home-page .hero .button { min-height: 46px; font-size: 14px; }
  .home-page .hero-art { position: relative; inset: auto; aspect-ratio: 1.68; min-height: 0; overflow: hidden; }
  .home-page .hero-art img { width: 160%; max-width: none; height: 100%; object-fit: cover; object-position: right center; margin-left: -60%; }
  .home-page .hero-art img[data-home-mobile-custom] { width: 100%; margin-left: 0; }
  .brand img.brand-logo[data-home-slot="logo"] { inset: auto; left: -4.818%; top: -21.327%; width: 116.274%; height: auto; }
  .brand img.brand-logo[data-home-mobile-custom] { inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .home-page .hero:has(img[data-home-custom])::before { display: none; }
  .home-page .image-credit { font-size: 9px; right: 10px; bottom: 8px; }
  .home-page .home-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: none; }
  .home-page .home-hero-actions .button { max-width: none; padding: 12px; font-size: 13px; line-height: 1.4; gap: 8px; }
  .home-page .home-discovery { grid-template-columns: 1fr; gap: 32px; padding-block: 30px 36px; }
  .home-page .home-section-heading { min-height: 0; padding-bottom: 18px; }
  .home-page .home-section-heading h2 { font-size: 27px; line-height: 1.2; }
  .home-page .home-section-intro { font-size: 14px; }
  .home-page .home-category-grid { gap: 12px; min-height: 0; grid-template-rows: auto; }
  .home-page .home-category { aspect-ratio: auto; color: var(--home-ink); display: flex; flex-direction: column; }
  .home-page .home-category::after { display: none; }
  .home-page .home-category img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .home-page .home-category-copy { position: static; padding: 12px 12px 3px; }
  .home-page .home-category h3 { font-size: 18px; margin-bottom: 5px; line-height: 1.25; }
  .home-page .home-category p { font-size: 12px; line-height: 1.5; }
  .home-page .home-category-action { position: static; margin-top: auto; padding: 10px 12px 12px; font-size: 11px; }
  .home-page .home-scene-copy { padding: 22px; }
  .home-page .home-scene-copy h3 { font-size: 22px; }
  .home-page .home-scene-description { font-size: 14px; }
  .home-page .home-workshop { aspect-ratio: 2; }
  .home-page .home-craft-note { font-size: 12px; }
  .home-page .home-section-actions { padding-top: 7px; }
  .home-page .collection-heading { padding-top: 28px; gap: 18px 12px; }
  .home-page .collection-heading h2 { font-size: 25px; }
  .home-page .collection-heading .filters { gap: 8px; }
  .home-page .filters button { padding: 10px 12px; font-size: 12px; }

}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-copy { animation: none; }
  .home-page :is(.home-category img, .button svg, .text-link svg, .home-category-action svg) { transition: none; }
  .home-page a.home-category:hover img,
  .home-page .button:hover svg,
  .home-page .text-link:hover svg,
  .home-page a.home-category:hover .home-category-action svg { transform: none; }
}
