/* IskraCore Flyer Manager – theme-independent, responsive flyer cards */
.fh-wrap{
  --fh-ink:#14243c;
  --fh-muted:#64748b;
  --fh-line:#e2e8f0;
  --fh-bg:#fff;
  font-family:inherit}
.fh-wrap *{
  box-sizing:border-box}
.fh-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));
  gap:24px;
  margin:24px 0}
.fh-card{
  min-width:0;
  background:var(--fh-bg);
  border:1px solid var(--fh-line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 9px 30px rgba(20,36,60,.05);
  transition:box-shadow .18s,transform .18s}
.fh-card:hover{
  box-shadow:0 16px 34px rgba(20,36,60,.11);
  transform:translateY(-2px)}
.fh-image{
  height:265px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f5f7fa;
  padding:14px;
  border-bottom:1px solid #edf0f3}
.fh-image img{
  max-height:100%;
  max-width:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 3px 12px rgba(0,0,0,.06)}
.fh-placeholder{
  font-size:30px;
  font-weight:700;
  letter-spacing:.06em;
  color:#8a98aa}
.fh-content{
  padding:22px}
.fh-company{
  display:block;
  color:#486380;
  font-size:12px;
  font-weight:750;
  letter-spacing:.075em;
  text-transform:uppercase;
  margin-bottom:9px}
.fh-content h3{
  font-size:20px!important;
  font-weight:650;
  line-height:1.32;
  margin:0 0 12px!important;
  color:var(--fh-ink)}
.fh-date{
  font-size:13px;
  margin:0 0 20px!important;
  color:var(--fh-muted)}
.fh-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center}
.fh-view,.fh-primary-link{
  appearance:none;
  border:0;
  background:#162b4a!important;
  color:white!important;
  border-radius:9px;
  padding:11px 16px;
  cursor:pointer;
  font:inherit;
  font-size:13px;
  font-weight:700;
  text-decoration:none!important;
  line-height:1.5}
.fh-view:hover,.fh-primary-link:hover{
  background:#264770!important}
.fh-file-link{
  font-size:13px;
  text-decoration:none!important;
  font-weight:600;
  color:#315477!important}
.fh-file-link:hover{
  text-decoration:underline!important}
.fh-empty{
  color:#64748b;
  margin:24px 0}
.fh-modal[hidden]{
  display:none!important}
.fh-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:24px}
.fh-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,15,28,.78)}
.fh-modal-panel{
  position:relative;
  display:flex;
  flex-direction:column;
  width:min(1100px,100%);
  height:min(90vh,900px);
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 28px 75px rgba(0,0,0,.35)}
.fh-modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:12px 16px;
  border-bottom:1px solid #e5e7eb;
  color:#14243c}
.fh-modal-title{
  font-size:16px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap}
.fh-modal-tools{
  display:flex;
  align-items:center;
  gap:16px;
  flex-shrink:0}
.fh-modal-open{
  font-size:13px;
  color:#24496c!important}
.fh-modal-close{
  background:#eef2f6;
  border:0;
  border-radius:8px;
  padding:7px 12px;
  cursor:pointer;
  font-size:19px;
  color:#1e293b}
.fh-modal-frame{
  flex:1;
  width:100%;
  height:100%;
  border:0;
  background:#f8fafc}
body.fh-modal-open-body{
  overflow:hidden}
@media(max-width:600px){
  .fh-grid{
    grid-template-columns:1fr;
    gap:16px}
  .fh-image{
    height:240px}
  .fh-modal{
    padding:0}
  .fh-modal-panel{
    height:100dvh;
    border-radius:0}
  .fh-modal-header{
    padding:10px}
  .fh-modal-open{
    font-size:11px}
  }


/* 0.4 filters */
.fh-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:20px 0 0;
  align-items:end}
.fh-filter{
  display:flex;
  flex:1 1 190px;
  min-width:150px;
  flex-direction:column;
  gap:6px;
  color:#334155;
  font-size:13px;
  font-weight:600}
.fh-filter input,.fh-filter select{
  width:100%;
  min-height:44px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  padding:8px 11px;
  background:#fff;
  color:#14243c;
  font:inherit}
.fh-category-label{
  display:block;
  color:#64748b;
  font-size:12px;
  margin:0 0 9px}
.fh-filter-empty{
  padding:18px;
  background:#f8fafc;
  border-radius:10px;
  color:#475569}
.fh-card[hidden]{
  display:none!important}


/* v0.5 customizable presentation */
.fh-wrap .fh-grid{
  grid-template-columns:repeat(var(--fh-columns,3),minmax(min(100%,var(--fh-card-min,260px)),1fr))}

.fh-wrap .fh-view,.fh-wrap .fh-primary-link{
  background:var(--fh-accent,#162b4a)!important}

.fh-wrap .fh-view:hover,.fh-wrap .fh-primary-link:hover{
  filter:brightness(1.12)}

.fh-wrap .fh-filter-hidden,.fh-wrap.fh-hide-retailer .fh-company,.fh-wrap.fh-hide-category .fh-category-label{
  display:none!important}

@media(max-width:900px){
  .fh-wrap .fh-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))}
  }

@media(max-width:600px){
  .fh-wrap .fh-grid{
    grid-template-columns:1fr}
  }


/* v0.6 Händlerprofile */
.fh-retailer-line{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:9px}
.fh-retailer-line .fh-company{
  margin:0}
.fh-retailer-logo{
  width:38px;
  height:38px;
  object-fit:contain;
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:3px}
.fh-retailer-line a.fh-company{
  text-decoration:none;
  color:#486380}
.fh-retailer-line a.fh-company:hover{
  text-decoration:underline}
.fh-profile{
  display:flex;
  align-items:center;
  gap:24px;
  padding:22px;
  margin:0 0 22px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fafc}
.fh-profile-logo{
  width:110px;
  height:100px;
  object-fit:contain;
  background:white;
  border-radius:12px;
  padding:10px}
.fh-profile-details h2{
  margin:10px 0;
  font-size:26px}
.fh-profile-details a{
  margin-right:15px}
.fh-profile-details .fh-back{
  font-size:13px}
.fh-wrap .fh-view,.fh-wrap .fh-primary-link{
  color:var(--fh-accent-text,#fff)!important}
.fh-wrap.fh-hide-retailer .fh-retailer-line{
  display:none!important}
@media(max-width:600px){
  .fh-profile{
    align-items:flex-start;
    gap:12px;
    padding:14px}
  .fh-profile-logo{
    width:70px;
    height:70px}
  }


/* Mobile usability: scoped to IskraCore Flyer Manager only */
.fh-wrap{
  max-width:100%;
  min-width:0}
.fh-wrap .fh-card{
  min-width:0}
.fh-wrap .fh-card[hidden]{
  display:none!important}

.fh-wrap .fh-actions a,.fh-wrap .fh-actions button,.fh-wrap .fh-retailer-filter,.fh-wrap .fh-category-filter,.fh-wrap .fh-search{
  min-height:44px}

.fh-modal-close{
  min-height:44px;
  min-width:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center}

.fh-modal-open{
  min-height:44px;
  display:inline-flex;
  align-items:center}

.fh-modal-panel{
  max-height:calc(100vh - 24px);
  max-height:calc(100dvh - 24px)}

.fh-modal-frame{
  display:block;
  min-height:0}

.fh-wrap .fh-filterbar,.fh-wrap .fh-filters{
  max-width:100%}

@media(max-width:767px){
  
 .fh-wrap .fh-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:16px!important;
    margin:16px 0}
  
 .fh-wrap .fh-image{
    height:auto;
    min-height:190px;
    max-height:300px;
    aspect-ratio: 4/3;
    padding:12px}
  
 .fh-wrap .fh-image img{
    max-height:275px;
    max-width:100%;
    object-fit:contain}
  
 .fh-wrap .fh-content{
    padding:18px}
  
 .fh-wrap .fh-actions{
    gap:10px}
  
 .fh-wrap .fh-view,.fh-wrap .fh-primary-link{
    min-height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center}
  
 .fh-wrap .fh-filters,.fh-wrap .fh-filterbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important}
  
 .fh-wrap .fh-filters>*,.fh-wrap .fh-filterbar>*{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important}
  
 .fh-wrap .fh-search,.fh-wrap select{
    width:100%;
    max-width:100%;
    font-size:16px!important}
  
 .fh-profile{
    flex-wrap:wrap}
  .fh-profile-details{
    min-width:0;
    overflow-wrap:anywhere}
  
 .fh-modal{
    padding:0!important;
    align-items:stretch}
  
 .fh-modal-panel{
    width:100%;
    height:100vh;
    height:100dvh;
    max-height:none;
    border-radius:0}
  
 .fh-modal-header{
    gap:8px;
    padding:8px 12px;
    padding-top:max(8px,env(safe-area-inset-top));
    min-height:62px}
  
 .fh-modal-title{
    font-size:14px;
    max-width:38vw}
  
 .fh-modal-tools{
    gap:8px}
  
 .fh-modal-open{
    font-size:12px;
    text-align:center;
    line-height:1.2;
    max-width:120px}
  
 .fh-modal-frame{
    height:100%;
    min-height:0}
  
}

@media(max-width:370px){
  .fh-modal-title{
    max-width:28vw}
  .fh-modal-open{
    max-width:105px;
    font-size:11px}
  .fh-modal-header{
    padding-left:8px;
    padding-right:8px}
  }

@media(prefers-reduced-motion:reduce){
  .fh-card{
    transition:none!important}
  .fh-card:hover{
    transform:none!important}
  }


/* Server-side offer pagination (v0.12.2) */
.fh-pagination {
   margin: 26px 0;
   }

.fh-pagination .page-numbers {
   display:flex;
  gap:8px;
  flex-wrap:wrap;
  list-style:none;
  padding:0;
  margin:0;
   }

.fh-pagination a,.fh-pagination span {
   display:inline-block;
  padding:9px 13px;
  border:1px solid #d9e1ed;
  border-radius:8px;
  text-decoration:none;
   }

.fh-pagination .current {
   font-weight:700;
  background:#edf3fc;
   }


/* v0.12.3: constrained readable cards and real server-side filters */
.fh-wrap{
  width:100%;
  max-width:1440px;
  margin-inline:auto}

.fh-wrap .fh-grid{
  grid-template-columns:repeat(var(--fh-columns,3),minmax(0,1fr))}

.fh-wrap .fh-image{
  height:300px}

.fh-wrap .fh-image img{
  max-height:100%}

.fh-wrap .fh-toolbar{
  align-items:end}

.fh-wrap .fh-filter-submit{
  min-height:44px;
  padding:9px 18px;
  border:0;
  border-radius:9px;
  background:var(--fh-accent,#162b4a);
  color:var(--fh-accent-text,#fff);
  cursor:pointer;
  font:inherit;
  font-weight:650}

.fh-wrap .fh-filter-reset{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:6px 8px}

@media(max-width:900px){
  .fh-wrap .fh-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))}
  }

@media(max-width:767px){
  .fh-wrap .fh-grid{
    grid-template-columns:1fr!important}
  .fh-wrap .fh-image{
    height:260px}
  }


/* v0.15.0 — premium frontend refinement; stays scoped to shortcode output */
.fh-wrap{
  --fh-radius:18px;
  --fh-focus:#3569ac;
  color:var(--fh-ink);
  line-height:1.5}

.fh-wrap .fh-toolbar{
  padding:20px;
  border:1px solid var(--fh-line);
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#f9fbfd 100%);
  box-shadow:0 8px 26px rgba(15,35,60,.045);
  gap:14px;
  margin:0 0 26px}

.fh-wrap .fh-filter{
  gap:8px;
  color:#32465e;
  letter-spacing:.01em}

.fh-wrap .fh-filter input,.fh-wrap .fh-filter select{
  min-height:46px;
  border-radius:11px;
  border:1px solid #cfd8e5;
  background-color:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.025);
  transition:border-color .15s,box-shadow .15s}

.fh-wrap .fh-filter input:hover,.fh-wrap .fh-filter select:hover{
  border-color:#9aacbe}

.fh-wrap .fh-filter input:focus-visible,.fh-wrap .fh-filter select:focus-visible,.fh-wrap .fh-filter-submit:focus-visible,.fh-wrap a:focus-visible,.fh-wrap button:focus-visible{
  outline:3px solid var(--fh-focus);
  outline-offset:3px}

.fh-wrap .fh-filter-submit{
  min-height:46px;
  padding:10px 20px;
  border-radius:11px;
  transition:filter .15s,transform .15s}

.fh-wrap .fh-filter-submit:hover{
  filter:brightness(1.1);
  transform:translateY(-1px)}

.fh-wrap .fh-filter-reset{
  font-weight:650;
  color:#465e79;
  text-decoration:underline;
  text-underline-offset:3px}

.fh-wrap .fh-grid{
  gap:22px;
  margin:0 0 28px}

.fh-wrap .fh-card{
  display:flex;
  flex-direction:column;
  border-radius:var(--fh-radius);
  border-color:#dce4ee;
  box-shadow:0 5px 22px rgba(16,35,60,.055);
  transition:box-shadow .2s,transform .2s,border-color .2s}

.fh-wrap .fh-card:hover{
  border-color:#bdccdd;
  box-shadow:0 14px 40px rgba(16,35,60,.11);
  transform:translateY(-3px)}

.fh-wrap .fh-image{
  height:290px;
  overflow:hidden;
  background:linear-gradient(155deg,#f4f7fb,#edf2f8);
  border-bottom:1px solid #e9eff5;
  padding:22px}

.fh-wrap .fh-image img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:3px;
  box-shadow:0 5px 18px rgba(15,23,42,.08)}

.fh-wrap .fh-content{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:20px 22px 22px;
  min-width:0}

.fh-wrap .fh-retailer-line{
  min-height:40px;
  margin:0 0 9px}

.fh-wrap .fh-retailer-logo{
  width:38px;
  height:38px;
  flex-shrink:0;
  background:#fff;
  border-color:#e4eaf2}

.fh-wrap .fh-company{
  font-size:11px;
  letter-spacing:.09em;
  font-weight:750;
  overflow-wrap:anywhere}

.fh-wrap .fh-category-label{
  font-size:12px;
  color:#71829a;
  margin-bottom:10px}

.fh-wrap .fh-content h3{
  font-size:19px!important;
  line-height:1.38!important;
  letter-spacing:-.018em;
  margin:0 0 12px!important;
  overflow-wrap:anywhere}

.fh-wrap .fh-date{
  font-size:12px;
  color:#6d7f96;
  margin:0 0 16px!important}

.fh-wrap .fh-actions{
  margin-top:auto;
  gap:10px;
  align-items:center}

.fh-wrap .fh-view,.fh-wrap .fh-primary-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:10px;
  padding:10px 15px;
  font-size:13px;
  transition:filter .15s,transform .15s;
  white-space:normal;
  text-align:center}

.fh-wrap .fh-view:hover,.fh-wrap .fh-primary-link:hover{
  transform:translateY(-1px)}

.fh-wrap .fh-file-link{
  color:#345475;
  font-size:12px;
  font-weight:650;
  text-underline-offset:3px}

.fh-wrap .fh-empty{
  padding:28px 22px;
  border-radius:15px;
  border:1px dashed #cbd5e1;
  background:#f8fafc;
  text-align:center}

.fh-wrap .fh-profile{
  background:linear-gradient(145deg,#f9fbfd,#f2f6fb);
  border-color:#e0e8f0;
  border-radius:18px;
  padding:24px}

.fh-wrap .fh-profile-details{
  min-width:0;
  overflow-wrap:anywhere}

.fh-wrap .fh-pagination{
  margin:26px 0 36px}

.fh-wrap .fh-pagination .page-numbers{
  gap:8px}

.fh-wrap .fh-pagination a,.fh-wrap .fh-pagination span{
  min-height:42px;
  min-width:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:#35506d;
  border-color:#d8e2ef}

.fh-wrap .fh-pagination a:hover{
  background:#f1f5fa}

.fh-wrap .fh-pagination .current{
  background:#e8eef7;
  color:#172f4e;
  border-color:#cbd9ec}

.fh-modal-panel{
  border-radius:18px}

.fh-modal-header{
  min-height:62px;
  padding:12px 20px}

.fh-modal-title{
  min-width:0;
  font-weight:700}

.fh-modal-close{
  transition:background .15s}

.fh-modal-close:hover{
  background:#dce5ee}

.fh-modal :focus-visible{
  outline:3px solid #3569ac;
  outline-offset:2px}

@media(max-width:900px){
  .fh-wrap .fh-grid{
    gap:16px}
  .fh-wrap .fh-toolbar{
    padding:16px}
  }

@media(max-width:767px){
  .fh-wrap .fh-toolbar{
    padding:14px;
    border-radius:14px;
    gap:12px;
    margin-bottom:18px}
  .fh-wrap .fh-grid{
    gap:16px}
  .fh-wrap .fh-image{
    height:250px;
    padding:18px}
  .fh-wrap .fh-content{
    padding:18px}
  .fh-wrap .fh-actions{
    align-items:stretch}
  .fh-wrap .fh-view,.fh-wrap .fh-primary-link{
    flex:1 1 145px}
  .fh-wrap .fh-file-link{
    display:inline-flex;
    min-height:44px;
    align-items:center}
  .fh-modal-panel{
    border-radius:0}
  .fh-modal-header{
    padding:10px 12px}
  }

@media(prefers-reduced-motion:reduce){
  .fh-wrap .fh-card,.fh-wrap .fh-view,.fh-wrap .fh-primary-link,.fh-wrap .fh-filter-submit{
    transition:none!important;
    transform:none!important}
  }


/* v0.15.1 — compact, consistent storefront refinement (presentation only) */
.fh-wrap .fh-toolbar{
  padding:16px 18px;
  gap:12px;
  margin-bottom:20px;
  border-radius:14px;
  background:#fff;
  box-shadow:0 3px 14px rgba(15,35,60,.035)}

.fh-wrap .fh-filter{
  gap:6px;
  font-size:13px;
  font-weight:650}

.fh-wrap .fh-filter input,.fh-wrap .fh-filter select{
  min-height:43px;
  border-radius:9px;
  font-size:14px}

.fh-wrap .fh-filter-submit{
  min-height:43px;
  padding:9px 18px;
  border-radius:9px}

.fh-wrap .fh-grid{
  gap:16px;
  margin-bottom:24px}

.fh-wrap .fh-card{
  border-radius:14px;
  box-shadow:0 3px 12px rgba(16,35,60,.045);
  border-color:#dde5ef}

.fh-wrap .fh-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(16,35,60,.095)}

.fh-wrap .fh-image{
  height:216px;
  padding:15px;
  background:#f3f6fa;
  border-bottom-color:#e7edf4}

.fh-wrap .fh-image img{
  max-height:100%;
  max-width:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 4px 12px rgba(15,23,42,.065)}

.fh-wrap .fh-content{
  padding:15px 16px 17px;
  gap:0}

.fh-wrap .fh-retailer-line{
  min-height:24px;
  margin-bottom:5px;
  gap:8px}

.fh-wrap .fh-retailer-logo{
  width:27px;
  height:27px;
  border-radius:6px}

.fh-wrap .fh-company{
  font-size:12px;
  line-height:1.4;
  letter-spacing:.055em;
  color:#315273;
  font-weight:750}

.fh-wrap .fh-category-label{
  font-size:12px;
  line-height:1.4;
  margin-bottom:7px;
  color:#64748b}

.fh-wrap .fh-content h3{
  font-size:17px!important;
  line-height:1.34!important;
  letter-spacing:-.012em;
  margin:0 0 8px!important;
  font-weight:700}

.fh-wrap .fh-date{
  font-size:12px;
  line-height:1.4;
  margin:0 0 12px!important;
  color:#66778c}

.fh-wrap .fh-actions{
  margin-top:auto;
  gap:8px;
  align-items:center}

.fh-wrap .fh-view,.fh-wrap .fh-primary-link{
  min-height:40px;
  padding:9px 13px;
  border-radius:9px;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
  box-shadow:none;
  transform:none}

.fh-wrap .fh-file-link{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:12px;
  padding:5px 2px;
  font-weight:650}

.fh-wrap .fh-view:hover,.fh-wrap .fh-primary-link:hover{
  transform:none;
  filter:brightness(.94)}

.fh-wrap .fh-pagination{
  margin:22px 0 30px}

@media(max-width:1100px){
  .fh-wrap .fh-grid{
    grid-template-columns:repeat(min(3,var(--fh-columns,3)),minmax(0,1fr))}
  }

@media(max-width:850px){
  .fh-wrap .fh-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))}
  }

@media(max-width:600px){
  .fh-wrap .fh-toolbar{
    padding:13px;
    gap:10px}
  .fh-wrap .fh-grid{
    grid-template-columns:1fr!important;
    gap:14px}
  .fh-wrap .fh-image{
    height:230px;
    padding:15px}
  .fh-wrap .fh-content{
    padding:16px}
  .fh-wrap .fh-view,.fh-wrap .fh-primary-link{
    min-height:44px}
  .fh-wrap .fh-file-link{
    min-height:44px}
  }

@media(prefers-reduced-motion:reduce){
  .fh-wrap .fh-card:hover{
    transform:none}
  }

