.ebook-shop {
  --ebook-ivory: #fffdf7;
  --ebook-cream: #f8efe0;
  --ebook-gold: #dec694;
  --ebook-navy: #142d41;
  background: var(--ebook-ivory);
  color: var(--ebook-navy);
  font-family: "IBM Plex Sans Thai", sans-serif;
  line-height: 1.75;
}
.ebook-shop .crumbs { padding: 18px 0; }
.ebook-shop h1, .ebook-shop h2 { margin: 0 0 16px; line-height: 1.4; text-wrap: balance; }
.ebook-shop h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
.ebook-shop h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.ebook-shop h3 { margin: 0; font: 600 1.13rem/1.55 "IBM Plex Sans Thai", sans-serif; }
.ebook-shop p { margin: 0 0 .85em; }
.ebook-shop img { display: block; max-width: 100%; height: auto; }
.ebook-shop :focus-visible { outline: 3px solid #08718a; outline-offset: 4px; }
.ebook-shelf { padding-bottom: clamp(48px, 7vw, 88px); }
.ebook-shelf h1 { margin-bottom: 24px; }
.ebook-shelf-grid, .ebook-testimonial-grid, .ebook-plan {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ebook-shelf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 870px; margin-inline: auto; }
.ebook-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(20px,5vw,64px); align-items: center; }
.ebook-opening { padding: 16px 0 clamp(30px,5vw,64px); }
.ebook-opening .ebook-lead { font-size: clamp(1.14rem,2vw,1.35rem); }
.ebook-cover { width: min(100%,380px); justify-self: center; }
.ebook-cover img { border-radius: 12px; box-shadow: 0 12px 25px #10283f35; }
.ebook-facts {
  padding: 12px 15px;
  border-inline-start: 3px solid #008ba7;
  background: #eaf6f6;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
}
.ebook-shop .ebook-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 46px;
  color: #fff;
  background: linear-gradient(#1d7990,#0e5d75);
  border: 1px solid #2196ad;
  border-radius: 13px;
  box-shadow: inset 0 1px #ffffff66, 0 3px 0 #0c4e65, 0 7px 14px #0c4e6533;
}
.ebook-shop .ebook-action:hover { background: #0d607b; }
.ebook-shop .ebook-action:active { box-shadow: inset 0 2px 4px #0c4968; }
.ebook-section { padding: clamp(24px,5vw,56px) 0; }
.ebook-origin figure { margin: 0; }
.ebook-origin img { width: 100%; border-radius: 14px; border: 1px solid var(--ebook-gold); }
.ebook-origin figcaption { margin-top: 8px; font-size: .93rem; }
#reading-plan { scroll-margin-top: 98px; }
.ebook-plan { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ebook-plan li {
  padding: 15px 18px;
  background: #fff;
  border: 1px solid #e5d9c1;
  border-radius: 14px;
}
.ebook-plan li p { margin: .3em 0 0; }
.ebook-day { display: block; font-weight: 600; color: #0d667e; margin-bottom: 4px; }
.ebook-testimonials { background: var(--ebook-cream); padding: clamp(32px,5vw,62px) 0; }
.ebook-testimonial-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
.ebook-testimonial-grid li {
  padding: clamp(15px,2.1vw,23px);
  background: #fffefa;
  border: 1px solid var(--ebook-gold);
  border-top: 3px solid #78c9d8;
  border-radius: 17px;
}
.ebook-testimonial-grid h3 { margin-bottom: 8px; }
.ebook-review-image { display: block; border-radius: 10px; padding: 6px; background: #f4f9fa; border: 1px solid #c8dfe3; cursor: zoom-in; }
.ebook-review-image:hover { border-color: #08718a; }
.ebook-review-image img { width: 100%; max-height: 310px; object-fit: contain; }
.ebook-score-link { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; color: #0d667e; }
.ebook-buy-link { margin-top: 16px; }
.ebook-buy-link p { margin: 8px 0 0; font-size: .9rem; }
.ebook-order { background: #f0faf9; padding: clamp(28px,5vw,56px) 0; scroll-margin-top: 90px; }
.ebook-order-card { background: #fffefa; border: 1px solid var(--ebook-gold); border-radius: 26px; padding: clamp(16px,4vw,40px); }
.ebook-order-card > header, .ebook-order-card > [data-offer-status] { text-align: center; }
.ebook-order-card h2, .ebook-order-card .ebook-order-product { margin: 0 0 4px; }
.ebook-order-product { font-size: clamp(1.1rem,2.5vw,1.45rem); font-weight: 600; }
.ebook-order-price { font-size: 1.8rem; font-weight: 700; color: #0e5d75; }
.ebook-order-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: clamp(18px,4vw,40px); }
.ebook-order [hidden] { display: none; }
.ebook-order-transfer { padding: clamp(14px,3vw,23px); background: #f2fbfd; border: 1px solid #c4e5e9; border-radius: 20px; text-align: center; }
.ebook-order-transfer h3 { margin-bottom: 6px; }
.ebook-order-step { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-inline-end: 4px; border-radius: 9px; background: #dff6f5; color: var(--teal-deep); font-size: .95rem; }
.ebook-order-bank { padding-top: 12px; border-top: 1px solid #c4e5e9; font-size: .9rem; }
.ebook-order-transfer p:last-child, .ebook-order .form-grid p, .ebook-order [data-order-confirmation] p:last-child { margin: 0; }
.ebook-order-qr { width: min(228px,100%); aspect-ratio: 1; margin: 18px auto 12px; padding: 12px; background: #fff; border: 1px solid #c4e5e9; border-radius: 12px; }
.ebook-order-qr svg { display: block; width: 100%; height: 100%; }
.ebook-order .form-grid input[type=file] { min-height: 44px; }
.ebook-order .form-note a { text-decoration: underline; }
.ebook-lightbox {
  width: min(94vw,820px);
  max-height: 92dvh;
  overflow: auto;
  padding: 0 14px 14px;
  border: 1px solid var(--ebook-gold);
  border-radius: 16px;
  background: var(--ebook-ivory);
  color: inherit;
}
.ebook-lightbox::backdrop { background: #0d223bd9; }
.ebook-lightbox-bar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  background: var(--ebook-ivory);
}
.ebook-lightbox-bar h2 { margin: 0; font: 600 1.05rem/1.5 "IBM Plex Sans Thai", sans-serif; }
.ebook-lightbox button { min-height: 44px; color: #0e5970; font: inherit; cursor: pointer; }
.ebook-lightbox img { width: 100%; }
@media (max-width: 760px) {
  .ebook-order-grid { grid-template-columns: minmax(0,1fr); }
  .ebook-layout, .ebook-plan, .ebook-testimonial-grid { grid-template-columns: minmax(0,1fr); }
  .ebook-opening { padding-top: 4px; }
  .ebook-cover { width: min(80%,340px); }
}
@media (max-width: 540px) {
  .ebook-shelf-grid { grid-template-columns: minmax(0,1fr); }
}
