/* your custom style goes here */
.fixed-button {
  background-color: #0a0a0a;
  color: #FFFFFF;
  border: none;
  outline: none;
  position: fixed;
  top: 40%;
  left: 0px;
  height: 150px;
  width: 30px; /* ends at the search bar's left border (header padding is 30px) */
  padding: 0;
  /*margin-bottom: 20px;*/
 -webkit-border-top-right-radius: 10px;
 -webkit-border-bottom-right-radius: 10px;
 -moz-border-radius-topright: 10px;
 -moz-border-radius-bottomright: 10px;
 border-top-right-radius: 10px;
 border-bottom-right-radius: 10px;
 box-shadow: -1px 3px 5px #888888;
 z-index:99999;
}
.fixed-button h2 {
    width:150px;
    display:inline-block;
    position:absolute;
    left:-60px; /* (30px button - 150px text box) / 2: centred once rotated */
    margin:0;
    line-height:1;
    -webkit-transform:rotate(-90deg);
    transform:rotate(-90deg);
    font-size:16px;
    top:67px;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}
@keyframes wobble {
  16.65% {
    -webkit-transform: translateY(8px);
    -ms-transform: translateY(8px);
    transform: translateY(8px);
  }
  33.3% {
    -webkit-transform: translateY(-6px);
    -ms-transform: translateY(-6px);
    transform: translateY(-6px);
  }
  49.95% {
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
  }
  66.6% {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
  }
  83.25% {
    -webkit-transform: translateY(1px);
    -ms-transform: translateY(1px);
    transform: translateY(1px);
  }
  100% {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
}

.wobble {
  -webkit-animation-name: wobble;
  animation-name: wobble;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}
@media (min-width: 576px){
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

@media (min-width: 992px){
    .modal-lg, .modal-xl {
        max-width: 800px;
    }
}    
@media (min-width: 1200px){
    .modal-xl {
        max-width: 1140px;
    }
}    
/* ---------- Header ---------- */

/* Wider header: less empty space on the left and right */
.header-container {
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}
@media (max-width: 991px) {
    .header-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Top strip */
.top-navbar {
    background: linear-gradient(90deg, #2f3433 0%, #4a4f4e 55%, #5b5f5e 100%);
    border-bottom: 2px solid #8c8c8c;
    font-size: 13px;
}
.top-navbar .inline-links-left {
    padding: 9px 0;
}
.top-navbar .inline-links-left > li:not(:last-of-type) {
    margin-right: 24px;
}
.top-navbar .inline-links-left > li > a {
    color: #fff;
    letter-spacing: .2px;
    transition: color .2s;
}
.top-navbar .inline-links-left > li > a:hover {
    color: #8c8c8c;
}
.top-navbar .top-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #8c8c8c;
    font-size: 12px;
}
.top-navbar .inline-links-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 6px 0;
}
.top-navbar .inline-links-right > li {
    display: flex;
    align-items: center;
}
.top-navbar .inline-links-right > li:not(:last-of-type) {
    margin-right: 10px;
}

/* Login / Registration buttons */
.top-navbar .top-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: all .2s;
}
.top-navbar .top-bar-btn-outline,
.top-navbar .inline-links-right > li > a.top-bar-btn-outline {
    background: transparent;
    color: #fff;
}
.top-navbar .top-bar-btn-outline:hover,
.top-navbar .inline-links-right > li > a.top-bar-btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: #2f3433;
}
.top-navbar .top-bar-btn-solid,
.top-navbar .inline-links-right > li > a.top-bar-btn-solid {
    background: #fff;
    border-color: #fff;
    color: #2f3433;
}
.top-navbar .top-bar-btn-solid:hover,
.top-navbar .inline-links-right > li > a.top-bar-btn-solid:hover {
    background: #8c8c8c;
    border-color: #8c8c8c;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

/* Social icons */
.top-navbar .top-bar-sa {
    margin-left: 4px;
}
.top-navbar .top-bar-sa .top-bar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transition: all .2s;
}
.top-navbar .top-bar-sa .top-bar-item:hover {
    background: #8c8c8c;
    color: #fff;
}

/* Full-width search bar below the logo */
@media (min-width: 992px) {
    .logo-bar-area .header-search {
        margin-top: 14px;
    }
    .header-search input[type="text"] {
        height: 46px;
        padding-left: 20px;
        font-size: 14px;
        border-radius: 23px 0 0 23px;
        border-color: #cbcbcb;
    }
    .header-search input[type="text"]:focus {
        outline: none;
        border-color: #5b5f5e;
    }
    .header-search button {
        width: 64px;
        height: 46px;
        padding-left: 0;
        border-radius: 0 23px 23px 0;
        font-size: 24px;
    }
}

/* Currency dropdown */
.top-navbar .currency-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s;
}
.top-navbar .currency-toggle:hover,
.top-navbar .show > .currency-toggle {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}
.top-navbar .currency-toggle .currency-symbol {
    color: #8c8c8c;
}
.top-navbar .currency-toggle::after {
    margin-left: 2px;
}
.top-navbar .dropdown-menu.currency-menu {
    min-width: 240px;
    margin-top: 8px;
    padding: 6px;
    background: #fff;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.top-navbar .dropdown-menu.currency-menu.show {
    transform: translateY(0);
}
.top-navbar .currency-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}
.top-navbar .currency-menu .currency-menu-title {
    padding: 6px 10px 8px;
    color: #8a8f8e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.top-navbar .currency-menu .dropdown-item,
.top-navbar .currency-menu .dropdown-item:hover,
.top-navbar .currency-menu .dropdown-item.active {
    padding: 0;
    background: transparent;
}
.top-navbar .currency-menu .dropdown-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #2f3433;
    font-size: 14px !important;
    transition: background .15s;
}
.top-navbar .currency-menu .dropdown-item a:hover {
    background: #f1f3f3;
    color: #2f3433;
}
.top-navbar .currency-menu .dropdown-item.active a {
    background: #f0f0f0;
    color: #2f3433;
    font-weight: 600;
}
.top-navbar .currency-menu .currency-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef0f0;
    color: #4a4f4e;
    font-weight: 700;
}
.top-navbar .currency-menu .dropdown-item.active .currency-symbol {
    background: #8c8c8c;
    color: #fff;
}
.top-navbar .currency-menu .currency-name {
    flex: 1;
}
.top-navbar .currency-menu .currency-check {
    color: #555555;
    font-size: 13px;
}

/* Sticky header: pin to the top regardless of header height */
.logo-bar-area.sm-fixed-top {
    top: 0;
    transform: none;
    padding: 8px 0;
    animation: header-slide-down .3s ease-out;
}
.logo-bar-area.sm-fixed-top .navbar-brand img {
    max-height: 60px;
}
.logo-bar-area.sm-fixed-top .header-search {
    margin-top: 8px;
}
@keyframes header-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* Homepage intro text below the slider */
#section_flash_text {
    padding: 4px 0 8px;
}
#section_flash_text .home-flash-text {
    max-width: 1100px;
    margin: 0 auto 6px;
    color: #444;
    font-size: 17px;
    line-height: 1.55;
    text-align: center;
}
#section_flash_text .home-flash-text:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #2f3433;
}
@media (max-width: 767px) {
    #section_flash_text .home-flash-text {
        font-size: 15px;
    }
}

/* Testimonials: continuous scrolling strip */
.testi-marquee {
    overflow: hidden;
    padding: 6px 0 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.testi-track {
    display: flex;
    width: max-content;
    animation: testi-scroll var(--testi-duration, 32s) linear infinite;
}
.testi-marquee:hover .testi-track {
    animation-play-state: paused;
}
@keyframes testi-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--testi-shift, -50%)); }
}
.testi-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 360px;
    margin-right: 24px; /* margin (not gap) keeps every copy the same width so the loop is seamless */
    padding: 22px 24px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    color: #555;
    text-align: left;
    white-space: normal;
}
.testi-card .testi-quote {
    font-size: 30px;
    color: #8c8c8c;
    opacity: .8;
    margin-bottom: 10px;
}
.testi-card .testi-text {
    flex: 1;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #666;
}
.testi-card .testi-author {
    padding-top: 12px;
    border-top: 1px solid #ececec;
}
.testi-card .testi-name {
    font-size: 15px;
    font-weight: 700;
    color: #2f3433;
}
.testi-card .testi-role {
    font-size: 13px;
    color: #8a8f8e;
}
@media (max-width: 575px) {
    .testi-card {
        flex-basis: 280px;
    }
}
/* Visitors who prefer less motion get a manually scrollable row instead */
@media (prefers-reduced-motion: reduce) {
    .testi-marquee {
        overflow-x: auto;
    }
    .testi-track {
        animation: none;
    }
}

/* Testimonials section background */
.testi-sec {
    position: relative;
    overflow: hidden;
    padding: 50px 0 40px !important;
    margin-bottom: 0;
    border-bottom: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(0, 0, 0, .18) 0, transparent 35%),
        radial-gradient(circle at 88% 85%, rgba(0, 0, 0, .14) 0, transparent 40%),
        linear-gradient(135deg, #2b302f 0%, #3d4241 50%, #4f5453 100%);
}
/* Faint dot pattern for texture */
.testi-sec::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.testi-sec > * {
    position: relative;
}
.testi-sec .heading {
    margin-bottom: 30px;
    color: #fff;
}
.testi-sec .hcontent {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #8c8c8c;
    color: #fff;
}

