/* Bootstrap's default green alert-success, instead of this site's
   custom cream/tan styling. */
.public-site .alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* Footer background and copyright strip colours */
.storefront-site .store-footer {
    background: #cee8f5;
}

.storefront-site .store-footer .copyright {
    background: #1f97d3;
    border-top: 0;
    color: #fff;
}

/* Subjects and Forthcoming books as two separate stacked sidebar boxes. */
.store-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.store-shelf-sidebar-forthcoming .subject-sidebar-header h2 {
    font-size: 1.1rem !important;
}

.store-shelf-sidebar-forthcoming .subject-sidebar-header a {
    white-space: nowrap;
}

.sidebar-forthcoming-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 1rem;
}

.sidebar-forthcoming-list a {
    align-items: center;
    color: inherit;
    display: flex;
    gap: .65rem;
    text-decoration: none;
}

.sidebar-forthcoming-list img {
    border-radius: .25rem;
    flex: 0 0 auto;
    height: 3.5rem;
    object-fit: cover;
    width: 2.5rem;
}

.sidebar-forthcoming-thumb-empty {
    background: var(--store-line);
    border-radius: .25rem;
    display: block;
    flex: 0 0 auto;
    height: 3.5rem;
    width: 2.5rem;
}

.sidebar-forthcoming-title {
    -webkit-box-orient: vertical;
    color: var(--store-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.3;
    overflow: hidden;
}

.sidebar-forthcoming-price {
    color: #0f8a5f;
    display: block;
    font-size: .8rem;
    font-weight: 700;
    margin-top: .2rem;
}

/* With the hero slider removed, the nav bar sits directly above the
   content, so the section's old hero-spacing top padding is too much. */
.storefront-home .store-products-section {
    padding-top: 1.75rem;
}

/* Compact image-only slider showing book photography, above the welcome text. */
.book-mini-slider {
    border-radius: .5rem;
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.book-mini-slider .carousel-item {
    height: 260px;
}

.book-mini-slider .carousel-item img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.book-mini-slider .carousel-control-prev,
.book-mini-slider .carousel-control-next {
    width: 3rem;
}

.book-mini-slider .carousel-control-prev-icon,
.book-mini-slider .carousel-control-next-icon {
    background-color: rgba(23, 32, 47, .5);
    border-radius: 50%;
    padding: .8rem;
}

/* The "about us" intro now sits inline in the content column, beside the
   subject sidebar, instead of as its own full-width section. */
.store-introduction-inline {
    padding: 0 0 2rem;
}

.store-introduction-inline .store-introduction-grid {
    align-items: start;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 16rem);
}

@media (max-width: 767.98px) {
    .store-introduction-inline .store-introduction-grid {
        grid-template-columns: 1fr;
    }
}

.public-site {
    --public-ink: #16233f;
    --public-muted: #5b6472;
    --public-line: #dfe4ec;
    --public-accent: #d98e2b;
    --public-accent-dark: #b5741c;
    --public-gold: #16233f;
    --public-paper: #f7f5ee;
    --public-soft: #eef1f6;
    --public-focus: rgba(217, 142, 43, .25);
}

/* Brand mark: "Demo 01" in blue, "Publication" in black */
.site-brand-mark,
.site-brand-mark .site-brand-figure,
.store-footer-brand .site-brand-mark,
.store-footer-brand .site-brand-mark .site-brand-figure {
    color: #00a1ff;
}

.site-brand-sub,
.store-footer-brand .site-brand-sub {
    color: #111417;
}

/* Top contact strip: white background, phone/email on the left,
   login and cart on the right. */
.store-contact-bar {
    background: #fff;
    border-bottom: 1px solid var(--public-line);
    padding: .55rem 0;
}

.store-contact-bar-grid {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    justify-content: space-between;
}

.store-search-compact {
    flex: 1 1 auto;
    max-width: 26rem;
    position: relative;
}

.store-search-compact input {
    font-size: .86rem;
    padding: .5rem .9rem .5rem 2.5rem;
}

.store-search-compact .store-search-icon {
    left: .9rem;
}

.store-search-compact button {
    font-size: .82rem;
    padding: 0 1rem;
}

@media (max-width: 767.98px) {
    .store-search-compact {
        display: none;
    }
}

.store-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
}

.store-contact-links a {
    align-items: center;
    color: var(--public-ink);
    display: inline-flex;
    font-size: .85rem;
    font-weight: 400;
    gap: .45rem;
    text-decoration: none;
}

.store-contact-links a:hover {
    color: var(--public-accent);
}

.store-contact-bar .store-header-actions {
    gap: 1.4rem;
}

.store-contact-bar .store-header-action {
    flex-direction: row;
    font-size: .85rem;
    font-weight: 400;
    gap: .45rem;
    min-width: 0;
}

.store-contact-bar .store-header-action > i {
    font-size: 1rem;
}

.store-contact-bar .store-cart-count {
    align-items: center;
    background: var(--public-accent);
    border: 0;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: .7rem;
    height: 1.25rem;
    justify-content: center;
    position: static;
    width: 1.25rem;
}

/* Full-width blue navigation bar below the logo row: white text,
   square corners (no pill/rounded effect on the links). */
.storefront-site .store-nav-bar {
    background: #00a1ff;
}

.storefront-site .store-nav-bar .site-nav-link {
    border-radius: 0;
    color: #fff !important;
}

.storefront-site .store-nav-bar .site-nav-link::after {
    display: none;
}

.storefront-site .store-nav-bar .site-nav-link:hover,
.storefront-site .store-nav-bar .site-nav-link:focus-visible,
.storefront-site .store-nav-bar .site-nav-link.is-active {
    background-color: rgba(255, 255, 255, .18) !important;
    box-shadow: none !important;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .storefront-site .store-nav-bar {
        min-height: 0;
        padding: 0;
    }

    /* Bootstrap's .collapse:not(.show) rule otherwise beats this site's
       .site-nav-panel display:flex rule, so the mobile drawer never shows. */
    .site-nav-panel.is-open {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .storefront-site .store-nav-bar {
        min-height: 0;
    }

    .storefront-site .store-nav-bar .site-nav-panel {
        justify-content: flex-start;
    }

    .storefront-site .store-nav-bar .site-nav-link {
        font-size: .88rem;
        min-height: 0;
        padding: .9rem 1.1rem;
    }
}

.book-card:hover {
    border-color: rgba(217, 142, 43, .5);
}

.books-band .view-more-link {
    align-items: center;
    background-color: rgba(217, 142, 43, .1);
    border: 1px solid rgba(217, 142, 43, .25);
    border-radius: 999px;
    box-shadow: 0 .55rem 1.15rem rgba(23, 32, 47, .08);
    color: var(--public-accent-dark);
    display: inline-flex;
    font-weight: 800;
    line-height: 1;
    padding: .72rem 1.05rem;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.books-band .view-more-link:hover,
.books-band .view-more-link:focus {
    background-color: var(--public-accent);
    border-color: var(--public-accent);
    box-shadow: 0 .75rem 1.35rem rgba(23, 32, 47, .14);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.book-cover-placeholder {
    background: linear-gradient(160deg, #16233f, #0d1626 56%, #d98e2b);
}

.catalogue-search .form-control:focus,
.contact-form-panel .form-control:focus {
    box-shadow: 0 0 0 .25rem rgba(217, 142, 43, .2);
}

.public-pagination .page-link:focus {
    box-shadow: 0 0 0 .2rem rgba(217, 142, 43, .22);
}

.book-detail-subjects a {
    background-color: rgba(217, 142, 43, .12);
}

.site-footer a:hover {
    color: var(--public-accent);
}
