/* ================================================================
   AWUSYS — E-Books Store Clean Modern Light Edition
   ================================================================
   Background: Solid White (#ffffff)
   Text:       Black / Deep Slate (#0f172a / #1e293b / #334155)
   Price:      Bold Red (#dc2626)
   Buttons:    Amber-Orange (#F09F2D) with Black text and pulse animation
   Layout:     Horizontal Premium Presentation Cards (5x4 cm Cover)
   Footer:     Identical to Home Page
   ================================================================ */

/* ---- STORE-WIDE LIGHT THEME ---- */
.ebook-store-wrap {
  --store-bg:      #ffffff;
  --store-muted:   #475569;
  --store-card:    #ffffff;
  background: #ffffff !important;
  color: #0f172a !important;
  min-height: 100vh;
  position: relative;
}
.ebook-store-wrap::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% 10%, rgba(240, 159, 45, .04) 0%, transparent 60%),
    radial-gradient(ellipse 800px 500px at 85% 85%, rgba(108, 36, 240, .03) 0%, transparent 60%),
    #ffffff;
  pointer-events: none; z-index: 0;
}
.ebook-store-wrap > * { position: relative; z-index: 1; }

/* Justify all ebook paragraphs */
.ebook-description,
.ebook-description p,
.ebook-excerpt,
.ebook-detail-body .ebook-excerpt,
.ebook-card-horizontal .ebook-excerpt,
.ebook-hero-sub {
  text-align: justify;
  text-justify: inter-word;
}

/* ================================================================
   HERO
   ================================================================ */
.ebook-hero { padding: 4.2rem 0 3.2rem; overflow: hidden; position: relative; }
.ebook-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 900px 400px at 50% -10%, rgba(240, 159, 45, .06), transparent 60%);
}
.ebook-hero::after {
  display: none;
}
.ebook-hero .container { position: relative; }
.ebook-hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: #4338ca; font-family: var(--font-mono); font-weight: 600;
  background: #eef2ff; border: 1px solid #c7d2fe;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.ebook-hero .eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #4f46e5; animation: blink-dot 1.8s ease-in-out infinite;
}
@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.ebook-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.025em; color: #0f172a !important; margin-bottom: 1rem;
}
.ebook-hero h1 .grad-text {
  background: linear-gradient(120deg, #6C24F0, #A23BF5, #E0319B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ebook-hero-sub { color: #334155 !important; max-width: 560px; font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; }

.ebook-hero-badges { display: flex; gap: .75rem; flex-wrap: wrap; }
.ebadge {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.1rem; border-radius: 999px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  color: #1e293b; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: all .25s ease; white-space: nowrap; cursor: default;
}
.ebadge:hover {
  background: #f1f5f9; border-color: #cbd5e1;
  color: #0f172a; transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.08);
}
.ebadge svg { width: 14px; height: 14px; flex-shrink: 0; }
.ebadge-pdf svg      { color: #6d28d9; }
.ebadge-secure svg   { color: #059669; }
.ebadge-lifetime svg { color: #2563eb; }
.ebadge-instant svg  { color: #d97706; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.ebook-store-wrap .section-head { margin-bottom: 2.2rem; text-align: center; }
.ebook-store-wrap .section-head .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: #4338ca; font-family: var(--font-mono); font-weight: 600;
  background: #eef2ff; border: 1px solid #c7d2fe;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: .75rem;
}
.ebook-store-wrap .section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #0f172a !important;
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: .5rem;
}
.ebook-store-wrap .section-sub { color: #334155 !important; font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ================================================================
   HORIZONTAL EBOOK GRID & CARDS
   ================================================================ */
.ebook-grid-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 1040px;
  margin: 1.8rem auto 0;
}

.ebook-card-horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s ease;
  position: relative;
}
.ebook-card-horizontal:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1), 0 0 0 1px #cbd5e1;
}

/* Left: Book Cover Presentation Showcase (Compact 5x4 cm Thumbnail) */
.ebook-cover-col {
  width: 175px;
  min-width: 175px;
  max-width: 175px;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.1rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #f1f5f9;
  position: relative;
  flex-shrink: 0;
}
.ebook-cover-col .ebook-cover-link {
  display: block;
  width: 4cm;
  height: 5cm;
  text-decoration: none;
}
.ebook-cover-col .ebook-cover {
  position: relative;
  width: 4cm;
  height: 5cm;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.2), 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.ebook-card-horizontal:hover .ebook-cover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.26);
}
.ebook-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ebook-card-horizontal:hover .ebook-cover img {
  transform: scale(1.05);
}