/* Top strip: brighter, glossy background with a slow light sweep */
.top-navbar {
    position: relative;
    z-index: 102; /* above .logo-bar-area (101) so the currency dropdown overlaps it */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(90deg, #1f3a44 0%, #2f4a52 30%, #4a5a5e 65%, #2a4f5c 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.top-navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%) no-repeat;
    background-size: 250% 100%;
    animation: top-bar-shine 7s ease-in-out infinite;
    pointer-events: none;
}
.top-navbar > .container {
    position: relative; /* painted after ::before, so content stays above the shine layer */
}
@keyframes top-bar-shine {
    0%        { background-position: 130% 0; }
    60%, 100% { background-position: -30% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .top-navbar::before {
        animation: none;
        display: none;
    }
}

/* Center the social icons inside their circles */
.top-navbar .top-bar-sa .top-bar-item {
    line-height: 1;
}
.top-navbar .top-bar-sa .top-bar-item > i {
    margin: 0;
    line-height: 1;
    font-size: 14px;
}

/* Hide star ratings on all product cards (home sliders, listings, related products, wishlist) */
.star-rating.star-rating-sm {
    display: none !important;
}

/* Product cards: name -> author -> price */
.product-author {
    margin-top: 2px;
    font-size: 12px;
    color: #8a8f8e;
    line-height: 1.4;
}
.card-product .product-title {
    margin-bottom: 0;
    min-height: 2.8em; /* room for two lines so prices line up across cards */
}
.card-product .price-box {
    margin-top: 6px;
}

/* Center product covers inside cards (Recommended For You images were left-aligned) */
.card-product .card-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Product card covers: fill the card width in a book-shaped (3:4) frame instead of a fixed
   200px height, so all covers are the same size. Any leftover space (cover not book-shaped) is filled
   with a blurred copy of the same cover, set by the script in the layout. */
.product-card-2.card-product .card-image {
    padding: 8px 8px 0;
}
.product-card-2.card-product .card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain; /* whole cover always visible: never cropped or stretched */
    position: relative;
    z-index: 1;
}
.product-card-2.card-product .card-image > a {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.product-card-2.card-product .card-image > a::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: inherit;
    filter: blur(14px);
    opacity: .55;
}

/* ---------- Request a Demo ---------- */

/* Header: logo takes only its own width so the menu sits centered between logo and cart */
@media (min-width: 992px) {
    .header-main-row > .col-lg-3 {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
    .header-main-row > .col-lg-9 {
        flex: 1 1 0;
        max-width: none;
    }
}
.exo-menu > li.menu-demo > a.btn-request-demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid #f5b25b;
    border-radius: 10px;
    background: #fff7e8;
    color: #1f3557;
    font-weight: 700;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(240, 122, 42, .15);
    transition: background .2s, box-shadow .2s, transform .2s;
}
.exo-menu > li.menu-demo > a.btn-request-demo:hover {
    background: #ffeccc;
    color: #1f3557;
    box-shadow: 0 4px 12px rgba(240, 122, 42, .28);
    transform: translateY(-1px);
}

/* Form page */
.demo-page {
    padding: 40px 0 60px;
    background: #f5f7fb;
}
.demo-wrap {
    max-width: 780px;
    margin: 0 auto;
}
.demo-title {
    margin-bottom: 6px;
    color: #1f3557;
    font-size: 34px;
    font-weight: 500;
}
.demo-subtitle {
    margin-bottom: 26px;
    color: #6b7a90;
    font-size: 14px;
}
.demo-card {
    padding: 30px 28px;
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(31, 53, 87, .05);
}
.demo-section-label {
    margin-bottom: 14px;
    color: #1f3557;
    font-size: 17px;
    font-weight: 700;
}
.demo-req {
    color: #1f3557;
}
.demo-field {
    margin-bottom: 18px;
}
.demo-products > [class*="col-"] {
    margin-bottom: 12px;
}
.demo-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    color: #44536a;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.demo-check:hover {
    border-color: #f5b25b;
}
.demo-check input {
    width: 16px;
    height: 16px;
    accent-color: #f07a2a;
}
.demo-check:has(input:checked) {
    border-color: #f07a2a;
    background: #fff7e8;
}
.demo-label {
    display: block;
    margin-bottom: 7px;
    color: #1f3557;
    font-size: 13px;
    font-weight: 600;
}
.demo-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ccd5e1;
    border-radius: 7px;
    color: #1f3557;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.demo-input:focus {
    outline: none;
    border-color: #f07a2a;
    box-shadow: 0 0 0 3px rgba(240, 122, 42, .15);
}
.demo-input[readonly] {
    background: #f5f7fb;
}
.demo-input.is-invalid {
    border-color: #d9534f;
}
.demo-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}
.demo-otp-row {
    margin-top: 10px;
}
.demo-otp-row .demo-input {
    max-width: 220px;
    letter-spacing: 4px;
}
.demo-btn {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}
.demo-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.demo-btn-orange {
    background: #f07a2a;
}
.demo-btn-orange:hover:not(:disabled) {
    background: #dc6718;
}
.demo-btn-navy {
    background: #1f3557;
}
.demo-btn-navy:hover:not(:disabled) {
    background: #152641;
}
.demo-captcha {
    flex: 0 0 auto;
    min-width: 90px;
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #1f3557;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 6px;
    user-select: none;
}
.demo-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e9e5a;
    font-weight: 700;
    white-space: nowrap;
}
.demo-verified[hidden],
.demo-otp-row[hidden],
.demo-btn[hidden] {
    display: none;
}
.demo-link {
    padding: 0;
    border: 0;
    background: none;
    color: #f07a2a;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.demo-hint {
    margin-top: 6px;
    color: #1e9e5a;
    font-size: 13px;
}
.demo-hint.is-error,
.demo-error {
    margin-top: 6px;
    color: #d9534f;
    font-size: 13px;
}
.demo-note {
    margin: 4px 0 16px;
    color: #3d6a8a;
    font-size: 12px;
}
.demo-submit {
    padding: 0 22px;
}
.demo-alert-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #b7e4c7;
    border-radius: 10px;
    background: #ecf9f1;
    color: #1e7a48;
    font-size: 14px;
}
@media (max-width: 575px) {
    .demo-card {
        padding: 22px 16px;
    }
    .demo-title {
        font-size: 26px;
    }
    .demo-inline {
        flex-wrap: wrap;
    }
    .demo-inline .demo-btn {
        flex: 1 1 auto;
    }
}

/* Request a Demo: joined input groups and site-theme (teal) colors */
.demo-group {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #ccd5e1;
    border-radius: 7px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.demo-group:focus-within {
    border-color: #222222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, .15);
}
.demo-group .demo-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.demo-group .demo-input:focus {
    box-shadow: none;
}
.demo-group:has(.is-invalid) {
    border-color: #d9534f;
}
.demo-group-btn {
    flex: 0 0 auto;
    padding: 0 20px;
    border: 0;
    border-left: 1px solid #ccd5e1;
    background: #e9ecef;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.demo-group-btn:hover:not(:disabled) {
    background: #222222;
    color: #fff;
}
.demo-group-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.demo-group-btn[hidden] {
    display: none;
}
.demo-otp-row {
    max-width: 340px;
    margin-top: 10px;
}
.demo-otp-row .demo-input {
    max-width: none;
}
.demo-group .demo-captcha {
    min-width: 96px;
    height: auto;
    border-left: 1px solid #ccd5e1;
    border-radius: 0;
    background: #e9ecef;
    color: #44536a;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 3px;
}
.demo-refresh {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: none;
    color: #222222;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s;
}
.demo-refresh:hover {
    color: #000000;
}
.demo-refresh.is-spinning i {
    animation: demo-spin .5s linear;
}
@keyframes demo-spin {
    to { transform: rotate(360deg); }
}

/* Theme color for the submit button and form accents */
.demo-submit {
    background: #222222;
}
.demo-submit:hover:not(:disabled) {
    background: #000000;
}
.demo-input:focus {
    border-color: #222222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, .15);
}

/* Searchable select (Select2) styled like .demo-input */
.demo-select-wrap .select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid #ccd5e1;
    border-radius: 7px;
    transition: border-color .15s, box-shadow .15s;
}
.demo-select-wrap .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 34px 0 12px;
    line-height: 40px;
    color: #1f3557;
    font-size: 14px;
}
.demo-select-wrap .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #8a96a8;
}
.demo-select-wrap .select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}
.demo-select-wrap .select2-container--open .select2-selection--single,
.demo-select-wrap .select2-container--focus .select2-selection--single {
    outline: none;
    border-color: #222222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, .15);
}
.demo-select-wrap .demo-select.is-invalid + .select2-container .select2-selection--single {
    border-color: #d9534f;
}
.demo-select-dropdown .select2-search--dropdown {
    margin-top: 0;
    padding: 8px;
}
.demo-select-dropdown .select2-search--dropdown:before {
    left: auto;
    right: 20px;
    color: #8a96a8;
}
.demo-select-dropdown .select2-search--dropdown .select2-search__field {
    height: 36px;
    padding: 0 34px 0 10px;
    border: 1px solid #ccd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1f3557;
    font-size: 14px;
}
.demo-select-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: #222222;
}
.demo-select-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #222222;
}
.demo-check:hover {
    border-color: #222222;
}
.demo-check input {
    accent-color: #222222;
}
.demo-check:has(input:checked) {
    border-color: #222222;
    background: #f2f2f2;
}
.demo-link {
    color: #000000;
}
@media (max-width: 575px) {
    .demo-group-btn {
        padding: 0 12px;
        font-size: 13px;
    }
}
.demo-otp-row .demo-input {
    letter-spacing: normal;
}
.demo-otp-row .demo-input:not(:placeholder-shown) {
    letter-spacing: 4px; /* space out the typed digits only, not the placeholder */
}

/* Request a Demo: every field the same full width; refresh and "Verified" sit inside their boxes */
.demo-group .demo-refresh {
    width: 52px;
    height: auto;
    border-left: 1px solid #ccd5e1;
    background: #fff;
    font-size: 22px;
}
.demo-group .demo-refresh:hover {
    background: #f2f2f2;
}
.demo-group .demo-verified {
    padding: 0 16px;
    border-left: 1px solid #ccd5e1;
    background: #f2f2f2;
}
.demo-group .demo-verified[hidden] {
    display: none;
}
.demo-products > [class*="col-"] {
    margin-bottom: 0;
}
@media (max-width: 767px) {
    .demo-products > [class*="col-"] {
        margin-bottom: 10px;
    }
}
.demo-products + .demo-error {
    margin-top: 8px;
}

/* Request a Demo: white page background like the rest of the site */
.demo-page {
    background: #fff;
}

/* Header "Request a Demo" button in the site's teal theme */
.exo-menu > li.menu-demo > a.btn-request-demo {
    border-color: #222222;
    background: #f2f2f2;
    color: #000000;
    box-shadow: 0 2px 6px rgba(34, 34, 34, .18);
}
.exo-menu > li.menu-demo > a.btn-request-demo:hover {
    background: #222222;
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 34, 34, .35);
}

/* ---------- Publish With Us ---------- */
.pub-card {
    padding-top: 26px;
}
.pub-title {
    margin-bottom: 6px;
    color: #000000;
    font-size: 26px;
    font-weight: 700;
}
.pub-section-head {
    margin: 8px 0 18px;
    padding: 11px 14px;
    border-radius: 6px;
    background: #222222;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.demo-select {
    padding-right: 34px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f3433' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
}
.pub-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    font-size: 15px;
}

/* Placeholder pages (content to be added later) */
.blank-page {
    min-height: 320px;
    padding: 40px 0 60px;
}
.blank-page-title {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
}

/* ---------- Site-wide width ----------
   Every page section uses the same width as the header (.header-container):
   full width with 30px side padding (15px on small screens). */
