@charset "UTF-8";
:root{
  --navy:#07112f;
  --navy2:#142a73;
  --yellow:#ffcc00;
  --cream:#f4efe4;
  --paper:#fffdf8;
  --ink:#18191f;
  --muted:#6d6d73;
  --line:#ded8cb;
  --shadow:0 14px 36px rgba(25,24,19,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 20% 0,rgba(255,255,255,.95),transparent 34rem),
    linear-gradient(180deg,#f7f3ea 0,#eee7d8 100%);
  font-family:"Segoe UI",Arial,Helvetica,sans-serif;
}
a{color:inherit}
button,input,select{font:inherit}
.shop-header{
  color:#fff;
  background:
    linear-gradient(90deg,rgba(255,204,0,.12),transparent 34%),
    linear-gradient(135deg,var(--navy),var(--navy2));
  border-top:5px solid var(--yellow);
  box-shadow:0 9px 28px rgba(7,17,47,.2);
}
.shop-header-inner{
  width:min(1240px,calc(100% - 2rem));
  min-height:118px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
  padding:1.25rem 0;
}
.shop-brand{
  display:flex;
  align-items:center;
  gap:1rem;
  text-decoration:none;
}
.shop-brand-mark{
  width:58px;height:58px;
  display:grid;place-items:center;
  color:var(--navy);
  background:var(--yellow);
  border-radius:10px;
  font:900 2rem/1 Georgia,serif;
  box-shadow:0 7px 18px rgba(0,0,0,.22);
}
.shop-brand-kicker{
  color:var(--yellow);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:2.5px;
  text-transform:uppercase;
}
.shop-brand-title{
  margin:.15rem 0 0;
  font:900 clamp(1.7rem,4vw,3.2rem)/1 Georgia,"Times New Roman",serif;
}
.shop-brand-subtitle{
  max-width:680px;
  margin:.45rem 0 0;
  color:rgba(255,255,255,.78);
  font-size:.86rem;
  line-height:1.45;
}
.shop-home-link{
  flex:0 0 auto;
  padding:.6rem .9rem;
  border:1px solid rgba(255,204,0,.45);
  border-radius:999px;
  color:#fff;
  text-decoration:none;
  font-size:.78rem;
  font-weight:850;
  background:rgba(255,255,255,.07);
}
.shop-home-link:hover{background:rgba(255,204,0,.14)}
.shop-shell{width:min(1240px,calc(100% - 2rem));margin:0 auto;padding:1.55rem 0 3rem}
.shop-intro{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
  gap:1.2rem;
  align-items:stretch;
  margin-bottom:1.25rem;
}
.featured{
  position:relative;
  overflow:hidden;
  min-height:370px;
  display:grid;
  grid-template-columns:minmax(190px,300px) minmax(0,1fr);
  gap:1.6rem;
  padding:1.4rem;
  border:1px solid rgba(7,17,47,.13);
  border-radius:18px;
  background:rgba(255,253,248,.92);
  box-shadow:var(--shadow);
}
.featured:before{
  content:"";
  position:absolute;inset:0 auto 0 0;width:9px;
  background:linear-gradient(var(--yellow),#d9a900);
}
.featured-cover{display:flex;justify-content:center;align-items:center;min-width:0}
.cover-frame{
  position:relative;
  aspect-ratio:2/3;
  width:100%;
  max-width:245px;
  overflow:hidden;
  border-radius:4px;
  background:#fff;
  box-shadow:0 14px 28px rgba(26,22,12,.22);
}
.cover-frame img{width:100%;height:100%;object-fit:cover;display:block}
.auto-cover{
  position:relative;
  width:100%;height:100%;
  display:flex;flex-direction:column;
  justify-content:space-between;
  gap:.55rem;
  min-width:0;
  padding:1.1rem;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(145deg,#16285d,#080e28);
}
.auto-cover:before{
  content:"";
  position:absolute;inset:-30% -35% auto auto;
  width:75%;aspect-ratio:1;border-radius:50%;
  background:rgba(255,204,0,.14);
}
.auto-cover .cover-series{position:relative;color:var(--yellow);font-size:.6rem;font-weight:900;letter-spacing:2px;text-transform:uppercase}
.auto-cover .cover-title{
  position:relative;
  display:block;
  min-width:0;
  max-width:100%;
  margin:auto 0;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.14rem;
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.012em;
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
  text-wrap:balance;
}
.auto-cover .cover-title-short{font-size:1.18rem}
.auto-cover .cover-title-medium{font-size:1.04rem}
.auto-cover .cover-title-long{font-size:.88rem;line-height:1.07}
.auto-cover .cover-title-xlong{font-size:.76rem;line-height:1.06}
.auto-cover .cover-title-xxlong{font-size:.66rem;line-height:1.05}
.auto-cover .cover-title-longword{overflow-wrap:anywhere;word-break:break-word}

.featured-cover .auto-cover .cover-title,
.detail-cover .auto-cover .cover-title{font-size:1.45rem}
.featured-cover .auto-cover .cover-title-medium,
.detail-cover .auto-cover .cover-title-medium{font-size:1.25rem}
.featured-cover .auto-cover .cover-title-long,
.detail-cover .auto-cover .cover-title-long{font-size:1.05rem}
.featured-cover .auto-cover .cover-title-xlong,
.detail-cover .auto-cover .cover-title-xlong{font-size:.92rem}
.featured-cover .auto-cover .cover-title-xxlong,
.detail-cover .auto-cover .cover-title-xxlong{font-size:.8rem}

.book-card .auto-cover .cover-title-short{font-size:1.08rem}
.book-card .auto-cover .cover-title-medium{font-size:.96rem}
.book-card .auto-cover .cover-title-long{font-size:.82rem}
.book-card .auto-cover .cover-title-xlong{font-size:.71rem}
.book-card .auto-cover .cover-title-xxlong{font-size:.62rem}
.auto-cover .cover-author{position:relative;font-size:.7rem;font-weight:800;color:rgba(255,255,255,.82)}
.cover-politika-es-kozelet{background:linear-gradient(145deg,#183478,#060b21)}
.cover-gazdasag{background:linear-gradient(145deg,#275d4f,#0b211c)}
.cover-tortenelem{background:linear-gradient(145deg,#684024,#211208)}
.cover-irodalomtortenet{background:linear-gradient(145deg,#7a3344,#250b12)}
.cover-szepirodalom{background:linear-gradient(145deg,#60417d,#1b0b26)}
.cover-esszek-es-tanulmanyok{background:linear-gradient(145deg,#356274,#0b2029)}
.cover-egyeb{background:linear-gradient(145deg,#434b63,#121621)}
.featured-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}
.eyebrow{color:#9d7300;font-size:.68rem;font-weight:900;letter-spacing:2px;text-transform:uppercase}
.featured h2{
  min-width:0;
  max-width:100%;
  margin:.45rem 0 .35rem;
  color:#101a42;
  font:900 clamp(1.8rem,4vw,3.15rem)/1.03 Georgia,serif;
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
  text-wrap:balance;
}
.featured-subtitle{margin:0 0 .65rem;color:#555;font:italic 1.03rem/1.45 Georgia,serif}
.author{margin:.1rem 0 .8rem;color:#333;font-size:.82rem;font-weight:850}
.blurb{margin:0;color:#4e4f55;line-height:1.65}
.meta-row,.badges{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}
.badges{margin-top:1rem}
.badge{
  display:inline-flex;align-items:center;
  min-height:26px;padding:.24rem .5rem;
  border:1px solid #d1c7ae;border-radius:999px;
  background:#fff;color:#3f4149;
  font-size:.64rem;font-weight:900;letter-spacing:.45px;
}
.badge.free{border-color:#d6b45a;background:#fff8df;color:#745800}
.primary-button,.secondary-button{
  display:inline-flex;align-items:center;justify-content:center;
  gap:.42rem;min-height:43px;padding:.65rem .95rem;
  border-radius:999px;text-decoration:none;font-size:.78rem;font-weight:900;
}
.primary-button{background:#101d62;color:#fff;border:1px solid #101d62}
.primary-button:hover{background:#07112f}
.secondary-button{background:#fff;color:#101d62;border:1px solid #b9c1df}
.actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:1rem}
.shop-side{
  border:1px solid rgba(7,17,47,.13);
  border-radius:18px;
  background:rgba(255,253,248,.92);
  box-shadow:var(--shadow);
  padding:1.25rem;
}
.shop-side h3{margin:0 0 .45rem;font:900 1.35rem/1.15 Georgia,serif;color:#101a42}
.shop-side p{margin:0;color:#5e5e62;font-size:.82rem;line-height:1.55}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:1rem 0}
.stat{padding:.85rem;border:1px solid #e1dacb;border-radius:11px;background:#fff}
.stat strong{display:block;color:#101d62;font:900 1.65rem/1 Georgia,serif}
.stat span{display:block;margin-top:.3rem;color:#747474;font-size:.68rem;font-weight:800}
.category-list{display:flex;flex-direction:column;gap:.35rem;margin-top:.8rem}
.category-list a{
  display:flex;justify-content:space-between;gap:.7rem;
  padding:.45rem .55rem;border-radius:7px;text-decoration:none;
  font-size:.76rem;font-weight:750;color:#333;
}
.category-list a:hover{background:#f1ecdf}
.catalog-toolbar{
  position:sticky;top:0;z-index:15;
  display:grid;grid-template-columns:minmax(260px,1fr) minmax(170px,.36fr) minmax(180px,.42fr) auto;
  gap:.7rem;align-items:center;
  margin:1.2rem 0;padding:.7rem;
  border:1px solid rgba(7,17,47,.12);
  border-radius:12px;background:rgba(249,246,237,.96);
  box-shadow:0 5px 16px rgba(20,20,15,.08);
  backdrop-filter:blur(8px);
}
.catalog-search{
  width:100%;min-height:42px;padding:.65rem .78rem;
  border:1px solid #cfc7b6;border-radius:8px;background:#fff;color:#222;
}
.catalog-select{min-height:42px;padding:.55rem .7rem;border:1px solid #cfc7b6;border-radius:8px;background:#fff}
.catalog-clear{
  min-height:42px;padding:.55rem .75rem;border:1px solid #b9c1df;border-radius:8px;
  background:#fff;color:#101d62;cursor:pointer;font-size:.74rem;font-weight:850
}
.catalog-clear:hover{background:#eef1fb}
.catalog-active-filter{
  margin:-.55rem 0 .8rem;padding:.48rem .7rem;border-left:4px solid var(--yellow);
  background:#fff8df;color:#5d4a0a;border-radius:0 7px 7px 0;font-size:.74rem;font-weight:800
}
.catalog-no-results{margin-top:1rem}
.shelf-section[hidden],.shop-intro[hidden]{display:none!important}
.side-filter-title{
  margin-top:.9rem;color:#101a42;font-size:.66rem;font-weight:950;letter-spacing:1.2px;text-transform:uppercase
}
.type-link-list{display:flex;flex-direction:column;gap:.35rem;margin-top:.45rem}
.type-link-list a{
  display:flex;justify-content:space-between;gap:.7rem;padding:.45rem .55rem;border-radius:7px;
  text-decoration:none;font-size:.76rem;font-weight:750;color:#333
}
.type-link-list a:hover{background:#f1ecdf}
.card-taxonomy{display:flex;gap:.35rem;align-items:center;flex-wrap:wrap}
.card-type{
  display:inline-flex;padding:.2rem .4rem;border-radius:999px;background:#101d62;color:#fff;
  font-size:.57rem;font-weight:900;letter-spacing:.55px;text-transform:uppercase
}
.badge.taxonomy{border-color:#bac5e7;background:#eef2ff;color:#17265e}
.visually-hidden{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important
}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin:1.3rem 0 .8rem}
.section-head h2{margin:0;font:900 clamp(1.5rem,3vw,2.2rem)/1.05 Georgia,serif;color:#101a42}
.section-head p{margin:0;color:#777;font-size:.76rem}
.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.15rem}
.book-card[hidden],
.book-card.search-hidden,
[data-book-card].search-hidden{
  display:none!important;
}
.shop-intro.search-hidden{
  display:none!important;
}

.book-card{
  display:flex;flex-direction:column;min-width:0;
  border:1px solid rgba(7,17,47,.12);border-radius:13px;
  background:rgba(255,253,248,.95);overflow:hidden;
  box-shadow:0 7px 20px rgba(33,30,21,.08);
  transition:transform .16s ease,box-shadow .16s ease;
}
.book-card:hover{transform:translateY(-3px);box-shadow:0 14px 27px rgba(33,30,21,.14)}
.card-cover-link{display:block;padding:1rem 1rem .4rem;text-decoration:none}
.card-cover{margin:auto;width:min(100%,210px);aspect-ratio:2/3;overflow:hidden;border-radius:3px;box-shadow:0 9px 20px rgba(30,25,14,.2);background:#fff}
.card-cover img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{display:flex;flex-direction:column;flex:1;padding:.85rem 1rem 1rem}
.card-category{color:#9d7300;font-size:.61rem;font-weight:900;letter-spacing:1.2px;text-transform:uppercase}
.card-title{margin:.35rem 0 .3rem;font:900 1.12rem/1.15 Georgia,serif;color:#111a3f}
.card-title a{text-decoration:none}
.card-author{color:#555;font-size:.72rem;font-weight:800}
.card-blurb{margin:.65rem 0;color:#666;font-size:.77rem;line-height:1.5}
.card-footer{margin-top:auto;padding-top:.7rem}
.card-footer .primary-button{width:100%}
.empty-state{padding:2rem;border:1px dashed #bdb49f;border-radius:12px;background:#fffdf8;text-align:center;color:#666}
.shop-footer{margin-top:2.5rem;color:rgba(255,255,255,.78);background:#07112f;border-top:4px solid var(--yellow)}
.shop-footer-inner{width:min(1240px,calc(100% - 2rem));margin:auto;padding:1.35rem 0;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.75rem}
.detail-layout{display:grid;grid-template-columns:minmax(250px,370px) minmax(0,1fr);gap:2.2rem;align-items:start}
.detail-cover{position:sticky;top:1rem}
.detail-cover .cover-frame{max-width:340px}
.detail-main{
  padding:1.6rem;border:1px solid rgba(7,17,47,.12);border-radius:16px;
  background:rgba(255,253,248,.96);box-shadow:var(--shadow)
}
.breadcrumb{margin-bottom:.85rem;color:#777;font-size:.72rem}
.breadcrumb a{text-decoration:none;color:#101d62;font-weight:800}
.detail-main h1{margin:.4rem 0 .35rem;font:900 clamp(2rem,5vw,4rem)/1.02 Georgia,serif;color:#101a42}
.detail-lead{margin:1rem 0;color:#494b52;font:1.02rem/1.7 Georgia,serif}
.detail-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin:1rem 0}
.info-cell{padding:.7rem;border:1px solid #e1dacb;border-radius:9px;background:#fff}
.info-cell span{display:block;color:#777;font-size:.62rem;font-weight:900;text-transform:uppercase;letter-spacing:.8px}
.info-cell strong{display:block;margin-top:.22rem;color:#222;font-size:.8rem}
.download-panel{margin:1.2rem 0;padding:1rem;border-left:6px solid var(--yellow);background:#fff8df;border-radius:8px}
.download-panel h2{margin:0 0 .55rem;font:900 1.25rem/1.15 Georgia,serif;color:#3c3100}
.download-buttons{display:flex;gap:.55rem;flex-wrap:wrap}
.download-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:45px;
  padding:.7rem 1rem;border-radius:8px;text-decoration:none;font-size:.8rem;font-weight:900
}
.download-button.pdf-open{
  color:#fff;
  background:#101d62;
  border:1px solid #101d62;
}
.download-button.pdf-open:hover{background:#07112f}
.download-button.pdf-download{
  color:#8f171d;
  background:#fff;
  border:1px solid #b42026;
}
.download-button.pdf-download:hover{
  color:#fff;
  background:#b42026;
}
.download-button.epub{color:#fff;background:#236647;border:1px solid #236647}
.download-button.epub:hover{background:#174b34}
.download-help{
  margin:.62rem 0 0;
  color:#665b36;
  font-size:.7rem;
  line-height:1.45;
}
@media(max-width:520px){
  .download-buttons{display:grid;grid-template-columns:1fr}
  .download-button{width:100%}
}
.description h2{margin:1.4rem 0 .55rem;font:900 1.5rem/1.15 Georgia,serif;color:#101a42}
.description p{margin:0 0 1rem;color:#41434a;font:1rem/1.75 Georgia,serif}
.related{margin-top:2rem}
.related h2{font:900 1.55rem/1.15 Georgia,serif;color:#101a42}
.related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem}
.related-card{padding:.75rem;border:1px solid #ddd4c2;border-radius:10px;background:#fffdf8;text-decoration:none}
.related-card strong{display:block;margin-top:.3rem;font:900 .92rem/1.25 Georgia,serif}
.related-card span{color:#8d6b00;font-size:.6rem;font-weight:900;text-transform:uppercase;letter-spacing:1px}
.not-found{max-width:700px;margin:4rem auto;padding:2rem;text-align:center;background:#fff;border-radius:15px;box-shadow:var(--shadow)}
@media(max-width:980px){
  .book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .shop-intro{grid-template-columns:1fr}
  .shop-side{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
  .detail-layout{grid-template-columns:280px minmax(0,1fr)}
  .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .shop-header-inner{align-items:flex-start;flex-direction:column;gap:.8rem}
  .shop-home-link{align-self:flex-start}
  .shop-shell{width:min(100% - 1rem,1240px);padding-top:.8rem}
  .featured{grid-template-columns:125px minmax(0,1fr);gap:1rem;padding:1rem}
  .featured h2{font-size:1.65rem}
  .featured-subtitle,.blurb{font-size:.83rem}
  .shop-side{display:block}
  .catalog-toolbar{grid-template-columns:1fr;top:.2rem}
  .book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
  .card-cover-link{padding:.65rem .65rem .2rem}
  .card-body{padding:.65rem}
  .card-title{font-size:.96rem}
  .card-blurb{display:none}
  .detail-layout{grid-template-columns:1fr}
  .detail-cover{position:static}
  .detail-cover .cover-frame{max-width:260px;margin:auto}
  .detail-main{padding:1rem}
}
@media(max-width:420px){
  .shop-brand-mark{width:47px;height:47px;font-size:1.65rem}
  .featured{grid-template-columns:105px minmax(0,1fr)}
  .featured .badges,.featured .blurb{display:none}
  .book-grid{gap:.5rem}
  .card-title{font-size:.88rem}
  .card-author{font-size:.65rem}
  .primary-button{font-size:.69rem;padding:.55rem .55rem}
}

@media (max-width:1000px){
  .catalog-toolbar{grid-template-columns:minmax(0,1fr) minmax(160px,.42fr)}
  .catalog-clear{grid-column:2}
}
@media (max-width:680px){
  .catalog-toolbar{position:static;grid-template-columns:1fr}
  .catalog-clear{grid-column:auto}
  .catalog-search-wrap{min-width:0}
}

.catalog-search-wrap{
  display:flex;
  flex-direction:column;
  gap:.24rem;
}
.catalog-search-help{
  display:block;
  color:#687080;
  font-size:.61rem;
  line-height:1.35;
  padding:0 .15rem;
}

/* E-könyvesbolt kereső v3.3 */

/* PDF műveleti gombok – asztali és mobil megjelenés biztosítása */
.download-panel .download-buttons > .download-button.pdf-open,
.download-panel .download-buttons > .download-button.pdf-download {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:45px;
  padding:.7rem 1rem;
  border-radius:8px;
  box-shadow:0 4px 10px rgba(7,17,47,.10);
  font-size:.8rem;
  font-weight:900;
  line-height:1.2;
  text-decoration:none;
  transition:
    background-color .15s ease,
    color .15s ease,
    border-color .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

.download-panel .download-buttons > .download-button.pdf-open {
  border:1px solid #101d62;
  background:#101d62;
  color:#fff;
}

.download-panel .download-buttons > .download-button.pdf-open:hover,
.download-panel .download-buttons > .download-button.pdf-open:focus-visible {
  border-color:#07112f;
  background:#07112f;
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 7px 15px rgba(7,17,47,.18);
}

.download-panel .download-buttons > .download-button.pdf-download {
  border:1px solid #b42026;
  background:#fff;
  color:#991d22;
}

.download-panel .download-buttons > .download-button.pdf-download:hover,
.download-panel .download-buttons > .download-button.pdf-download:focus-visible {
  border-color:#b42026;
  background:#b42026;
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 7px 15px rgba(180,32,38,.18);
}

@media(max-width:520px){
  .download-panel .download-buttons > .download-button.pdf-open,
  .download-panel .download-buttons > .download-button.pdf-download {
    width:100%;
  }
}

