:root{
  --brand:#d10000;--brand-soft:#ffe5e5;--brand-dark:#a80000;
  --dark:#0f172a;--gray:#475569;--bg:#f8fafc;
  --green:#16a34a;--green-soft:#f0fff4;--green-border:#9ae6b4;--green-dark:#166534;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:radial-gradient(circle at top,rgba(209,0,0,.06),transparent 55%),linear-gradient(180deg,#fff,#f8fafc);
  color:var(--dark);
  padding:0 0 60px;
}

.eb-topbar{
  background:linear-gradient(135deg,var(--brand-dark),var(--brand));
  color:#fff;padding:16px 20px;text-align:center;
}
.eb-topbar a{color:#fff;text-decoration:none;}
.eb-topbar i{margin-right:8px;}
.eb-topbar strong{font-weight:800;}

.eb-hero{max-width:900px;margin:0 auto;padding:44px 20px 10px;text-align:center;}
.eb-hero-badge{
  display:inline-flex;align-items:center;gap:8px;background:#fff0f0;border:1px solid #fecaca;
  color:var(--brand);font-size:13px;font-weight:700;padding:7px 18px;border-radius:999px;margin-bottom:18px;
}
.eb-hero h1{font-size:clamp(24px,4vw,34px);font-weight:800;letter-spacing:-.5px;margin-bottom:10px;}
.eb-hero p{color:#475569;font-size:15px;max-width:640px;margin:0 auto;line-height:1.7;}

.eb-section{max-width:1100px;margin:44px auto 0;padding:0 20px;}
.eb-section h2{font-size:20px;font-weight:800;border-left:5px solid var(--brand);padding-left:14px;margin-bottom:20px;}

.eb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media (max-width:900px){ .eb-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .eb-grid{grid-template-columns:1fr;} }

.eb-card{
  display:block;background:#fff;border-radius:18px;overflow:hidden;text-decoration:none;color:inherit;
  border:1px solid #f1f5f9;box-shadow:0 10px 30px rgba(0,0,0,.05);transition:.2s;
}
.eb-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(0,0,0,.09);}

.eb-card-covers{display:flex;gap:6px;padding:16px 16px 0;justify-content:center;background:#fafafa;}
.eb-card-covers img{height:120px;border-radius:6px;box-shadow:0 6px 14px rgba(0,0,0,.15);object-fit:cover;}
.eb-covers-1 img{height:150px;}
.eb-covers-2 img{height:130px;}
.eb-covers-3 img{height:110px;}

.eb-card-body{padding:16px;}
.eb-card-body h3{font-size:15px;font-weight:700;margin:8px 0 6px;line-height:1.35;}
.eb-card-body p{font-size:12.5px;color:#64748b;line-height:1.55;margin-bottom:10px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.eb-card-price{color:var(--brand);font-weight:800;font-size:17px;}

.eb-badge{
  display:inline-block;font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:999px;
  background:#f1f5f9;color:#475569;text-transform:uppercase;letter-spacing:.4px;
}
.eb-badge-bundle{background:var(--brand-soft);color:var(--brand-dark);}

.eb-card-compact .eb-card-covers{padding:12px 12px 0;}
.eb-card-compact .eb-card-covers img{height:100px;}
.eb-card-compact .eb-card-body{padding:12px;}
.eb-card-compact .eb-card-body h3{font-size:13.5px;}
.eb-card-compact .eb-card-body p{display:none;}
.eb-card-compact .eb-card-price{font-size:14px;}

.eb-product-wrap{
  max-width:1050px;margin:30px auto 0;padding:0 20px;
  display:grid;grid-template-columns:1fr 1.1fr;gap:36px;align-items:start;
}
@media (max-width:840px){ .eb-product-wrap{grid-template-columns:1fr;} }

.eb-gallery-main{
  border-radius:18px;overflow:hidden;box-shadow:0 20px 45px rgba(0,0,0,.1);border:1px solid #f1f5f9;background:#fff;
}
.eb-gallery-main img{width:100%;display:block;}
.eb-gallery-thumbs{display:flex;gap:10px;margin-top:12px;}
.eb-gallery-thumbs img{
  width:64px;height:64px;object-fit:cover;border-radius:8px;cursor:pointer;border:2px solid transparent;opacity:.7;transition:.15s;
}
.eb-gallery-thumbs img.active{border-color:var(--brand);opacity:1;}

.eb-product-info .eb-badge{margin-bottom:12px;}
.eb-product-info h1{font-size:24px;font-weight:800;margin-bottom:10px;line-height:1.3;}
.eb-product-info .eb-price-row{display:flex;align-items:baseline;gap:10px;margin-bottom:16px;}
.eb-product-info .eb-price-row .price{font-size:30px;font-weight:900;color:var(--brand);}
.eb-desc{font-size:14px;line-height:1.75;color:#334155;margin-bottom:20px;}

.eb-includes{background:#f8fafc;border-radius:12px;padding:14px 16px;margin-bottom:20px;}
.eb-includes strong{display:block;margin-bottom:8px;font-size:13px;}
.eb-includes ul{padding-left:18px;font-size:13px;color:#475569;line-height:1.8;}

.eb-buy-box{
  background:#fff;border:1px solid #fecaca;border-radius:18px;padding:22px;box-shadow:0 15px 40px rgba(209,0,0,.06);
}
label.eb-label{display:block;font-size:12.5px;font-weight:700;color:#334155;margin-bottom:6px;}
.eb-input{
  width:100%;padding:12px 14px;border:1px solid #cbd5e1;border-radius:10px;
  font-size:14px;margin-bottom:14px;outline:none;transition:.2s;
}
.eb-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(209,0,0,.1);}

.eb-buy-btn{
  width:100%;border:none;border-radius:12px;padding:15px;
  background:linear-gradient(135deg,var(--brand),#ef2029);color:#fff;font-size:15px;font-weight:800;
  cursor:pointer;box-shadow:0 10px 25px rgba(209,0,0,.25);transition:.2s;
}
.eb-buy-btn:hover{transform:translateY(-2px);}
.eb-buy-btn:disabled{opacity:.6;cursor:not-allowed;transform:none;}

.eb-note{text-align:center;color:#64748b;font-size:11px;margin-top:12px;line-height:1.6;}
.eb-note i{color:var(--green);}
#ebMsg{margin-top:12px;font-size:13px;color:var(--brand);text-align:center;font-weight:600;}

.eb-success{
  display:none;margin-top:16px;border-radius:16px;overflow:hidden;border:1px solid var(--green-border);
  box-shadow:0 15px 35px rgba(22,163,74,.08);
}
.eb-success-head{
  background:linear-gradient(135deg,#ecfdf3,var(--green-soft));padding:14px 18px;display:flex;align-items:center;gap:10px;
}
.eb-success-head i{font-size:18px;color:var(--green);}
.eb-success-head strong{font-size:14.5px;color:var(--green-dark);}
.eb-success-body{background:#fff;padding:16px 18px;}
.eb-dl-link{
  display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
  background:linear-gradient(135deg,var(--brand),#ef2029);color:#fff;text-decoration:none;
  padding:12px;border-radius:10px;font-weight:700;font-size:13.5px;margin-bottom:8px;
}
.eb-success-note{font-size:11.5px;color:#64748b;text-align:center;margin-top:8px;}

/* ===================== Added for Study Notes (cut-price + no-cover placeholder) ===================== */
.eb-price-mrp{
  color:#94a3b8;font-size:15px;text-decoration:line-through;font-weight:600;margin-right:2px;
}
.eb-price-now{color:var(--brand);font-weight:800;}
.eb-card-price .eb-price-now{font-size:17px;}

.eb-cover-placeholder{
  width:100%;height:120px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#fff5f5,#ffe5e5);border-radius:10px;color:var(--brand);font-size:34px;
}

.eb-gallery-placeholder{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  min-height:260px;background:linear-gradient(135deg,#fff5f5,#ffe5e5);color:var(--brand-dark);
}
.eb-gallery-placeholder i{font-size:56px;}
.eb-gallery-placeholder span{font-size:13px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;}

/* ===================== Added: Protected Notes Page Access (post-payment) ===================== */
.eb-notes-access-wrap{margin-top:14px;padding-top:12px;border-top:1px dashed #e2e8f0;}
.eb-notes-access-title{font-size:12.5px;font-weight:800;color:var(--dark);margin-bottom:8px;}
.eb-notes-access-title i{color:var(--brand);margin-right:6px;}
.eb-notes-access{
  background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;margin-bottom:8px;font-size:12.5px;
}
.eb-notes-access-name{font-weight:700;margin-bottom:4px;color:var(--dark);}
.eb-notes-access-row{color:#475569;word-break:break-all;margin-bottom:2px;}
.eb-notes-access-row span{font-weight:600;color:#334155;margin-right:4px;}
.eb-notes-access-row code{
  background:#fff;border:1px solid #e2e8f0;border-radius:5px;padding:1px 6px;font-weight:700;color:var(--brand-dark);
}
