/* Frame the approved square logo without its excess transparent margins. */
.novelty-brand {
    display: inline-block;
    flex-shrink: 0;
    width: 160px;
    height: 124px;
    overflow: hidden;
    vertical-align: middle;
}

.novelty-brand .novelty-logo {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    transform: translateY(-11%);
}

.novelty-logo--light {
    filter: brightness(0) invert(1);
}

/* Let the black transparent logo sit directly on the white header. */
.header-1 .header-main {
    padding: 12px 0;
}

.header-1 .header-main::before,
.header-1 .header-main::after {
    content: none;
}

.header-1 .header-left {
    gap: 40px;
}

.header-1 .header-left .logo {
    margin-bottom: 0;
    flex-shrink: 0;
}

.header-1 .header-left .logo a {
    margin: 0;
}

.offcanvas__logo .novelty-brand {
    width: 150px;
    height: 116px;
}

.footer-section .novelty-brand {
    width: 200px;
    height: 155px;
}

@media (max-width: 1199px) {
    .header-1 .novelty-brand {
        width: 112px;
        height: 87px;
    }
}

#featured-products .featured-product-image,
.catalog-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#top-categories .category-card-link {
    display: block;
}

#top-categories .category-card-link:hover h3 {
    color: var(--theme);
}

#top-categories .category-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

#top-categories .book-thumb {
    width: min(245px, 100%);
    height: auto;
    aspect-ratio: 1;
    line-height: normal;
    display: grid;
    place-items: center;
}

#top-categories .circle-shape {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#top-categories .circle-shape img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#top-categories:focus-within .array-button {
    opacity: 1;
    visibility: visible;
}

.catalog-header {
    padding: 24px 0;
    background: var(--bg2);
}

.catalog-brand {
    color: var(--header);
    font-size: 28px;
    font-weight: 700;
}

#shop-catalog {
    scroll-margin-top: 120px;
}

.shop-filter-form {
    padding: 24px;
    border: 1px solid #D0E1E7;
    border-radius: 12px;
    background: #F7FAFB;
}

.shop-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.shop-filter-heading h2 {
    font-size: 22px;
}

.shop-filter-section {
    margin: 0 0 22px;
    padding: 0;
    min-width: 0;
}

.shop-subcategory-group[hidden] {
    display: none;
}

.shop-filter-title {
    display: block;
    float: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 10px;
}

.shop-filter-form .form-control,
.shop-filter-form .form-select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #B8CCD5;
    border-radius: 6px;
    background-color: #fff;
    color: var(--header);
    font-size: 14px;
}

.shop-filter-form .form-control:focus,
.shop-filter-form .form-select:focus {
    border-color: var(--theme);
    box-shadow: 0 0 0 3px #D0E1E7;
}

.shop-filter-help {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.shop-checkbox-list {
    display: grid;
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    padding: 3px;
}

.shop-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.shop-filter-checkbox input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    accent-color: var(--theme);
    cursor: pointer;
}

.shop-price-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.shop-price-fields label {
    font-size: 14px;
    margin-bottom: 6px;
}

.shop-filter-errors {
    color: #9E2525;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.shop-filter-form .shop-filter-submit {
    width: 100%;
    padding: 18px 12px;
}

.shop-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.shop-active-filters span {
    padding: 5px 12px;
    border-radius: 20px;
    background: #D0E1E7;
    color: var(--header);
}

.shop-active-filters a {
    padding: 5px 8px;
    text-decoration: underline;
}

.shop-empty-state {
    padding: 40px 24px;
    background: var(--bg2);
    border-radius: 10px;
}

.shop-empty-state h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.catalog-product-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-detail-image {
    width: 100%;
    height: 360px;
    object-fit: contain;
}

.product-detail-thumbnail {
    width: 65px;
    height: 80px;
    object-fit: contain;
}

.product-variant-form {
    display: flow-root;
}

.product-variant-form select,
.product-variant-form .nice-select {
    width: 100%;
    height: auto;
    min-height: 50px;
    white-space: normal;
}

.product-variant-form .nice-select .list {
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
}

.product-variant-form .nice-select .option {
    white-space: normal;
}

.product-specifications {
    display: grid;
    grid-template-columns: minmax(100px, 150px) minmax(0, 1fr);
    gap: 10px 20px;
    padding: 15px;
    margin: 0;
    overflow-wrap: anywhere;
}

.product-specifications dd {
    margin: 0;
}

.product-description img {
    max-width: 100%;
    height: auto;
}

.product-description ul,
.product-description ol {
    padding-left: 24px;
}

.product-description ul {
    list-style: disc;
}

.shop-details-wrapper .single-tab .nav-link {
    color: var(--header);
    font-weight: 700;
    font-size: 18px;
}

.shop-details-wrapper .single-tab .nav-link.active {
    color: var(--theme2);
}

.product-review {
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 20px;
}

.product-review h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

