.v16-catalog { --v16-paper: #fff8ea; --v16-edge: #ead9c3; }
.v16-catalog { padding-block: 16px 34px; }
.v16-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-block: 12px; }
.v16-controls button, .v16-share a, .v16-video-button {
  display: inline-grid; place-items: center; padding: 7px 12px; min-height: 44px; font: inherit;
  border: 1px solid #e8d4bb; border-radius: 12px; background: #fff9ed; color: var(--ink);
  text-align: center; text-decoration: none; cursor: pointer;
}
.v16-controls button:disabled { opacity: .55; cursor: default; }
.v16-entries { display: grid; gap: 21px; }
.v16-story {
  padding: clamp(14px, 3.2vw, 35px); border-radius: 24px; border: 1px solid #ead9c3;
  background: linear-gradient(144deg, #fffdf8, #fff1dc); scroll-margin-top: 76px;
}
.v16-story:nth-of-type(3n+2) { background: linear-gradient(144deg, #fffdf8, #eef4ff); }
.v16-story:nth-of-type(3n+3) { background: linear-gradient(144deg, #fffdf8, #f6efd9); }
.v16-story-layout {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(12px, 4vw, 36px);
}
.v16-story-copy h2 { font-size: clamp(1.45rem, 4vw, 2.6rem); color: var(--blue); margin: 3px 0; line-height: 1.2; }
.v16-story-copy p { margin: 9px 0; }
.v16-story-copy .price { font-weight: 700; font-size: 1.45rem; color: #733d22; }
.v16-name { font-weight: 700; color: #66452e; }
.v16-sku { color: #655543; font-size: .85rem; }
.v16-product-photo { aspect-ratio: 1; display: grid; place-items: center; background: #fffdf8; border-radius: 16px; overflow: hidden; }
.v16-product-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.v16-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; list-style: none; }
.v16-tags li { background: #fffdf6; border: 1px solid #e7d9c7; padding: 3px 9px; border-radius: 18px; }
.v16-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.v16-action {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 4px;
  min-height: 46px; padding: 7px 6px; border: 1px solid #532c2133; border-radius: 12px; font: inherit;
  font-weight: 700; color: #2d283a; text-decoration: none; cursor: pointer; line-height: 1.15;
}
.v16-action:disabled { opacity: .56; cursor: default; }
.v16-action-icon { display: block; font-size: 1rem; }
.v16-demo { background: #dcecff; color: #153c78; }
.v16-reviews { background: #ffeab6; color: #6d4107; }
.v16-learn { background: #e1f3d8; color: #244f31; }
.v16-wish { background: #ffe6eb; color: #87334b; }
.v16-buy { background: #ffdbb9; color: #713015; }
.v16-start { background: #dcecff; color: #153c78; }
.v16-story-details, .v16-detail-story { margin-top: 12px; }
.v16-story-details summary, .v16-detail-story summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.v16-theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; margin: 10px 0; }
.v16-theme-grid div { display: grid; place-items: center; text-align: center; }
.v16-theme-grid .learning-icon { width: 44px; height: 44px; }
.v16-bundle-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 8px; }
.v16-bundle-paths > div { background: #f7efff; border-radius: 15px; padding: 12px; }
.v16-bundle-paths h3 { margin: 0; color: var(--blue); }
.v16-bundle-paths ul { padding-inline-start: 20px; }
.catalog-page .catalog-hero[data-series]:not([data-series=""]) {
  display: block;
  aspect-ratio: auto;
  margin: 0 0 8px;
}
.catalog-page .catalog-hero[data-series]:not([data-series=""]) img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
  object-fit: contain;
}

#series-products { scroll-margin-top: 72px; }
.compact-card { position: relative; }
.v16-heart {
  position: absolute; right: 3px; top: 3px; display: grid; place-items: center; min-width: 44px; min-height: 44px;
  border: 1px solid #f2c3cf; border-radius: 50%; background: #fff9fc; color: #92304f; font-size: 1.45rem; cursor: pointer;
}
.wish-header { min-width: 39px; gap: 1px; color: #92304f; font-size: 1.15rem; text-decoration: none; }
.wish-count { font-size: .73rem; font-weight: 700; }
.wish-drawer { color: #92304f; }
.wish-drawer .wish-count { margin-inline-start: auto; }
.v16-wishlist-grid { margin-bottom: 25px; }
.v16-modal {
  width: min(680px, calc(100% - 20px)); max-height: min(90dvh, 920px); padding: 16px 18px;
  border: 1px solid #ead9c3; border-radius: 18px; background: #fffaf1; color: var(--ink); overflow: auto;
}
.v16-modal::backdrop { background: #192743aa; }
.v16-modal > h2 { margin: 2px 46px 10px 0; }
.v16-close { float: right; }
.v16-modal canvas { max-width: 100%; height: auto; display: block; margin: auto; }
.v16-modal canvas + a { display: block; overflow-wrap: anywhere; text-align: center; }
.v16-demo-stage { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #fff5e5; border-radius: 16px; }
.v16-demo-stage img { display: block; width: 100%; height: 100%; max-height: min(48dvh, 480px); object-fit: contain; }
.v16-demo-arrow { position: absolute; right: 7%; bottom: 8%; color: #b74c13; font-size: 3rem; line-height: 1; text-shadow: 1px 1px #fff, -1px -1px #fff; }
.v16-demo-copy { min-height: 3em; }
.v16-video { max-width: 100%; max-height: 65dvh; width: 100%; object-fit: contain; background: #172e53; }
.v16-video[hidden], .v16-modal [hidden] { display: none; }
.v16-video-button { margin: 4px; max-width: 180px; }
.v16-video-button img, .v16-screenshots img { width: 100%; height: auto; object-fit: contain; }
.v16-screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.v16-a4-cover { max-width: 190px; margin-top: 10px; background: #fff8eb; border: 1px solid #ead9c3; border-radius: 12px; padding: 8px; font: inherit; cursor: pointer; }
.v16-a4-cover img { display: block; width: 100%; height: auto; }
.v16-a4-full { height: min(66dvh, 720px); touch-action: pan-y; }
.v16-a4-full img { width: 100%; height: 100%; object-fit: contain; }
html:lang(en) .v16-a4-zh, html:lang(zh) .v16-a4-en { display: none; }
@media (max-width: 767px) {
  .v16-story-layout { grid-template-columns: 1fr; }
  .v16-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v16-product-photo { aspect-ratio: 5 / 4; }
}
@media (min-width: 768px) {
  .home-page .featured-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .home-page .featured-grid > .card { display: flex; }
}
@media (max-width: 360px) {
  .wish-header { min-width: 31px; }
}
.v16-action .v16-action-icon { margin-inline: auto; width: 29px; }
.v16-action.v16-wish .wish-heart { font-size: 1.1rem; }
#buy { scroll-margin-top: 70px; }

.v16-catalog { max-width: 940px; padding-top: 4px; }
.v16-masthead {
  position: relative; padding: 4px 0 9px; margin-bottom: 8px; text-align: center;
  background: radial-gradient(ellipse at center, #fffdf4 30%, #fff0da); border-radius: 18px;
}
.v16-wordmark { color: #103d87; font-size: clamp(1.45rem, 5.6vw, 2.5rem); font-weight: 700; line-height: 1.05; }
.v16-wordmark span { color: #b7480d; }
.v16-catalog-banner { margin: 0 auto; max-width: none; }
.v16-catalog-banner img { display: block; width: 100%; height: auto; }
.v16-catalog-strap {
  width: fit-content; max-width: 96%; margin: 4px auto 0; position: relative; padding: 3px 11px;
  border-radius: 8px; background: #c62650; color: white; font-size: clamp(.7rem, 2.7vw, 1rem); font-weight: 700;
}
.v16-catalog-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(4px, 1.2vw, 11px); }
.v16-catalog-nav a {
  min-height: 62px; padding: 3px 1px 4px; display: grid; place-items: center; text-align: center;
  text-decoration: none; border: 1px solid #fff; border-radius: clamp(9px, 2.3vw, 20px);
  background: linear-gradient(#fffdf5, var(--theme-bg)); color: var(--theme-ink);
  box-shadow: 0 1px 4px #71512a33, inset 0 0 0 1px #fff7;
}
.v16-catalog-nav [data-theme="best-sellers"] { --theme-bg: #ffec99; --theme-ink: #7e1e12; }
.v16-catalog-nav [data-theme="beginner"] { --theme-bg: #dff0c9; --theme-ink: #244325; }
.v16-catalog-nav [data-theme="family-learning"] { --theme-bg: #ffd9be; --theme-ink: #762f20; }
.v16-catalog-nav [data-theme="school-readiness"] { --theme-bg: #d6eaff; --theme-ink: #153e78; }
.v16-catalog-nav [data-theme="bundles"] { --theme-bg: #ecd8f7; --theme-ink: #5e2675; }
.v16-catalog-nav a[aria-current] { border-color: #e7a523; box-shadow: 0 0 0 1px #ffd65d, 0 2px 5px #ad721b50; }
.v16-catalog-nav .learning-icon { width: clamp(23px, 6vw, 49px); margin: 0 auto 1px; }
.v16-catalog-nav strong { display: block; line-height: 1.08; overflow-wrap: anywhere; }
.v16-catalog-nav strong { font-size: clamp(.56rem, 2.2vw, 1.18rem); }
.v16-masthead-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding: 0 5px 3px; }
.v16-masthead-bar .v16-wordmark { grid-column: 2; }
.v16-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; }
.v16-detail-toolbar .back { margin-top: 0; }
.v16-catalog-nav { margin-bottom: 8px; }
.v16-share-menu { position: relative; }
.v16-share-menu summary {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; list-style: none;
  color: var(--blue); border: 1px solid #ead9c3; border-radius: 50%; background: #fff9ed;
}
.v16-share-menu summary::-webkit-details-marker { display: none; }
.v16-share-menu summary svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.v16-share-menu .v16-share { position: absolute; z-index: 2; top: 100%; right: 0; width: min(330px,85vw); padding: 7px;
  background: #fffaf1; border: 1px solid #ead9c3; border-radius: 10px; box-shadow: 0 3px 12px #65472c33; }
.v16-catalog .v16-entries { gap: 10px; }
.v16-catalog .v16-story {
  padding: clamp(6px, 1.4vw, 15px); border-radius: clamp(13px, 2.2vw, 25px);
  background: linear-gradient(125deg, #fffdf8, #fff3e1); box-shadow: 0 3px 8px #80542624;
}
.v16-catalog .v16-story-layout {
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  gap: clamp(6px, 1.3vw, 14px); align-items: start;
}
.v16-photo-panel { position: relative; min-width: 0; }
.v16-catalog .v16-product-photo {
  aspect-ratio: 1; border: 2px solid #fff8e9; border-radius: clamp(8px, 2vw, 16px); background: #fff9ef;
}
.v16-pick {
  position: absolute; top: -4px; left: -3px; transform: rotate(-8deg);
  display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px;
  background: #d32858; color: #fff; border: 2px solid white; border-radius: 15px;
  font-size: clamp(.57rem, 2.4vw, 1rem); font-weight: 700; box-shadow: 0 2px 5px #af375a60;
}
.v16-pick .learning-icon { width: clamp(14px, 3.7vw, 27px); }
.v16-product-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 3px; }
.v16-catalog .v16-product-heading h2 {
  flex: 1 1 70px; text-align: center; min-width: 0; margin: 0; padding: 4px 3px;
  background: linear-gradient(#fff9e8, #ffedbc); border: 1px solid #efc477; border-radius: 18px;
  color: #143268; font-size: clamp(.7rem, 3vw, 1.7rem); line-height: 1.08; overflow-wrap: anywhere;
}
.v16-catalog .v16-product-heading .price {
  flex: 0 1 auto; max-width: 44%; align-self: center; margin: 0 0 0 auto; padding: 3px 4px;
  border: 1px solid #efc483; border-radius: 10px; background: #fff9e5; color: #ac2046;
  font-size: clamp(.61rem, 2.5vw, 1.45rem); line-height: 1.02; text-align: center; overflow-wrap: anywhere;
}
.v16-catalog .v16-story-copy p { margin: 4px 0; font-size: clamp(.62rem, 2.35vw, 1.05rem); line-height: 1.18; }
.v16-catalog .v16-story-copy .v16-story-lead { color: #89251b; font-weight: 700; }
.v16-catalog .v16-story-copy .v16-story-reason { font-weight: 700; }
.v16-selling-points { padding: 0; list-style: none; margin: 4px 0 0; }
.v16-selling-points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px; align-items: baseline; font-size: clamp(.6rem, 2.3vw, 1rem); line-height: 1.17; margin: 2px 0; }
.v16-selling-points li::before { content: "✓"; padding: 0 2px; border-radius: 50%; color: #fff; background: #a95806; font-size: .82em; }
.v16-catalog .v16-actions {
  grid-template-columns: repeat(4, minmax(0,1fr)) minmax(0,1.15fr); gap: 1px; margin-top: 5px;
  background: #fffdf5; padding: 2px; border-radius: 15px; box-shadow: 0 2px 4px #8c602128;
}
.v16-catalog .v16-action {
  min-width: 0; min-height: 44px; padding: 2px 1px; gap: 1px; flex-direction: column; border-radius: 0;
  border: 0; border-inline-end: 1px solid #efdbb6; background: transparent; color: #163768;
  font-size: clamp(.61rem, 2.38vw, 1.03rem); overflow-wrap: anywhere;
}
.v16-catalog .v16-action-icon { width: clamp(16px, 4.5vw, 29px); }
.v16-catalog .v16-action.v16-wish .wish-heart { font-size: clamp(1rem, 4.6vw, 1.45rem); line-height: 1; color: #b8224d; }
.v16-catalog .v16-action.v16-buy { border: 1px solid #9e380b; border-radius: 12px; background: linear-gradient(#db651d,#b6410a); color: white; }
.v16-catalog .v16-story-details { margin: 0; }
.v16-catalog .v16-story-details summary { padding: 4px 1px 1px; color: #594b40; font-size: clamp(.66rem, 2.6vw, .9rem); }
/* Keep the topic board beside the photo on larger screens. */
.v16-catalog .v16-story-layout:has(> .v16-theme-panel) { grid-template-rows: auto 1fr; }
.v16-catalog .v16-story-layout:has(> .v16-theme-panel) > .v16-photo-panel { grid-row: 1 / span 2; }
.v16-catalog .v16-theme-panel { grid-column: 2; padding: 3px; background: #fff7df; border: 1px solid #f0d2a2; border-radius: 9px; }
.v16-catalog .v16-theme-panel h3 { margin: 0; text-align: center; color: #a02547; font-size: clamp(.66rem, 2.6vw, 1.02rem); }
.v16-catalog .v16-theme-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px; margin: 2px 0 0; }
.v16-catalog .v16-theme-grid div { min-width: 0; min-height: 24px; padding: 1px 0; background: #fffdf6; border-radius: 3px; font-size: clamp(.43rem, 1.65vw, .78rem); line-height: 1; overflow-wrap: anywhere; }
.v16-catalog .v16-theme-grid .learning-icon {
  width: clamp(16px, 5vw, 32px); height: auto; align-self: center; aspect-ratio: 1;
}
@media (max-width: 767px) {
  .v16-catalog { width: calc(100% - 14px); }
  .v16-catalog .v16-product-heading h2 { flex-basis: 66px; }
  .v16-catalog .v16-story-layout:has(> .v16-theme-panel) { grid-template-rows: auto auto; }
  .v16-catalog .v16-story-layout:has(> .v16-theme-panel) > .v16-photo-panel { grid-row: 1; }
  .v16-catalog .v16-theme-panel { grid-column: 1 / -1; }
  .v16-catalog .v16-theme-grid div { min-height: 36px; font-size: clamp(.54rem, 2.05vw, .72rem); }
}
@media (min-width: 700px) {
  .v16-catalog .v16-action, .v16-catalog .v16-action > span { flex-direction: row; }
  .v16-catalog .v16-action > span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
}
