.preview-notice {
  padding: 12px max(6.2%, calc((100% - 74rem) / 2));
  background: #e9eee5;
  color: #485d50;
  font-size: 13px;
  line-height: 1.5;
}

.preview-notice b { color: #8b3932; }
.preview-notice a { text-decoration: underline; text-underline-offset: .2em; }
.cart-open { background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; }
.shop-head {
  padding: clamp(38px, 6vw, 76px) max(6.2%, calc((100% - 74rem) / 2)) 40px;
  border-bottom: 1px solid #ddd4c2;
  background: linear-gradient(142deg, #f5eedf, #f6f3e8 58%, #eaf0e3);
}
.shop-head h1 { max-width: 850px; margin: 0 0 14px; }
.shop-head p { max-width: 550px; color: #495d51; line-height: 1.65; }

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 185px) auto;
  align-items: end;
  gap: 10px 12px;
  max-width: 760px;
  margin-top: 24px;
}

.catalog-filter-field { display: grid; gap: 6px; min-width: 0; }
.catalog-filter-field label { font-size: 13px; font-weight: 700; }
.catalog-filter-field input, .catalog-filter-field select, .catalog-clear {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #8e9c90;
  border-radius: 3px;
  background: #fffdf7;
  color: var(--ink);
  font: 400 16px Arial, sans-serif;
}

.catalog-filter-field input, .catalog-filter-field select { width: 100%; padding: 6px 10px; }
.catalog-clear { padding: 6px 12px; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.catalog-clear:hover { background: #e9eee5; }
.catalog-clear:disabled { opacity: .62; cursor: default; }
.shop-head .catalog-filter-status, .shop-head .catalog-filter-empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}

.shop-head .catalog-filter-status { color: var(--ink); font-weight: 700; }

.catalog-filters[hidden], .catalog-filter-empty[hidden], .collection-nav[hidden],
.collection-nav a[hidden], .catalog-section[hidden], .shop-card[hidden] { display: none; }

.collection-nav {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.collection-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #a3afa1;
  border-radius: 3px;
  background: #fbf9f0;
  font-weight: 700;
}

.collection-nav a:hover { background: #e9eee5; }
.catalog-section { width: min(87.6%, 74rem); margin: 0 auto 68px; scroll-margin-top: 1rem; }
.collection-heading { padding: 28px 0 20px; border-top: 1px solid var(--line); }
.shop-head + .catalog-section .collection-heading { border-top: 0; }
.collection-heading h2, .faq h2 { margin: 0 0 8px; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.04em; }
.collection-heading p { color: #5f6d64; line-height: 1.6; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #ddd4c2;
  border-radius: 5px;
  background: #fffdf7;
  overflow: hidden;
}
.shop-art { position: relative; overflow: hidden; display: grid; place-items: center; height: clamp(170px, 20vw, 238px); }
.family-card .shop-art { height: clamp(190px, 22vw, 264px); }
.card-info { display: flex; flex: 1; flex-direction: column; padding: clamp(15px, 2.2vw, 24px); }
.card-info .product-meta { font-size: 11px; font-weight: 700; color: #8a3b32; }
.card-info h3 { margin: 8px 0; font: 400 25px/1.18 Georgia, serif; overflow-wrap: anywhere; }
.card-info p { margin: 0 0 12px; color: #52645a; font-size: 14px; line-height: 1.6; }
.card-info .details { margin-top: auto; margin-bottom: 0; padding: 11px 0; border-block: 1px solid var(--line); font-size: 13px; }

.card-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.card-actions a, .card-actions button { min-height: 44px; font: 700 13px Arial, sans-serif; }
.card-actions a { display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: .24em; }
.card-actions a:hover { color: #8b3932; }
.sample-link { color: #74362c; }
.card-actions button {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.card-actions button:hover { background: var(--ink); color: white; }
.card-actions button:disabled, .cart-open:disabled { opacity: .55; cursor: default; }
.shop-head :focus-visible, .catalog-section :focus-visible, .cart-panel :focus-visible {
  outline: 2px solid #8a3b32;
  outline-offset: 3px;
}

.faq { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10%; padding: 52px 6.2%; background: #e9eee5; }
.faq details { border-bottom: 1px solid #b9c2b6; padding: 12px 0; }
.faq summary { min-height: 36px; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1.6; }
.faq details p { color: #4a5c50; font-size: 14px; line-height: 1.65; }

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(450px, 100%);
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(18px, 5vw, 28px);
  border: 0;
  background: #faf8f1;
  color: var(--ink);
  box-shadow: -6px 0 35px #182b2626;
  overscroll-behavior: contain;
  overflow: auto;
}

.cart-panel:not([open]) { display: none; }
.cart-panel[open] { display: flex; flex-direction: column; }
.cart-panel::backdrop { background: #1b2925a3; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-head h2 { margin: 0; font-size: 31px; letter-spacing: -.5px; }
.cart-head button {
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.cart-note { padding: 10px 0 15px; border-bottom: 1px solid var(--line); color: #52645a; font-size: 14px; line-height: 1.6; }
.cart-activity:not(:empty) { margin-top: 12px; font-size: 13px; }
.cart-items { margin: 0; padding: 0; list-style: none; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item strong { font: 18px/1.25 Georgia, serif; }
.cart-item small { display: block; margin-top: 6px; color: #52645a; }
.cart-item button { min-height: 44px; border: 0; background: transparent; color: var(--ink); text-decoration: underline; font-weight: 700; cursor: pointer; }
.cart-empty { margin: 22px 0; color: #52645a; font-size: 14px; }
.cart-bottom { margin-top: auto; padding-top: 18px; }
.cart-bottom button { width: 100%; min-height: 44px; border: 0; border-radius: 3px; background: var(--ink); color: white; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .preview-notice, .shop-head { padding-inline: 5%; }
  .shop-head { padding-top: 38px; }
  .shop-head h1 { font-size: clamp(36px, 9vw, 53px); }
  .catalog-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-filter-field:first-child { grid-column: 1 / -1; }
  .catalog-section { width: 90%; margin-bottom: 46px; }
  .shop-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .shop-card .shop-art { height: clamp(175px, 53vw, 242px); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 42px 5%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.art-zodiac {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  background: radial-gradient(circle at 70% 38%, #deaa77 0 24%, transparent 24.5%), linear-gradient(140deg, #ead2b5, #dca98d);
}
.zodiac-sheet {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  width: clamp(78px, 31%, 111px);
  height: 67%;
  padding: 12px 5px;
  border: 1px solid #ad725e;
  background: #fff9ed;
  color: #734137;
  box-shadow: 0 8px 16px #713f3326;
  transform: translateY(-3%) rotate(-10deg);
}
.zodiac-sheet + .zodiac-sheet { transform: translate(-3%, 7%) rotate(9deg); background: #ecf1e5; color: #304c41; border-color: #8ea18e; }
.zodiac-sheet b { font: 400 clamp(31px, 5vw, 57px)/1 "Songti SC", "SimSun", serif; }
.zodiac-sheet small { font: 700 10px/1.25 Arial, sans-serif; text-align: center; }

.art-document img {
  position: absolute;
  top: 8%;
  left: 50%;
  width: auto;
  height: 83%;
  max-width: 78%;
  object-fit: contain;
  background: #fffaf0;
  border: 1px solid #fffdf5;
  box-shadow: 0 9px 18px #41302e32;
  transform: translateX(-50%) rotate(-3deg);
}
.art-moon { background: radial-gradient(circle at 72% 33%, #ffddaa 0 19%, transparent 19.6%), linear-gradient(146deg, #dba07c, #be7165); }
.art-numbers {
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, #43594721 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 18px, #43594721 18px 19px),
    linear-gradient(143deg, #d8e3ce, #adc8b1);
}
.art-numbers img { transform: translateX(-50%) rotate(4deg); }
.art-lantern {
  background: radial-gradient(ellipse at 49% 29%, #f0b487 0 12%, #ac5541 47%, #713833 100%);
}
.art-lantern img { transform: translateX(-50%) rotate(3deg); }

.art-idioms { background: linear-gradient(137deg, #e7ebdf 53%, #b8cbb9 53%); }
.idiom-sheet {
  position: absolute;
  top: 17%;
  left: 11%;
  display: grid;
  gap: 5px;
  width: min(72%, 255px);
  padding: 12px 15px;
  border: 1px solid #8faba0;
  background: #f8f8ed;
  color: #284c42;
  box-shadow: 0 6px 15px #30493a25;
  transform: rotate(-6deg);
}
.idiom-sheet + .idiom-sheet { top: 47%; left: auto; right: 11%; transform: rotate(5deg); border-color: #aa6e5e; background: #fff6e7; color: #753d33; }
.idiom-sheet b { font: 400 clamp(21px, 4vw, 38px)/1.16 "Songti SC", "SimSun", serif; white-space: nowrap; }
.idiom-sheet small { font-size: 12px; }

.art-poetry {
  background:
    radial-gradient(circle at 77% 27%, #ead2aa 0 12%, transparent 12.6%),
    linear-gradient(158deg, #203f3c 61%, #395852 61%);
}
.poetry-sheet {
  display: grid;
  gap: 7px;
  width: min(66%, 220px);
  margin-right: 10%;
  padding: 15px 13px 15px 19px;
  border-left: 3px solid #a65245;
  background: #f8eedb;
  color: #24443c;
  box-shadow: 0 8px 18px #15272552;
  transform: rotate(-4deg);
}
.poetry-sheet small { color: #7e4134; font-weight: 700; }
.poetry-sheet b { font: 400 clamp(18px, 3vw, 27px)/1.35 "Songti SC", "SimSun", serif; white-space: nowrap; }
.poetry-sheet span { font: italic 12px/1.25 Georgia, serif; }

.art-solar { background: radial-gradient(circle at 75% 26%, #f0bd80 0 16%, transparent 16.6%), linear-gradient(145deg, #ead6a9, #d2b077); }
.journal-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(81%, 298px);
  height: 66%;
  border: 1px solid #b58d63;
  border-radius: 4px;
  background: #fff8e9;
  color: #355144;
  box-shadow: 0 9px 18px #71563b38;
  transform: rotate(-5deg);
}
.journal-spread > div {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0 8%;
  background: repeating-linear-gradient(transparent 0 17px, #bca7834a 17px 18px);
}
.journal-spread > div + div { border-left: 1px solid #c8ad86; color: #774034; }
.journal-spread b { font: 400 clamp(25px, 4vw, 42px)/1.15 "Songti SC", "SimSun", serif; }
.journal-spread small { font-size: 11px; }

.art-colors { background: radial-gradient(circle at 73% 35%, #95aacc 0 23%, transparent 23.4%), #d3e0ef; }
.palette-cover {
  width: min(77%, 300px);
  padding: 12px;
  border: 1px solid #8294b2;
  background: #f7f4eb;
  color: #192c53;
  box-shadow: 0 9px 19px #223b5633;
  transform: rotate(-5deg);
}
.palette-swatch {
  height: clamp(55px, 11vw, 91px);
  border: 1px solid #b0bdd0;
  background: linear-gradient(90deg, #192c53 0 20%, #2358a6 20% 40%, #597dc1 40% 60%, #cad8ed 60% 80%, #faf7f1 80%);
}
.palette-note { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 9px; margin-top: 9px; }
.palette-note b { font: 400 26px/1.15 "Songti SC", "SimSun", serif; }
.palette-note small { font-size: 11px; font-weight: 700; }

.art-writing { background: linear-gradient(135deg, #efd9c6, #daa490); }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(84%, 310px);
  padding: 12px;
  border: 1px solid #b77963;
  background: #fff7e9;
  box-shadow: 0 7px 18px #784c3f37;
  transform: rotate(4deg);
}
.practice-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #b77963;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #d9ac9b calc(50% - .5px), #d9ac9b calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), #d9ac9b calc(50% - .5px), #d9ac9b calc(50% + .5px), transparent calc(50% + .5px));
  color: #31564b;
  font: 400 clamp(28px, 5vw, 61px)/1 "Songti SC", "SimSun", serif;
}
.practice-grid span + span { border-left: 0; color: #a85346; }
