/* MET product page — shared stylesheet v2 (homepage style)
   Install ONCE: WordPress → Appearance → Customize → Additional CSS.
   Never paste CSS into a product page.
   Colours and shapes copied from the approved homepage:
   ink #0D2B46 · link #1E5AA8 · action pink #C91462 · pill buttons (999px) ·
   sticker cards (2px #E4DCE4 border, 3px 4px hard shadow #EDE9F0) ·
   category chip colours: yellow FFE665 · pink FFF0F6 · mint EEF9F7 · blue EDF5FF · lilac F4EFFF · sky EAF7FF */

/* 1. Theme overrides on product pages (body gets class met-product-page) */
body.met-product-page .entry-hero,
body.met-product-page .entry-header { display: none !important; }
body.met-product-page #primary { margin-block: 0 !important; }
body.met-product-page .content-container.site-container { width: calc(100% - 48px) !important; max-width: 1366px !important; padding: 0 !important; margin-inline: auto !important; }
body.met-product-page #main { width: 100% !important; max-width: none !important; margin: 0 !important; }
body.met-product-page .entry-content-wrap,
body.met-product-page .entry-content { padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }

/* 2. Base */
.met-product {
  --ink: #0D2B46; --link: #1E5AA8; --action: #C91462; --grey: #3E4C59; --line: #E4E7EB;
  --card-line: #E4DCE4; --card-shadow: #EDE9F0; --soft: #F5F7FA;
  --yellow: #FFE665; --pink: #FFF0F6; --pink-line: #E4D6E2; --mint: #EEF9F7; --mint-line: #CFE8E2;
  --blue: #EDF5FF; --blue-line: #CDDFF1; --lilac: #F4EFFF; --lilac-line: #E0D5F2; --sky: #EAF7FF; --sky-line: #C9E4F3;
  --cream: #FFF8D6; --cream-line: #F0E2A0;
  color: var(--ink);
  font: 16px/1.55 'Noto Sans TC', 'Noto Sans HK', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 10px 0 40px;
}
.met-product * { box-sizing: border-box; min-width: 0; }
.met-product h1, .met-product h2, .met-product h3 { font-family: inherit; color: var(--ink); margin: 0; line-height: 1.2; text-wrap: balance; }
.met-product h1 { font-size: clamp(24px, 2.3vw, 30px); font-weight: 900; }
.met-product h2 { font-size: clamp(21px, 2vw, 26px); font-weight: 900; }
.met-product p { margin: 0 0 8px; }
.met-product ul { margin: 6px 0; padding-left: 20px; }
.met-product a { color: var(--link); text-underline-offset: 3px; }
.met-product a:focus-visible, .met-product button:focus-visible, .met-product summary:focus-visible, .met-product label:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.met-product .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.met-product .small { font-size: 13px; color: var(--grey); }
.met-product .crumb { font-size: 13px; color: var(--grey); margin: 0 0 12px; }
.met-product .card { background: #fff; border: 2px solid var(--card-line); border-radius: 14px; box-shadow: 3px 4px 0 0 var(--card-shadow); }
.met-product .pill { display: inline-block; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; color: var(--ink); }
.met-product .btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 20px; border-radius: 999px; border: 0; background: var(--action); color: #fff; font: 800 17px/1.2 inherit; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px #C914622B; }
.met-product .btn2 { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); color: var(--ink); font: 800 15px/1.2 inherit; text-decoration: none; }
.met-product .btn[disabled] { opacity: .6; cursor: not-allowed; }