.body-wrap .container,
.body-wrap .container-fluid {
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}
@media (max-width: 991px) {
    .body-wrap .container,
    .body-wrap .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ---------- Cookie consent box (fixed at the bottom of the window) ---------- */
.cookie-box {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 100000; /* above the sticky header and the Quick Enquiry tab */
    width: 600px;
    max-width: calc(100% - 48px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 26px 28px 24px;
    border-radius: 18px;
    background: #1f2323;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    animation: cookie-in .35s ease-out;
}
.cookie-box[hidden] {
    display: none;
}
@keyframes cookie-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-title {
    margin-bottom: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.cookie-text {
    margin-bottom: 20px;
    color: #b9bfbe;
    font-size: 15px;
    line-height: 1.6;
}
.cookie-text a {
    color: #222222;
    font-weight: 700;
    text-decoration: underline;
}
.cookie-text a:hover {
    color: #555555;
}
.cookie-options {
    margin-bottom: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.cookie-options[hidden] {
    display: none;
}
.cookie-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
}
.cookie-option-text {
    flex: 1;
}
.cookie-option-text strong {
    display: block;
    color: #fff;
    font-size: 14px;
}
.cookie-option-text small {
    color: #9aa3a1;
    font-size: 12px;
}
.cookie-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cookie-switch {
    position: relative;
    flex: 0 0 42px;
    height: 24px;
    border-radius: 12px;
    background: #4a5250;
    transition: background .2s;
}
.cookie-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}
.cookie-option input:checked + .cookie-switch {
    background: #222222;
}
.cookie-option input:checked + .cookie-switch::after {
    transform: translateX(18px);
}
.cookie-option input:disabled + .cookie-switch {
    opacity: .6;
}
.cookie-option input:focus-visible + .cookie-switch {
    box-shadow: 0 0 0 3px rgba(34, 34, 34, .45);
}
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.cookie-btn {
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 23px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.cookie-btn[hidden] {
    display: none;
}
.cookie-btn-link {
    padding: 0 10px;
    background: none;
    color: #b9bfbe;
}
.cookie-btn-link:hover {
    color: #fff;
}
.cookie-btn-outline {
    background: rgba(34, 34, 34, .15);
    color: #555555;
    box-shadow: inset 0 0 0 1px #222222;
}
.cookie-btn-outline:hover {
    background: rgba(34, 34, 34, .28);
    color: #fff;
}
.cookie-btn-solid {
    background: #222222;
    color: #fff;
}
.cookie-btn-solid:hover {
    background: #000000;
}
@media (max-width: 575px) {
    .cookie-box {
        left: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 20px 18px 18px;
    }
    .cookie-title {
        font-size: 19px;
    }
    .cookie-text {
        font-size: 14px;
    }
    .cookie-actions .cookie-btn-outline,
    .cookie-actions .cookie-btn-solid {
        flex: 1 1 auto;
    }
}

/* ---------- New Arrivals: continuous book shelf with books that open on hover ---------- */
.book-shelf {
    overflow: hidden;
    margin-top: 18px;
    padding: 14px 0 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
}
.book-track {
    display: flex;
    width: max-content;
    animation: shelf-scroll var(--shelf-duration, 40s) linear infinite;
}
.book-shelf:hover .book-track,
.book-shelf:focus-within .book-track {
    animation-play-state: paused;
}
@keyframes shelf-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--shelf-shift, -50%)); }
}

.book {
    flex: 0 0 210px;
    margin-right: 40px; /* margin (not gap) keeps every copy the same width so the loop is seamless */
    color: inherit;
    text-decoration: none;
}
.book:hover {
    color: inherit;
    text-decoration: none;
}
.book-3d {
    position: relative;
    aspect-ratio: 3 / 4;
    perspective: 1400px;
}

/* Inside page (sits behind the cover) */
.book-page {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px 16px 18px 22px;
    border-radius: 2px 6px 6px 2px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .12) 0, rgba(0, 0, 0, 0) 14px),
        repeating-linear-gradient(180deg, #fdfbf5 0, #fdfbf5 21px, #f1ece0 22px);
    color: #2f3433;
    /* stacked page edges on the right */
    box-shadow: 1px 0 0 #e6e0d2, 2px 0 0 #fdfbf5, 3px 0 0 #e6e0d2, 4px 0 0 #fdfbf5, 5px 0 0 #ddd6c6,
                8px 10px 22px rgba(0, 0, 0, .25);
}
.book-page-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-page-author {
    color: #6b716f;
    font-size: 12px;
    font-style: italic;
}
.book-page-price {
    margin-top: 4px;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
}
.book-page-cta {
    align-self: flex-start;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 16px;
    background: #222222;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Cover: hinges on the spine (left edge) and swings open on hover */
.book-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform .8s cubic-bezier(.25, .8, .25, 1);
}
.book:hover .book-cover,
.book:focus-visible .book-cover {
    transform: rotateY(-115deg);
}
.book-front,
.book-back {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 2px 6px 6px 2px;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}
.book-front {
    background: #2f3433;
    box-shadow: 6px 10px 22px rgba(0, 0, 0, .3);
}
/* Blurred copy of the cover fills any space if the image isn't book-shaped (no cropping) */
.book-front::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--cover) center / cover no-repeat;
    filter: blur(14px);
    opacity: .55;
}
.book-front img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Spine: shading and a crease along the left edge, like a real hardback */
.book-front::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, .35) 0, rgba(255, 255, 255, .18) 3%, rgba(0, 0, 0, .18) 5%,
        rgba(255, 255, 255, .06) 8%, rgba(0, 0, 0, 0) 14%,
        rgba(0, 0, 0, 0) 85%, rgba(255, 255, 255, .08) 100%);
    pointer-events: none;
}
.book-back {
    transform: rotateY(180deg);
    background: linear-gradient(90deg, #e9e4d8, #f7f3ea);
}

/* Name, author, price under the book */
.book-info {
    padding-top: 14px;
}
.book-info .product-title {
    min-height: 2.8em;
    margin: 0;
    color: #2f3433;
    font-size: 14px;
    line-height: 1.4;
}
.book-info .price-box {
    margin-top: 4px;
}
.book:hover .book-info .product-title {
    color: #000000;
}

@media (max-width: 575px) {
    .book {
        flex-basis: 150px;
        margin-right: 24px;
    }
    .book-page-title {
        font-size: 13px;
    }
}
/* Visitors who prefer less motion get a manually scrollable shelf and no page-turn animation */
@media (prefers-reduced-motion: reduce) {
    .book-shelf {
        overflow-x: auto;
    }
    .book-track {
        animation: none;
    }
    .book-cover {
        transition: none;
    }
}

/* Tighter gap between the intro text and the New Arrivals heading */
#section_flash_text {
    padding-bottom: 0;
}
/* The banner row after the intro text is empty when no banners are uploaded; drop its spacing then */
#section_flash_text + .mb-4:not(:has(.media-banner)) {
    margin-bottom: 0;
}
#section_featured > section > .container-fluid > .bg-white {
    padding-top: 10px !important;
}

/* Book title, author and price start on the same left edge as the cover */
.book-info .product-title,
.book-info .product-author,
.book-info .price-box {
    padding-left: 0;
    padding-right: 0;
}

/* ---------- Forms: textarea and rating picker ---------- */
.demo-textarea {
    height: auto;
    min-height: 110px;
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}
.rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.rating-option {
    flex: 1 1 0;
    min-width: 90px;
    margin: 0;
    cursor: pointer;
}
.rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.rating-option span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border: 1px solid #ccd5e1;
    border-radius: 8px;
    color: #44536a;
    font-size: 12px;
    transition: border-color .15s, background .15s, color .15s;
}
.rating-option span strong {
    font-size: 18px;
    color: #2f3433;
}
.rating-option:hover span {
    border-color: #222222;
}
.rating-option input:checked + span {
    border-color: #222222;
    background: #222222;
    color: #fff;
}
.rating-option input:checked + span strong {
    color: #fff;
}
.rating-option input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(34, 34, 34, .3);
}
.rating-options.is-invalid .rating-option span {
    border-color: #d9534f;
}

/* ---------- News & Updates page ---------- */
.news-page {
    padding: 34px 0 50px;
}
.news-intro {
    max-width: 820px;
    margin-bottom: 26px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}
.news-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9e9e9;
}
.news-section-head h2 {
    margin: 0;
    color: #2f3433;
    font-size: 20px;
    font-weight: 700;
}
.news-link {
    color: #000000;
    font-weight: 700;
}
.news-link:hover {
    color: #222222;
}
.news-date {
    margin-bottom: 4px;
    color: #8a8f8e;
    font-size: 11px;
}
.news-empty {
    color: #8a8f8e;
}
.news-card {
    height: 100%;
    padding: 22px;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
}
.news-card-icon {
    margin-bottom: 10px;
    color: #222222;
    font-size: 28px;
}
.news-card h3 {
    margin-bottom: 6px;
    color: #2f3433;
    font-size: 17px;
    font-weight: 700;
}
.news-card p {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
.news-subscribe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 24px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2b302f 0%, #3d4241 55%, #2a4f5c 100%);
    color: #fff;
}
.news-subscribe h2 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}
.news-subscribe p {
    margin: 0;
    color: #c9cfce;
    font-size: 14px;
}
.news-social {
    display: flex;
    gap: 10px;
}
.news-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 17px;
    transition: background .2s;
}
.news-social a:hover {
    background: #222222;
    color: #fff;
}

/* Policy pages: restore list bullets and spacing the theme removes */
.policy-content ul {
    margin: 0 0 1rem;
    padding-left: 22px;
    list-style: disc;
}
.policy-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.policy-content h2 {
    margin-top: 1.4rem;
}

/* ---------- Products page: books that open on hover, grid / list views ---------- */
.listing-books .listing-book {
    display: block;
    flex: none;
    width: 100%;
    margin: 0 0 28px;
}
.listing-books .listing-col {
    position: relative;
}
.listing-books .listing-col:hover {
    z-index: 3; /* the opening cover swings over its neighbour */
}
.listing-summary,
.listing-cta {
    display: none;
}

/* List view: book on the left, details on the right */
.listing-books[data-view="list"] .listing-col {
    flex: 0 0 100%;
    max-width: 100%;
}
.listing-books[data-view="list"] .listing-book {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    margin: 0;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}
.listing-books[data-view="list"] .listing-col:last-child .listing-book {
    border-bottom: 0;
}
.listing-books[data-view="list"] .book-3d {
    flex: 0 0 160px;
    width: 160px;
}
.listing-books[data-view="list"] .book-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}
.listing-books[data-view="list"] .book-info .product-title {
    min-height: 0;
    font-size: 17px;
    font-weight: 600;
}
.listing-books[data-view="list"] .listing-summary {
    display: block;
    margin: 10px 0 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
.listing-books[data-view="list"] .listing-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 7px 16px;
    border-radius: 18px;
    background: #222222;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.listing-books[data-view="list"] .listing-book:hover .listing-cta {
    background: #000000;
}
@media (max-width: 575px) {
    .listing-books[data-view="list"] .book-3d {
        flex-basis: 110px;
        width: 110px;
    }
    .listing-books[data-view="list"] .listing-book {
        gap: 16px;
    }
    .listing-books[data-view="list"] .listing-summary {
        display: none;
    }
}

