/* =========================================================
 * Bookora – Frontend styles
 * All rules scoped under .bkr- so they can't leak into
 * JobScout / other themes. Full-bleed sections escape any
 * theme container with 100vw + calc(50% - 50vw).
 * ========================================================= */

:root { --bkr-accent: #0F4CFF; }

.bkr-fullbleed{
    position:relative;
    width:100vw;
    left:50%;
    right:50%;
    margin-left:-50vw;
    margin-right:-50vw;
    padding:2rem 0 4rem;
    background:#fff;
    color:#0f172a;
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    line-height:1.6;
    box-sizing:border-box;
}
.bkr-fullbleed *,.bkr-fullbleed *::before,.bkr-fullbleed *::after{box-sizing:border-box}

/* .bkr-container removed — each section now carries its own
   max-width + padding via a dedicated -inner/-wrap class below. */

/* ---------- breadcrumb ---------- */

.bkr-crumbs{
    font-size:.85rem;color:#64748b;margin-bottom:1.5rem;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;
}
.bkr-crumbs a{color:#334155;text-decoration:none;transition:color .15s}
.bkr-crumbs a:hover{color:var(--bkr-accent)}
.bkr-crumbs span{color:#cbd5e1}
.bkr-single-wrap{
    max-width:1200px;
    margin:0 auto;
    padding:0 clamp(1rem,3vw,2rem);
}

/* ---------- grid ---------- */

.bkr-grid{
    display:grid;
    grid-template-columns:minmax(0,340px) minmax(0,1fr);
    gap:clamp(1.5rem,4vw,3rem);
    align-items:start;
}
@media (max-width:820px){ .bkr-grid{ grid-template-columns:1fr; } }
.bkr-cover-col{position:sticky;top:2rem}
@media (max-width:820px){ .bkr-cover-col{position:static} }
.bkr-cover{
    background:#f1f5f9;
    border-radius:16px;
    overflow:hidden;
    position:relative;
}
.bkr-cover img{width:100%;height:100%;object-fit:contain;display:block}
.bkr-look-inside{
    display:flex;align-items:center;justify-content:center;gap:.5rem;
    width:100%;margin-top:1rem;padding:.75rem 1rem;
    background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;
    color:#0f172a;font-weight:600;text-decoration:none;font-size:.9rem;
    transition:background .15s,border-color .15s;
}
.bkr-look-inside:hover{background:#fff;border-color:var(--bkr-accent);color:var(--bkr-accent)}

/* Look Inside popup — mobile full-bleed; desktop centered card (original look) */
body.bkr-look-modal-open{overflow:hidden!important}

.bkr-look-modal{
    position:fixed;inset:0;z-index:99999;
    display:flex;align-items:center;justify-content:center;
    padding:1rem;box-sizing:border-box;
}
.bkr-look-modal[hidden]{display:none!important}
.bkr-look-modal__backdrop{
    position:absolute;inset:0;background:rgba(15,23,42,.55);
    backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
}
.bkr-look-modal__panel{
    position:relative;z-index:1;display:flex;flex-direction:column;
    width:min(960px,100%);
    height:min(90vh,900px);
    background:#fff;border-radius:14px;overflow:hidden;
    box-shadow:0 25px 50px -12px rgba(0,0,0,.35);
    animation:bkr-look-slide .22s ease-out;
}
@keyframes bkr-look-slide{
    from{opacity:0;transform:translateY(18px) scale(.98)}
    to{opacity:1;transform:none}
}
.bkr-look-modal__bar{
    display:flex;align-items:center;justify-content:space-between;gap:.75rem;
    padding:.65rem 1rem;background:#0f172a;color:#f8fafc;flex-shrink:0;
}
.bkr-look-modal__title{font-weight:600;font-size:.95rem;display:flex;align-items:center;gap:.5rem}
.bkr-look-modal__actions{display:flex;align-items:center;gap:.35rem}
.bkr-look-modal__open-ext{
    appearance:none;border:0;background:rgba(255,255,255,.1);color:#e2e8f0;
    font-size:.75rem;font-weight:600;line-height:1;cursor:pointer;
    padding:.45rem .65rem;border-radius:6px;text-decoration:none;white-space:nowrap;
}
.bkr-look-modal__open-ext:hover{background:rgba(255,255,255,.18);color:#fff}
.bkr-look-modal__close{
    appearance:none;border:0;background:transparent;color:#e2e8f0;
    font-size:1.5rem;line-height:1;cursor:pointer;padding:.15rem .4rem;border-radius:6px;
}
.bkr-look-modal__close:hover{background:rgba(255,255,255,.12);color:#fff}
.bkr-look-modal__body{
    position:relative;flex:1;min-height:0;background:#f1f5f9;
}
.bkr-look-modal__frame{
    position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#fff;
}
.bkr-look-modal__loading{
    position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    gap:.6rem;color:#64748b;font-size:.9rem;font-weight:500;background:#f1f5f9;z-index:2;
    pointer-events:none;
}
.bkr-look-modal__loading[hidden]{display:none!important}
.bkr-look-modal__loading .fa-spinner{animation:bkr-spin .8s linear infinite}
@keyframes bkr-spin{to{transform:rotate(360deg)}}

.bkr-look-modal__fallback{
    position:absolute;inset:0;z-index:3;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:1rem;padding:1.5rem;text-align:center;background:#f8fafc;color:#475569;
}
.bkr-look-modal__fallback[hidden]{display:none!important}
.bkr-look-modal__fallback p{margin:0;font-size:.95rem;line-height:1.45;max-width:16rem}
.bkr-look-modal__fallback-btn{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:48px;padding:.75rem 1.25rem;border-radius:10px;
    background:var(--bkr-accent,#2563eb);color:#fff;font-weight:600;font-size:.95rem;
    text-decoration:none;
}

/* Mobile: full-screen, safe areas, larger touch targets */
@media (max-width:767px){
    .bkr-look-modal{
        padding:0;
        align-items:stretch;justify-content:stretch;
        height:100%;height:100dvh;
        min-height:-webkit-fill-available;
    }
    .bkr-look-modal__panel{
        width:100%;height:100%;max-height:100%;
        border-radius:0;box-shadow:none;
        animation-name:bkr-look-slide-m;
    }
    @keyframes bkr-look-slide-m{
        from{opacity:0;transform:translateY(20px)}
        to{opacity:1;transform:none}
    }
    .bkr-look-modal__bar{
        padding:.65rem .85rem;
        padding-top:max(.65rem, env(safe-area-inset-top, 0px));
        padding-left:max(.85rem, env(safe-area-inset-left, 0px));
        padding-right:max(.85rem, env(safe-area-inset-right, 0px));
    }
    .bkr-look-modal__close{
        min-width:44px;min-height:44px;
        display:inline-flex;align-items:center;justify-content:center;
        font-size:1.7rem;-webkit-tap-highlight-color:transparent;
    }
    .bkr-look-modal__open-ext{
        min-height:40px;display:inline-flex;align-items:center;
        -webkit-tap-highlight-color:transparent;
    }
    .bkr-look-modal__body{padding-bottom:env(safe-area-inset-bottom, 0px)}
    body.bkr-look-modal-open{touch-action:none}
}

/* ---------- info column ---------- */

.bkr-info-col{min-width:0}
.bkr-eyebrow{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-bottom:.75rem}
.bkr-eyebrow .bkr-stars{margin-left:auto;margin-bottom:0}
.bkr-cat{
    font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
    color:var(--bkr-accent);background:color-mix(in oklab,var(--bkr-accent) 10%,white);
    padding:.35rem .7rem;border-radius:999px;
}
.bkr-badge{
    font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
    color:#fff;background:linear-gradient(135deg,#f59e0b,#ef4444);
    padding:.35rem .7rem;border-radius:999px;
}
.bkr-title{
    font-family:'Fraunces','Inter',serif;font-weight:700;
    font-size:clamp(1.75rem,3.5vw,2.75rem);
    line-height:1.15;margin:.25rem 0 .5rem;color:#0f172a;
    letter-spacing:-.02em;
}
.bkr-byline{color:#64748b;font-size:1rem;margin:0 0 1rem}
.bkr-byline strong{color:#0f172a;font-weight:600}

/* ---------- stars ---------- */

.bkr-stars{display:flex;align-items:center;gap:.35rem;margin-bottom:1.5rem;flex-wrap:wrap}
.bkr-stars .fas,.bkr-stars .far{color:#ffd250!important;font-size:1rem}
.bkr-stars .far{color:#cbd5e1!important}
.bkr-rating-num{font-weight:600;color:#0f172a;margin-left:.25rem}
.bkr-rating-count{color:#64748b;font-size:.9rem;text-decoration:none}
.bkr-rating-count:hover{color:var(--bkr-accent)}

/* ---------- purchase box ---------- */

.bkr-purchase{
    background:linear-gradient(180deg,#f8fafc,#ffffff);
    border:1px solid #e2e8f0;border-radius:16px;
    padding:1.25rem;margin-bottom:2rem;
}
.bkr-price-row{display:flex;align-items:baseline;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}
.bkr-price{font-size:2rem;font-weight:800;color:#0f172a;line-height:1}
.bkr-price-old{color:#94a3b8;font-size:1.15rem}
.bkr-perks{list-style:none;padding:0;margin:0 0 1.25rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.5rem;font-size:.85rem;color:#475569}
.bkr-perks li{display:flex;gap:.5rem;align-items:center}
.bkr-perks i{color:var(--bkr-accent)}
.bkr-btn-row{display:flex;flex-wrap:wrap;gap:.6rem}
.bkr-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
    padding:.75rem 1.25rem;border-radius:10px;border:1px solid transparent;
    font-weight:600;font-size:.95rem;cursor:pointer;text-decoration:none;
    font-family:inherit;line-height:1;transition:transform .15s,box-shadow .15s,background .15s,color .15s,border-color .15s;
    min-height:44px;
}
.bkr-btn-sm{padding:.5rem .85rem;font-size:.85rem;min-height:36px}
.bkr-btn-primary{background:var(--bkr-accent);color:#fff}
.bkr-btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 10px 20px -10px var(--bkr-accent)}
.bkr-btn-cart{background:#0f172a;color:#fff}
.bkr-btn-cart:hover{background:#1e293b;transform:translateY(-1px)}
.bkr-btn-cart.is-loading{opacity:.7;pointer-events:none}
.bkr-btn-cart.is-loading i{animation:bkr-spin .8s linear infinite}
.bkr-btn-ghost{background:#fff;color:#0f172a;border-color:#e2e8f0}
.bkr-btn-ghost:hover{border-color:var(--bkr-accent);color:var(--bkr-accent)}
@keyframes bkr-spin{to{transform:rotate(360deg)}}
.bkr-cart-msg{margin-top:.75rem;font-size:.9rem;min-height:1.2em}
.bkr-cart-msg.is-ok{color:#059669}
.bkr-cart-msg.is-err{color:#dc2626}

/* ---------- tabs ---------- */

.bkr-tabs{
    display:flex;flex-wrap:nowrap;gap:.25rem;
    border-bottom:2px solid #e2e8f0;margin-bottom:1.5rem;
    overflow-x:auto;-webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
}
.bkr-tab{
    background:transparent;border:0;padding:.85rem 1rem;
    font-weight:600;cursor:pointer;
    display:inline-flex;align-items:center;gap:.5rem;
    border-bottom:2px solid transparent;white-space:nowrap;
    transition:color .15s,border-color .15s;
    font-size:12px;
}
.bkr-tab:hover{color:#0f172a}
.bkr-tab.is-active{color:var(--bkr-accent);border-bottom-color:var(--bkr-accent)}
.bkr-tab-count{background:var(--bkr-accent);color:#fff;font-size:.7rem;padding:.15rem .5rem;border-radius:999px;margin-left:.25rem}
.bkr-panel{animation:bkr-fade .25s ease-out}
@keyframes bkr-fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.bkr-content{color:#334155;font-size:1rem}
.bkr-content p{margin:0 0 1rem}
.bkr-content h2,.bkr-content h3{color:#0f172a;margin:1.5rem 0 .5rem}
.bkr-sub{font-family:'Fraunces',serif;font-size:1.25rem;margin:1.5rem 0 .75rem;color:#0f172a}

/* specs table */

.bkr-specs{width:100%;border-collapse:collapse;font-size:.95rem}
.bkr-specs th,.bkr-specs td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid #f1f5f9}
.bkr-specs th{width:35%;color:#64748b;font-weight:500}
.bkr-specs td{color:#0f172a;font-weight:600}

/* author */

.bkr-author-card{display:flex;gap:1rem;align-items:flex-start}
.bkr-avatar{
    width:56px;height:56px;flex-shrink:0;border-radius:50%;
    background:linear-gradient(135deg,var(--bkr-accent),color-mix(in oklab,var(--bkr-accent) 60%,#000));
    color:#fff;display:flex;align-items:center;justify-content:center;
    font-size:1.5rem;font-weight:700;text-transform:uppercase;
}
.bkr-author-name{margin:0 0 .5rem;font-size:1.15rem;color:#0f172a}

/* included */

.bkr-included{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
}

.bkr-included li{
    display:flex;
    gap:.5rem;
    align-items:flex-start;
    font-size:11px !important;
}

.bkr-included li strong{
    font-size:12px !important;
    white-space:nowrap;
    flex-shrink:0;
    font-weight:500;
}

.bkr-included li span{
    font-size:10px !important;
}

.bkr-included i{
    color:#059669;
    flex-shrink:0;
}

/* =========================================================
 * Reviews
 * ========================================================= */

.bkr-reviews-head{
    display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;
    padding:1.25rem;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:1.5rem;background:#f8fafc;
}
.bkr-reviews-summary{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.bkr-agg-num{font-size:2.5rem;font-weight:800;color:#0f172a;line-height:1;font-family:'Fraunces',serif}
.bkr-agg-stars .fas,.bkr-agg-stars .far{color:#f59e0b;font-size:1.1rem}
.bkr-agg-stars .far{color:#cbd5e1}
.bkr-agg-count{color:#64748b;font-size:.9rem;width:100%}
.bkr-review-form{
    background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:1.25rem;margin-bottom:1.5rem;
}
.bkr-form-row{margin-bottom:1rem}
.bkr-form-row > label{display:block;font-weight:600;color:#0f172a;margin-bottom:.5rem}
.bkr-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media (max-width:600px){ .bkr-form-grid{grid-template-columns:1fr} }
.bkr-form-grid label{display:flex;flex-direction:column;gap:.35rem;margin:0}
.bkr-form-grid label span{font-weight:600;color:#0f172a;font-size:.9rem}
.bkr-review-form input[type=text],.bkr-review-form input[type=email],.bkr-review-form textarea{
    width:100%;padding:.65rem .85rem;border:1px solid #e2e8f0;border-radius:8px;
    font:inherit;font-size:.95rem;color:#0f172a;background:#fff;transition:border-color .15s,box-shadow .15s;
}
.bkr-review-form input:focus,.bkr-review-form textarea:focus{outline:0;border-color:var(--bkr-accent);box-shadow:0 0 0 3px color-mix(in oklab,var(--bkr-accent) 20%,transparent)}
.bkr-review-form textarea{resize:vertical;min-height:100px}
.bkr-rate-input{display:flex;gap:.15rem}
.bkr-rate-star{background:transparent;border:0;padding:.2rem;cursor:pointer;font-size:1.5rem;color:#cbd5e1;line-height:1;transition:transform .1s,color .15s}
.bkr-rate-star:hover{transform:scale(1.1)}
.bkr-rate-star.is-on{color:#f59e0b}
.bkr-rate-star.is-on i{font-weight:900}
.bkr-rate-star.is-on i::before{content:"\f005"} /* solid star */
.bkr-form-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:0}
.bkr-review-msg{margin-top:.75rem;font-size:.9rem;min-height:1em}
.bkr-review-msg.is-ok{color:#059669}
.bkr-review-msg.is-err{color:#dc2626}
.bkr-notice{padding:1rem;background:#fef3c7;border-radius:8px;color:#78350f;display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between}
.bkr-review-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1rem}
.bkr-review{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem 1.25rem}
.bkr-review-empty{color:#64748b;text-align:center;padding:2rem;border:1px dashed #e2e8f0;border-radius:12px}
.bkr-review-head{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:.5rem}
.bkr-review-avatar{
    width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#e2e8f0;
    display:flex;align-items:center;justify-content:center;font-weight:700;color:#334155;text-transform:uppercase;
}
.bkr-review-name{color:#0f172a;font-weight:600}
.bkr-review-date{color:#94a3b8;font-size:.8rem;margin-left:.5rem}
.bkr-review-stars{margin-left:auto}
.bkr-review-stars .fas,.bkr-review-stars .far{color:#f59e0b;font-size:.85rem}
.bkr-review-stars .far{color:#cbd5e1}
.bkr-review-body{color:#334155;margin:.25rem 0 0;line-height:1.6;word-wrap:break-word}

/* =========================================================
 * Shortcode/archive grid
 * ========================================================= */

.bkr-shortcode-grid{
    display:grid;
    grid-template-columns:repeat(var(--bkr-cols,2),minmax(0,1fr));
    gap:1.5rem;
    margin:1.5rem clamp(1rem,3vw,2rem); /* left/right margin so the grid never touches the viewport edge */
}

/* Desktop: 6+ columns (or whatever --bkr-cols is set to, up to 6).
   Tablet: 3+ columns. Mobile: 2+ columns. */

@media (max-width:820px){ .bkr-shortcode-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:520px){ .bkr-shortcode-grid{grid-template-columns:repeat(2,1fr)} }

.bkr-card{
    height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;
    transition:transform .2s,box-shadow .2s,border-color .2s;
}
.bkr-card:hover{transform:translateY(-3px);box-shadow:0 20px 30px -20px rgba(15,23,42,.2);border-color:#cbd5e1}
.bkr-card-cover{position:relative;display:block;background:#f8fafc;overflow:hidden;width:100%;line-height:0;}
.bkr-card-cover img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .3s}
.bkr-card:hover .bkr-card-cover img{transform:scale(1.03)}
.bkr-card-badge{
    position:absolute;top:.6rem;left:.6rem;
    background:rgba(245,158,11,.5);color:#fff;
    font-size:.55rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
    padding:.2rem .45rem;border-radius:999px;
    backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
    text-shadow:0 1px 2px rgba(15,23,42,.35);
}
/* 50%-transparent badge color variations (auto-assigned per badge label) */
.bkr-card-badge.bkr-badge-v1{background:rgba(239,68,68,.5)}
.bkr-card-badge.bkr-badge-v2{background:rgba(245,158,11,.5)}
.bkr-card-badge.bkr-badge-v3{background:rgba(16,185,129,.5)}
.bkr-card-badge.bkr-badge-v4{background:rgba(59,130,246,.5)}
.bkr-card-badge.bkr-badge-v5{background:rgba(168,85,247,.5)}
.bkr-card-badge.bkr-badge-v6{background:rgba(236,72,153,.5)}
.bkr-card-body{padding:1rem;display:flex;flex-direction:column;gap:.4rem;flex:1;height:100%}
.bkr-card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem}
.bkr-card-title{margin:0;font-family:'Fraunces',serif;font-size:1.1rem;line-height:1.3;min-width:0;
    overflow-wrap:anywhere;word-break:break-word;white-space:normal;overflow:visible}
.bkr-card-title a{color:#0f172a;text-decoration:none}
.bkr-card-title a:hover{color:var(--bkr-accent)}
.bkr-card-author{color:#64748b;font-size:.85rem;margin:0}

/* Compact right-aligned rating: single star + numeric rating + review count,
   sits beside the book name instead of a 5-star row underneath it. */
.bkr-card-rating{
    display:flex;align-items:center;gap:.25rem;font-size:.78rem;color:#0f172a;
    white-space:nowrap;flex-shrink:0;margin-top:.15rem;
}
.bkr-card-rating .fas{color:#ffd250!important;font-size:.8rem}
.bkr-card-rating-num{font-weight:700}
.bkr-card-rating-count{color:#94a3b8;font-weight:400}
.bkr-card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.bkr-card-price{font-weight:800;color:#0f172a;font-size:1.05rem}
.bkr-empty{color:#64748b;text-align:center;padding:2rem;grid-column:1/-1}

/* Mobile card layout:
   line 1 -> book name (15px)
   line 2 -> rating (10px, gold, left) + price (18px, right)
   author + View button are hidden, card height shrinks accordingly. */

@media (max-width:640px){
  .bkr-card-body{
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    align-items:center;gap:.3rem .5rem;padding:.55rem .6rem .65rem;
    align-content:start;min-height:60px;
  }
  .bkr-card-title-row,.bkr-card-foot{display:contents}
  .bkr-card-title{
    grid-column:1/-1;font-family:inherit;font-size:15px;line-height:1.3;
    font-weight:600;min-width:0;white-space:normal;overflow:hidden;overflow-wrap:anywhere;word-break:break-word;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:2.6em;flex-shrink:0;
  }
  .bkr-card-author{display:none}
  .bkr-card-foot .bkr-btn{display:none}
  .bkr-card-rating{
    grid-column:1;justify-self:start;margin-top:0;
    font-size:10px;color:#d4a017;gap:.2rem;
  }
  .bkr-card-rating .fas{font-size:10px;color:#d4a017!important}
  .bkr-card-rating-num{font-size:10px;color:#d4a017}
  .bkr-card-rating-count{font-size:10px;color:#c9a227}
  .bkr-card-price{grid-column:2;justify-self:end;font-size:18px;line-height:1.1}
}

/* archive header */

.bkr-arch-head{text-align:center;margin-bottom:2rem}
.bkr-arch-head h1{font-family:'Fraunces',serif;font-size:clamp(1.75rem,3.5vw,2.75rem);color:#0f172a;margin:0}

/* pagination */

.bkr-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:2rem}
.bkr-pagination .page-numbers{
    display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 .6rem;
    border:1px solid #e2e8f0;border-radius:8px;color:#0f172a;text-decoration:none;font-weight:600;
}
.bkr-pagination .page-numbers.current{background:var(--bkr-accent);color:#fff;border-color:var(--bkr-accent)}
.bkr-pagination .page-numbers:hover:not(.current){border-color:var(--bkr-accent);color:var(--bkr-accent)}

/* =========================================================
 * JobScout theme compat overrides.
 * JobScout wraps content in .site-content .container which
 * clips full-width elements. Our .bkr-fullbleed already
 * escapes that. Also ensure the theme's site padding doesn't
 * bleed into star colors etc.
 * ========================================================= */

body.bkr-single-page .site-content,
body.bkr-single-page .content-area,
body.bkr-single-page main,
body.bkr-archive-page .site-content{
    padding-left:0!important;padding-right:0!important;max-width:none!important;
}
body.bkr-single-page .entry-header,
body.bkr-single-page .entry-footer,
body.bkr-single-page .post-thumbnail{display:none!important}
body.bkr-single-page article.post,
body.bkr-single-page article.type-bkr_book{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;margin:0!important}

/* ==================== Landing / Hero / Carousel ====================
 * Hand-crafted look + featured-book showcase cloned from the Lumina
 * Ebook Store landing page (sketch hero, hand-drawn illustration,
 * paper texture) and its native "showcase" carousel (same 220px card
 * size, Georgia serif type, dot pagination + single advance arrow).
 * ==================================================================== */

.bkr-landing{padding-top:0}

/* ---- Sketch / hand-crafted hero ---- */

.bkr-hero{
    position:relative;overflow:hidden;
    padding:clamp(3rem,7vw,5.5rem) 0;
    background:#f5f0e6;
}
.bkr-hero-bg{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.bkr-hero-bg::before{
    content:'';position:absolute;inset:0;
    background-image:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(139,125,107,.05) 2px,rgba(139,125,107,.05) 4px);
}
.bkr-blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.18}
.bkr-blob-1{width:380px;height:380px;background:#1a2744;top:-140px;left:-100px}
.bkr-blob-2{width:320px;height:320px;background:#c45d3e;bottom:-140px;right:-80px}
.bkr-blob-3{width:220px;height:220px;background:#d4a017;top:35%;left:50%}
.bkr-hero-inner{
    position:relative;z-index:2;display:grid;grid-template-columns:1.1fr 1fr;
    gap:clamp(2rem,5vw,4rem);align-items:center;
    max-width:1200px;margin:0 auto;padding:0 clamp(1rem,3vw,2rem);
}
.bkr-hero-eyebrow{
    display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.75);
    padding:.4rem .9rem;border-radius:999px;font-size:.85rem;font-weight:600;color:#1a2744;
    border:1px solid rgba(26,39,68,.15);
}
.bkr-dot{width:8px;height:8px;border-radius:50%;background:#c45d3e;box-shadow:0 0 0 4px rgba(196,93,62,.2);animation:bkr-pulse 2s ease-in-out infinite}
@keyframes bkr-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}
.bkr-hero-title{
    font-family:'Caveat','Fraunces',cursive;
    font-size:clamp(2.6rem,6vw,4.6rem);font-weight:700;
    color:#1a2744;line-height:1.1;letter-spacing:-.02em;
    margin:1rem 0 1rem;transform:rotate(-1.2deg);display:inline-block;position:relative;
}
.bkr-hero-grad{color:#c45d3e;font-family:'Caveat','Fraunces',cursive;font-weight:700}
.bkr-hero-sub{
    font-family:'Crimson Text',Georgia,serif;font-size:clamp(1.05rem,1.6vw,1.2rem);
    color:#4a5568;line-height:1.75;max-width:52ch;margin:0 0 1.75rem;
}
.bkr-hero-cta{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:2rem;align-items:center}
.bkr-hero-btn-sketch{
    font-family:'Caveat','Fraunces',cursive;font-size:1.25rem;font-weight:700;
    background:transparent;color:#1a2744;border:2.5px solid #1a2744;border-radius:0;
    padding:.55rem 1.75rem;transform:rotate(-1deg);position:relative;
    box-shadow:none;transition:all .2s ease;min-height:0;text-decoration:none;display:inline-block;cursor:pointer;
}
.bkr-hero-btn-sketch::before{
    content:'';position:absolute;top:3px;left:3px;right:-3px;bottom:-3px;
    border:2px solid #c45d3e;z-index:-1;opacity:.6;transform:rotate(1deg);
}
.bkr-hero-btn-sketch:hover{background:#1a2744;color:#f5f0e6;transform:rotate(0) scale(1.02)}
.bkr-hero-btn-link{
    font-family:'Caveat','Fraunces',cursive;font-size:1.15rem;font-weight:700;
    background:none;border:0;color:#c45d3e;text-decoration:none;
    border-bottom:2px solid #d4a017;padding:0 0 .15rem;transform:rotate(1deg);
    min-height:0;border-radius:0;box-shadow:none;display:inline-block;cursor:pointer;
}
.bkr-hero-btn-link:hover{color:#1a2744;border-bottom-color:#1a2744;transform:rotate(0)}
.bkr-hero-stats{display:flex;gap:clamp(1rem,3vw,2.5rem);flex-wrap:wrap}
.bkr-hero-stats>div{display:flex;flex-direction:column}
.bkr-hero-stats strong{font-size:clamp(1.4rem,2.5vw,1.75rem);font-weight:800;color:#1a2744;line-height:1;font-family:'Fraunces',serif}
.bkr-hero-stats span{font-size:.85rem;color:#6b5b4a;margin-top:.25rem;font-family:'Crimson Text',Georgia,serif}

/* Hand-drawn illustration (replaces the photo-stack) */

.bkr-hero-visual{display:flex;justify-content:center;position:relative}
.bkr-hero-visual svg{max-width:420px;width:100%}
.bkr-catalog-wrap{max-width:1200px;margin:0 auto;padding:0 clamp(1rem,3vw,2rem)}
.bkr-section-head{display:flex;justify-content:space-between;align-items:center;margin:2.5rem 0 1.25rem;gap:1rem;flex-wrap:wrap}
.bkr-section-head h2{font-size:clamp(1.4rem,2.5vw,1.9rem);font-weight:800;color:#0f172a;margin:0}

/* Category list beside "All Books" — tap to filter the catalog grid
   (replaces the old standalone category-chips band). */
.bkr-cat-filter{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.bkr-cat-link{
    padding:.45rem 1rem;border-radius:999px;background:#f1f5f9;color:#334155;
    font-size:.85rem;font-weight:500;text-decoration:none;transition:all .15s ease;white-space:nowrap;
}
.bkr-cat-link:hover{background:color-mix(in oklab,var(--bkr-accent) 15%,white);color:var(--bkr-accent)}
.bkr-cat-link.is-active{background:var(--bkr-accent);color:#fff}

/* ---- Featured-books "showcase" carousel — dot pagination, single
   advance arrow, light-gray section background. Cards inside the
   carousel reuse the exact same .bkr-card component (and therefore
   the exact same size/appearance) used by the [bookora_store] grid,
   just laid out in a horizontally-scrolling track instead of a grid. ---- */

.bkr-showcase{padding:32px clamp(1rem,3vw,2rem) 40px}
.bkr-showcase-inner{max-width:1200px;margin:0 auto}
.bkr-section-head.bkr-showcase-header{margin:0 0 16px}
.bkr-section-head.bkr-showcase-header h2{
    font-size:28px;font-weight:800;color:#0f172a;letter-spacing:-.5px;
}

/* Top row: dot pagination on the left, "Show all" link on the right.
   No prev/next arrow buttons — the carousel auto-scrolls. */
.bkr-showcase-top{
    display:flex;align-items:center;justify-content:space-between;
    gap:1rem;margin-bottom:16px;
}
.bkr-showall-btn{
    display:inline-flex;align-items:center;gap:.4rem;flex-shrink:0;
    padding:.45rem .9rem;border-radius:999px;border:1px solid #e2e8f0;background:#fff;
    color:#0f172a;font-size:.85rem;font-weight:600;text-decoration:none;
    transition:border-color .15s,color .15s,background .15s;
}
.bkr-showall-btn:hover{border-color:var(--bkr-accent);color:var(--bkr-accent);background:color-mix(in oklab,var(--bkr-accent) 8%,white)}
.bkr-showall-btn i{font-size:.75rem}
.bkr-showcase-dots{display:flex;gap:10px;margin:0;align-items:center;flex-wrap:wrap;min-width:0}
.bkr-dot-nav{
    width:10px;height:10px;border-radius:50%;background-color:#d4d4d4;cursor:pointer;
    border:none;padding:0;transition:background-color .3s;flex-shrink:0;
}
.bkr-dot-nav.active{background-color:#2196f3}

/* left/right margin so the carousel never touches the viewport edge
   when embedded standalone via the [bookora_carousel] shortcode */
.bkr-carousel{overflow:hidden;position:relative;margin:0 clamp(.25rem,1vw,.5rem)}
.bkr-carousel-track{
    align-items:stretch;display:flex;gap:1.5rem;overflow-x:auto;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;scroll-behavior:smooth;padding:12px 12px 32px;margin:-10px -10px 0;
    scrollbar-width:none;
    --bkr-cols:2; /* default: 2 columns */
}
.bkr-carousel-track::-webkit-scrollbar{display:none}

/* Card width = same column math as .bkr-shortcode-grid, so a carousel
   card is always the same size as a [bookora_store] grid card. */
.bkr-carousel-track .bkr-card{
    height:100%;
    flex:0 0 calc((100% - (var(--bkr-cols,2) - 1)*1.5rem)/var(--bkr-cols,2));
    min-width:calc((100% - (var(--bkr-cols,2) - 1)*1.5rem)/var(--bkr-cols,2));
    scroll-snap-align:start;
    transform-origin:center bottom;
    transition:transform .2s,box-shadow .2s,border-color .2s;
}

/* Long book names still wrap in full instead of clipping/clamping. */
.bkr-carousel-track .bkr-card-title,
.bkr-shortcode-grid .bkr-card-title{
    display:block;overflow:visible;text-overflow:clip;
    -webkit-line-clamp:unset;-webkit-box-orient:unset;
    max-height:none;white-space:normal;overflow-wrap:anywhere;word-break:break-word;
}

/* The single card that's next up in the scroll sequence (about to enter
   view) is shown slightly larger as a "keep going" visual cue. Every
   other card stays at the normal, uniform grid size. */
.bkr-carousel-track .bkr-card.is-upcoming{
    /* Removed scale(1.08) to keep cards same size as requested */
    box-shadow:0 25px 35px -20px rgba(15,23,42,.3);
    border-color:#cbd5e1;
    position:relative;z-index:2;
}

@media (prefers-reduced-motion:reduce){
    .bkr-carousel-track .bkr-card{transition:none}
}

@media (max-width:820px){
  .bkr-hero-inner{grid-template-columns:1fr}
  .bkr-hero-visual{display:none} /* hero illustration: desktop only, hidden on tablet + mobile */
  .bkr-carousel-track{--bkr-cols:2}
  .bkr-carousel-track .bkr-card{height:auto;min-height:100%}
}

@media (max-width:640px){
  .bkr-section-head.bkr-showcase-header h2{font-size:24px}
}

@media (max-width:520px){
  .bkr-hero-stats{gap:1.25rem}
  .bkr-hero-cta{flex-direction:column;align-items:flex-start}
  .bkr-carousel-track{--bkr-cols:2}
}

/* ---- Minimal book-shop hero (used above the carousel / [bookora_hero]) ---- */

.bkr-mini-hero{padding:clamp(1.5rem,4vw,2.5rem) clamp(1rem,3vw,2rem) .5rem}
.bkr-mini-hero-inner{max-width:820px;margin:0 auto;text-align:center}
.bkr-mini-hero-eyebrow{
    display:inline-flex;align-items:center;gap:.4rem;
    font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
    color:var(--bkr-accent);background:color-mix(in oklab,var(--bkr-accent) 10%,white);
    padding:.3rem .7rem;border-radius:999px;
}
.bkr-mini-hero-title{
    font-family:'Fraunces',serif;font-size:clamp(1.5rem,3.5vw,2.25rem);font-weight:800;
    color:#0f172a;margin:.6rem 0 .35rem;letter-spacing:-.02em;line-height:1.15;
}
.bkr-mini-hero-sub{color:#64748b;font-size:clamp(.9rem,1.4vw,1.05rem);margin:0 auto;max-width:60ch}
.bkr-mini-hero-cta{text-decoration:none}

@media (max-width:640px){
  .bkr-mini-hero{padding-bottom:0}
  .bkr-mini-hero-sub{font-size:.85rem;margin-bottom:.85rem}
  .bkr-showcase{padding-top:16px}
  .bkr-showall-btn{padding:.35rem .7rem;font-size:.78rem}
}

/* ---- Hero section refinements ---- */

.bkr-mini-hero-inner{position:relative;isolation:isolate}

/* ---- Live category filtering (no page reload) ---- */

.bkr-cat-link{cursor:pointer}
.bkr-catalog-grid.is-loading{opacity:1}
.bkr-card.is-hidden{display:none!important}

/* ---- Smart colored underline for headlines ----
   Thickness scales fluidly with viewport (clamp) instead of jumping at a
   single breakpoint, so it looks right on phones, tablets and desktop. */
.bkr-ul{
    position:relative;display:inline;
    text-decoration:none;
    -webkit-box-decoration-break:clone;box-decoration-break:clone;
    padding-bottom:.1em;
}
.bkr-ul::after{
    content:'';
    position:absolute;
    left:-2%;
    bottom:0;
    width:104%;
    height:.3em;
    background:linear-gradient(90deg,
        var(--bkr-accent,#0F4CFF) 0%,
        #22c55e 35%,
        #f59e0b 68%,
        #ec4899 100%);
    opacity:.45;
    border-radius:100px;
    z-index:-1;
    transform:rotate(-0.5deg);
    transition:transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity .3s ease, height .3s ease;
}
@media (hover:hover){
    .bkr-ul:hover::after{
        transform:rotate(0deg) scaleY(1.8);
        opacity:.65;
        height:.4em;
    }
}
.bkr-hero-title .bkr-ul::after{bottom:.05em;height:.35em}
@media (prefers-reduced-motion:reduce){ .bkr-ul{transition:none} }

/* ==================== Auto-responsive banner slider ====================
   Single dark rounded box, one book per slide, fade+slide transition,
   dotted navigation overlaid at the bottom-center of the box. Replaces
   the old multi-card showcase carousel. ==================== */
.bkr-banner{
    padding: clamp(.75rem, 3vw, 1.25rem) 12px;
    margin: 0;
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', 'Kalpurush', system-ui, -apple-system, 'Segoe UI', sans-serif;
    border-radius: 10px;
    border: 1px solid #9ab4d952;
}
.bkr-banner-inner{max-width:1200px;margin:0 auto}
.bkr-banner-head{
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
    gap:.75rem;margin:0 0 8px;
}
.bkr-banner-heading{font-size:15px;font-weight:700;color:#0f172a;min-width:0;line-height:1.4}
.bkr-banner-all{
    flex-shrink:0;font-size:13px;font-weight:600;color:#2159E5;text-decoration:none;cursor:pointer;
}
.bkr-banner-all:hover{text-decoration:underline;color:#2159E5}

.bkr-banner-box{
    position:relative;height:95px;overflow:hidden;border-radius:14px;
    background:linear-gradient(135deg,#0b1220 0%,#122145 55%,#0d1730 100%);
    box-shadow:0 10px 24px -12px rgba(9,16,34,.55);
}
.bkr-banner-viewport{position:relative;height:100%;width:auto;overflow:hidden}
.bkr-banner-track{
    display:flex;height:100%;width:100%;
    transition:transform .5s cubic-bezier(.4,0,.2,1);will-change:transform;
}
.bkr-banner-track.is-dragging{transition:none}
.bkr-banner-slide{
    flex:0 0 100%;max-width:100%;box-sizing:border-box;
    display:flex;align-items:center;gap:10px;padding:0 10px;text-decoration:none;
}
.bkr-banner-info{flex:1 1 auto;min-width:0;padding-bottom:8px;display:flex;flex-direction:column;gap:4px}
.bkr-banner-title{
    margin:0;font-size:15px;font-weight:800;color:#fff;line-height:1.25;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.bkr-banner-meta{
    display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;
}
.bkr-banner-author{
    font-size:11.5px;color:#c3cee6;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.bkr-banner-price{
    flex-shrink:0;font-size:12px;font-weight:800;color:#0b1220;
    background:linear-gradient(135deg,#ffd85c,#f5b301);
    padding:2px 8px;border-radius:999px;
}
.bkr-banner-stars{display:flex;align-items:center;gap:5px;min-width:0}
.bkr-banner-stars-icons{display:inline-flex;gap:1.5px;font-size:10px;color:rgba(255,255,255,.35)}
.bkr-banner-stars-icons .is-on{color:#ffc63c}
.bkr-banner-rating-num{font-size:11px;font-weight:700;color:#e7ecf8}
.bkr-banner-cover{
    flex:0 0 92px;width:92px;height:92px;min-height:92px;object-fit:contain;border-radius:8px;align-self:center;
    box-shadow:0 6px 14px -8px rgba(0,0,0,.7);display:block;
}
.bkr-banner-dots{
    position:absolute;left:0;right:0;bottom:5px;z-index:3;
    display:flex;justify-content:center;align-items:center;gap:6px;
}
.bkr-banner-dot{
    width:6px;height:6px;padding:0;border:none;border-radius:50%;cursor:pointer;
    background:rgba(255,255,255,.45);transition:background .25s,width .25s;
}
.bkr-banner-dot.is-active{background:#ff3d71;width:16px;border-radius:999px}

/* Manual navigation arrows (hidden when there is nothing to slide) */
.bkr-banner-arrow{
    position:absolute;top:50%;transform:translateY(-50%);z-index:4;
    width:28px;height:28px;display:none;align-items:center;justify-content:center;
    border:1px solid rgba(255,255,255,.28);border-radius:50%;cursor:pointer;
    background:rgba(11,18,32,.55);color:#fff;font-size:18px;line-height:1;
    padding:0;transition:background .2s,opacity .2s,transform .2s;
    -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
}
@media (min-width:1024px){.bkr-banner-box.has-nav .bkr-banner-arrow{display:flex}}
.bkr-banner-arrow:hover{background:rgba(33,89,229,.85)}
.bkr-banner-arrow[disabled]{opacity:.3;cursor:default}
.bkr-banner-prev{left:6px}
.bkr-banner-next{right:6px}

@media (min-width:768px){
    .bkr-banner-box{height:120px;border-radius:16px}
    .bkr-banner-slide{gap:16px;padding:0 18px}
    .bkr-banner-cover{flex:0 0 104px;width:104px;height:104px;min-height:104px;border-radius:10px}
    .bkr-banner-title{font-size:19px}
    .bkr-banner-author{font-size:13px}
    .bkr-banner-price{font-size:14px}
    .bkr-banner-stars-icons{font-size:12px}
    .bkr-banner-heading{font-size:17px}
}
/* Left-align the theme section wrapper that hosts the banner */
section.client-section{margin:40px 0 0 0;text-align:left}
section.client-section .bkr-banner,
section.client-section .bkr-banner *{text-align:left}

/* ---- Desktop refinement: two books per view (tab/mobile untouched) ---- */

@media (min-width:1024px){
    .bkr-banner{padding-bottom:18px}
    .bkr-banner-inner{max-width:1240px}
    .bkr-banner-heading{font-size:20px}
    .bkr-banner-all{font-size:14px}
    .bkr-banner-head{margin-bottom:12px}
    .bkr-banner-box{
        height:150px;border-radius:20px;
        box-shadow:0 22px 44px -22px rgba(9,16,34,.6);
    }
    .bkr-banner-viewport{margin:0 46px}
    .bkr-banner-slide{
        flex:0 0 50%;max-width:50%;gap:18px;padding:0 16px;position:relative;
    }
    .bkr-banner-slide + .bkr-banner-slide::before{
        content:'';position:absolute;left:0;top:18%;bottom:18%;width:1px;
        background:linear-gradient(180deg,transparent,rgba(255,255,255,.18),transparent);
    }
    .bkr-banner-cover{
        flex:0 0 96px;width:96px;height:118px;min-height:118px;border-radius:12px;
        box-shadow:0 14px 28px -14px rgba(0,0,0,.75);
    }
    .bkr-banner-info{padding-bottom:12px;gap:8px}
    .bkr-banner-title{font-size:19px;line-height:1.25;white-space:normal;
        display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .bkr-banner-meta{justify-content:flex-start;gap:12px}
    .bkr-banner-author{font-size:13.5px}
    .bkr-banner-price{font-size:14px;padding:3px 12px}
    .bkr-banner-stars-icons{font-size:13px;gap:3px}
    .bkr-banner-rating-num{font-size:12.5px}
    .bkr-banner-dots{bottom:8px;gap:8px}
    .bkr-banner-dot{width:8px;height:8px}
    .bkr-banner-dot.is-active{width:22px}
    .bkr-banner-arrow{width:36px;height:36px;font-size:22px}
    .bkr-banner-prev{left:8px}
    .bkr-banner-next{right:8px}
}

@media (prefers-reduced-motion:reduce){
    .bkr-banner-track{transition:none}
}

/* ==================== Clean sliding book section ([bookora_carousel]) ====================
 * Horizontal cards – now matching theme blue #2159E5
 * ==================================================================== */
.bkr-slide-section {
    --bkr-slide-primary: #2159E5;
    --bkr-slide-primary-light: #4B7AF0;          /* lighter tint of primary */
    --bkr-slide-primary-dark: #1A47C4;           /* slightly darker for hover / emphasis */
    --bkr-slide-surface: #FFFFFF;
    --bkr-slide-surface-warm: #F4F7FF;           /* very light blue wash instead of peach */
    --bkr-slide-text: #2D2D3A;
    --bkr-slide-text-muted: #8A94A6;
    --bkr-slide-border: #D6E0F5;                 /* soft blue-gray border */
    --bkr-slide-warning: #FFC857;                /* keep gold for stars */
    --bkr-slide-radius: 20px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0 20px;
}

.bkr-slide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto 4px;
    padding: 20px clamp(16px, 4vw, 28px) 10px;
}

.bkr-slide-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f4cff;
    letter-spacing: -0.3px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bkr-slide-title i {
    color: var(--bkr-slide-primary);
    font-size: 18px;
}

.bkr-slide-all {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--bkr-slide-primary-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--bkr-slide-surface-warm);
    border-radius: 50px;
    border: 1.5px solid var(--bkr-slide-border);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bkr-slide-all:hover {
    border-color: var(--bkr-slide-primary-light);
    color: var(--bkr-slide-primary-dark);
    text-decoration: none;
}

.bkr-slide-all i {
    font-size: 11px;
}

.bkr-slide-wrap {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    --bkr-slide-gutter: clamp(0.75rem, 3vw, 1.5rem);
    padding: 0 var(--bkr-slide-gutter);
}

.bkr-slide-viewport {
    overflow: hidden;
    width: 100%;
}

.bkr-slide-track {
    display: flex;
    gap: 14px;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 6px 2px 10px;
    margin: 0;
}

.bkr-slide-track::-webkit-scrollbar {
    display: none;
}

/* Horizontal card: cover left + body right */
.bkr-slide-card {
    position: relative;
    flex: 0 0 300px;
    width: 300px;
    margin: 0;
    padding: 0;
    background: var(--bkr-slide-surface);
    border: none;
    box-shadow: var(--bkr-slide-shadow);
    border-radius: var(--bkr-slide-radius);
    scroll-snap-align: start;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 0 rgba(15, 76, 255, 0.05);
}

.bkr-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bkr-slide-shadow-lg);
}

.bkr-slide-cover {
    display: block;
    position: relative;
    width: 120px;
    min-width: 120px;
    min-height: 110px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bkr-slide-primary-light), var(--bkr-slide-primary));
    line-height: 0;
    flex-shrink: 0;
}

.bkr-slide-cover img {
    width: 100%;
    height: 100%;
    min-height: 110px;          /* keep this if you want a minimum height */
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
}

.bkr-slide-price {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--bkr-slide-primary-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    line-height: 1.3;
}

.bkr-slide-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    background: #0f4cff78;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.3;
}

.bkr-slide-body {
    flex: 1;
    min-width: 0;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bkr-slide-info {
    min-width: 0;
}

.bkr-slide-book-title {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--bkr-slide-text);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bkr-slide-book-title a {
    color: inherit;
    text-decoration: none;
}

.bkr-slide-book-title a:hover {
    color: var(--bkr-slide-primary-dark);
}

.bkr-slide-author {
    font-size: 12px;
    color: var(--bkr-slide-text-muted);
    margin-top: 4px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bkr-slide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0;
    gap: 6px;
    min-height: 28px;
    flex-shrink: 0;
}

.bkr-slide-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--bkr-slide-warning);
    line-height: 1;
    min-width: 0;
}

.bkr-slide-stars .far {
    color: #d1d5db;
}

.bkr-slide-rating-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--bkr-slide-warning);
    margin-left: 0;
    line-height: 1;
}

.bkr-slide-dl {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bkr-slide-primary), var(--bkr-slide-primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(255, 138, 108, 0.2);
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    padding: 0;
}

.bkr-slide-dl:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 14px rgba(255, 138, 108, 0.3);
}

.bkr-slide-dl i {
    font-size: 13px;
}

/* Arrows + dots */
.bkr-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bkr-slide-border);
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bkr-slide-text);
    font-size: 18px;
    line-height: 1;
    padding: 0;
    box-shadow: var(--bkr-slide-shadow);
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.bkr-slide-wrap.has-nav .bkr-slide-arrow {
    display: flex;
}

.bkr-slide-arrow:hover {
    background: var(--bkr-slide-primary);
    color: #fff;
    border-color: var(--bkr-slide-primary);
}

.bkr-slide-arrow[disabled] {
    opacity: 0.3;
    cursor: default;
}

.bkr-slide-prev {
    left: calc(var(--bkr-slide-gutter) + 2px);
}

.bkr-slide-next {
    right: calc(var(--bkr-slide-gutter) + 2px);
}

.bkr-slide-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
}

.bkr-slide-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 138, 108, 0.3);
    transition: background 0.25s, width 0.25s;
}

.bkr-slide-dot.is-active {
    background: var(--bkr-slide-primary);
    width: 16px;
    border-radius: 999px;
}

/* Responsive card sizing */
@media (min-width: 480px) {
    .bkr-slide-card {
        flex-basis: 310px;
        width: 310px;
    }
    .bkr-slide-cover {
        width: 130px;
        min-width: 130px;
    }
}

@media (min-width: 640px) {
    .bkr-slide-card {
        flex-basis: 320px;
        width: 320px;
    }
    .bkr-slide-cover {
        width: 138px;
        min-width: 138px;
    }
    .bkr-slide-book-title {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .bkr-slide-card {
        flex-basis: 330px;
        width: 330px;
    }
    .bkr-slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .bkr-slide-card {
        flex-basis: 340px;
        width: 340px;
    }
    .bkr-slide-prev {
        left: calc(var(--bkr-slide-gutter) + 4px);
    }
    .bkr-slide-next {
        right: calc(var(--bkr-slide-gutter) + 4px);
    }
}

@media (max-width: 380px) {
    .bkr-slide-card {
        flex-basis: 270px;
        width: 270px;
    }
    .bkr-slide-cover {
        width: 100px;
        min-width: 100px;
    }
    .bkr-slide-body {
        padding: 10px 12px 8px;
    }
    .bkr-slide-book-title {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bkr-slide-track {
        scroll-behavior: auto;
    }
    .bkr-slide-card {
        transition: none;
    }
}