@media (max-width: 575px) {
    .product-specifications {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .product-specifications dd {
        margin-bottom: 12px;
    }
}

.homepage-author-card,
.homepage-review {
    display: block;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    overflow-wrap: anywhere;
}

.homepage-author-card:hover {
    border-color: var(--theme);
}

.homepage-author-card h3,
.homepage-review h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.homepage-author-card span,
.homepage-review a {
    color: var(--theme);
}

.homepage-review blockquote {
    margin: 16px 0;
}

/* Configured Novelty contact details can wrap at every screen size. */
.novelty-footer-contacts { flex-wrap: wrap; gap: 30px; }
.novelty-footer-contacts .contact-info-items { flex: 1 1 230px; justify-content: flex-start; max-width: 100%; }
.novelty-footer-contacts .content { min-width: 0; overflow-wrap: anywhere; }
.novelty-footer-contacts .icon { flex-shrink: 0; }

/* Show the current destination in the regular, sticky and mobile navigation. */
.header-main .main-menu ul li a.novelty-nav-active,
.mean-container .mean-nav ul li a.novelty-nav-active {
    color: var(--theme);
    text-decoration: underline;
    text-decoration-color: var(--theme2);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}
.header-top-1 .novelty-nav-active {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.header-main .cart-icon.novelty-nav-active {
    color: var(--theme2);
    border-color: var(--theme2);
}

.novelty-testimonials { margin-bottom: 0; }
.novelty-testimonials .testimonial-card-items { margin: 0; border-top: 3px solid var(--theme2); border-radius: 12px; padding: 28px; overflow-wrap: anywhere; }
.novelty-testimonial-quote { color: var(--theme); font-size: 28px; margin-bottom: 16px; }
.novelty-testimonials blockquote { margin: 0 0 28px; font-weight: 500; }
.novelty-testimonials .client-info .client-img { flex-shrink: 0; }
.novelty-testimonial-photo { object-fit: cover; }
.novelty-testimonial-avatar { display: grid; place-items: center; background: #e9f3f6; color: var(--theme); font-size: 28px; }
.novelty-testimonials .client-info .content { min-width: 0; }
.novelty-testimonials-empty h3 { margin-bottom: 12px; }

/* Original theme's horizontal rating cards, adapted for catalog content. */
#top-rated-books .top-ratting-box-items .book-thumb {
    flex: 0 0 104px;
}

#top-rated-books .book-thumb img {
    width: 64px;
    height: 105px;
}

#top-rated-books .book-content {
    min-width: 0;
}

#top-rated-books .title-header {
    gap: 12px;
}

#top-rated-books .title-header > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

#top-rated-books .shop-icon {
    flex-shrink: 0;
}

#top-rated-books .shop-icon a,
#top-rated-books .shop-icon button {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

#top-rated-books .shop-icon button:disabled {
    background: transparent;
    color: var(--text);
    border: 0;
    padding: 0;
    cursor: not-allowed;
}

#top-rated-books .shop-icon li:has(button:disabled):hover {
    background: transparent;
}

#top-rated-books .shop-icon li:has(button:disabled):hover i {
    color: var(--text);
}

#top-rated-books .shop-icon .icon {
    width: 16px;
    height: 16px;
}

#top-rated-books .shop-icon li:has(button:disabled):hover img {
    filter: none;
}

#top-rated-books .author-post {
    min-height: 30px;
    margin: 10px 0;
}

#top-rated-books .authot-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

#top-rated-books .author-post .thumb {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg);
}

#top-rated-books .shop-btn {
    gap: 12px;
}

#top-rated-books .shop-btn .star {
    flex-shrink: 0;
    white-space: nowrap;
}

#top-rated-books .catalog-add-form {
    margin: 0;
}

@media (max-width: 575px) {
    #top-rated-books .top-ratting-book-wrapper {
        padding: 25px 20px;
    }
}

/* Keep the original selling-slider cards aligned with real catalog content. */
#top-selling-books .swiper-slide {
    height: auto;
}

#top-selling-books .shop-box-items {
    display: flex;
    flex-direction: column;
    height: calc(100% - 40px);
}

#top-selling-books .book-thumb {
    width: 100%;
    flex-shrink: 0;
}

#top-selling-books .shop-content {
    flex: 1;
}

#top-selling-books .shop-content h3 {
    min-height: 52px;
}

#top-selling-books .author-post {
    gap: 10px;
    flex-wrap: wrap;
    min-height: 30px;
}

#top-selling-books .authot-list {
    min-width: 0;
}

#top-selling-books .author-post .thumb {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
}

#top-selling-books .author-post .thumb i {
    color: var(--theme);
}

#top-selling-books .star {
    white-space: nowrap;
}

#top-selling-books .shop-icon button {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
    color: var(--text);
    padding: 0;
    border-radius: inherit;
    cursor: not-allowed;
}

#top-selling-books .shop-icon li:has(button:disabled):hover {
    background: var(--white);
}

#top-selling-books .shop-icon li:has(button:disabled):hover i {
    color: var(--text);
}

#top-selling-books .shop-icon li:has(button:disabled):hover img {
    filter: none;
}

/* Original theme's rating filter, with a visible keyboard focus indicator. */
#shop-catalog .shop-review-filter {
    margin-top: 0;
}

#shop-catalog .shop-review-filter .single-sidebar-widget {
    background: transparent;
}

#shop-catalog .shop-review-filter .checkbox-area input:focus-visible + .checkmark {
    outline: 2px solid var(--theme);
    outline-offset: 3px;
}

#shop-catalog .shop-review-filter .text-color {
    white-space: nowrap;
}
