/* ===== RESPONSIVE ===== */

/* Desktop: hide mobile-only */
.mobile-only { display: none !important; }
/*991*/
@media (max-width: 991px) {
.header-nav { display: none; }
.hero-side-banners {  flex-direction: unset; margin-top: 2rem}
.hero-cat-slot { display: none; }
.mobile-search-bar { display: block; }
.side-banner-title{
  font-size: 2.2rem;
} 

.book-catalog-shopping{padding: 0;}
.book-section__img-box{
  height: 18rem;
}

.books-catalog__mobile-filter-btn {
    display: flex;
}

.books-catalog__sidebar-desktop-col {
    display: none;
}

.product-detail { padding: 4rem 4%; }
.product-detail__info { padding-left: 0; margin-top: 2.4rem; }
.product-detail__image-col { position: static; }

section{
  padding: 3rem 5%!important;
}

.hero-section{
  padding: 2.5rem 5%!important;
}

.hm-search-wrap { display: none; }
.hm-lang { display: none; }
.hm-icon-btn.user-icon-btn { display: none; }
.mobile-only { display: flex !important; }
/*.desktop-only { display: none !important; }*/
.hero-section { padding:1rem 3% 0 }
/* On tablet/mobile: single column, no grid */
.hero-row {
  display: block;
  height: 100%!important;
}
.hero-banner {
  width: 100%;
  height: 32rem;
}
.banner-title { font-size: 2.8rem; }
.order-detail-section__summary-card {
  position: static;
  margin-top: 1.6rem;
}

.my-account__mobile-toggle { display: block; }
  .my-account__overlay { display: block; }
  .my-account__sidebar {
    position: fixed; top: 0; left: 0;
    height: 100vh; width: 28rem;
    border-radius: 0; z-index: 999;
    transform: translateX(-110%);
    z-index: 1111;
    overflow-y: auto;
  }
  .my-account__sidebar.open { transform: translateX(0) !important; }
  .my-account__layout { gap: 0; }

  .bookshop-featured__offer-card { min-height: 52rem; }
  .bookshop-featured__banner-wrap { height: 16rem; }
  .bookshop-featured__right-col { margin-top: 2.4rem; }

  .contact-us__info-panel {
    padding: 4rem 3rem;
    height: auto;
  }

  .contact-us__form-panel {
    padding: 4rem 3rem;
  }

  .faq-section__left {
    padding-right: 0;
    margin-bottom: 4rem;
    text-align: center;
  }

  .faq-section__subtext {
    margin: 0 auto;
  }

  .faq-section__stats {
    justify-content: center;
  }

  .faq-section__contact-card {
    text-align: left;
  }

  .faq-section__heading {
    font-size: 3.8rem;
  }

  
}

