/* ===================================================
   ZZ Scholars — shared styles (header, footer, buttons,
   cart drawer, product cards). Loaded on every page.
=================================================== */
:root{
  --cream:#FFFBF2;
  --cream-2:#FFF3E1;
  --ink:#2E2A3D;
  --ink-soft:#5b5568;
  --pink:#F2668B;
  --pink-dark:#DE4C74;
  --pink-light:#FFE1EA;
  --gold:#F5B942;
  --gold-dark:#E39F1F;
  --gold-light:#FFF1D2;
  --green:#8DC63F;
  --green-dark:#6FA82C;
  --green-light:#E8F6D6;
  --blue:#6EC6E3;
  --blue-dark:#3FA9CC;
  --blue-light:#DEF5FC;
  --lavender:#B79CED;
  --lavender-dark:#9678D9;
  --lavender-light:#EFE6FF;
  --radius-lg:28px;
  --radius-md:18px;
  --shadow:0 10px 30px rgba(46,42,61,0.10);
  --shadow-lg:0 20px 50px rgba(46,42,61,0.16);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Nunito',sans-serif;
  background:var(--cream);
  color:var(--ink);
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Baloo 2',cursive;
  margin:0;
  line-height:1.15;
}
p{margin:0;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
img{max-width:100%;display:block;}
.wrap{max-width:1240px;margin:0 auto;padding:0 28px;}
.eyebrow{
  font-family:'Baloo 2',cursive;
  font-weight:700;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:6px 16px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.btn{
  font-family:'Baloo 2',cursive;
  font-weight:700;
  font-size:17px;
  padding:14px 30px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:transform .18s ease, box-shadow .18s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-3px);}
.btn-primary{
  background:var(--pink);
  color:#fff;
  box-shadow:0 10px 24px rgba(242,102,139,0.4);
}
.btn-primary:hover{box-shadow:0 14px 30px rgba(242,102,139,0.5);}
.btn-outline{
  background:#fff;
  color:var(--ink);
  border:3px solid var(--ink);
  box-shadow:4px 4px 0 var(--ink);
}
.btn-outline:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink);}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none !important;}

/* ===== marquee ===== */
.marquee-bar{
  background:var(--ink);
  color:#fff;
  overflow:hidden;
  white-space:nowrap;
  padding:9px 0;
}
.marquee-track{
  display:inline-flex;
  animation:scroll 26s linear infinite;
  font-family:'Baloo 2',cursive;
  font-weight:600;
  font-size:14px;
  letter-spacing:.03em;
}
.marquee-track span{padding:0 26px;display:inline-flex;align-items:center;gap:8px;}
@keyframes scroll{
  0%{transform:translateX(0);}
  100%{transform:translateX(-50%);}
}

/* ===== header ===== */
header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,251,242,0.92);
  backdrop-filter:blur(8px);
  border-bottom:3px solid var(--ink);
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:12px 0;}
.brand{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto;}
.brand-logo{height:60px;width:auto;flex:none;}
.nav-links{display:flex;align-items:center;gap:34px;}
.nav-links a{font-family:'Baloo 2',cursive;font-weight:600;font-size:16px;color:var(--ink);position:relative;padding:4px 0;}
.nav-links a::after{content:"";position:absolute;left:0;bottom:-2px;height:3px;width:0;background:var(--pink);border-radius:2px;transition:width .2s ease;}
.nav-links a:hover::after{width:100%;}
.nav-actions{display:flex;align-items:center;gap:16px;flex:none;}
.icon-btn{
  position:relative;width:44px;height:44px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;
  border:2.5px solid var(--ink);background:#fff;
  transition:transform .15s ease, background .15s ease;
}
.icon-btn:hover{transform:translateY(-2px);background:var(--gold-light);}
.cart-count{
  position:absolute;top:-6px;right:-6px;background:var(--pink);color:#fff;
  font-family:'Baloo 2',cursive;font-size:12px;font-weight:700;
  width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  border:2px solid var(--cream);
}
.burger{display:none;}
.mobile-nav{
  display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:var(--cream);z-index:150;
  padding:100px 32px 32px;transform:translateY(-100%);transition:transform .3s ease;
}
.mobile-nav.active{transform:translateY(0);}
.mobile-nav a{display:block;font-family:'Baloo 2',cursive;font-size:26px;padding:14px 0;border-bottom:2px solid rgba(46,42,61,0.08);}

