@media (max-width:1100px){.ebks-header-grid{grid-template-columns:190px 1fr 150px}.ebks-grade-grid{grid-template-columns:repeat(5,1fr)}.ebks-product-grid,.products{grid-template-columns:repeat(3,1fr)}.ebks-product-main{grid-template-columns:280px 1fr}.ebks-single-side{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.ebks-single-side .ebks-mini-card{margin-top:0}.ebks-product-grid--related{grid-template-columns:repeat(3,1fr)}}
@media (max-width:820px){body{padding-bottom:72px}.ebks-container{width:min(100% - 24px,var(--ebks-container))}.ebks-header-grid{grid-template-columns:1fr auto;gap:12px;min-height:auto;padding:12px 0}.ebks-header-left{display:flex;align-items:center}.ebks-logo img,.custom-logo-link img{max-height:42px}.ebks-search{grid-column:1/-1;order:3}.ebks-search input{height:38px}.ebks-account-link{display:none}.ebks-mobile-menu-toggle{display:inline-flex}.ebks-category-nav{overflow:auto}.ebks-category-row{overflow-x:auto}.ebks-cat-item:not(.ebks-cat-item--all),.ebks-category-row>.ebks-cat-link{display:none}.ebks-cat-item--all{display:block}.ebks-cat-item--all .ebks-mega-menu{display:none!important}.ebks-breadcrumbs{font-size:11px}.ebks-hero{padding:24px 0;background:linear-gradient(135deg,#eaf4ff,#dcecff);color:var(--ebks-primary-dark)}.ebks-hero-grid{grid-template-columns:1fr;gap:18px}.ebks-hero h1{font-size:28px}.ebks-hero p{color:#333}.ebks-hero-points{display:none}.ebks-hero-art{order:-1}.ebks-book-stack{min-height:120px;justify-content:center}.ebks-book-stack span{width:72px;height:90px;font-size:12px}.ebks-book-stack span:nth-child(n){height:100px}.ebks-section{padding:22px 0}.ebks-section-head{align-items:center}.ebks-section-head h1,.ebks-section-head h2{font-size:22px}.ebks-grade-grid{display:flex;overflow-x:auto;padding-bottom:8px}.ebks-grade-card{min-width:92px;min-height:62px}.ebks-product-grid,.products,.ebks-shop-main .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ebks-product-image{height:130px}.ebks-product-title{font-size:13px;min-height:34px}.ebks-product-actions{display:block}.ebks-product-actions .ebks-btn,.ebks-product-actions .button{width:100%;margin-bottom:6px}.ebks-icon-btn{display:none}.ebks-feature-strip,.ebks-trust-bar,.ebks-steps,.ebks-offer-grid{grid-template-columns:repeat(2,1fr)}.ebks-help-cta{display:block;text-align:center}.ebks-help-cta .ebks-btn{margin-top:14px;width:100%}.ebks-footer{margin-top:28px;padding-bottom:88px}.ebks-footer-grid{grid-template-columns:1fr;gap:16px}.ebks-footer-bottom{display:block}.ebks-whatsapp-fab-wrap{right:18px;bottom:78px}.ebks-whatsapp-fab{width:56px;height:56px}.ebks-whatsapp-hint{display:none}.ebks-back-to-top{right:16px;bottom:142px;width:42px;height:42px}.ebks-mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;height:66px;background:#fff;border-top:1px solid var(--ebks-line);display:grid;grid-template-columns:repeat(5,1fr);z-index:120;box-shadow:0 -8px 22px rgba(0,0,0,.08)}.ebks-mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;color:#909090}.ebks-mobile-bottom-nav a:hover{color:var(--ebks-primary)}.ebks-mobile-icon{position:relative;font-size:20px;line-height:1}.ebks-mobile-icon em{top:-10px;right:-16px;background:var(--ebks-accent);color:#111;font-style:normal}.ebks-post-grid,.ebks-two-cards,.ebks-about-grid,.ebks-contact-grid,.ebks-whatsapp-order-grid,.ebks-confirmation-grid,.ebks-checkout-grid,.ebks-review-summary{grid-template-columns:1fr}.ebks-review-grid{grid-template-columns:1fr}.ebks-form-row{grid-template-columns:1fr}.ebks-account-grid.has-register{grid-template-columns:1fr;max-width:430px}.ebks-modal-card{padding:22px;margin:5vh auto}.ebks-qv-grid{grid-template-columns:1fr}.ebks-shop-head{display:block}.ebks-result-tools{justify-content:space-between;margin-top:10px}.ebks-shop-layout{grid-template-columns:1fr}.ebks-filter-sidebar{display:none}.ebks-mobile-filter-chips{display:flex;gap:8px;overflow-x:auto;margin-bottom:14px}.ebks-mobile-filter-chips a{white-space:nowrap;background:#f0f0f0;border-radius:999px;padding:8px 14px;font-size:12px}.ebks-product-main{grid-template-columns:1fr}.ebks-single-summary h1{font-size:26px}.ebks-single-side{display:block}.ebks-single-side .ebks-mini-card{margin-top:10px}.ebks-product-tabs-lite{grid-template-columns:1fr}.ebks-product-grid--related{grid-template-columns:repeat(2,1fr)}.ebks-cart-layout{grid-template-columns:1fr}.ebks-cart-header{display:none}.ebks-cart-row{grid-template-columns:1fr auto;gap:8px;position:relative}.ebks-cart-product{grid-column:1/-1}.ebks-cart-subtotal{font-weight:900}.ebks-cart-remove{position:absolute;right:0;top:10px}.ebks-cart-actions-line{justify-content:stretch}.ebks-cart-actions-line input,.ebks-cart-actions-line .ebks-btn{width:100%}.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper{grid-template-columns:1fr}.ebks-checkout-grid{display:block}.ebks-order-review{margin-top:16px}}
@media (max-width:420px){body{font-size:14px}.ebks-announcement{font-size:11px}.ebks-header-actions{gap:10px}.ebks-cart-link{font-size:19px}.ebks-hero h1{font-size:25px}.ebks-product-image{height:118px}.ebks-product-body{padding:9px}.ebks-product-title{font-size:12px}.ebks-btn{padding:10px 13px}.ebks-feature-strip,.ebks-trust-bar{grid-template-columns:repeat(4,1fr);gap:6px}.ebks-feature-strip div,.ebks-trust-bar div{padding:9px 6px}.ebks-feature-strip strong,.ebks-trust-bar strong{font-size:11px}.ebks-feature-strip p,.ebks-trust-bar span{font-size:10px}.ebks-footer-grid{font-size:13px}.ebks-info-page>h1{font-size:28px}.ebks-steps{grid-template-columns:1fr}.ebks-review-summary strong{font-size:32px}.ebks-single-cart{display:grid;grid-template-columns:70px 1fr;gap:8px}.ebks-buy-now{grid-column:1/-1}.ebks-product-specs li{grid-template-columns:90px 1fr}.ebks-mobile-panel{width:100vw}.ebks-toast{right:12px;left:12px;min-width:0}}


/* Mobile color refresh from updated ExamBooks UI */
@media (max-width:820px){
  .ebks-category-nav{background:var(--ebks-primary-dark);}
  .ebks-cat-item--all>.ebks-cat-link,.ebks-category-row>.ebks-cat-link:first-child{background:var(--ebks-primary-dark);}
  .ebks-hero .ebks-btn--primary{background:var(--ebks-accent);color:#fff;}
  .ebks-product-actions .button,.ebks-product-actions .ebks-btn{background:var(--ebks-primary);color:#fff;}
  .ebks-mobile-bottom-nav a:hover,.ebks-mobile-bottom-nav a:focus{color:var(--ebks-primary);}
  .ebks-mobile-bottom-nav a:first-child{color:var(--ebks-primary);}
  .ebks-mobile-icon em{background:var(--ebks-accent);color:#fff;}
  .ebks-footer{background:var(--ebks-primary-dark);}
  .ebks-whatsapp-fab{background:var(--ebks-success);}
  .ebks-mobile-filter-chips a:first-child{background:var(--ebks-primary);color:#fff;}
}
@media (max-width:820px){.ebks-category-wp-menu{width:100%;overflow-x:auto}.ebks-category-wp-menu>li:not(:first-child){display:none}.ebks-category-wp-menu>li:first-child>.sub-menu{display:none!important}.ebks-category-wp-menu a{padding:9px 12px}.ebks-header-actions .ebks-cart-link .ebks-icon{width:22px;height:22px}.ebks-mobile-bottom-nav .ebks-icon{width:22px;height:22px}.ebks-feature-strip .ebks-icon,.ebks-trust-bar .ebks-icon{width:23px;height:23px}}


/* 1.1 mobile polish */
@media (max-width:820px){.ebks-whatsapp-fab-wrap{right:18px;bottom:84px}.ebks-whatsapp-fab{width:56px;height:56px}.ebks-fab-tooltip{display:none}.ebks-back-to-top{right:18px;bottom:150px}.ebks-footer{padding-bottom:94px}.ebks-footer-phone{max-width:100%;justify-content:center}.ebks-footer-bottom{display:block;text-align:left}.ebks-footer-bottom span{display:block;margin:8px 0}.ebks-mobile-bottom-nav{padding-bottom:env(safe-area-inset-bottom)}.ebks-mobile-bottom-nav a:first-child{color:var(--ebks-primary)}.ebks-mobile-menu-toggle{background:var(--ebks-primary-dark)}.ebks-header-actions{align-self:center}.ebks-product-actions .button,.ebks-product-actions .ebks-btn{border-radius:6px}.ebks-checkout-page,.ebks-cart-page,.ebks-account-page{padding-top:22px}}
@media (max-width:420px){.ebks-whatsapp-fab-wrap{right:16px;bottom:82px}.ebks-whatsapp-fab{width:54px;height:54px}.ebks-whatsapp-icon{width:30px;height:30px}}

@media (max-width: 760px){.ebks-grade-card{min-height:66px}.ebks-grade-icon{width:20px;height:20px}.ebks-cat-icon{width:14px;height:14px}.ebks-mobile-icon .ebks-icon{width:23px;height:23px}.ebks-feature-strip .ebks-icon,.ebks-trust-bar .ebks-icon{width:24px;height:24px}.ebks-account-link>.ebks-icon{width:20px;height:20px}}

@media (max-width:820px){.ebks-hero-product-covers{min-height:145px;gap:8px;padding:8px 0}.ebks-hero-cover{width:62px;height:98px;border-radius:8px}.ebks-hero-cover:nth-child(2){height:112px}.ebks-hero-cover:nth-child(3){height:122px}.ebks-hero-cover:nth-child(4){height:110px}.ebks-hero-cover:nth-child(5){height:96px}.ebks-real-product-section .ebks-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media (max-width:768px){.ebks-gallery-stage{min-height:260px}.ebks-gallery-thumbs{grid-template-columns:repeat(4,minmax(54px,1fr));gap:8px}.ebks-gallery-thumb img{height:52px}.ebks-gallery-main-video{max-height:380px}}
@media (max-width:420px){.ebks-gallery-stage{min-height:220px}.ebks-gallery-thumbs{grid-template-columns:repeat(4,1fr)}.ebks-gallery-thumb{min-height:56px}.ebks-gallery-thumb img{height:46px}}


/* ExamBooks update: consistent 9:16 shop/product cards.
   Keeps the full product card in a portrait bookstore ratio while preserving readable title, price, and buttons. */
.ebks-product-card,
.woocommerce ul.products li.product.ebks-product-card,
.woocommerce-page ul.products li.product.ebks-product-card,
.ebks-shop-main ul.products li.product.ebks-product-card,
.ebks-shop-main .products .ebks-product-card,
.ebks-real-product-section .ebks-product-card{
    display:flex!important;
    flex-direction:column!important;
    aspect-ratio:9 / 16!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
}
.ebks-product-card .ebks-product-image{
    flex:0 0 58%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    border-bottom:1px solid var(--ebks-line);
    background:#eef5ff!important;
}
.ebks-product-card .ebks-product-image img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center top!important;
}
.ebks-product-card .ebks-product-body{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    padding:12px!important;
}
.ebks-product-card .ebks-product-title{
    min-height:0!important;
    margin-bottom:8px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden!important;
}
.ebks-product-card .ebks-product-price{
    margin-top:auto!important;
    margin-bottom:9px!important;
}
.ebks-product-card .ebks-product-actions{
    margin-top:0!important;
}
@media (max-width:820px){
    .ebks-product-card .ebks-product-image{flex-basis:56%!important;}
    .ebks-product-card .ebks-product-body{padding:10px!important;}
}
@media (max-width:420px){
    .ebks-product-card .ebks-product-image{flex-basis:55%!important;}
    .ebks-product-card .ebks-product-body{padding:9px!important;}
    .ebks-product-card .ebks-product-title{font-size:12px!important;line-height:1.25!important;}
    .ebks-product-card .ebks-product-price{font-size:13px!important;margin-bottom:7px!important;}
    .ebks-product-card .ebks-product-actions .button,
    .ebks-product-card .ebks-product-actions .ebks-btn{min-height:32px!important;padding:7px 8px!important;font-size:11px!important;}
}

/* ExamBooks update: show full portrait book covers inside product cards.
   Keeps the card layout, but displays the uploaded cover in a 540:680 style ratio without cropping. */
.ebks-shop-main .ebks-product-card .ebks-product-image,
.ebks-real-product-section .ebks-product-card .ebks-product-image,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-image,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-image{
    flex:0 0 auto !important;
    aspect-ratio:540 / 680 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    background:#ffffff !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
.ebks-shop-main .ebks-product-card .ebks-product-image img,
.ebks-real-product-section .ebks-product-card .ebks-product-image img,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-image img,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-image img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center top !important;
    background:#ffffff !important;
}
.ebks-shop-main .ebks-product-card .ebks-product-body,
.ebks-real-product-section .ebks-product-card .ebks-product-body{
    flex:1 1 auto !important;
}

/* Final override: show the full uploaded book cover inside the product card.
   Remove the forced full-card portrait ratio so the complete cover image can be displayed naturally. */
.ebks-shop-main .ebks-product-card,
.ebks-real-product-section .ebks-product-card,
.woocommerce ul.products li.product.ebks-product-card,
.woocommerce-page ul.products li.product.ebks-product-card,
.ebks-shop-main ul.products li.product.ebks-product-card,
.ebks-shop-main .products .ebks-product-card{
    aspect-ratio:auto !important;
    height:auto !important;
    min-height:0 !important;
}

.ebks-shop-main .ebks-product-card .ebks-product-image,
.ebks-real-product-section .ebks-product-card .ebks-product-image,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-image,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-image{
    flex:0 0 auto !important;
    aspect-ratio:516 / 680 !important;
    width:100% !important;
    height:auto !important;
    background:#fff !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
}

.ebks-shop-main .ebks-product-card .ebks-product-image img,
.ebks-real-product-section .ebks-product-card .ebks-product-image img,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-image img,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-image img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center center !important;
    background:#fff !important;
}

.ebks-shop-main .ebks-product-card .ebks-product-body,
.ebks-real-product-section .ebks-product-card .ebks-product-body{
    flex:0 0 auto !important;
}


/* ExamBooks final product-cover fix:
   The product card image uses the real uploaded book cover ratio (516x680) and full-size attachment.
   This prevents the cover top/bottom from being cut in shop and home product sections. */
.ebks-product-card,
.woocommerce ul.products li.product.ebks-product-card,
.woocommerce-page ul.products li.product.ebks-product-card,
.ebks-shop-main ul.products li.product.ebks-product-card,
.ebks-shop-main .products .ebks-product-card,
.ebks-real-product-section .ebks-product-card{
    aspect-ratio:auto !important;
    height:auto !important;
    min-height:0 !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
}

.ebks-product-card .ebks-product-image,
.ebks-shop-main .ebks-product-card .ebks-product-image,
.ebks-real-product-section .ebks-product-card .ebks-product-image,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-image,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-image{
    flex:0 0 auto !important;
    width:100% !important;
    aspect-ratio:516 / 680 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    background:#ffffff !important;
    padding:0 !important;
    display:block !important;
    overflow:hidden !important;
    border-bottom:1px solid var(--ebks-line);
}

.ebks-product-card .ebks-product-image img,
.ebks-product-card .ebks-product-image .attachment-full,
.ebks-product-card .ebks-product-image .ebks-full-cover-img,
.ebks-shop-main .ebks-product-card .ebks-product-image img,
.ebks-real-product-section .ebks-product-card .ebks-product-image img,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-image img,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-image img{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center center !important;
    background:#ffffff !important;
    display:block !important;
}

.ebks-product-card .ebks-product-body,
.ebks-shop-main .ebks-product-card .ebks-product-body,
.ebks-real-product-section .ebks-product-card .ebks-product-body{
    flex:1 1 auto !important;
}

/* Hide the old generated homepage subtitle even if it already exists in Elementor JSON. */
.ebks-section-head p:empty{display:none!important;}

/* Final shop/catalog cover fix:
   match the single-product cover presentation as closely as possible in product grids. */
.ebks-shop-main .ebks-product-card,
.ebks-real-product-section .ebks-product-card,
.woocommerce ul.products li.product.ebks-product-card,
.woocommerce-page ul.products li.product.ebks-product-card,
.woocommerce ul.products li.product.product-type-simple.ebks-product-card,
.woocommerce-page ul.products li.product.product-type-simple.ebks-product-card{
    display:flex !important;
    flex-direction:column !important;
    aspect-ratio:auto !important;
    height:auto !important;
    min-height:0 !important;
    overflow:hidden !important;
}

.ebks-shop-main .ebks-product-card .ebks-product-image,
.ebks-real-product-section .ebks-product-card .ebks-product-image,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-image,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-image{
    display:block !important;
    width:100% !important;
    aspect-ratio:516 / 680 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    background:#f4f8ff !important;
    border-bottom:1px solid var(--ebks-line) !important;
    overflow:hidden !important;
    position:relative !important;
}

.ebks-shop-main .ebks-product-card .ebks-product-image img,
.ebks-real-product-section .ebks-product-card .ebks-product-image img,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-image img,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-image img,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-image .ebks-full-cover-img,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-image .ebks-full-cover-img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center center !important;
    background:#f4f8ff !important;
}

.ebks-shop-main .ebks-product-card .ebks-product-body,
.ebks-real-product-section .ebks-product-card .ebks-product-body,
.woocommerce ul.products li.product.ebks-product-card .ebks-product-body,
.woocommerce-page ul.products li.product.ebks-product-card .ebks-product-body{
    flex:1 1 auto !important;
    display:flex !important;
    flex-direction:column !important;
}

.ebks-shop-main .ebks-product-card .ebks-product-title,
.ebks-real-product-section .ebks-product-card .ebks-product-title{
    min-height:44px !important;
}

.ebks-shop-main .ebks-product-card .ebks-product-price,
.ebks-real-product-section .ebks-product-card .ebks-product-price{
    margin-top:auto !important;
}
