/* BookHaven v4 — mobile-first responsive refinements */
@media (max-width:1199.98px){
  .container-custom{padding-left:20px!important;padding-right:20px!important}
  .nav-secondary .navbar-nav{padding-top:.65rem}
  .product-img-wrapper img{height:235px}
}

@media (max-width:991.98px){
  .header-top-bar,.announcement-bar{font-size:.72rem}
  .header-top-bar .container>div:first-child{display:none!important}
  .main-navbar,.main-header{padding:.7rem 0!important}
  .main-navbar .row,.main-header .row{row-gap:.65rem!important}
  .search-wrapper{width:100%;padding-left:12px}
  .nav-secondary{padding:.45rem 0}
  .nav-secondary .navbar-collapse{padding:.65rem 0 .3rem}
  .nav-secondary .nav-link{padding:.65rem .25rem!important}
  #catalogFilterForm{position:static!important}
  .trust-strip{grid-template-columns:repeat(2,1fr)}
  .hero-slide-curved{min-height:440px}
  .hero-product-img-curved{max-height:260px}
  .offcanvas{max-width:92vw}
}

@media (max-width:767.98px){
  :root{--radius-lg:16px}
  body{font-size:.95rem}
  .container-custom{padding-left:15px!important;padding-right:15px!important}
  .header-top-bar,.announcement-bar{overflow:hidden}
  .header-top-bar .container,.announcement-bar .container{white-space:nowrap;gap:.5rem}
  .header-top-bar .container>div:last-child,.announcement-bar .container>div:last-child{gap:.8rem!important;overflow-x:auto;scrollbar-width:none}
  .header-top-bar .container>div:last-child::-webkit-scrollbar,.announcement-bar .container>div:last-child::-webkit-scrollbar{display:none}
  .brand-logo-title,.brand-title{font-size:1.15rem!important}
  .action-btn{padding:7px 9px!important}
  .search-category-select,.search-type-select{display:none!important}
  .search-input{font-size:16px!important;min-width:0}
  .btn-search{width:36px!important;height:36px!important;flex:0 0 36px}
  .hero-section{padding:14px 0!important}
  .hero-slide-curved{min-height:520px;text-align:center}
  .hero-slide-curved .row{padding:1.5rem!important}.hero-slide-curved .display-5{font-size:2rem}.hero-product-img-curved{max-height:220px;margin-top:1rem}
  .section-title{font-size:1.45rem!important}
  .product-card{border-radius:14px!important}.product-img-wrapper{min-height:180px}.product-img-wrapper img{height:210px}.product-body{padding:.78rem}.product-title{font-size:.9rem!important;line-height:1.35}.product-category{font-size:.68rem!important}.current-price{font-size:1rem!important}.original-price{font-size:.78rem!important}
  .product-card .btn-add-cart,.product-card .btn-add-cart-sellzy{font-size:.78rem!important;padding:.55rem .65rem!important}
  .product-actions{top:8px!important;right:8px!important}.btn-action{width:32px!important;height:32px!important}
  .results-toolbar{align-items:flex-start;flex-direction:column}.results-toolbar h1,.results-toolbar h2{font-size:1.55rem}
  .cart-responsive-table{overflow-x:auto;-webkit-overflow-scrolling:touch}.cart-responsive-table table{min-width:720px}
  .wishlist-card{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.wishlist-table{min-width:820px!important}
  .footer .row>div{margin-bottom:.5rem}.footer form.d-flex{flex-direction:column}.footer form .btn{width:100%}
  .trust-strip{grid-template-columns:1fr}.trust-item{padding:.85rem}
  .modal-dialog{margin:.75rem}.modal-body{padding:1rem!important}
}

@media (max-width:575.98px){
  .container-custom{padding-left:12px!important;padding-right:12px!important}
  .main-navbar .col-6,.main-header .col-6{width:50%}
  .main-navbar .col-12,.main-header .col-12{width:100%}
  .header-actions{gap:.2rem!important}.action-btn .fs-xs{display:none!important}
  .hero-slide-curved{min-height:480px}.hero-slide-curved .display-5{font-size:1.75rem}.hero-slide-curved .lead{font-size:.95rem}
  .product-img-wrapper{min-height:160px}.product-img-wrapper img{height:185px}
  .product-body{padding:.68rem}.product-card .text-warning{font-size:.66rem!important}
  .format-option{min-width:calc(50% - .25rem);padding:.65rem}
  #detailAddToCartBtn{font-size:.92rem;padding:.72rem 1rem}.input-group[style*="120px"]{width:105px!important}
  .offcanvas{width:92vw!important}
  .pagination{flex-wrap:wrap;gap:.2rem}.page-link{border-radius:8px!important}
  .btn{min-height:38px}
}

@media (max-width:374.98px){
  .brand-logo-title,.brand-title{font-size:1rem!important}.product-img-wrapper img{height:165px}.product-title{font-size:.84rem!important}.product-card .btn-add-cart,.product-card .btn-add-cart-sellzy{font-size:.72rem!important}.header-actions .action-btn{padding:6px!important}
}