/* View switch buttons in the filter bar */
.view-switch {
    flex: 0 0 auto;
    margin-left: 10px;
    white-space: nowrap;
}
.view-switch-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #ccd5e1;
    border-radius: 6px;
    background: #fff;
    color: #6b716f;
    font-size: 16px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.view-switch-btn + .view-switch-btn {
    margin-left: 4px;
}
.view-switch-btn:hover {
    border-color: #222222;
    color: #000000;
}
.view-switch-btn.is-active {
    border-color: #222222;
    background: #222222;
    color: #fff;
}

/* Categories box title aligned left */
.sidebar-box .box-title.text-left {
    padding-left: 18px;
}

/* Products filter bar: labels, fields and view buttons all on one line, same height (36px) */
.sort-by-bar.row {
    align-items: flex-end;
    padding-top: 12px !important;
    padding-bottom: 12px;
}
.sort-by-bar > [class*="col-"] {
    display: flex;
    align-items: flex-end;
}
.sort-by-bar .form-group {
    margin-bottom: 0;
}
.sort-by-bar label {
    display: block;
    margin-bottom: 4px;
    color: #6b716f;
    font-size: 12px;
    line-height: 18px;
}
.sort-by-bar .search-widget input.form-control,
.sort-by-bar .select2-container .select2-selection--single {
    height: 36px !important;
}
.sort-by-bar .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
}
.sort-by-bar .select2-container .select2-selection--single .select2-selection__arrow {
    height: 34px;
}
/* The hidden "Sellers" filter should not leave an empty gap */
.sort-by-bar .col-4:has(> .sort-by-box.d-none) {
    display: none;
}
.sort-by-bar .view-switch {
    margin-left: auto;
    padding-left: 12px;
}
.sort-by-bar .view-switch-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
    vertical-align: bottom;
}
.sort-by-bar .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}
.sort-by-bar .select2-container .select2-selection--single .select2-selection__rendered {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 34px !important;
}

/* ---------- Product detail page (reference design) ---------- */
.pd-page {
    padding: 24px 0 10px;
    background: #fff;
}
.pd-top {
    padding: 26px 0 20px;
}

/* Cover: fixed frame (3:4, max 300px wide); any upload size fits inside without cropping or stretching */
.pd-cover-wrap {
    position: sticky;
    top: 150px;
}
.pd-cover.book-front {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
}
.pd-cover.book-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.pd-quicklinks a {
    flex: 1 1 0;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #2f3433;
    border-radius: 4px;
    color: #2f3433;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background .15s, color .15s, border-color .15s;
}
.pd-quicklinks a:hover {
    border-color: #222222;
    background: #222222;
    color: #fff;
}
.pd-title {
    margin: 0 0 6px;
    color: #2f3433;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}
.pd-authors {
    margin: 0 0 10px;
    font-size: 15px;
}
.pd-authors span {
    color: #2f3433;
    font-weight: 700;
    font-style: italic;
}
.pd-authors a {
    color: #000000;
    font-style: italic;
}
.pd-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    background: #000000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.pd-meta,
.pd-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-bottom: 14px;
    color: #44536a;
    font-size: 13px;
}
.pd-meta span:not(:last-child)::after,
.pd-specs span:not(:last-child)::after {
    content: "|";
    margin: 0 10px;
    color: #c4c9c8;
}
.pd-meta strong,
.pd-specs strong {
    color: #2f3433;
}
.pd-specs a {
    color: #000000;
}

/* eBook format panel */
.pd-format {
    margin: 6px 0 18px;
    padding: 16px 0 14px;
    border-top: 2px solid #2f3433;
    border-bottom: 1px solid #e3e3e3;
}
.pd-format-head {
    margin: 0 0 10px;
    color: #2f3433;
    font-size: 18px;
    font-weight: 700;
}
.pd-price-label {
    color: #2f3433;
    font-size: 13px;
    font-weight: 700;
}
.pd-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}
.pd-price strong {
    color: #000000;
    font-size: 24px;
}
.pd-price del {
    color: #999;
    font-size: 15px;
}
.pd-tax {
    color: #000000;
    font-size: 14px;
}
.pd-off {
    color: #e0752d;
    font-size: 14px;
    font-weight: 700;
}
.pd-devices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px dashed #dcdcdc;
    color: #666;
    font-size: 13px;
}
.pd-devices strong {
    color: #2f3433;
}
.pd-club-point,
.pd-refund {
    margin-bottom: 14px;
}

/* Buy Chapters list */
.pd-chapters {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pd-chapter {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}
.pd-chapter:last-child {
    border-bottom: 0;
}
.pd-chapter-no {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}
.pd-chapter-info {
    flex: 1 1 auto;
    min-width: 0;
}
.pd-chapter-title {
    color: #2f3433;
    font-size: 14px;
    font-weight: 600;
}
.pd-chapter-meta {
    margin-top: 3px;
    color: #6b716f;
    font-size: 12px;
}
.pd-chapter-meta span:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    color: #c4c9c8;
}
.pd-chapter-price {
    flex: 0 0 auto;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.pd-chapter-price span {
    font-weight: 400;
}
.pd-chapter-buy {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.pd-btn.pd-btn-sm {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}
@media (max-width: 575px) {
    .pd-chapter {
        flex-wrap: wrap;
    }
    .pd-chapter-buy {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-left: 42px;
    }
}

/* Book formats (Hardback/Spiral, eBook, eChapter) stacked, buttons on the right */
.pd-format + .pd-format {
    margin-top: -18px;
    border-top-width: 1px;
}
.pd-format-split {
    display: flex;
    gap: 24px;
}
.pd-format-main {
    flex: 1 1 auto;
    min-width: 0;
}
.pd-format-actions {
    display: flex;
    flex: 0 0 230px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-left: 24px;
    border-left: 1px solid #e3e3e3;
}
.pd-format-actions .pd-btn {
    height: auto;
    min-height: 44px;
    padding: 8px 16px;
    white-space: normal;
    text-align: center;
}
.pd-format .pd-specs {
    margin-bottom: 6px;
}
.pd-format .pd-price-label {
    margin-top: 4px;
}
.pd-note {
    padding-top: 12px;
    border-top: 1px dashed #dcdcdc;
    color: #44536a;
    font-size: 13px;
}
.pd-note strong {
    display: block;
    color: #2f3433;
}
@media (max-width: 767px) {
    .pd-format-split {
        flex-direction: column;
        gap: 14px;
    }
    .pd-format-actions {
        flex-basis: auto;
        padding-left: 0;
        border-left: 0;
    }
}

/* Actions in one row */
.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.pd-btn-outline {
    border: 1px solid #222222;
    background: #fff;
    color: #000000;
}
.pd-btn-outline:hover {
    background: #f2f2f2;
    color: #000000;
}
.pd-btn-solid {
    border: 1px solid #222222;
    background: #222222;
    color: #fff;
}
.pd-btn-solid:hover {
    background: #000000;
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(34, 34, 34, .3);
}
.pd-share {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
    color: #6b716f;
    font-size: 13px;
}
.pd-share .jssocials-shares {
    margin: 0;
}

/* Book information accordion */
.pd-sections {
    margin: 10px 0 24px;
    border-top: 1px solid #e3e3e3;
}
.pd-section {
    border-bottom: 1px solid #e3e3e3;
}
.pd-section > summary {
    position: relative;
    padding: 15px 40px 15px 12px;
    color: #2f3433;
    font-size: 15px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}
.pd-section > summary::-webkit-details-marker {
    display: none;
}
.pd-section > summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    font-size: 20px;
    font-weight: 400;
}
.pd-section[open] > summary::after {
    content: "\2212"; /* minus */
}
.pd-section > summary:hover {
    color: #000000;
}
.pd-section-body {
    padding: 0 12px 18px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}
.pd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pd-chips a {
    padding: 5px 12px;
    border: 1px solid #b8e8dc;
    border-radius: 16px;
    background: #f2fbf8;
    color: #000000;
    font-size: 13px;
}
.pd-chips a:hover {
    background: #222222;
    color: #fff;
}
@media (max-width: 767px) {
    .pd-cover-wrap {
        position: static;
    }
    .pd-cover.book-front {
        max-width: 220px;
    }
    .pd-title {
        font-size: 21px;
    }
    .pd-btn {
        flex: 1 1 calc(50% - 10px);
        padding: 0 10px;
        font-size: 13px;
    }
}

/* Product page: related books */
.pd-related {
    margin-bottom: 30px;
}
.pd-related-title {
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9e9e9;
    color: #2f3433;
    font-size: 19px;
    font-weight: 700;
}

/* Product page: device image sits right next to its text */
.pd-devices {
    justify-content: flex-start;
    gap: 18px;
}
.pd-share {
    flex-wrap: wrap;
}
.pd-devices-support {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 24px;
    color: #2f3433;
    font-size: 16px;
}
.pd-devices-support img {
    max-width: 100%;
    height: 90px;
    width: auto;
}

/* Share: X (formerly Twitter) button in X's black */
.pd-share .jssocials-share-twitter .jssocials-share-link {
    background: #000;
}
.pd-share .jssocials-share-twitter .jssocials-share-link:hover {
    background: #333;
}
.pd-share .jssocials-share-twitter .jssocials-share-logo {
    width: 1em;
    height: 1em;
}

/* ---------- Contact Us page ---------- */
.contact-page {
    padding: 34px 0 40px;
    background: #fff;
}
.contact-card,
.contact-form-card {
    height: 100%;
    padding: 30px;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 53, 87, .07);
}
.contact-form-card {
    height: auto;
}
.contact-logo {
    max-width: 220px;
    max-height: 90px;
    margin-bottom: 18px;
}
.contact-company {
    margin-bottom: 22px;
    color: #000000;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}
.contact-subhead {
    margin: 22px 0 14px;
    color: #2f3433;
    font-size: 17px;
    font-weight: 700;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    color: #44536a;
    font-size: 14px;
    line-height: 1.6;
}
.contact-item a {
    color: #44536a;
}
.contact-item a:hover {
    color: #000000;
}
.contact-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #000000;
    font-size: 16px;
}
.contact-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #000000;
    color: #fff;
    font-size: 15px;
    transition: background .2s, transform .2s;
}
.contact-social a:hover {
    background: #222222;
    color: #fff;
    transform: translateY(-2px);
}
.contact-form-card .pub-title {
    margin-bottom: 20px;
}
.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 28px;
    font-size: 15px;
}