/*768*/
@media (max-width: 767px) {
html { font-size: 58%; }
.hm-logo { font-size: 2.4rem; }
.hero-row { height: 26rem; }
.hero-banner { height: 26rem; }
.banner-title { font-size: 2.6rem; max-width: 28rem}
.books-breadcrumb-header__title {
    font-size: 2.4rem;
}

.banner-arrow{
  display: none;
}

.books-catalog-section {
    padding: 3rem 4%;
}

.book-catalog-shopping__toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.book-catalog-shopping__toolbar-right {
    width: 100%;
}

.book-catalog-shopping__sort-select {
    flex: 1;
    min-width: 0;
}

.order-detail-section { padding: 4rem 4%; }
.order-detail-section__card { padding: 2.2rem; }
.order-detail-section__payment-methods-list { display: none; }
.order-detail-section__topbar { padding: 1.2rem 4%; }

.product-detail { padding: 2.8rem 3%; }
.product-detail__card { padding: 2rem 1.6rem; }
.product-detail__title { font-size: 1.9rem; }
.product-detail__price { font-size: 2.4rem; }
.product-detail__cta-row { flex-wrap: wrap; }
.product-detail__btn-cart,
.product-detail__btn-buy { flex: 1 1 100%; }
/*.product-detail__btn-wish { width: 100%; height: 4.4rem; }*/

.my-account__header-title { font-size: 2rem; }
  .my-account__profile-cover { height: 10rem; }
  .my-account__profile-avatar { width: 6.4rem; height: 6.4rem; }
  .my-account__profile-info { margin-top: -3rem; padding: 0 1.6rem 1.6rem; gap: 1.2rem; }
  .my-account__info-card-body { padding: 1.6rem; }
  .ma-popup__body { padding: 1.6rem; }
  .ma-popup__footer { padding: 1.2rem 1.6rem 1.8rem; }
  .ma-popup__head { padding: 1.6rem 1.6rem 1.4rem; }

  .mo-modal,
  .od-modal { border-radius: 1.4rem; }


  /* my-orders */
  .order-section__page-title    { font-size: 2.2rem; }
  .order-section__card-bar      { padding: 1.2rem 1.6rem; }
  .order-section__card-body     { padding: 1.4rem 1.6rem; }
  .order-section__card-footer   { padding: 1.2rem 1.6rem; }
  .order-section__tracker       { padding: 1.4rem 1.6rem 0.8rem; }
  .order-section__card-bar-meta { gap: 1.4rem; }
  .order-section__tracker-label { font-size: 0.95rem; }
  .order-section__summary-item  { padding: 1.4rem 1.6rem; }
  .order-section__tabs .nav-tabs .nav-link { padding: 0.7rem 1.2rem; font-size: 1.2rem; }

  /* order-detail */
  .order-detail__page-title    { font-size: 2rem; }
  .order-detail__two-col       { grid-template-columns: 1fr; }
  .order-detail__help-grid     { grid-template-columns: 1fr 1fr; }
  .order-detail__card-body     { padding: 1.6rem; }
  .order-detail__card-header   { padding: 1.2rem 1.6rem; }
  .order-detail__actions-bar   { padding: 1.2rem 1.6rem; }
  .order-detail__tracker-label { font-size: 0.95rem; }

  /* track modal */
  .mo-track__info-group { flex: 1 1 45%; }

  .bookshop-featured__cards-grid { grid-template-columns: 1fr; }
  .bookshop-featured__tab-btn { font-size: 1.4rem; padding: 1.4rem 1.2rem 1.2rem; }
  .bookshop-featured__offer-img { width: 11rem; height: 14rem; }

  .contact-us__info-panel {
    padding: 3.5rem 2.5rem;
    height: auto;
  }

  .contact-us__form-panel {
    padding: 3.5rem 2.5rem;
  }

  .contact-us__submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/*480*/
@media (max-width: 480px) {
.sidebar-panel { max-width: 100vw; }
.hero-side-banners {  }
.hero-row { height: 22rem; }

.book-catalog-shopping__school-card-thumb {
    width: 12rem;
    height: 10rem;
}

.book-catalog-shopping__school-card {
    width: 12rem;
}

.book-catalog-shopping__card-col {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.order-detail-section { padding: 3rem 3%; }

.product-detail__main-image-wrap { min-height: 28rem; padding: 2rem; }
.product-detail__main-img { max-width: 16rem; }

.ods-success-modal .modal-dialog { margin: 1rem; }
.ods-success-modal__header { padding: 2.4rem 2rem 2rem; }
.ods-success-modal__body { padding: 2rem; }
.ods-success-modal__footer { padding: 0 2rem 2rem; }

.mo-modal__header,
  .od-modal__header { padding: 1.6rem 1.8rem 1.2rem; }

  .mo-modal__body,
  .od-modal__body { padding: 1.6rem 1.8rem; }

  .mo-modal__footer,
  .od-modal__footer { padding: 1.2rem 1.8rem 1.6rem; }

  /* my-orders */
  .order-section__product-name      { white-space: normal; }
  .order-section__card-bar-actions  { width: 100%; }
  .order-section__footer-actions    { width: 100%; }
  .order-section__footer-actions .order-section__btn { flex: 1; justify-content: center; }
  .order-section__summary-item      { flex: 1 1 40%; border-right: none; border-bottom: 1px solid #e4e7f0; }
  .order-section__summary-item:last-child { border-bottom: none; }

  /* order-detail */
  .order-detail__help-grid         { grid-template-columns: 1fr; }
  .order-detail__product-name      { font-size: 1.35rem; }
  .order-detail__actions-right     { width: 100%; }
  .order-detail__actions-right .order-detail__btn { flex: 1; justify-content: center; }
  .order-detail__reorder-banner    { flex-direction: column; align-items: flex-start; }
  .order-detail__courier-tracking  { flex-wrap: wrap; }

  .bookshop-featured__timer-box { width: 4.2rem; height: 4rem; font-size: 1.7rem; }
  .bookshop-featured__timer-sep { font-size: 1.6rem; }

  .book-shop-section .book-shop-img-box { height: 22rem; }

  .contact-us__form-panel {
      padding: 3rem 2rem;
    }

    .contact-us__info-panel {
      padding: 3rem 2rem;
    }

    .faq-accordion .accordion-button {
      font-size: 1.45rem;
      padding: 1.6rem 1.6rem;
    }

    .faq-accordion .accordion-body {
      padding: 0 1.6rem 1.6rem 1.6rem;
      font-size: 1.4rem;
    }
}



/* Overlay on mobile for menu */
.mob-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mob-overlay.show { opacity: 1; pointer-events: all; }

/* Language select */
.hm-lang select {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: #444;
  cursor: pointer;
  outline: none;
}

/*Media quaries*/
@media screen and (max-width: 991px){
html{
    font-size: 55%;
}

.footer_section .footer_newsletter_row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer_section .footer_newsletter_form {
    width: 100%;
    max-width: 100%; flex-wrap: wrap;
  }

  .footer_section .footer_bottom_bar {
      flex-direction: column;
      align-items: flex-start;
    }

    .hero-row,
      .hero-banner {
        margin-top: 0 !important;
      }

      .web-detail-section__support-box{display: none;}
}

@media screen and (max-width: 1280px){ 
   .category-bar-section__circle {
      width: 12rem;
      padding-bottom: 0;
      height: 12rem;
    }
    .category-bar-section__card {
      width: 13rem;
      max-width: 14.5rem;
    }

    .cart-section__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
 .category-bar-section__scroll-wrapper {
    overflow-x: visible;
  }
  
  .category-bar-section__row {
    min-width: unset;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .category-bar-section__card {
    width: auto;
    flex: 1 1 0;
    max-width: 14rem;
  }
  .category-bar-section__circle {
    
  }
  .category-bar-section__icon-bubble {
    width: 4rem;
    height: 4rem;
    background: transparent;
  }

  .book-section__arrow--prev { left: -1.4rem; }
  .book-section__arrow--next { right: -1.4rem; }

  .cart-section__layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 860px) {

}

@media screen and (max-width: 768px){
  .heading-section__heading { font-size: 2.4rem; }

  .book-section__header { flex-direction: column; align-items: flex-start; }
/*  .book-section__img-box { height: 18rem; }*/
  .book-section__arrow--prev { left: -0.4rem; }
  .book-section__arrow--next { right: -0.4rem; }

  .heading-inner {
    flex-wrap: wrap;
    row-gap: 1.6rem;
    align-items: flex-start;
  }
  .title-block { width: 100%; }

  .tabs-wrapper { width: 100%; overflow-x: auto; }

  #v1-tabs.nav-tabs { width: max-content; }

  .see-more-btn { width: 100%; justify-content: center; }

  .about-us__address-links { margin-left: 0; }
  .search-terms__grid { grid-template-columns: 1fr; }

  .book-shop-icon-btn {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition-delay: 0s !important;
  }

  .about-us__hero-title {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 650px){ 
  .login-section__body { padding: 2.8rem 2.2rem 3rem; }
  .login-section__heading { font-size: 2.1rem; }

  .wishlist-section__heading { font-size: 2.2rem; }
  .wishlist-section__summary { padding: 1.8rem 2rem; }
  .wishlist-section__summary-total { font-size: 2rem; }

  .cart-section__heading { font-size: 2.3rem; }

  .book-section__add-btn span{display: none;}
  .books-catalog__mobile-filter-btn{ font-size:1.6rem ;}
  .books-catalog__mobile-filter-btn img{
    width: 18px;
  }

  .side-banner-title{
    font-size: 1.6rem;
    max-width: 170px;
  }

  .book-section__img-box{
    height: 16rem;
  }

  .book-section__book-title{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 140px;
  }

  .my-account__sidebar { width: 85vw; max-width: 30rem; }
  .ma-popup__address-item { flex-direction: column; }
  .ma-popup__address-actions { width: 100%; justify-content: flex-end; }
  .my-account__info-block-actions { gap: 0.8rem; }
/*
  .category-bar-section__row {
    min-width: unset;
    flex-wrap: wrap;
  }*/

  .category-bar-section__card {
/*    width: auto;*/
    flex: 1 1 0;
/*    max-width: 14rem;*/
  }
/*
  .category-bar-section__row{
    align-items: start; justify-content: center;
  }*/

  .category-bar-section__card{
    max-width: 100%;
  }
  
  .category-bar-section__card{
    min-width: auto;
  }
}

@media screen and (max-width: 480px){
html{
    font-size: 50%;
}

.heading-section__heading { font-size: 2rem; }
.heading-section__tabs-wrapper {
      width: 100%;
      justify-content: center;
  }
  .heading-section__tab-btn {
      font-size: 1.2rem;
      padding: 0.8rem 1.2rem;
      gap: 0.5rem;
  }
  .heading-section__tab-btn i {
      display: none;
  }

  .book-section__book-title2 { font-size: 1.25rem; font-size: 1.25rem;
        width: 100px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden; }
  .book-section__price { font-size: 1.6rem; }

/*  .title-main { font-size: 2rem; }*/
/*      .title-subtitle { font-size: 1rem; }*/
/*      #v1-tabs .nav-link { font-size: 1.3rem; }*/

      .brand-slider { padding: 4rem 5%; }
    .brand-slider__card { min-width: 11rem; max-width: 11rem; padding: 1.2rem 1.4rem; }
    .brand-slider__logo-wrap { width: 5.5rem; height: 3rem; }
}


/*MIN*/
@media (min-width: 992px) {
  /* On desktop, both cols fill the row height equally */
  .bookshop-featured__left-col,
  .bookshop-featured__right-col {
    height: 100%;
  }
}