/* BooksByBSF additions on top of the template's main.css */

/* product card */
.product-card.product-disable .product-image img { filter: grayscale(1); opacity: .7; }
.product-card .product-add[disabled] { cursor: not-allowed; opacity: .7; }
.product-card .product-label { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.product-card .product-name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-publisher { font-size: 13px; font-weight: 400; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .product-price small { display: block; font-size: 12px; font-weight: 400; color: var(--gray, #6b6b6b); }
.product-wish.active i { color: #e8412c; }

/* header search suggestions */
.header-form { position: relative; }
.header-form .search-suggestions { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,.12); }
.header-form .search-suggestions a { display: block; padding: 8px 16px; color: #39404a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-form .search-suggestions a:hover { background: #f5f5f5; color: #119744; }

/* site wide notice from basicProperties.headerMessage */
.header-message { background: #ff8a00; color: #fff; font-size: 14px; padding: 6px 0; text-align: center; }

/* empty states */
.empty-state { text-align: center; padding: 40px 15px; }
.empty-state img { max-width: 320px; width: 100%; margin-bottom: 20px; }
.empty-state h4 { margin-bottom: 15px; }

/* menus */
.megamenu .megamenu-scroll { max-height: 70vh; overflow-y: auto; }
.megamenu .megamenu-wrap { margin-bottom: 20px; }
.category-list .dropdown-group-title { font-size: 12px; font-weight: 600; text-transform: uppercase; color: #119744; padding: 8px 0 4px; }

/* author / publisher / series / examination header */
.entity-header { padding-top: 30px; }
.entity-card { display: flex; gap: 30px; align-items: center; background: #fff; border-radius: 8px; padding: 25px; }
.entity-card img { width: 160px; max-height: 200px; object-fit: contain; flex-shrink: 0; }
.entity-card h1 { font-size: 28px; margin-bottom: 10px; }
.entity-description { font-size: 15px; line-height: 1.7; }
@media (max-width: 575px) { .entity-card { flex-direction: column; text-align: center; } }
.shop-part { padding-top: 30px; }
.entity-tile { display: block; }
.entity-tile .category-media img { height: 150px; object-fit: contain; }
.entity-tile .category-meta h4 { font-size: 15px; }
.section-subheading { font-size: 22px; margin: 10px 0 20px; }

/* all categories page */
.category-block { background: #fff; border-radius: 8px; padding: 20px 25px; margin-bottom: 20px; }
.category-block .section-subheading { margin-top: 0; }
.category-block-title { font-size: 13px; text-transform: uppercase; color: #119744; margin: 10px 0 8px; }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.category-chips a { display: inline-block; padding: 6px 14px; border: 1px solid #e8e8e8; border-radius: 20px; font-size: 14px; color: #39404a; }
.category-chips a:hover { background: #119744; border-color: #119744; color: #fff; }

/* oldy goldy */
.oldy-goldy-intro { display: flex; gap: 25px; align-items: center; background: #fff; border-radius: 8px; padding: 20px; }
.oldy-goldy-intro img { max-width: 260px; width: 40%; }
@media (max-width: 575px) { .oldy-goldy-intro { flex-direction: column; } .oldy-goldy-intro img { width: 100%; } }

/* cart / checkout / account */
label.profile-card, a.profile-card { display: block; cursor: pointer; color: inherit; }
.profile-card h6 small { font-weight: 400; color: #6b6b6b; margin-left: 6px; }
.profile-card .delivery-estimate { font-size: 13px; color: #119744; margin-top: 6px; }
.sod-note { color: #e86f00; }
.coupon-message { margin-top: 8px; font-weight: 600; }
.checkout-proced { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.table-list .table-name small { display: block; color: #6b6b6b; }
.table-list .table-image img { width: 60px; }
.table-list .product-action { justify-content: center; }
.payment-summary li p { text-align: right; }
.payment-failed { background: #fff1f0; }
.account-title .btn-sm { padding: 6px 14px; font-size: 13px; }

/* search page (instantsearch widgets) */
.search-part .ais-SearchBox-form { display: flex; gap: 6px; }
.search-part .ais-SearchBox-input, .search-part .ais-RangeInput-input, .search-part .ais-SearchBox-input:focus { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #e8e8e8; border-radius: 6px; }
.search-part .ais-SearchBox-submit, .search-part .ais-SearchBox-reset { display: none; }
.search-part .ais-RangeInput-form { display: flex; gap: 6px; align-items: center; }
.search-part .ais-RangeInput-submit, .search-part .ais-ClearRefinements-button { padding: 6px 14px; border-radius: 6px; background: #119744; color: #fff; }
.search-part .ais-ClearRefinements-button--disabled { opacity: .5; }
.search-part .ais-RefinementList-item { padding: 4px 0; font-size: 14px; }
.search-part .ais-RefinementList-count { margin-left: 6px; font-size: 12px; color: #6b6b6b; }
.search-part .ais-RefinementList-searchBox input { width: 100%; height: 34px; padding: 0 10px; margin-bottom: 8px; border: 1px solid #e8e8e8; border-radius: 6px; }
.search-part .ais-RefinementList-showMore { font-size: 13px; color: #119744; margin-top: 6px; }
.search-part .search-stats { margin-bottom: 15px; color: #6b6b6b; }
.search-part .ais-Hits-list { margin: 0; padding: 0; list-style: none; }
.search-part .ais-Pagination-list { display: flex; justify-content: center; gap: 6px; margin-top: 25px; list-style: none; }
.search-part .ais-Pagination-link { display: block; min-width: 38px; padding: 8px 12px; text-align: center; border-radius: 6px; background: #fff; }
.search-part .ais-Pagination-item--selected .ais-Pagination-link { background: #119744; color: #fff; }

/* text pages */
.content-page { background: #fff; border-radius: 8px; padding: 30px; font-size: 16px; line-height: 1.8; text-align: justify; }
.content-page p { margin-bottom: 18px; }
.content-intro { display: flex; gap: 30px; align-items: center; background: #fff; border-radius: 8px; padding: 30px; }
.content-intro img { width: 35%; max-width: 360px; }
.content-intro h3 { margin-bottom: 12px; }
.content-intro h5 { margin: 15px 0 8px; }
.content-list { list-style: disc; padding-left: 20px; margin-bottom: 15px; }
.content-list li { margin-bottom: 6px; }
@media (max-width: 767px) { .content-intro { flex-direction: column; } .content-intro img { width: 100%; } .content-page { padding: 20px; } }
.contact-branches { background: #fff; border-radius: 8px; padding: 30px; height: 100%; }
.contact-branches li { padding: 6px 0; }
.contact-branches li i { color: #119744; margin-right: 6px; }
.error-search { display: flex; gap: 8px; max-width: 480px; margin: 20px auto 0; }

/* book sliders */
.book-slider .slick-slide { padding: 0 8px; }
.book-slider .product-card { margin-bottom: 0; }
.book-slider:not(.slick-initialized) { display: flex; gap: 16px; overflow: hidden; }
.book-slider:not(.slick-initialized) > li { flex: 0 0 calc(20% - 13px); }

/* product page */
.product-detail-part { padding-top: 40px; }
.details-content h1.details-name { font-size: 26px; line-height: 1.35; margin-bottom: 12px; }
.details-price .details-save { font-size: 14px; color: #119744; margin-left: 10px; font-weight: 500; }
.details-shipping { margin-bottom: 8px; }
.details-stock { font-weight: 600; margin-bottom: 15px; }
.details-stock-available { color: #119744; }
.details-stock-sod { color: #e86f00; }
.details-stock-soldout { color: #e8412c; }
.details-notice { display: block; background: #fff8e6; border-left: 4px solid #ff8a00; padding: 10px 14px; margin-bottom: 15px; border-radius: 4px; color: #39404a; }
.details-content .details-add-group .product-add, .details-content .details-add-group .product-action { max-width: 320px; }
.details-action-group { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 20px; }
.details-buy { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 8px; background: #ff8a00; color: #fff; font-weight: 600; text-transform: capitalize; }
.details-buy:hover { color: #fff; opacity: .9; }
.details-wish.active i { color: #e8412c; }
.details-pincode { margin-bottom: 20px; max-width: 420px; }
.details-pincode label { font-weight: 600; margin-bottom: 6px; display: block; }
.details-pincode > div { display: flex; gap: 8px; }
.details-pincode #deliveryStatus { margin-top: 8px; font-size: 14px; color: #119744; }
.details-share-list a { font-size: 20px; }
.recommendation-part .section-heading h2 { text-transform: capitalize; }

/* home page */
.home-section-heading { display: flex; justify-content: space-between; align-items: center; }
.home-section-heading a { font-weight: 500; color: #119744; text-transform: capitalize; }
.suggest-card h5 { text-align: center; margin-top: 8px; font-size: 15px; }
.home-books-part { padding-top: 0; }