/* ---------- Login & registration pages: library-themed background ---------- */
.auth-bg {
    min-height: 620px;
    background: #1f2a2d url("../images/auth-bg.svg") center bottom / cover no-repeat;
}
.auth-bg .card {
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}
.auth-bg .card .heading {
    color: #000000;
    font-weight: 600;
}
.auth-bg .btn-base-1,
.auth-bg button[type="submit"] {
    border-color: #222222;
    background: #222222;
    color: #fff;
}
.auth-bg .btn-base-1:hover,
.auth-bg button[type="submit"]:hover {
    border-color: #000000;
    background: #000000;
}

/* Login & registration: light illustrated background (overrides the earlier dark version) */
.auth-bg {
    background: #fbf7ef url("../images/auth-bg.svg?v=3") center / cover no-repeat;
}
.auth-bg .card {
    background: #fff;
    box-shadow: 0 18px 45px rgba(31, 53, 87, .16);
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
}
.auth-bg {
    min-height: 680px;
    background-position: center bottom; /* never crop the books at the bottom; only empty sky at the top */
}

/* Login & registration: bookshelf photo (Unsplash License) with a soft dark overlay so the form stands out */
.auth-bg {
    background:
        linear-gradient(135deg, rgba(31, 35, 35, .55) 0%, rgba(31, 35, 35, .35) 50%, rgba(0, 0, 0, .35) 100%),
        #2f2520 url("../images/auth-bg.jpg") center / cover no-repeat;
}
.auth-bg .card {
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

/* Login & registration: library reading-room photo (Pexels License) with a light overlay for readability */
.auth-bg {
    background:
        linear-gradient(180deg, rgba(31, 35, 35, .25) 0%, rgba(31, 35, 35, .45) 100%),
        #4a3a2a url("../images/auth-bg.jpg?v=2") center 55% / cover no-repeat;
}

/* Cart: format badge to tell the print edition, eBook and chapters of one book apart */
.cart-format {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
.cart-format-print   { background: #fff1e6; color: #c25400; border: 1px solid #f5c79f; }
.cart-format-ebook   { background: #e6f7f3; color: #12866f; border: 1px solid #9fdccd; }
.cart-format-chapter { background: #eef0fb; color: #4250b0; border: 1px solid #c3c8ee; }
.nav-cart-box .cart-format { margin: 0 6px 4px 0; }

/* =====================================================================
   Black & grey theme: pure white page base and one button style site-wide
   (solid = black fill, outline = black border; on dark bars they turn white)
   ===================================================================== */
body,
.body-wrap,
.gry-bg {
    background-color: #fff !important;
}

/* Buttons: solid */
.btn-base-1,
.btn-styled.btn-base-1,
.pd-btn-solid,
.exo-menu > li.menu-demo > a.btn-request-demo,
.header-search button,
.footer-subscribe .btn {
    background: #222 !important;
    border: 1px solid #222 !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: none !important;
    transition: background .2s, border-color .2s, color .2s;
}
.btn-base-1:hover,
.btn-base-1:focus,
.btn-styled.btn-base-1:hover,
.pd-btn-solid:hover,
.exo-menu > li.menu-demo > a.btn-request-demo:hover,
.header-search button:hover,
.footer-subscribe .btn:hover {
    background: #555 !important;
    border-color: #555 !important;
    color: #fff !important;
    transform: none;
}

/* Buttons: outline */
.btn-base-1.btn-outline,
.pd-btn-outline {
    background: #fff !important;
    border: 1px solid #222 !important;
    border-radius: 6px !important;
    color: #222 !important;
}
.btn-base-1.btn-outline:hover,
.pd-btn-outline:hover {
    background: #222 !important;
    color: #fff !important;
}

/* Header search: grey field joined to the black button */
@media (min-width: 992px) {
    .header-search input[type="text"] {
        border-radius: 6px 0 0 6px;
        border-color: #bdbdbd;
    }
    .header-search input[type="text"]:focus {
        border-color: #222;
    }
    .header-search button {
        border-radius: 0 6px 6px 0 !important;
    }
}

/* Top strip: black to grey, all controls share one outline style */
.top-navbar {
    background: linear-gradient(90deg, #111 0%, #2b2b2b 55%, #444 100%);
    border-bottom: 2px solid #8c8c8c;
}
.top-navbar .top-bar-icon {
    color: #fff;
}
.top-navbar .inline-links-left > li > a:hover {
    color: #bdbdbd;
}
.top-navbar .currency-toggle,
.top-navbar .top-bar-btn,
.top-navbar .inline-links-right > li > a.top-bar-btn-outline,
.top-navbar .inline-links-right > li > a.top-bar-btn-solid,
.top-navbar .top-bar-sa .top-bar-item {
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}
.top-navbar .top-bar-sa .top-bar-item {
    width: 30px;
    padding: 0;
}
.top-navbar .currency-toggle:hover,
.top-navbar .show > .currency-toggle,
.top-navbar .top-bar-btn:hover,
.top-navbar .inline-links-right > li > a.top-bar-btn-outline:hover,
.top-navbar .inline-links-right > li > a.top-bar-btn-solid:hover,
.top-navbar .top-bar-sa .top-bar-item:hover {
    background: #fff;
    border-color: #fff;
    color: #222 !important; /* beats main.css's pale hover colour */
    box-shadow: none;
}
.top-navbar .currency-toggle .currency-symbol {
    color: inherit;
}
.top-navbar .currency-menu .dropdown-item.active .currency-symbol {
    background: #222;
}

/* Cookie box sits on a dark panel: light buttons */
.cookie-btn-solid {
    background: #fff;
    color: #222;
}
.cookie-btn-solid:hover {
    background: #d6d6d6;
}
.cookie-btn-outline {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}
.cookie-btn-outline:hover {
    background: #fff;
    color: #222;
}

/* Footer */
.site-footer,
.site-footer .footer-top {
    background: #1f1f1f;
    color: #bdbdbd;
}
.site-footer .footer-top {
    padding: 50px 0 30px;
}
.site-footer .footer-col {
    margin-bottom: 24px;
}
.site-footer .footer-heading {
    margin: 0 0 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.site-footer .footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer .footer-links li {
    margin-bottom: 8px;
}
.site-footer .footer-links a,
.site-footer .footer-policy-links a {
    color: #bdbdbd;
    font-size: 14px;
    transition: color .2s;
}
.site-footer .footer-links a:hover,
.site-footer .footer-policy-links a:hover {
    color: #fff;
}
.site-footer .footer-text {
    margin-bottom: 14px;
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.6;
}
.site-footer .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    transition: background .2s, color .2s;
}
.site-footer .footer-social a:hover {
    background: #fff;
    color: #222;
}
.site-footer .footer-subscribe {
    display: flex;
}
.site-footer .footer-subscribe .form-control {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid #555;
    border-radius: 6px 0 0 6px;
    background: #fff;
    color: #222;
}
.site-footer .footer-subscribe .btn {
    height: 42px;
    padding: 0 18px;
    border-color: #555 !important;
    border-radius: 0 6px 6px 0 !important;
    background: #555 !important;
}
.site-footer .footer-subscribe .btn:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: #222 !important;
}
.site-footer .footer-bottom {
    padding: 16px 0;
    background: #111;
    border-top: 1px solid #333;
    font-size: 13px;
}
.site-footer .footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}
.site-footer .footer-policy-links li:not(:last-child)::after {
    content: "|";
    margin: 0 10px;
    color: #666;
}
.site-footer .footer-policy-links a {
    font-size: 13px;
}
.site-footer .footer-copyright {
    color: #8c8c8c;
}
@media (max-width: 767px) {
    .site-footer .footer-col {
        text-align: center;
    }
    .site-footer .footer-social,
    .site-footer .footer-policy-links {
        justify-content: center;
    }
    .site-footer .footer-copyright {
        text-align: center;
    }
}

/* ---------- Home: Why Choose Deepika Books ---------- */
.why-choose {
    position: relative;
    margin-bottom: 1.5rem;
    /* light grey band with darker curved shapes in the bottom corners (proportions taken from the design) */
    background:
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 0 C20 45 45 75 100 100 L0 100 Z' fill='%23d6d6d6'/></svg>") left bottom / 21% 36% no-repeat,
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M100 0 C85 40 55 75 0 100 L100 100 Z' fill='%23d6d6d6'/></svg>") right bottom / 7% 19% no-repeat,
        linear-gradient(180deg, #f0f0f0 0%, #ececec 100%);
}
.why-choose .container {
    position: relative;
    z-index: 1;
}
.why-choose-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 34px 0;
}
.why-choose-intro {
    flex: 0 0 auto;
    max-width: 440px;
}
.why-choose-title {
    margin: 0 0 10px;
    color: #111;
    font-size: 30px;
    white-space: nowrap;
    font-weight: 800;
    line-height: 1.2;
}
.why-choose-lead {
    margin: 0;
    color: #444;
    font-size: 16px !important; /* theme shrinks paragraphs */
    line-height: 1.5;
}
.why-choose-items {
    display: flex;
    flex: 1;
}
.why-choose-item {
    flex: 1;
    padding: 0 14px;
    text-align: center;
}
.why-choose-item:not(:last-child) {
    border-right: 1px solid #cfcfcf;
}
.why-choose-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #d9d9d9;
    color: #111;
}
.why-choose-item-title {
    margin: 0 0 6px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.why-choose-item-text {
    margin: 0;
    color: #555;
    font-size: 13px !important;
    line-height: 1.5;
}
@media (max-width: 1199px) {
    .why-choose-inner {
        flex-direction: column;
        text-align: center;
    }
    .why-choose-intro {
        flex-basis: auto;
    }
    .why-choose-items {
        width: 100%;
    }
}
@media (max-width: 767px) {
    .why-choose-title {
        font-size: 24px;
        white-space: normal;
    }
    .why-choose-items {
        flex-wrap: wrap;
        row-gap: 22px;
    }
    .why-choose-item {
        flex: 0 0 50%;
    }
    .why-choose-item:not(:last-child) {
        border-right: 0;
    }
}

/* ---------- New Arrivals: flat covers with View Details / Add to Cart (no page-turn, no shading) ---------- */
.book-flat {
    display: flex;
    flex-direction: column;
}
.book-flat-cover {
    display: block;
    aspect-ratio: 7 / 10; /* standard book proportions: every cover gets the same frame */
    overflow: hidden;
    border: 1px solid #e3e3e3;
    background: #f4f4f4;
}
.book-flat-cover {
    background: #fff;
}
.book-flat-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill the frame completely: scaled evenly (never squashed), only the overflow at the edges is trimmed */
    object-position: center top; /* if anything is trimmed vertically, keep the title at the top */
}
.book-flat .book-info .product-title {
    display: -webkit-box;
    color: #222;
    font-weight: 600;
    text-decoration: none;
}
.book-flat .book-info .product-title:hover {
    color: #000;
    text-decoration: underline;
}
.book-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto; /* buttons line up across books whatever the title length */
    padding-top: 12px;
}
.book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.book-btn-outline {
    border: 1px solid #222;
    background: #fff;
    color: #222;
}
.book-btn-outline:hover {
    background: #222;
    color: #fff;
}
.book-btn-solid {
    border: 1px solid #222;
    background: #222;
    color: #fff;
}
.book-btn-solid:hover {
    border-color: #555;
    background: #555;
}

/* Book cards inside the Recommended For You carousel (same card as New Arrivals) */
.book-card-slide .book {
    height: 100%;
    margin: 0;
    padding: 0 12px;
}
.caorusel-box .slick-track:has(.book-card-slide) {
    display: flex;
}
.caorusel-box .slick-track:has(.book-card-slide) .slick-slide {
    height: auto;
}
.caorusel-box .slick-track:has(.book-card-slide) .slick-slide > div {
    height: 100%;
}

/* "Explore Books" link button beside the New Arrivals / Recommended headings */
.section-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #222;
    border-radius: 6px;
    background: #222;
    color: #fff !important; /* theme link colours would otherwise turn the text dark */
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}
.section-explore-btn i {
    color: #fff !important;
}
.section-explore-btn:hover,
.section-explore-btn:focus {
    border-color: #555;
    background: #555;
    color: #fff !important;
    text-decoration: none;
}
.section-title-1:has(.section-explore-btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.section-title-1:has(.section-explore-btn)::after {
    display: none; /* the clearfix would count as a flex item and centre the button (::before is the heading underline, keep it) */
}

/* Main menu: items keep their plain look and turn into the "Request a Demo" black button on hover */
@media (min-width: 768px) {
    .exo-menu > li {
        vertical-align: middle; /* line up with the Request a Demo button */
    }
    .exo-menu > li > a {
        padding-top: 10px;
        padding-bottom: 10px; /* 40px tall, same as the Request a Demo button */
        border-radius: 6px;
    }
    .exo-menu > li:not(.menu-demo) > a:hover,
    .exo-menu > li:not(.menu-demo) > a:focus,
    .exo-menu > li.drop-down:hover > a {
        background: #222;
        color: #fff;
    }
    /* Request a Demo is already black, so on hover it lightens to the same #3a3a3a as a hovered dropdown item and lifts slightly */
    .exo-menu > li.menu-demo > a.btn-request-demo {
        transition: background .2s, box-shadow .2s, transform .2s;
    }
    .exo-menu > li.menu-demo > a.btn-request-demo:hover {
        border-color: #3a3a3a !important;
        background: #3a3a3a !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .3) !important;
        transform: translateY(-1px) !important;
    }

    /* eBooks dropdown (and its sub-menus): same #222 as the hovered menu item */
    .exo-menu li.drop-down > ul > li > a,
    .exo-menu .flyout-right ul > li > a,
    .exo-menu .flyout-left ul > li > a {
        background-color: #222;
        border-bottom: 1px solid #333;
        color: #fff;
    }
    .exo-menu li.drop-down > ul > li > a:hover,
    .exo-menu .flyout-right ul > li > a:hover,
    .exo-menu .flyout-left ul > li > a:hover {
        background-color: #3a3a3a;
        color: #fff;
    }
    .exo-menu li.drop-down > ul {
        border-left: 0;
    }

    /* eBooks arrow: beside the text, vertically centred, dark at rest and white on hover */
    .exo-menu > li.drop-down > a {
        padding-right: 34px;
    }
    .exo-menu > li.drop-down::before {
        top: 50%;
        right: 14px;
        z-index: 1;
        color: #333;
        line-height: 1;
        transform: translateY(-50%);
        pointer-events: none;
    }
    .exo-menu > li.drop-down:hover::before {
        color: #fff;
    }
}

/* New Arrivals shelf moved by script (auto-scroll + drag) instead of the CSS animation */
.book-shelf-drag {
    cursor: grab;
    touch-action: pan-y; /* horizontal swipes drag the shelf, vertical swipes still scroll the page */
}
.book-shelf-drag .book-track {
    animation: none;
    will-change: transform;
}
.book-shelf-drag.is-dragging {
    cursor: grabbing;
    -webkit-user-select: none;
            user-select: none;
}
.book-shelf-drag img {
    -webkit-user-drag: none;
}

/* Products page: message when a category has no books */
.listing-empty {
    padding: 60px 20px;
    text-align: center;
    color: #555;
}
.listing-empty > i {
    margin-bottom: 14px;
    color: #bdbdbd;
    font-size: 48px;
}
.listing-empty h3 {
    margin-bottom: 8px;
    color: #222;
    font-size: 20px;
    font-weight: 700;
}
.listing-empty p {
    max-width: 440px;
    margin: 0 auto 20px;
}
.listing-empty .book-btn {
    display: inline-flex;
    padding: 0 22px;
}
/* Products page sidebar: current sub-category stands out */
.list-sidebar .sub-menu > li.active > a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

/* Products page: the shared book card (grid and list views) */
.listing-books .book-flat {
    flex: none;
    width: 100%;
    height: calc(100% - 28px);
    margin: 0 0 28px;
}
.listing-books[data-view="list"] .book-flat {
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 26px;
    height: auto;
    margin: 0;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}
.listing-books[data-view="list"] .listing-col:last-child .book-flat {
    border-bottom: 0;
}
.listing-books[data-view="list"] .book-flat-cover {
    grid-row: 1 / 3;
}
.listing-books[data-view="list"] .book-flat .book-info {
    padding-top: 4px;
}
.listing-books[data-view="list"] .book-flat .book-actions {
    flex-direction: row;
    align-self: start;
    max-width: 420px;
    margin-top: 0;
}
.listing-books[data-view="list"] .book-flat .book-btn {
    flex: 1;
}
@media (max-width: 575px) {
    .listing-books[data-view="list"] .book-flat {
        grid-template-columns: 110px 1fr;
        column-gap: 16px;
    }
    .listing-books[data-view="list"] .book-flat .book-actions {
        flex-direction: column;
    }
}

/* Products page: "Print Books" heading when the print filter is on */
.listing-format-title {
    margin: 0 0 12px;
    padding: 0 16px;
    color: #222;
    font-size: 20px;
    font-weight: 700;
}

/* My eBooks: reading progress under each book */
.reading-progress {
    max-width: 320px;
    margin-top: 6px;
}
.reading-progress-bar {
    height: 6px;
    margin-bottom: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: #e3e3e3;
}
.reading-progress-bar span {
    display: block;
    height: 100%;
    background: #222;
}

/* ---------- Cookie box: white card so it stands out on the dark footer and on white pages ---------- */
.cookie-box {
    background: #fff;
    color: #222;
    border: 1px solid #d6d6d6;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .15);
}
.cookie-title {
    color: #111;
}
.cookie-text {
    color: #555;
}
.cookie-text a {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
}
.cookie-text a:hover {
    color: #555;
}
.cookie-options {
    border-top-color: #e3e3e3;
}
.cookie-option {
    border-bottom-color: #e3e3e3;
}
.cookie-option-text strong {
    color: #111;
}
.cookie-option-text small {
    color: #6b6b6b;
}
/* Toggles: grey when off, black when on */
.cookie-switch {
    background: #cfcfcf;
}
.cookie-option input:checked + .cookie-switch {
    background: #222;
}
.cookie-option input:focus-visible + .cookie-switch {
    box-shadow: 0 0 0 3px rgba(34, 34, 34, .3);
}
/* Buttons: same style as the rest of the site */
.cookie-btn {
    border-radius: 6px;
}
.cookie-btn-link {
    background: none;
    color: #555;
    text-decoration: underline;
}
.cookie-btn-link:hover {
    color: #111;
}
.cookie-btn-outline {
    background: #fff;
    color: #222;
    box-shadow: inset 0 0 0 1px #222;
}
.cookie-btn-outline:hover {
    background: #222;
    color: #fff;
}
.cookie-btn-solid {
    background: #222;
    color: #fff;
}
.cookie-btn-solid:hover {
    background: #555;
}

/* Testimonials: same black-to-grey gradient as the header's top strip */
.testi-sec {
    background: linear-gradient(90deg, #111 0%, #2b2b2b 55%, #444 100%);
}
.testi-sec::before {
    display: none; /* no dot pattern: plain gradient like the header */
}
.testi-sec .heading {
    margin-bottom: 12px;
}
.testi-intro {
    max-width: 640px;
    margin: 0 auto 30px;
    color: #d6d6d6;
    font-size: 16px !important;
    line-height: 1.6;
}

/* Book covers react on hover (they open the book page) */
.book-flat-cover {
    transition: transform .2s, box-shadow .2s;
}
.book-flat-cover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

/* Contact page: company logo instead of the name */
.contact-logo {
    margin-bottom: 24px;
}
.contact-logo img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
}

/* ---------- Forms: one title style and one submit button (the Contact form's) everywhere ---------- */
.pub-title,
.demo-title,
.auth-bg .card h1.heading {
    margin-bottom: 8px;
    color: #111 !important;
    font-family: "Open Sans", sans-serif;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.25;
    letter-spacing: 0;
}
.contact-submit,
.demo-submit.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: 7px;
    background: #222;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.contact-submit:hover:not(:disabled) {
    background: #000;
    color: #fff;
}
/* Login / registration: same button, full width so it lines up with the fields of the centred card */
.auth-bg .auth-submit {
    display: flex;
    width: 100%;
    border-radius: 7px !important;
    font-size: 15px;
}

/* Login & registration: bright library photo (Unsplash License) with a soft overlay so the card stands out */
.auth-bg {
    background:
        linear-gradient(180deg, rgba(17, 17, 17, .30) 0%, rgba(17, 17, 17, .50) 100%),
        #3b3326 url("../images/auth-bg-library.jpg") center / cover no-repeat;
}

/* Form submit buttons: same hover as Login / Create Account (black turns grey) */
.contact-submit {
    transition: background .2s ease, box-shadow .2s ease;
}
.contact-submit:hover:not(:disabled),
.contact-submit:focus-visible {
    background: #555 !important;
    color: #fff !important;
}

/* Book page cover: the plain image, no 3D frame, blurred copy or spine shading */
.pd-cover {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}
.pd-cover img {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 767px) {
    .pd-cover {
        max-width: 220px;
    }
}

/* Related Books: cover-only cards in a grid */
.pd-related-grid .book-flat {
    flex: none;
    width: 100%;
    margin: 0;
}

/* X (Twitter) logo sits on the text line like the Font Awesome icons it replaced */
.x-icon {
    display: inline-block;
    vertical-align: -0.125em;
}

/* Publish With Us: proposal document upload */
.demo-file {
    height: auto !important;
    padding: 8px 10px !important;
    background: #fff;
    cursor: pointer;
}
.demo-file::file-selector-button {
    margin-right: 12px;
    padding: 7px 16px;
    border: 0;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.demo-file:hover::file-selector-button {
    background: #555;
}
.demo-hint {
    display: block;
    margin-top: 5px;
    color: #6b6b6b;
    font-size: 12px;
}

/* Searchable dropdowns: the highlighted option was black on black; keep it readable */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.demo-select-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #222 !important;
    color: #fff !important;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #ececec;
    color: #222;
}

/* ---------- Careers ---------- */
.career-hero {
    padding: 46px 0 40px;
    background: linear-gradient(90deg, #111 0%, #2b2b2b 55%, #444 100%); /* same as the header strip */
    color: #fff;
}
.career-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
}
.career-hero p {
    max-width: 680px;
    margin: 0 0 18px;
    color: #d6d6d6;
    font-size: 16px;
    line-height: 1.6;
}
.career-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.career-hero-job h1 {
    font-size: 30px;
}
.career-hero-job .career-meta li {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
    color: #eee;
}
.career-back {
    display: inline-block;
    margin-bottom: 12px;
    color: #cfcfcf;
    font-size: 14px;
}
.career-back:hover {
    color: #fff;
}
.career-page {
    padding: 40px 0 60px;
    background: #fff;
}
.career-perks {
    margin-bottom: 18px;
}
.career-perk {
    height: calc(100% - 22px);
    margin-bottom: 22px;
    padding: 24px 22px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
}
.career-perk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #222;
    color: #fff;
    font-size: 20px;
}
.career-perk h3 {
    margin: 0 0 6px;
    color: #111;
    font-size: 17px;
    font-weight: 700;
}
.career-perk p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
.career-section-title {
    margin: 0 0 18px;
    color: #111;
    font-size: 24px;
    font-weight: 700;
}
.career-card {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid #e3e3e3;
    border-left: 4px solid #222;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
    transition: box-shadow .2s, transform .2s;
}
.career-card:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}
.career-card-body {
    flex: 1;
    min-width: 0;
}
.career-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}
.career-card h3 a {
    color: #111;
}
.career-card h3 a:hover {
    color: #555;
}
.career-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.career-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: #f5f5f5;
    color: #444;
    font-size: 13px;
}
.career-summary {
    margin: 12px 0 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}
