.bookstore-shell {
    --bookstore-primary: #1683a7;
    --bookstore-dark: #123944;
    --bookstore-gold: #d5a431;
    --bookstore-muted: #718289;
    --bookstore-border: #d7e7ed;
    max-width: 1480px;
    margin: 0 auto;
    padding: 12px 4px 54px;
}

.ncaq-bookstore-catalog-page #page-header {
    display: none;
}

.bookstore-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2.8rem;
}

.bookstore-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
}

.bookstore-filter {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--bookstore-border);
    border-radius: 0;
    color: #62757c;
    padding: .55rem .9rem;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.bookstore-filter:hover,
.bookstore-filter.active {
    border-color: var(--bookstore-primary);
    color: var(--bookstore-primary);
    background: #f7fcfe;
    text-decoration: none;
}

.bookstore-filter-count {
    min-width: 26px;
    height: 26px;
    padding-inline: 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 50px;
    color: #6f8a94;
    background: #edf4f7;
    font-size: .72rem;
    font-weight: 700;
}

.bookstore-filter.active .bookstore-filter-count {
    color: #fff;
    background: var(--bookstore-primary);
}

.bookstore-orders-link {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    color: var(--bookstore-primary);
    border: 1px solid var(--bookstore-primary);
    text-decoration: none;
}

.bookstore-orders-link:hover {
    color: #fff;
    background: var(--bookstore-primary);
    text-decoration: none;
}

.bookstore-search {
    width: min(350px, 100%);
    min-width: 280px;
    height: 46px;
    position: relative;
    border: 1px solid var(--bookstore-border);
    background: #fff;
}

.bookstore-search input {
    width: 100%;
    height: 100%;
    padding: 0 48px 0 14px;
    border: 0;
    outline: 0;
    color: var(--bookstore-dark);
    background: transparent;
}

[dir="rtl"] .bookstore-search input {
    padding: 0 14px 0 48px;
}

.bookstore-search input:focus {
    box-shadow: inset 0 0 0 1px var(--bookstore-primary);
}

.bookstore-search-button {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 45px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--bookstore-dark);
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bookstore-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 3rem;
}

.bookstore-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .25s ease;
}

.bookstore-card:hover {
    transform: translateY(-5px);
}

.bookstore-cover {
    align-items: center;
    background: linear-gradient(135deg, #e9f5f8, #f5f8f9);
    display: flex;
    aspect-ratio: 1.48 / 1;
    justify-content: center;
    overflow: hidden;
}

.bookstore-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.bookstore-placeholder {
    font-size: 4rem;
}

.bookstore-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 .85rem;
}

.bookstore-category {
    color: var(--bookstore-primary);
    font-size: .76rem;
    font-weight: 600;
}

.bookstore-title {
    width: 100%;
    min-height: 48px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--bookstore-dark);
    font-size: 1.03rem;
    font-weight: 650;
    line-height: 1.55;
    margin: .38rem 0 .25rem;
}

.bookstore-author {
    width: 100%;
    min-height: 20px;
    overflow: hidden;
    color: #849399;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookstore-price {
    margin-top: .75rem;
    color: var(--bookstore-dark);
    font-size: .92rem;
    font-weight: 700;
}

.bookstore-stock {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .55rem;
    color: #92a0a5;
    font-size: .75rem;
}

.bookstore-stock .fa {
    color: var(--bookstore-dark);
    font-size: .9rem;
}

.bookstore-stock.is-empty,
.bookstore-stock.is-empty .fa {
    color: #a66c6c;
}

.bookstore-card-action {
    margin-top: auto;
}

.bookstore-buy-button {
    width: 100%;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1rem;
    color: var(--bookstore-primary);
    border: 1px solid var(--bookstore-primary);
    background: #fff;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
        border-radius: 16px;
}

.bookstore-buy-button:hover {
    color: #fff;
    background: var(--bookstore-primary);
    text-decoration: none;
}

.bookstore-buy-button.is-disabled {
    color: #89989d;
    border-color: #bdc9cd;
    background: #f7f9fa;
    cursor: not-allowed;
}

.bookstore-empty {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
    color: var(--bookstore-muted);
    border: 1px dashed var(--bookstore-border);
    background: #fbfdfe;
}

.bookstore-empty .fa {
    color: var(--bookstore-primary);
    font-size: 3rem;
    opacity: .55;
}

.bookstore-empty p {
    margin: 0;
}

.bookstore-pagination {
    margin-top: 3.5rem;
}

.bookstore-pagination .pagination {
    justify-content: center;
}

.bookstore-form-card {
    background: #fff;
    border: 1px solid #e2e9e8;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 40, 35, .08);
    margin: 0 auto;
    max-width: 900px;
    padding: 1.5rem;
}

.bookstore-delivery-shell {
    max-width: 1500px;
    margin: 0 auto;
}

.bookstore-delivery-search {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid #d7e7ed;
    border-radius: 12px;
    background: #fff;
}

.bookstore-delivery-field {
    min-width: 210px;
}

.bookstore-delivery-field label {
    display: block;
    margin-bottom: .45rem;
    color: #334f58;
    font-weight: 600;
}

.bookstore-delivery-query {
    flex: 1 1 420px;
}

.bookstore-delivery-actions {
    display: flex;
    gap: .6rem;
}

.bookstore-delivery-heading {
    margin-bottom: .25rem;
    color: #123944;
}

.bookstore-delivery-table td {
    vertical-align: middle;
}

.bookstore-delivery-table .singlebutton,
.bookstore-delivery-table .singlebutton form {
    margin: 0;
}

.bookstore-order-number {
    direction: ltr;
    display: inline-block;
    color: #075d78;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    white-space: nowrap;
}

.bookstore-delivery-empty {
    padding: 2.5rem 1rem;
    color: #718289;
    border: 1px dashed #d7e7ed;
    background: #fbfdfe;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .bookstore-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .bookstore-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .bookstore-search {
        width: 100%;
    }

    .bookstore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .bookstore-shell {
        padding-inline: 4px;
    }

    .bookstore-filters {
        flex-wrap: nowrap;
        padding-bottom: .5rem;
        overflow-x: auto;
    }

    .bookstore-filter,
    .bookstore-orders-link {
        flex: 0 0 auto;
    }

    .bookstore-search {
        min-width: 0;
    }

    .bookstore-grid {
        grid-template-columns: 1fr;
    }

    .bookstore-cover {
        aspect-ratio: 1.6 / 1;
    }

    .bookstore-delivery-search,
    .bookstore-delivery-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bookstore-delivery-field,
    .bookstore-delivery-query {
        min-width: 0;
        flex-basis: auto;
        width: 100%;
    }
}