.ebook-cover-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
}
.ebook-cover-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-55deg, transparent, transparent 20px, rgba(255,255,255,.03) 20px, rgba(255,255,255,.03) 21px);
}
.ebook-cover-placeholder svg {
  width: 50%; max-width: 80px; height: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
  position: relative; z-index: 1;
}
.ebook-cover-placeholder.large svg { max-width: 180px; }
.ebook-cover-title {
  color: #ffffff; font-family: var(--font-display);
  font-size: .75rem; font-weight: 700; text-align: center;
  padding: 0 0.6rem; position: relative; z-index: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

.ebook-format-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  padding: 0.14rem 0.42rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ebook-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  z-index: 3;
}
.ebook-card-horizontal:hover .ebook-cover-overlay {
  opacity: 1;
}
.ebook-cover-overlay span {
  color: #000000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.38rem 0.88rem;
  border-radius: 999px;
  background: #F09F2D;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(3px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}
.ebook-card-horizontal:hover .ebook-cover-overlay span {
  transform: translateY(0);
}

/* Right: Card Body - Compact & Clean */
.ebook-card-horizontal .ebook-body {
  padding: 1.15rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  background: #ffffff;
}
.ebook-body-top {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Meta Bar - Compact */
.ebook-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.1rem;
}
.ebook-meta-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.ebook-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.ebook-badge-pill svg {
  width: 11px;
  height: 11px;
}
.ebook-badge-format {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}
.ebook-badge-format svg {
  color: #4338ca;
}
.ebook-badge-instant {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.ebook-badge-instant svg {
  color: #059669;
}

.ebook-meta-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  margin-left: auto;
}
.ebook-meta-rating .stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Title & Author - Compact */
.ebook-card-horizontal .ebook-title {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0f172a !important;
  margin: 0.05rem 0;
}
.ebook-card-horizontal .ebook-title a {
  color: #0f172a !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ebook-card-horizontal .ebook-title a:hover {
  color: #6C24F0 !important;
}

.ebook-author {
  color: #64748b !important;
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.05rem;
}
.ebook-author strong {
  color: #1e293b;
}
.ebook-author-dot {
  color: #cbd5e1;
}

.ebook-card-horizontal .ebook-excerpt {
  color: #334155 !important;
  font-size: 0.88rem;
  line-height: 1.48;
  margin: 0.1rem 0 0.25rem;
  text-align: justify;
  text-justify: inter-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags - Compact */
.ebook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}
.ebook-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  letter-spacing: 0.02em;
}
.ebook-tag-more {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

/* Card Footer - Compact */
.ebook-card-horizontal .ebook-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.ebook-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.ebook-price-note {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
}

.ebook-foot-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-view-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: #4338ca;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-view-link:hover {
  color: #6C24F0;
  background: #eef2ff;
}

/* ================================================================
   PRICE COLOR - RED
   ================================================================ */
.ebook-price,
.ebook-price-large {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #dc2626 !important; /* Bold Red */
}
.ebook-price {
  font-size: 1.75rem;
}
.ebook-price .price-currency {
  font-size: 1.05rem;
  vertical-align: super;
  margin-right: .05rem;
  color: #dc2626 !important;
  font-weight: 700;
}
.ebook-price-large {
  font-size: 2.8rem;
}
.ebook-price-large .price-currency {
  font-size: 1.4rem;
  vertical-align: super;
  margin-right: .1rem;
  color: #dc2626 !important;
  font-weight: 700;
}

/* ================================================================
   EBOOK SPECIFIC BUTTONS (SCOPED - DOES NOT AFFECT FOOTER / HEADER)
   ================================================================ */