section{position:relative;}
.section-pad{padding:80px 0;}
.section-head{text-align:center;max-width:640px;margin:0 auto 48px;}
.section-head .eyebrow{margin-bottom:14px;}
.section-head h2{font-size:38px;color:var(--ink);}
.section-head p{margin-top:14px;color:var(--ink-soft);font-size:17px;line-height:1.6;}

/* ===== breadcrumb ===== */
.breadcrumb{font-size:13.5px;color:var(--ink-soft);padding:18px 0 0;font-weight:700;}
.breadcrumb a{color:var(--pink-dark);}
.breadcrumb span{margin:0 6px;}

/* ===== shared product card (grid + "you might also like") ===== */
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,280px));gap:26px;justify-content:center;}
.empty-state{
  grid-column:1/-1;text-align:center;padding:60px 30px;
  background:#fff;border:3px dashed rgba(46,42,61,0.2);border-radius:var(--radius-lg);
}
.empty-state .em{font-size:42px;margin-bottom:14px;}
.empty-state h4{font-family:'Baloo 2',cursive;font-size:20px;color:var(--ink);margin-bottom:8px;}
.empty-state p{font-size:14.5px;color:var(--ink-soft);max-width:360px;margin:0 auto;line-height:1.6;}
.prod-card{
  background:#fff;border:3px solid var(--ink);border-radius:var(--radius-md);
  overflow:hidden;display:flex;flex-direction:column;
  box-shadow:5px 5px 0 var(--ink);
  transition:transform .2s ease, box-shadow .2s ease;
}
.prod-card:hover{transform:translate(-3px,-5px);box-shadow:8px 8px 0 var(--ink);}
.prod-cover-link{display:block;}
.prod-cover{
  position:relative;height:180px;display:flex;align-items:center;justify-content:center;
  border-bottom:3px solid var(--ink);overflow:hidden;
}
.prod-cover::before,.prod-cover::after{content:"";position:absolute;top:0;bottom:0;width:6px;background:rgba(46,42,61,0.12);}
.prod-cover::before{left:14px;}
.prod-cover::after{left:24px;}
.prod-cover .emoji{font-size:52px;filter:drop-shadow(0 6px 6px rgba(0,0,0,0.12));}
.prod-cover img{width:100%;height:100%;object-fit:contain;}
.prod-tag{
  position:absolute;top:10px;left:10px;background:var(--ink);color:#fff;
  font-family:'Baloo 2',cursive;font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;
  text-transform:uppercase;letter-spacing:.04em;
}
.prod-tag-fav{
  position:absolute;top:10px;right:10px;background:var(--pink);color:#fff;
  font-family:'Baloo 2',cursive;font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;
  display:flex;align-items:center;gap:4px;
}
.prod-body{padding:18px 18px 20px;display:flex;flex-direction:column;gap:8px;flex:1;}
.prod-cat{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--pink-dark);}
.prod-title-link{color:var(--ink);}
.prod-body h4{font-size:17px;color:var(--ink);line-height:1.3;min-height:44px;}
.prod-author{font-size:12.5px;color:var(--ink-soft);font-style:italic;margin-top:-4px;}
.prod-stars{font-size:13px;color:var(--gold-dark);}
.prod-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:10px;}
.prod-price{font-family:'Baloo 2',cursive;font-weight:700;font-size:19px;color:var(--ink);}
.add-btn{
  width:40px;height:40px;border-radius:50%;background:var(--pink);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;
  transition:transform .15s ease, background .15s ease;
  box-shadow:0 6px 14px rgba(242,102,139,0.4);
}
.add-btn:hover{transform:scale(1.1) rotate(-6deg);background:var(--pink-dark);}