.career-deadline {
    margin: 8px 0 0;
    color: #777;
    font-size: 13px;
}
.career-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 7px;
    background: #222;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s, box-shadow .2s;
}
.career-btn:hover {
    background: #3a3a3a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.career-btn-block {
    display: flex;
    width: 100%;
    margin-top: 18px;
}
.career-empty {
    padding: 40px 24px;
    border: 1px dashed #ccc;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
}
.career-empty > i {
    margin-bottom: 12px;
    color: #999;
    font-size: 36px;
}
.career-empty h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 20px;
    font-weight: 700;
}
.career-empty p {
    margin: 0;
    color: #666;
}
.career-empty a {
    color: #111;
    text-decoration: underline;
}

/* job details */
.career-lead {
    margin-bottom: 20px;
    color: #333;
    font-size: 17px;
    line-height: 1.7;
}
.career-description {
    color: #444;
    font-size: 15px;
    line-height: 1.75;
}
.career-description h1,
.career-description h2,
.career-description h3,
.career-description h4 {
    margin: 26px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #111;
    font-size: 19px;
    font-weight: 700;
}
.career-description ul,
.career-description ol {
    margin: 0 0 16px;
    padding-left: 22px;
}
.career-description li {
    margin-bottom: 6px;
}
.career-apply {
    margin-top: 34px;
    scroll-margin-top: 230px; /* clear the sticky header */
}
.career-side {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fafafa;
}
.career-side h3 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #222;
    color: #111;
    font-size: 17px;
    font-weight: 700;
}
.career-overview,
.career-others {
    margin: 0;
    padding: 0;
    list-style: none;
}
.career-overview li {
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #ececec;
}
.career-overview li:last-child {
    border-bottom: 0;
}
.career-overview i {
    grid-row: span 2;
    padding-top: 3px;
    color: #222;
    font-size: 16px;
    text-align: center;
}
.career-overview span {
    color: #888;
    font-size: 12px;
}
.career-overview strong {
    color: #222;
    font-size: 14px;
    font-weight: 600;
}
.career-others li {
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
}
.career-others li:last-child {
    border-bottom: 0;
}
.career-others a {
    display: block;
    color: #111;
    font-weight: 600;
}
.career-others a:hover {
    color: #555;
}
.career-others small {
    color: #888;
}
@media (min-width: 992px) {
    .career-page aside .career-side:first-child {
        position: sticky;
        top: 230px;
    }
}
@media (max-width: 767px) {
    .career-hero h1 {
        font-size: 26px;
    }
    .career-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }
    .career-card-action .career-btn {
        width: 100%;
    }
}
/* the theme shrinks paragraphs and hides list bullets; keep job text readable */
.career-page p.career-lead {
    font-size: 17px !important;
}
.career-page p.career-summary,
.career-description p {
    font-size: 15px !important;
    line-height: 1.7 !important;
}
.career-description ul {
    list-style: disc;
}
.career-description ol {
    list-style: decimal;
}