.btn-add-cart {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  padding: .52rem .95rem; border-radius: 9px;
  background: #ffffff; border: 1.5px solid #cbd5e1;
  color: #0f172a; cursor: pointer; transition: all .22s ease; white-space: nowrap;
}
.btn-add-cart svg { width: 14px; height: 14px; stroke: #0f172a; }
.btn-add-cart:hover {
  background: #f8fafc; border-color: #0f172a;
  color: #000000; transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

/* Only ebook buy buttons are styled amber with pulse animation */
.ebook-buy-btn,
.ebook-card .btn-grad,
.ebook-buy-box .btn-grad,
.checkout-form .btn-grad,
#rzpPayBtn,
#testPayBtn,
.btn-download {
  font-size: .88rem; padding: .55rem 1.3rem; border-radius: 9px;
  background: #F09F2D !important;
  color: #000000 !important; font-weight: 800;
  border: none; transition: all .25s ease;
  box-shadow: 0 4px 16px -4px rgba(240, 159, 45, .55); cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  animation: pulse-amber 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.ebook-buy-btn:hover,
.ebook-card .btn-grad:hover,
.ebook-buy-box .btn-grad:hover,
.checkout-form .btn-grad:hover,
#rzpPayBtn:hover,
#testPayBtn:hover {
  background: #ffab38 !important;
  color: #000000 !important;
  box-shadow: 0 8px 28px -6px rgba(240, 159, 45, .75); transform: translateY(-1px);
  animation-play-state: paused;
}

@keyframes pulse-amber {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 18px -4px rgba(240, 159, 45, 0.55), 0 0 0 0 rgba(240, 159, 45, 0.6);
  }
  50% {
    transform: scale(1.028);
    box-shadow: 0 12px 36px -4px rgba(240, 159, 45, 0.8), 0 0 0 14px rgba(240, 159, 45, 0);
  }
}

/* ================================================================
   EBOOK DETAIL PAGE
   ================================================================ */
.ebook-back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .88rem; color: #4338ca; margin-bottom: 2.5rem;
  transition: gap .2s, color .2s;
}
.ebook-back-link:hover { color: #6C24F0; gap: .75rem; }

.ebook-detail-grid { display: grid; grid-template-columns: 360px 1fr; gap: 3.5rem; align-items: start; }
.ebook-detail-sidebar { position: sticky; top: 96px; }

.ebook-detail-cover {
  border-radius: 20px; overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px -10px rgba(0,0,0,.1); background: #ffffff;
}
.ebook-detail-cover img { width: 100%; height: auto; display: block; }

.ebook-buy-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important; border-radius: 20px;
  padding: 1.8rem; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 1.2rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.08);
}

.btn-full { width: 100%; justify-content: center; text-align: center; }
.ebook-buy-box .btn-add-cart { justify-content: center; padding: .82rem 1.2rem; font-size: .9rem; width: 100%; }
.ebook-buy-box .btn-grad {
  padding: .9rem 1.2rem; font-size: .95rem; font-weight: 700;
  width: 100%; text-align: center; border-radius: 12px;
}

