/* Focused homepage upgrades: fast hero placeholder, free library showcase, newsletter polish. */
.home-hero>.empty{
  min-height:485px;
  display:grid;
  place-items:center;
  color:transparent!important;
  font-size:0!important;
  position:relative;
  overflow:hidden;
}
.home-hero>.empty::before{
  content:"";
  width:min(76%,720px);
  height:220px;
  border-radius:24px;
  background:linear-gradient(90deg,rgba(255,255,255,.26),rgba(255,255,255,.62),rgba(255,255,255,.26));
  background-size:220% 100%;
  animation:zzHeroSkeleton 1.25s ease-in-out infinite;
}
@keyframes zzHeroSkeleton{0%{background-position:100% 0}100%{background-position:-100% 0}}

.zz-home-free{padding:72px 0;background:linear-gradient(180deg,#f7fbf9,#fff)}
.zz-home-free-head{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:24px}
.zz-home-free-head h2{margin:4px 0 6px;font-size:36px;line-height:1.05;color:#233a4a}
.zz-home-free-head p{margin:0;color:#718079;max-width:650px;line-height:1.65}
.zz-home-free-kicker{font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:900;color:#28745d}
.zz-home-free-link{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border:1px solid #d7e3de;border-radius:999px;background:#fff;color:#233a4a;font-size:12px;font-weight:900;text-decoration:none;white-space:nowrap}
.zz-home-free-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.zz-home-free-card{display:grid;grid-template-rows:auto 1fr;background:#fff;border:1px solid #e2ebe7;border-radius:18px;overflow:hidden;box-shadow:0 12px 30px rgba(32,63,53,.06);text-decoration:none;color:#233a4a;transition:.18s ease}
.zz-home-free-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(32,63,53,.10)}
.zz-home-free-cover{aspect-ratio:3/4;background:#edf3f0;overflow:hidden;display:grid;place-items:center}
.zz-home-free-cover img{width:100%;height:100%;object-fit:cover}
.zz-home-free-placeholder{padding:18px;text-align:center;font-weight:900;color:#6c7c75;line-height:1.35}
.zz-home-free-body{padding:14px 15px 16px;display:grid;gap:6px}
.zz-home-free-cat{font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#28745d}
.zz-home-free-card h3{margin:0;font-size:15px;line-height:1.3;color:#233a4a}
.zz-home-free-author{font-size:11px;color:#77847f}
.zz-home-free-meta{font-size:10px;color:#8b9691;margin-top:3px}
.zz-home-free-empty{grid-column:1/-1;padding:30px;border:1px dashed #cfddd7;border-radius:16px;text-align:center;color:#73817b;background:#fff}

#homeNewsletter{padding:58px 0!important;background:#fff!important}
#homeNewsletter .home-newsletter-card{border:1px solid #e8ded9!important;border-radius:22px!important;box-shadow:0 18px 46px rgba(35,58,74,.07)!important;background:linear-gradient(135deg,#fff8f5,#fff)!important}
#homeNewsletterForm input[type="email"]{min-height:46px;border:1px solid #ddd!important;border-radius:10px!important;padding:0 13px!important}
#homeNewsletterStatus{min-height:18px;font-size:11px;color:#28745d;font-weight:800}

@media(max-width:900px){.zz-home-free-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){
  .home-hero>.empty{min-height:400px}
  .home-hero>.empty::before{height:180px;width:86%}
  .zz-home-free{padding:48px 0}
  .zz-home-free-head{align-items:flex-start;flex-direction:column}
  .zz-home-free-head h2{font-size:28px}
  .zz-home-free-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .zz-home-free-card h3{font-size:13px}
  .zz-home-free-body{padding:11px}
}

/* ===== Premium category tiles v4 ===== */
.zemzem-bookstore-v2 .zz-premium-category-box{
  border:1px solid #e7edef!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:#f8fbfb!important;
  box-shadow:0 18px 44px rgba(28,61,67,.08)!important;
}
.zemzem-bookstore-v2 .zz-premium-category-head{
  min-height:72px!important;
  padding:15px 16px!important;
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  background:linear-gradient(135deg,#0fb2b9 0%,#078e96 100%)!important;
  border:0!important;
}
.zemzem-bookstore-v2 .zz-premium-category-head .category-overline{
  color:rgba(255,255,255,.72)!important;
  font-size:8px!important;
  letter-spacing:.16em!important;
  margin-bottom:2px!important;
}
.zemzem-bookstore-v2 .zz-premium-category-head h4{
  color:#fff!important;
  font-size:19px!important;
  line-height:1.05!important;
  margin:0!important;
}
.zemzem-bookstore-v2 .zz-category-head-icon{
  width:40px;height:40px;flex:0 0 40px;
  display:grid;place-items:center;
  color:#fff;
}
.zemzem-bookstore-v2 .zz-category-head-icon svg{width:24px;height:24px}

.zemzem-bookstore-v2 .zz-premium-category-list{
  padding:8px!important;
  gap:7px!important;
  background:#f7fbfb!important;
}
.zemzem-bookstore-v2 .zz-premium-category-list .category-item{
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr) 20px!important;
  align-items:center!important;
  min-height:58px!important;
  padding:0!important;
  border:1px solid #eaf0f1!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 3px 10px rgba(23,57,63,.035)!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
.zemzem-bookstore-v2 .zz-premium-category-list .category-item:hover{
  transform:translateY(-1px)!important;
  border-color:#d9e7e8!important;
  box-shadow:0 9px 22px rgba(23,57,63,.08)!important;
  background:#fff!important;
}
.zemzem-bookstore-v2 .zz-premium-category-list .category-icon{
  width:52px!important;
  height:58px!important;
  border-radius:0!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(180deg,#12b8bf,#079aa2)!important;
  color:#fff!important;
  border:0!important;
}
.zemzem-bookstore-v2 .zz-premium-category-list .category-icon svg{
  width:25px!important;height:25px!important;stroke-width:1.7!important
}
.zemzem-bookstore-v2 .zz-premium-category-list .category-copy{
  padding:0 12px!important;
}
.zemzem-bookstore-v2 .zz-premium-category-list .category-copy strong{
  font-size:12px!important;
  font-weight:800!important;
  color:#173449!important;
  letter-spacing:0!important;
}
.zemzem-bookstore-v2 .zz-premium-category-list .category-arrow{
  font-size:21px!important;
  color:#0a9da5!important;
  padding-right:10px!important;
}

/* Homepage category section uses the same visual language */
.zemzem-bookstore-v2 .zz-premium-category-cards{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.zemzem-bookstore-v2 .zz-premium-category-cards .home-category-card{
  min-height:68px!important;
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) 22px!important;
  align-items:center!important;
  padding:0!important;
  border-radius:13px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #e7edef!important;
  box-shadow:0 5px 15px rgba(23,57,63,.04)!important;
  color:#18354a!important;
  text-align:left!important;
  transition:transform .16s ease,box-shadow .16s ease!important;
}
.zemzem-bookstore-v2 .zz-premium-category-cards .home-category-card:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 12px 26px rgba(23,57,63,.08)!important;
}
.zemzem-bookstore-v2 .zz-premium-category-cards .cat-icon{
  width:56px!important;height:68px!important;
  margin:0!important;border-radius:0!important;
  display:grid!important;place-items:center!important;
  background:linear-gradient(180deg,#12b8bf,#079aa2)!important;
  color:#fff!important;
}
.zemzem-bookstore-v2 .zz-premium-category-cards .cat-icon svg{
  width:25px!important;height:25px!important
}
.zemzem-bookstore-v2 .zz-premium-category-cards strong{
  padding:0 12px!important;
  font-size:12px!important;
  font-weight:800!important;
}
.zemzem-bookstore-v2 .zz-card-arrow{
  font-size:21px;
  color:#099da5;
  padding-right:10px;
}

/* Premium trust / benefit strip */
.zemzem-bookstore-v2 .zz-premium-benefits{
  padding:16px 0 18px!important;
  border:0!important;
  background:#fff!important;
}
.zemzem-bookstore-v2 .zz-premium-benefits .feature-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  border:1px solid #eaf0f1!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(24,55,62,.045)!important;
}
.zemzem-bookstore-v2 .zz-premium-benefits .feature{
  min-height:86px!important;
  display:grid!important;
  grid-template-columns:48px 1fr!important;
  align-items:center!important;
  gap:12px!important;
  padding:16px 18px!important;
  border:0!important;
  border-right:1px solid #edf2f3!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.zemzem-bookstore-v2 .zz-premium-benefits .feature:last-child{border-right:0!important}
.zemzem-bookstore-v2 .zz-premium-benefits .ico{
  width:44px!important;height:44px!important;
  border-radius:50%!important;
  display:grid!important;place-items:center!important;
  background:#e9f8f8!important;
  color:#099da5!important;
}
.zemzem-bookstore-v2 .zz-premium-benefits .ico svg{width:22px;height:22px}
.zemzem-bookstore-v2 .zz-premium-benefits .feature strong{
  display:block!important;
  color:#173449!important;
  font-size:11px!important;
  line-height:1.28!important;
  font-weight:850!important;
  margin-bottom:4px!important;
}
.zemzem-bookstore-v2 .zz-premium-benefits .feature span{
  color:#74838b!important;
  font-size:9px!important;
  line-height:1.35!important;
}

@media(max-width:1100px){
  .zemzem-bookstore-v2 .zz-premium-category-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .zemzem-bookstore-v2 .zz-premium-benefits .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .zemzem-bookstore-v2 .zz-premium-benefits .feature:nth-child(2){border-right:0!important}
  .zemzem-bookstore-v2 .zz-premium-benefits .feature:nth-child(-n+2){border-bottom:1px solid #edf2f3!important}
}
@media(max-width:680px){
  .zemzem-bookstore-v2 .zz-premium-category-cards{grid-template-columns:1fr!important;gap:9px!important}
  .zemzem-bookstore-v2 .zz-premium-category-cards .home-category-card{min-height:60px!important}
  .zemzem-bookstore-v2 .zz-premium-category-cards .cat-icon{height:60px!important}
  .zemzem-bookstore-v2 .zz-premium-benefits .feature-grid{
    display:flex!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory!important;
    border-radius:14px!important;
    gap:0!important;
    scrollbar-width:none!important;
  }
  .zemzem-bookstore-v2 .zz-premium-benefits .feature-grid::-webkit-scrollbar{display:none}
  .zemzem-bookstore-v2 .zz-premium-benefits .feature{
    flex:0 0 84%!important;
    min-width:84%!important;
    min-height:82px!important;
    border-right:1px solid #edf2f3!important;
    border-bottom:0!important;
    scroll-snap-align:start!important;
  }
}