/* ---------- User / seller dashboard sidebar: readable on the dark panel ---------- */
.sidebar.sidebar--style-3 {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #1d1d1d;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}
.sidebar--style-3 .widget-profile-box {
    padding: 26px 16px 18px !important;
    background: linear-gradient(90deg, #111 0%, #2b2b2b 55%, #444 100%); /* header strip gradient */
}
.sidebar--style-3 .widget-profile-box .image {
    border: 4px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.sidebar--style-3 .widget-profile-box .name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .2px;
}
.sidebar--style-3 .sidebar-widget-title {
    padding: 14px 20px 4px !important;
}
.sidebar--style-3 .sidebar-widget-title:before {
    display: none;
}
.sidebar--style-3 .sidebar-widget-title span {
    padding: 0;
    background: transparent;
    color: #9a9a9a;
    font-size: 11px;
    letter-spacing: .25em;
}
.sidebar--style-3 .widget-profile-menu {
    padding: 6px 0 16px !important;
}
.sidebar--style-3 .widget-profile-menu a {
    display: flex !important;
    align-items: center;
    margin: 2px 10px;
    padding: 11px 14px !important;
    border-left: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #ececec !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: background .15s, color .15s;
}
.sidebar--style-3 .widget-profile-menu a i {
    margin-right: 12px !important;
    color: #fff !important;
    font-size: 17px !important;
    opacity: .9;
}
.sidebar--style-3 .widget-profile-menu a:hover {
    background: #333 !important;
    color: #fff !important;
}
.sidebar--style-3 .widget-profile-menu a:hover i {
    opacity: 1;
}
/* the page you are on */
.sidebar--style-3 .widget-profile-menu a.active,
.sidebar--style-3 .widget-profile-menu a.active:hover {
    background: #fff !important;
    color: #111 !important;
    font-weight: 700 !important;
}
.sidebar--style-3 .widget-profile-menu a.active i {
    color: #111 !important;
    opacity: 1;
}
.sidebar--style-3 .widget-profile-menu a span[style*="green"] {
    color: #7ee29a !important; /* "(New Notifications)" */
}
.sidebar--style-3 .widget-profile-menu a.active span[style*="green"] {
    color: #1b8a3a !important;
}

/* Unread counter beside a menu name (e.g. Purchase History) and "New" on unseen orders */
.widget-profile-menu .nav-unread {
    display: inline-block;
    min-width: 19px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    vertical-align: super;
}
.order-new {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    vertical-align: middle;
}


/* ---------- Institution dashboard: Reading Activity ---------- */
.usage-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.usage-periods { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.usage-periods a { padding: 6px 14px; border: 1px solid #d5d5d5; border-radius: 18px; background: #fff; color: #333; font-size: 13px; }
.usage-periods a:hover { border-color: #222; color: #111; }
.usage-periods a.active { border-color: #222; background: #222; color: #fff; }
.usage-export { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 7px; background: #222; color: #fff !important; font-size: 13px; font-weight: 600; }
.usage-export:hover { background: #3a3a3a; }
.usage-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.usage-card { padding: 16px; border: 1px solid #e6e6e6; border-radius: 10px; background: #fff; }
.usage-card strong { display: block; color: #111; font-size: 22px; font-weight: 700; line-height: 1.2; }
.usage-card span { color: #777; font-size: 12px; }
.usage-card.warn { border-color: #f2c2c2; background: #fff6f6; }
.usage-card.warn strong { color: #c62828; }
.usage-panel { margin-top: 16px; padding: 18px 20px; border: 1px solid #e6e6e6; border-radius: 10px; background: #fff; }
.usage-panel h3 { margin: 0 0 14px; color: #111; font-size: 16px; font-weight: 700; }
.usage-panel h3 small { color: #888; font-size: 12px; font-weight: 400; }
.usage-chart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 16px; }
.usage-bar { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; padding-bottom: 20px; }
.usage-bar-fill { width: 70%; max-width: 34px; border-radius: 4px 4px 0 0; background: #222; transition: background .15s; }
.usage-bar:hover .usage-bar-fill { background: #555; }
.usage-bar-value { margin-bottom: 3px; color: #555; font-size: 10px; }
.usage-bar-label { position: absolute; bottom: 0; color: #888; font-size: 10px; white-space: nowrap; }
.usage-table { margin: 0; font-size: 13px; }
.usage-table th { border-top: 0; color: #777; font-size: 12px; font-weight: 600; white-space: nowrap; }
.usage-table td { vertical-align: middle; }
.usage-table tr.unused td { color: #999; }
.usage-book { color: #111; font-weight: 600; }
.usage-book:hover { color: #555; text-decoration: underline; }
.usage-progress { height: 6px; margin-bottom: 3px; overflow: hidden; border-radius: 3px; background: #eee; }
.usage-progress span { display: block; height: 100%; background: #222; }
.usage-warn { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 10px; background: #fdecec; color: #c62828; font-weight: 700; }
.usage-note { margin: 12px 0 0; color: #888; font-size: 12px; }
.usage-back { display: inline-block; margin-bottom: 4px; color: #666; font-size: 13px; }
@media (max-width: 767px) { .usage-chart { gap: 3px; } .usage-bar-label { font-size: 8px; } }

/* ---------- Page links (lists with several pages) ---------- */
.pagination {
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 0;
}
.pagination .page-item .page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d5d5d5;
    border-radius: 8px !important;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
    box-shadow: none;
}
.pagination .page-item .page-link:hover {
    border-color: #222;
    background: #f2f2f2;
    color: #111;
}
.pagination .page-item.active .page-link {
    border-color: #222;
    background: #222;
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    border-color: #e6e6e6;
    background: #fafafa;
    color: #bbb;
}

/* ---------- Institution library: strip, Library eBooks, Reader Access, Book Availability ---------- */
.library-strip { background: #f2f2f2; border-bottom: 1px solid #ddd; font-size: 14px; }
.library-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.library-strip span { color: #333; }
.library-strip a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 6px; background: #222; color: #fff !important; font-weight: 600; }
.library-strip a:hover { background: #3a3a3a; }
.library-page { padding: 34px 0 60px; background: #fff; }
.library-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.library-head h1 { margin: 6px 0 4px; color: #111; font-size: 28px; font-weight: 700; }
.library-head p { margin: 0; color: #666; }
.library-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 14px; background: #222; color: #fff; font-size: 12px; font-weight: 600; }
.library-search { position: relative; width: 320px; max-width: 100%; }
.library-search i { position: absolute; top: 50%; left: 14px; color: #888; transform: translateY(-50%); }
.library-search input { width: 100%; height: 44px; padding: 0 14px 0 38px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; }
.library-search input:focus { border-color: #222; outline: 0; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.library-book { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e6e6e6; border-radius: 10px; background: #fff; transition: box-shadow .2s, transform .2s; }
.library-book:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.library-cover { display: flex; align-items: center; justify-content: center; height: 260px; background: #f4f4f4; }
.library-cover img { width: 100%; height: 100%; object-fit: cover; }
.library-cover span { padding: 16px; color: #555; font-weight: 600; text-align: center; }
.library-info { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.library-info h3 { margin: 0 0 4px; color: #111; font-size: 15px; font-weight: 700; line-height: 1.35; }
.library-info small { color: #888; }
.library-read { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; margin-top: auto; padding-top: 0; border-radius: 7px; background: #222; color: #fff !important; font-weight: 600; }
.library-info small + .library-read, .library-info h3 + .library-read { margin-top: 12px; }
.library-read:hover { background: #3a3a3a; }
.library-empty { max-width: 560px; margin: 30px auto; padding: 40px 24px; border: 1px dashed #ccc; border-radius: 12px; text-align: center; }
.library-empty > i { margin-bottom: 12px; color: #999; font-size: 40px; }
.library-empty h1 { margin: 0 0 10px; color: #111; font-size: 24px; font-weight: 700; }
.library-empty p { margin: 0 0 18px; color: #666; }
.library-none { margin-top: 16px; color: #888; text-align: center; }
.access-option { display: flex; align-items: flex-start; gap: 18px; }
.access-body { flex: 1; }
.access-body p { margin: 0 0 10px; color: #555; font-size: 14px; }
.access-ips { margin-bottom: 8px; font-size: 13px; }
.access-ips code { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 8px; border-radius: 4px; background: #f2f2f2; color: #222; }
.access-hint { color: #888 !important; font-size: 12px !important; }
.access-switch { position: relative; display: inline-block; flex: 0 0 auto; width: 50px; height: 28px; margin: 2px 0 0; cursor: pointer; }
.access-switch input { width: 0; height: 0; opacity: 0; }
.access-slider { position: absolute; inset: 0; border-radius: 28px; background: #ccc; transition: background .2s; }
.access-slider:before { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); content: ""; transition: transform .2s; }
.access-switch input:checked + .access-slider { background: #222; }
.access-switch input:checked + .access-slider:before { transform: translateX(22px); }
.access-switch input:disabled + .access-slider { opacity: .6; }
.access-switch-sm { width: 42px; height: 24px; }
.access-switch-sm .access-slider:before { width: 18px; height: 18px; }
.access-switch-sm input:checked + .access-slider:before { transform: translateX(18px); }
.usage-periods-btn { padding: 6px 14px; border: 1px solid #d5d5d5; border-radius: 18px; background: #fff; color: #333; font-size: 13px; cursor: pointer; }
.usage-periods-btn:hover { border-color: #222; background: #222; color: #fff; }

/* ---------- Institution: individual readers ---------- */
.readers-result { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #b7dfc0; border-radius: 10px; background: #f3fbf5; }
.readers-result > strong { color: #1b7a33; }
.readers-result p { margin: 4px 0 10px; color: #555; font-size: 13px; }
.readers-pass { padding: 2px 8px; border-radius: 4px; background: #fff; color: #111; font-size: 14px; letter-spacing: .5px; }
.readers-books { max-height: 220px; overflow-y: auto; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; }
.readers-books label { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 5px 0; color: #333; font-size: 14px; font-weight: 400; cursor: pointer; }
.readers-books label input { margin-top: 4px; accent-color: #222; }
.readers-books .readers-all { margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.readers-table td { vertical-align: middle; }
.readers-books-toggle { color: #111; font-weight: 600; }
.readers-status { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.readers-status.on { background: #e8f5e9; color: #1b7a33; }
.readers-status.wait { background: #fff6e0; color: #8a6100; }
.readers-status.off { background: #eee; color: #777; }
.readers-actions { white-space: nowrap; }
.readers-actions form { display: inline-block; margin-left: 4px; }
.readers-actions button { width: 34px; height: 34px; border: 1px solid #d5d5d5; border-radius: 7px; background: #fff; color: #333; cursor: pointer; }
.readers-actions button:hover { border-color: #222; background: #222; color: #fff; }
.readers-actions button.danger:hover { border-color: #c62828; background: #c62828; }
.readers-edit td { background: #fafafa; }
.readers-edit .readers-books { max-height: 180px; margin-bottom: 10px; }
.readers-notify { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 0 0; font-size: 13px; font-weight: 400; }

/* Reader Access: two options, only one active */
.access-option.is-active { border-color: #222; box-shadow: 0 0 0 1px #222; }
.access-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.access-head h3 { margin: 0; }
.access-head h3 i { margin-right: 6px; color: #555; }
.access-head h3 small { color: #888; font-size: 12px; font-weight: 400; }
.access-active { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 16px; background: #222; color: #fff; font-size: 13px; font-weight: 600; }
.access-use { padding: 6px 16px; border: 1px solid #222; border-radius: 16px; background: #fff; color: #222; font-size: 13px; font-weight: 600; cursor: pointer; }
.access-use:hover { background: #222; color: #fff; }
.readers-actions button.readers-reset { width: auto; padding: 0 12px; font-size: 13px; }
.readers-table .access-switch { margin: 0; }
.readers-table tr:not(.unused) strong { color: #111; }
.readers-table tr.unused strong { color: #999; }

/* Dashboard sidebar stays in view while the page content scrolls (desktop) */
@media (min-width: 992px) {
    .profile .sidebar.sidebar--style-3 {
        position: sticky;
        top: 230px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #555 transparent;
    }
    .profile .sidebar.sidebar--style-3::-webkit-scrollbar { width: 6px; }
    .profile .sidebar.sidebar--style-3::-webkit-scrollbar-thumb { border-radius: 3px; background: #555; }
}
/* "hidden" on the page wrapper stops position: sticky from working; "clip" cuts sideways overflow the same way without that */
@supports (overflow-x: clip) {
    .body-wrap { overflow-x: clip; }
}

/* Book page: wishlist button (filled heart once saved) */
.pd-btn#pd-wishlist { cursor: pointer; }
.pd-btn#pd-wishlist.is-saved { border-color: #222; background: #222; color: #fff; }
.pd-btn#pd-wishlist.is-saved i { color: #ff6b6b; }
/* Header: wishlist next to the cart */
.logo-bar-icons .nav-wishlist-box { margin-right: 18px; }
.logo-bar-icons .nav-wishlist-box .nav-box-link:hover { color: #111; }

/* Dashboard (desktop): sidebar stays put, only the right section scrolls (row height set by the side-nav script) */
@media (min-width: 992px) {
    .profile .row.dash-split > .col-lg-3 { height: 100%; }
    .profile .row.dash-split > .col-lg-3 > .sidebar.sidebar--style-3 {
        position: static;
        max-height: 100% !important;
        overflow-y: auto;
    }
    .profile .row.dash-split > .col-lg-9 {
        height: 100%;
        overflow-y: auto;
        overscroll-behavior: auto;
        padding-right: 12px;
        scrollbar-width: thin;
        scrollbar-color: #999 transparent;
    }
    .profile .row.dash-split > .col-lg-9::-webkit-scrollbar { width: 8px; }
    .profile .row.dash-split > .col-lg-9::-webkit-scrollbar-thumb { border-radius: 4px; background: #bbb; }
    .profile .row.dash-split > .col-lg-9::-webkit-scrollbar-thumb:hover { background: #888; }
}

/* Form submit buttons: arrow after the text, nudges right on hover */
.contact-submit .fa-arrow-right { transition: transform .2s ease; }
.contact-submit:hover .fa-arrow-right { transform: translateX(4px); }
/* Hints inside empty fields: light grey, never mistaken for an answer */
.demo-input::placeholder { color: #a0a0a0; opacity: 1; }

/* Banner on content pages (About Us etc.): photo with a dark wash so the title stays readable */
.page-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 340px;
    padding: 56px 0;
    background-color: #2b2b2b;
    background-position: center;
    background-size: cover;
    color: #fff;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 17, 17, .88) 0%, rgba(17, 17, 17, .62) 45%, rgba(17, 17, 17, .15) 100%);
}
.page-banner .container {
    position: relative;
}
.page-banner h1 {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 14px;
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: .5px;
}
.page-banner h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
}
.page-banner p {
    max-width: 560px;
    margin: 0;
    color: #e2e2e2;
    font-size: 17px;
    line-height: 1.6;
}
.page-banner-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #cfcfcf;
    font-size: 14px;
}
.page-banner-crumbs a {
    color: #cfcfcf;
}
.page-banner-crumbs a:hover {
    color: #fff;
}
.page-banner-crumbs span {
    color: #fff;
    font-weight: 600;
}
@media (max-width: 767px) {
    .page-banner {
        min-height: 240px;
        padding: 40px 0;
    }
    .page-banner::before {
        background: rgba(17, 17, 17, .7);
    }
    .page-banner h1 {
        font-size: 30px;
    }
    .page-banner p {
        font-size: 15px;
    }
}

/* Footer: "Download Catalogue" with PDF and Excel buttons */
.site-footer .footer-catalogue span {
    display: block;
    margin-bottom: 6px;
    color: #bdbdbd;
    font-size: 14px;
}
/* PDF and Excel side by side under the text */
.site-footer .footer-catalogue-btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}
.site-footer .footer-links .footer-catalogue a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 12px;
    line-height: 18px;
}
.site-footer .footer-links .footer-catalogue a:hover {
    border-color: #fff;
}