/* 3. The three tags — same colours as the shop chips */
.met-product .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.met-product .tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 750; border: 1px solid transparent; color: var(--ink); }
.met-product .tag-level { background: var(--yellow); border-color: var(--yellow); }
.met-product .tag-mock { background: var(--pink); border-color: var(--pink-line); }      /* 模擬試卷 / TSA */
.met-product .tag-grammar { background: var(--blue); border-color: var(--blue-line); }   /* 文法練習 */
.met-product .tag-reading { background: var(--mint); border-color: var(--mint-line); }   /* 閱讀理解 */
.met-product .tag-writing { background: var(--cream); border-color: var(--cream-line); } /* 寫作練習 */
.met-product .tag-books { background: var(--lilac); border-color: var(--lilac-line); }   /* 英文圖書 */
.met-product .tag-free { background: var(--sky); border-color: var(--sky-line); }        /* 免費資源 */
.met-product .tag-skill { background: var(--mint); border-color: var(--mint-line); }

/* 4. Hero */
.met-product .hero { padding: 16px 24px 14px; display: flex; flex-direction: column; gap: 12px; }
.met-product .hero-grid { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(0, 1.3fr) 320px; gap: 26px; align-items: start; }
.met-product .hero-main { display: flex; flex-direction: column; gap: 10px; }
.met-product .subtitle { font-size: 15px; color: var(--grey); font-weight: 600; margin: 2px 0 0; }
.met-product .promise { display: inline; align-self: flex-start; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; background: linear-gradient(transparent 55%, var(--yellow) 55%); }
.met-product .facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.met-product .facts th { width: 80px; text-align: left; font-weight: 700; color: var(--grey); padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.met-product .facts td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.met-product .fit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.met-product .fit b { font-weight: 800; }
.met-product .fit span { display: inline-flex; align-items: center; gap: 6px; }
.met-product .fit svg { flex: none; }
.met-product .note { font-size: 12px; color: var(--grey); }

/* Cover gallery: radio buttons + labels, no JavaScript */
/* Amazon-style: thumbnails in a column on the left, big cover filling the column height */
.met-product .gallery { border: 0; padding: 0; margin: 0; min-inline-size: 0; display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: flex-end; gap: 10px; }
.met-product .gallery-stage { display: grid; flex: 1; min-width: 0; height: 420px; overflow: hidden; border-radius: 8px; }
.met-product .slide { display: none; grid-area: 1 / 1; align-items: center; justify-content: center; }
.met-product .slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; filter: drop-shadow(8px 10px 12px #17354F33); }
.met-product .gallery-strip { display: flex; flex-direction: column; gap: 6px; flex: none; }
.met-product .gallery-strip label, .met-product .gallery-strip a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 48px; min-height: 50px; padding: 2px; border: 2px solid var(--card-line); border-radius: 10px; background: #fff; cursor: pointer; color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; touch-action: manipulation; }
.met-product .gallery-strip img { display: block; width: 22px; height: 28px; object-fit: cover; border-radius: 2px; }
.met-product #slide-0:checked ~ .gallery-stage .slide-0,
.met-product #slide-1:checked ~ .gallery-stage .slide-1,
.met-product #slide-2:checked ~ .gallery-stage .slide-2,
.met-product #slide-3:checked ~ .gallery-stage .slide-3 { display: flex; }
.met-product #slide-0:checked ~ .gallery-strip label[for="slide-0"],
.met-product #slide-1:checked ~ .gallery-strip label[for="slide-1"],
.met-product #slide-2:checked ~ .gallery-strip label[for="slide-2"],
.met-product #slide-3:checked ~ .gallery-strip label[for="slide-3"] { border-color: var(--link); background: var(--blue); }

/* Buy box */
.met-product .buy-box { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--pink); border-color: var(--pink-line); }
.met-product .buy-title { font-size: 15px; font-weight: 800; line-height: 1.35; }
.met-product .buy-title small { display: block; font-size: 13px; font-weight: 600; color: var(--grey); }
.met-product .price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.met-product .price, .met-product .buy-box .woocommerce-Price-amount { font-size: 36px; font-weight: 900; color: var(--action); line-height: 1.1; }
.met-product .buy-box ul { font-size: 13px; line-height: 1.7; margin: 0; padding-left: 18px; }
.met-product .buy-box .btn, .met-product .buy-box .button, .met-product .buy-box .btn2 { width: 100%; }
.met-product .buy-box .chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Trust strip: same 5 items as the homepage */
.met-product .trust { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.met-product .trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.met-product .trust svg { flex: none; }

/* 5. Row 2: description (2/3) + free sample (1/3) */
.met-product .row2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: stretch; }
.met-product .panel { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.met-product .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.met-product .panel fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; display: contents; }
.met-product .langs { display: flex; gap: 4px; }
.met-product .langs label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); font-size: 13px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.met-product .lang-panel { display: none; }
.met-product #lang-0:checked ~ .lang-panel-0, .met-product #lang-1:checked ~ .lang-panel-1, .met-product #lang-2:checked ~ .lang-panel-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.met-product #lang-0:checked ~ .panel-head label[for="lang-0"], .met-product #lang-1:checked ~ .panel-head label[for="lang-1"], .met-product #lang-2:checked ~ .panel-head label[for="lang-2"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.met-product .lang-panel > div { font-size: 15px; line-height: 1.7; }
.met-product .contents-title { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.met-product .contents { width: 100%; border-collapse: collapse; font-size: 13px; }
.met-product .contents th, .met-product .contents td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.met-product .contents th { font-weight: 700; color: var(--grey); }
.met-product .contents .n { text-align: right; white-space: nowrap; }
.met-product .free { background: var(--mint); border-color: var(--mint-line); }
.met-product .previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.met-product .thumb { margin: 0; background: #fff; border: 2px solid var(--card-line); border-radius: 10px; padding: 8px; text-align: center; font-size: 13px; font-weight: 700; }
.met-product .thumb img { display: block; width: 100%; height: 150px; object-fit: contain; object-position: top; margin-bottom: 6px; }
.met-product .free .btn2 { margin-top: auto; }

/* 6. Shelf of related covers */
.met-product .shelf { margin-top: 22px; }
.met-product .shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.met-product .shelf-head a { font-size: 16px; text-decoration: none; font-weight: 600; }
.met-product .shelf ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.met-product .shelf a { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 12px 10px; text-align: center; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--card-line); border-radius: 14px; box-shadow: 3px 4px 0 0 var(--card-shadow); transition: transform .15s, box-shadow .15s; }
.met-product .shelf a:hover { transform: translateY(-2px); box-shadow: 3px 6px 0 0 var(--card-shadow), 0 0 0 2px var(--action); }
.met-product .shelf img { width: 110px; height: 146px; object-fit: contain; }
.met-product .shelf .tag { min-height: 26px; font-size: 12px; padding: 0 10px; }

/* 7. FAQ in two columns, licence strip */
.met-product .faq { margin-top: 22px; padding: 20px 24px; }
.met-product .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 12px; }
.met-product .faq details { border-bottom: 1px solid var(--line); }
.met-product .faq summary { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; min-height: 44px; }
.met-product .faq summary::before { content: "Q"; color: var(--action); font-weight: 900; }
.met-product .faq summary::-webkit-details-marker { display: none; }
.met-product .faq p { font-size: 14px; line-height: 1.6; margin: 0 0 12px 24px; }
.met-product .licence { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 14px 20px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.met-product .licence a { white-space: nowrap; font-weight: 700; }

/* 8. Phone sticky bottom bar (hidden on wider screens) */
.met-product .phone-bar { display: none; }

/* 9. Tablet (521–900 px) */
@media (max-width: 900px) {
  body.met-product-page .content-container.site-container { width: calc(100% - 32px) !important; }
  .met-product .hero { padding: 16px; }
  .met-product .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
  .met-product .gallery-stage { height: 380px; }
  .met-product .buy-box { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 8px 20px; align-items: center; }
  .met-product .buy-box ul, .met-product .buy-box .chips { grid-column: 1; }
  .met-product .buy-box .btn, .met-product .buy-box .btn2 { grid-column: 2; }
  .met-product .row2 { grid-template-columns: 1fr; }
  .met-product .shelf ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .met-product .shelf li:nth-child(n+5) { display: none; }
  .met-product .faq-grid { gap: 0 28px; }
}

/* 10. Phone (≤520 px) */
@media (max-width: 520px) {
  body.met-product-page .content-container.site-container { width: calc(100% - 24px) !important; }
  .met-product { font-size: 15px; padding-bottom: 96px; }
  .met-product .hero { padding: 14px; gap: 12px; }
  .met-product .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .met-product .hero-main { order: 1; }
  .met-product .hero-cover { order: 2; }
  .met-product .buy-box { order: 3; display: flex; }
  .met-product .hero-cover .gallery { flex-direction: column; align-items: center; }
  .met-product .gallery-stage { height: 300px; width: 100%; }
  .met-product .gallery-strip { flex-direction: row; }
  .met-product h1 { font-size: 24px; }
  .met-product .promise { font-size: 15px; }
  .met-product .facts { font-size: 14px; }
  .met-product .facts th { width: 56px; }
  .met-product .fit { flex-direction: column; align-items: flex-start; gap: 5px; }
  .met-product .trust span { font-size: 11px; }
  .met-product .panel { padding: 16px 14px; }
  .met-product #lang-0:checked ~ .lang-panel-0, .met-product #lang-1:checked ~ .lang-panel-1, .met-product #lang-2:checked ~ .lang-panel-2 { grid-template-columns: 1fr; gap: 14px; }
  .met-product .langs { width: 100%; }
  .met-product .langs label { flex: 1; }
  .met-product .thumb img { height: 120px; }
  .met-product .shelf ul { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; }
  .met-product .shelf li { flex: 0 0 140px; }
  .met-product .shelf li:nth-child(n+5) { display: block; }
  .met-product .shelf img { width: 90px; height: 120px; }
  .met-product .faq { padding: 16px 14px; }
  .met-product .faq-grid { grid-template-columns: 1fr; }
  .met-product .licence { font-size: 12px; }
  .met-product .phone-bar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px #0D2B4614; }
  .met-product .phone-bar .small { font-size: 11px; }
  .met-product .phone-bar .price { font-size: 22px; }
  .met-product .phone-bar .btn { flex: 1; max-width: 220px; min-height: 44px; font-size: 15px; }
}

/* 12. Sale sticker on the cover (only when there is a discount): <span class="sticker"><s>HK$68</s> HK$38</span> inside .hero-cover */
.met-product .hero-cover { position: relative; }
.met-product .sticker { position: absolute; top: 6px; right: 6px; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 78px; border-radius: 50%; background: var(--action); color: #fff; font-size: 17px; font-weight: 900; line-height: 1.1; box-shadow: 0 6px 14px #C914624D; transform: rotate(8deg); }
.met-product .sticker s { font-size: 11px; font-weight: 600; opacity: .85; }
.met-product .price-row s { font-size: 16px; color: var(--grey); font-weight: 600; }

/* 13. Pop-up preview (放大) — CSS only, opens on the same page. Link: <a href="#zoom">放大</a>. Close: <a href="#">×</a> */
.met-product .lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: #0D2B46E6; padding: 24px; align-items: center; justify-content: center; }
.met-product .lightbox:target { display: flex; }
.met-product .lightbox-inner { position: relative; width: min(96vw, 1100px); height: min(94vh, 1200px); background: #fff; border-radius: 12px; padding: 48px 16px 16px; }
.met-product .lightbox iframe, .met-product .lightbox img { display: block; width: 100%; height: 100%; border: 0; border-radius: 6px; object-fit: contain; }
.met-product .lightbox-close { position: absolute; top: 8px; right: 12px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); font-size: 22px; font-weight: 800; text-decoration: none; background: #fff; }
.met-product .lightbox-title { position: absolute; top: 14px; left: 16px; font-size: 14px; font-weight: 800; }

/* 14. In-page reader for free pages (page pictures in a scroll box) */
.met-product .reader { height: 420px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 10px; background: #fff; border: 2px solid var(--card-line); border-radius: 10px; scrollbar-gutter: stable; }
.met-product .reader img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.met-product .reader-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.met-product .lightbox-scroll { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.met-product .lightbox-scroll img { height: auto; width: min(100%, 820px); margin: 0 auto; border: 1px solid var(--line); }
@media (max-width: 520px) { .met-product .reader { height: 320px; } .met-product .reader-actions { grid-template-columns: 1fr; } }

/* 15. Mini review under the hero */
.met-product .quote-mini { margin: 0; padding: 10px 14px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 10px; font-size: 14px; line-height: 1.6; }
.met-product .quote-mini p { margin: 0 0 4px; }
.met-product .quote-mini footer { font-size: 12px; font-weight: 700; color: var(--grey); }

/* 11. Print */
@page { size: A4; margin: 15mm; }
@media print { .met-product .phone-bar { display: none !important; } .met-product section { break-inside: avoid; } }

/* ===== 16. LIVELY LAYER — same spirit as the homepage: pastel colour blocks, hand-drawn highlight, tilted stickers ===== */
/* Hero: soft sky block with two pastel "blobs" behind the cover, like the homepage photo card */
.met-product .hero { position: relative; overflow: hidden; background: linear-gradient(118deg, #EAF7FF 0%, #FFFFFF 48%, #FFF6FA 100%); }
.met-product .hero::before, .met-product .hero::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.met-product .hero::before { width: 360px; height: 360px; left: -90px; top: -120px; background: #FFE66566; }
.met-product .hero::after { width: 260px; height: 260px; right: 300px; bottom: -120px; background: #CFE8E266; }
.met-product .hero > * { position: relative; z-index: 1; }
/* Hand-drawn feel on the product name: yellow marker swoosh under the first words */
.met-product h1 { position: relative; display: inline-block; }
.met-product h1::after { content: ""; position: absolute; left: 0; right: 28%; bottom: 2px; height: 10px; background: var(--yellow); z-index: -1; border-radius: 3px; transform: rotate(-.6deg); }
/* Section titles: short colour bar on the left, like a highlighter tab */
.met-product .panel > h2, .met-product .panel-head h2, .met-product .shelf-head h2, .met-product .faq h2 { padding-left: 14px; border-left: 8px solid var(--yellow); border-radius: 3px; }
.met-product .free > h2 { border-left-color: #8FD3C8; }
.met-product .faq h2 { border-left-color: #F7C6DD; }
/* Row 2 panels: each its own pastel, not all white */
.met-product .row2 > .panel:first-child { background: #FFFBEA; border-color: var(--cream-line); }
.met-product .free { background: var(--mint); }
/* Shelf: a coloured band behind the shelf, with a "wooden shelf" line under the covers */
.met-product .shelf { padding: 20px 24px 24px; background: var(--lilac); border-radius: 18px; }
.met-product .shelf ul { position: relative; }
.met-product .shelf a { background: #fff; }
/* FAQ: pink tint; questions as rounded rows */
.met-product .faq { background: var(--pink); border-color: var(--pink-line); }
.met-product .faq details { background: #fff; border: 1px solid var(--pink-line); border-radius: 10px; margin: 8px 0; padding: 0 14px; }
.met-product .faq summary { border: 0; }
/* Stickers: tilt the sale sticker and the free badge, like a price label in a bookshop */
.met-product .sticker { transform: rotate(10deg); }
.met-product .buy-box .btn { box-shadow: 0 8px 20px #C914623D; }
.met-product .buy-box { background: linear-gradient(160deg, #FFF0F6, #FFF8FB); }
/* Trust strip: small coloured dots instead of plain icons */
.met-product .trust span svg { background: var(--sky); border-radius: 50%; padding: 4px; width: 28px; height: 28px; }
/* Tags: a little bolder, pill-shaped like the homepage chips */
.met-product .tag { border-radius: 999px; box-shadow: 2px 2px 0 0 #EDE9F0; }
@media (max-width: 520px) { .met-product .hero::after { display: none; } .met-product h1::after { right: 15%; } }

/* ===== 17. MORE LIFE + row 2 fits one laptop screen ===== */
/* Row 2 in one screen: compact description, 300 px reader */
.met-product .row2 { align-items: start; }
.met-product .panel { padding: 16px 20px; gap: 10px; }
.met-product .lang-panel > div { font-size: 14px; line-height: 1.6; }
.met-product .lang-panel ul { margin: 4px 0; }
.met-product .contents { font-size: 12.5px; }
.met-product .contents th, .met-product .contents td { padding: 5px 0; }
.met-product .reader { height: 300px; }
.met-product .reader-actions { margin-top: 0; }
/* Books lean on the shelf: alternate tilt; straighten on hover */
.met-product .shelf a:hover img { transform: scale(1.04); }  /* covers stay straight (Carmen, 8 Nov) */
.met-product .shelf img { transition: transform .2s; }
/* Shelf band: soft dotted paper */
.met-product .shelf { background-color: var(--lilac); background-image: radial-gradient(#E0D5F2 1.2px, transparent 1.3px); background-size: 18px 18px; }
/* Little "NEW" / "熱門" sticker on a shelf card: <span class="shelf-badge">新書</span> inside the <a> */
.met-product .shelf a { position: relative; }
.met-product .shelf-badge { position: absolute; top: 8px; left: 8px; background: var(--action); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; transform: rotate(-6deg); }
/* Tags wiggle slightly into view; thumbnails get a colour ring when chosen */
.met-product .gallery-strip label:hover { transform: translateY(-2px); }
.met-product .gallery-strip label { transition: transform .15s; }
/* Buy box: a gentle pulse on the main button so the eye lands on it */
@keyframes met-pulse { 0%,100% { box-shadow: 0 8px 20px #C914623D; } 50% { box-shadow: 0 10px 28px #C9146266; } }
.met-product .buy-box .btn { animation: met-pulse 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .met-product .buy-box .btn { animation: none; } }
/* FAQ question rows: coloured dot bullets instead of a plain Q */
.met-product .faq summary::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--action); flex: none; }
/* Section emoji sits in a small yellow circle */
.met-product h2 { line-height: 1.3; }

/* ===== 18. One-row-one-screen guard (laptop and up): each row stays under ~590 px ===== */
@media (min-width: 1100px) {
  .met-product .hero { max-height: 560px; }
  .met-product .row2 > .panel { max-height: 560px; }
  .met-product .shelf { max-height: 420px; }
  .met-product .faq { max-height: 420px; }
  .met-product .faq p { font-size: 13px; }
  .met-product .shelf img { width: 100px; height: 132px; }
  .met-product .shelf a { padding: 10px 8px; font-size: 13px; }
}

/* 19. Browse-by-type row (reuses the homepage boxes; CSS for .home-types/.type-card is in met-site.css) */
.met-product .browse { margin-top: 22px; }
.met-product .browse h2 { margin-bottom: 12px; padding-left: 14px; border-left: 8px solid var(--yellow); border-radius: 3px; }

/* Related shelf on product pages — same Amazon style (Carmen, 8 Nov) */
.met-product .shelf ul{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 16px;list-style:none;margin:0;padding:0}
.met-product .shelf li a{height:auto;display:flex;flex-direction:column;gap:4px;padding:0;background:none;border:0;box-shadow:none;text-align:left;align-items:stretch}
.met-product .shelf li a:hover{transform:none;box-shadow:none}
.met-product .shelf li img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:6px;box-shadow:0 1px 4px #0D2B4626}
.met-product .shelf li a span:first-of-type{font-size:14px;font-weight:700;line-height:1.35;margin-top:6px}
.met-product .shelf li .tag{display:none}
.met-product .shelf li .pill{align-self:flex-start;background:none;border:0;padding:0;font-size:16px;font-weight:900}
@media(max-width:900px){.met-product .shelf ul{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.met-product .shelf ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