/* ===== footer ===== */
footer{background:var(--ink);color:#cfc9de;padding:64px 0 26px;margin-top:80px;}
.foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px 32px;padding-bottom:44px;border-bottom:1px solid rgba(255,255,255,0.12);}
.foot-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.foot-brand-logo{height:52px;width:auto;}
.foot-desc{font-size:14px;line-height:1.6;max-width:280px;}
.foot-social{display:flex;gap:10px;margin-top:18px;}
.foot-social a{width:36px;height:36px;border-radius:50%;border:2px solid rgba(255,255,255,0.25);display:flex;align-items:center;justify-content:center;font-size:15px;transition:all .15s ease;}
.foot-social a:hover{background:var(--pink);border-color:var(--pink);}
.foot-col h5{font-family:'Baloo 2',cursive;color:#fff;font-size:15px;margin-bottom:16px;}
.foot-col ul li{margin-bottom:10px;}
.foot-col ul li a{font-size:14px;transition:color .15s ease;}
.foot-col ul li a:hover{color:var(--gold);}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px;font-size:13px;flex-wrap:wrap;gap:12px;}

/* ===== cart drawer ===== */
.overlay{position:fixed;inset:0;background:rgba(46,42,61,0.45);z-index:200;opacity:0;pointer-events:none;transition:opacity .25s ease;}
.overlay.active{opacity:1;pointer-events:auto;}
.drawer{
  position:fixed;top:0;right:0;height:100%;width:420px;max-width:92vw;
  background:var(--cream);z-index:201;box-shadow:-10px 0 40px rgba(0,0,0,0.2);
  transform:translateX(100%);transition:transform .3s ease;
  display:flex;flex-direction:column;border-left:4px solid var(--ink);
}
.drawer.active{transform:translateX(0);}
.drawer-head{padding:22px 24px;border-bottom:3px solid var(--ink);display:flex;justify-content:space-between;align-items:center;}
.drawer-head h3{font-size:22px;}
.drawer-close{width:38px;height:38px;border-radius:50%;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;font-size:18px;}
.drawer-body{flex:1;overflow-y:auto;padding:18px 24px;}
.cart-empty{text-align:center;padding:60px 20px;color:var(--ink-soft);}
.cart-empty .em{font-size:44px;margin-bottom:14px;}
.cart-item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid rgba(46,42,61,0.1);}
.ci-cover{width:56px;height:56px;border-radius:12px;border:2.5px solid var(--ink);display:flex;align-items:center;justify-content:center;font-size:24px;flex:none;overflow:hidden;}
.ci-cover img{width:100%;height:100%;object-fit:cover;}
.ci-info{flex:1;}
.ci-info h5{font-family:'Baloo 2',cursive;font-size:14.5px;margin-bottom:4px;}
.ci-price{font-size:13px;color:var(--ink-soft);}
.ci-qty{display:flex;align-items:center;gap:10px;margin-top:8px;}
.qty-btn{width:24px;height:24px;border-radius:50%;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;}
.ci-remove{font-size:12px;color:var(--pink-dark);font-weight:700;margin-left:auto;text-decoration:underline;cursor:pointer;}
.drawer-foot{padding:20px 24px;border-top:3px solid var(--ink);}
.subtotal-row{display:flex;justify-content:space-between;font-family:'Baloo 2',cursive;font-size:18px;margin-bottom:14px;}
.checkout-btn{width:100%;text-align:center;justify-content:center;}
.drawer-note{font-size:12px;text-align:center;margin-top:10px;color:var(--ink-soft);}

/* ===== responsive (shared) ===== */
@media(max-width:1180px){
  .wrap{padding:0 24px;}
}
@media(max-width:900px){
  .nav-links{display:none;}
  .burger{display:flex;}
  .section-pad{padding:60px 0;}
  .section-head h2{font-size:30px;}
  .foot-bottom{flex-direction:column;align-items:flex-start;}
}
@media(max-width:560px){
  .wrap{padding:0 18px;}
  .marquee-track{font-size:12.5px;}
  .brand-logo{height:50px;}
  .nav-actions{gap:10px;}
  .icon-btn{width:40px;height:40px;font-size:15px;}
  .section-pad{padding:48px 0;}
  .section-head h2{font-size:25px;}
  .foot-grid{grid-template-columns:1fr;gap:30px;}
  .drawer{width:100%;max-width:100%;}
  .drawer-head,.drawer-body,.drawer-foot{padding-left:18px;padding-right:18px;}
  .btn{width:100%;justify-content:center;}
}
@media(max-width:380px){
  .brand-logo{height:42px;}
  .nav-actions{gap:6px;}
  .icon-btn{width:34px;height:34px;font-size:13px;}
}