.buy-box-perks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; color: #334155; font-size: .88rem; }
.buy-box-perks li { display: flex; align-items: center; gap: .65rem; padding: .4rem 0; border-bottom: 1px solid #f1f5f9; }
.buy-box-perks li:last-child { border-bottom: none; }
.buy-box-perks li svg { width: 16px; height: 16px; flex-shrink: 0; stroke: #4338ca; }

.ebook-detail-body { min-width: 0; }
.ebook-detail-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: #0f172a !important; margin-bottom: .6rem; }
.ebook-detail-body .ebook-author { color: #475569 !important; font-size: .88rem; }
.ebook-detail-body .ebook-excerpt {
  color: #334155 !important;
  font-size: 1.08rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

.ebook-description {
  margin-top: 1.6rem;
  color: #0f172a !important;
  font-size: 1.02rem;
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
}
.ebook-description p {
  color: #1e293b !important;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
}
.ebook-description h3 {
  color: #0f172a !important; font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.ebook-description h3::before { content: '//'; font-family: var(--font-mono); font-size: .85rem; color: #6C24F0; }
.ebook-description ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-top: .6rem; margin-bottom: 1.4rem; }
.ebook-description ul li {
  color: #1e293b !important;
  font-size: .98rem;
  line-height: 1.6;
  padding-left: 1.6rem;
  position: relative;
  text-align: justify;
  text-justify: inter-word;
}
.ebook-description ul li::before { content: '✦'; position: absolute; left: 0; color: #6C24F0; font-size: .7rem; top: .3rem; }

/* ================================================================
   TRUST BAR
   ================================================================ */
.ebook-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 4rem; padding: 1.6rem 2rem; border-radius: 18px;
  background: #f8fafc; border: 1px solid #e2e8f0; box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.trust-item { display: flex; align-items: center; gap: .75rem; color: #1e293b; font-size: .88rem; line-height: 1.4; font-weight: 500; }
.trust-item svg { flex-shrink: 0; width: 22px; height: 22px; stroke: #6C24F0; }

/* ================================================================
   CHECKOUT PAGE
   ================================================================ */
.checkout-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; align-items: start; }
.checkout-summary {
  background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 20px;
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 96px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.08);
}
.checkout-book-row { display: flex; align-items: flex-start; gap: 1rem; }
.checkout-thumb { width: 64px; height: 86px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.checkout-thumb-placeholder {
  width: 64px; height: 86px; border-radius: 8px;
  background: linear-gradient(145deg, #6C24F0, #a855f7);
  display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0;
}
.checkout-line { display: flex; justify-content: space-between; font-size: .9rem; color: #475569; padding: .4rem 0; border-bottom: 1px solid #f1f5f9; }
.checkout-total { font-weight: 800; font-size: 1.15rem; border-bottom: none; color: #0f172a !important; }
.checkout-total .grad-text {
  background: none !important; -webkit-background-clip: unset !important; background-clip: unset !important;
  color: #dc2626 !important; font-weight: 800;
}
.checkout-perks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; color: #475569; }
.checkout-perks li { display: flex; align-items: center; gap: .6rem; }
.checkout-perks li svg { width: 14px; height: 14px; flex-shrink: 0; stroke: #4338ca; }
.test-mode-badge {
  text-align: center; padding: .5rem 1rem;
  background: #fef3c7; border: 1px solid #fde68a;
  border-radius: 8px; font-size: .82rem; color: #b45309; font-weight: 600;
}
.checkout-form-wrap { min-width: 0; }
.checkout-heading { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; color: #0f172a !important; margin-bottom: .4rem; }
.checkout-sub { color: #475569 !important; margin-bottom: 1.8rem; }
.checkout-form {
  background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 20px;
  display: flex; flex-direction: column; gap: 1.2rem; padding: 2rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.08);
}
.checkout-form label { display: flex; flex-direction: column; gap: .45rem; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: #0f172a !important; }
.checkout-req { font-weight: 400; color: #64748b; font-style: normal; }
.checkout-form input {
  font: inherit; font-family: var(--font-body); font-size: .95rem; color: #000000 !important;
  padding: .85rem 1rem; border-radius: 12px; border: 1px solid #cbd5e1;
  background: #ffffff !important; transition: border-color .2s, box-shadow .2s;
}
.checkout-form input::placeholder { color: #64748b; }
.checkout-form input:focus { outline: none; border-color: #F09F2D; box-shadow: 0 0 0 3px rgba(240,159,45,.25); }
.checkout-form input.input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.2) !important; }

.field-err { color: #dc2626; font-size: .78rem; font-weight: 600; font-family: var(--font-body); }
.checkout-note { color: #475569; font-size: .82rem; text-align: center; line-height: 1.5; }
.checkout-note code { font-family: var(--font-mono); font-size: .78rem; background: #f1f5f9; padding: .1rem .4rem; border-radius: 4px; color: #4338ca; }

/* ================================================================
   DOWNLOAD PAGE
   ================================================================ */
.order-id-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1.4rem;
  background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px;
}
.order-id-label { font-size: .7rem; color: #475569; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.order-id-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: #4338ca; letter-spacing: .08em; }

.download-card {
  background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 24px;
  padding: 3rem 2.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.1);
}
.download-icon { font-size: 3.5rem; line-height: 1; }
.download-card h1 { font-size: 2rem; font-weight: 800; color: #0f172a !important; }
.download-sub { color: #334155 !important; max-width: 500px; line-height: 1.65; }

.download-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: 100%;
  padding: 1.2rem; background: #f8fafc;
  border-radius: 14px; border: 1px solid #e2e8f0; margin: .4rem 0;
}
.download-meta-item { display: flex; flex-direction: column; gap: .25rem; align-items: center; text-align: center; }
.download-meta-item strong { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #0f172a !important; }
.download-meta-item span { color: #64748b; font-size: .8rem; }

.btn-download {
  font-size: 1.05rem; padding: 1.1rem 2.8rem; border-radius: 14px;
}
.btn-download:hover {
  background: #ffab38 !important;
  color: #000000 !important;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 16px 42px -4px rgba(240, 159, 45, 0.9);
  animation-play-state: paused;
}
.download-note { color: #475569; font-size: .83rem; max-width: 440px; }

.download-link-box { width: 100%; max-width: 560px; }
.download-link-row { display: flex; }
.download-link-input {
  flex: 1; min-width: 0; font-family: var(--font-mono); font-size: .73rem;
  padding: .65rem .9rem; border: 1px solid #cbd5e1; border-right: none;
  border-radius: 10px 0 0 10px; background: #f8fafc; color: #0f172a;
}
.download-link-row .btn { border-radius: 0 10px 10px 0; padding: .65rem 1.1rem; font-size: .83rem; flex-shrink: 0; }

/* ================================================================
   SITE FOOTER (EXACT MATCH WITH HOME PAGE)
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--line) !important;
  background: var(--bg-alt) !important;
  padding: 3.6rem 0 0 !important;
  color: var(--ink) !important;
  position: relative;
  z-index: 10;
}
.site-footer a {
  color: var(--muted) !important;
}
.site-footer a:hover {
  color: var(--violet) !important;
}
.site-footer .footer-brand-row strong {
  color: var(--ink) !important;
}
.site-footer .footer-brand p {
  color: var(--muted) !important;
}
.site-footer .footer-col h4 {
  color: var(--ink) !important;
}
.site-footer .footer-info p {
  color: var(--muted) !important;
}
.site-footer .footer-info a {
  color: var(--ink) !important;
}
.site-footer .footer-info a:hover {
  color: var(--violet) !important;
}
.site-footer .footer-info p span {
  color: var(--orange) !important;
}
.site-footer .footer-bottom {
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
}
.site-footer .subscribe-form input {
  background: #ffffff !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-right: 0 !important;
  border-radius: 999px 0 0 999px !important;
}
.site-footer .subscribe-form input:focus {
  outline: none !important;
  border-color: var(--purple) !important;
  box-shadow: none !important;
}
.site-footer .subscribe-form .btn,
.site-footer .subscribe-form .btn-grad {
  background: var(--grad) !important;
  background-size: 160% 160% !important;
  color: #ffffff !important;
  border-radius: 0 999px 999px 0 !important;
  padding: 0.7rem 1.3rem !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: var(--glow-violet) !important;
  animation: none !important;
  transform: none !important;
  cursor: pointer !important;
}
.site-footer .subscribe-form .btn:hover,
.site-footer .subscribe-form .btn-grad:hover {
  box-shadow: var(--glow-orange) !important;
  background-position: 100% 0 !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

/* Also protect header nav-cta button */
.site-header .nav-cta {
  background: var(--grad) !important;
  color: #ffffff !important;
  animation: none !important;
  border-radius: 999px !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 860px) {
  .ebook-card-horizontal {
    flex-direction: column;
  }
  .ebook-cover-col {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.8rem 1.5rem;
  }
  .ebook-card-horizontal .ebook-body {
    padding: 1.6rem 1.5rem;
  }
  .ebook-meta-rating {
    margin-left: 0;
    width: 100%;
  }
  .ebook-card-horizontal .ebook-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
  .ebook-foot-actions {
    flex-direction: column;
    width: 100%;
  }
  .ebook-foot-actions .btn-view-link,
  .ebook-foot-actions .btn-add-cart,
  .ebook-foot-actions .ebook-buy-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .ebook-detail-grid { grid-template-columns: 1fr; }
  .ebook-detail-sidebar { position: static; max-width: 480px; margin: 0 auto; }
  .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ebook-trust { grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1.2rem; }
  .ebook-hero h1 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
  .ebook-hero { padding: 3.5rem 0 2.5rem; }
}

@media (max-width: 600px) {
  .ebook-trust { grid-template-columns: 1fr; }
  .download-meta { grid-template-columns: repeat(2, 1fr); }
  .order-id-badge { flex-direction: column; gap: .25rem; text-align: center; }
  .ebook-hero { padding: 2.8rem 0 2rem; }
}
