:root {
    --primary-background: #F6F3E9;
    --secondary-background: #C8E3D4;
    --main-accent: #3455D1;
    --secondary-accent: #FF7856;
    --detail-accent: #EFD45D;
    --main-text: #252832;
    --muted-text: #656A7A;
    --card-surface: #FFFFFF;
    --border-color: #E3DDCF;
    --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Noto Serif KR', serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-background);
    color: var(--main-text);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.35;
    color: inherit;
}

h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
    font-weight: 700;
    line-height: 1.25;
}

h2 {
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 1.8vw + 0.4rem, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--main-accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.65rem, 5vw, 2.15rem);
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: clamp(1.35rem, 4vw, 1.75rem);
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    h3 {
        font-size: 1.2rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    h4,
    h5,
    h6 {
        font-size: 1rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    a,
    p,
    span,
    li {
        overflow-wrap: break-word;
    }
}

/* ===== header_section ===== */
#header.site-header {
    width: 100%;
    background-color: var(--primary-background);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
}

#header .hazel-nav {
    min-height: 72px;
    padding: 0.75rem 0;
    background-color: var(--primary-background);
}

#header .brand-group {
    color: var(--main-text);
}

#header .brand-logo-icon {
    width: 40px;
    height: 40px;
    max-width: 48px;
    border-radius: 8px;
    background-color: var(--secondary-background);
    color: var(--main-accent);
}

#header .brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--main-text);
    white-space: nowrap;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    #header .brand-name {
        font-size: 0.8rem;
    }
}

#header .hazel-link {
    color: var(--main-text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
    transition: color 0.2s ease;
    position: relative;
}

#header .hazel-link:hover,
#header .hazel-link:focus {
    color: var(--main-accent);
}

#header .hazel-cta-btn {
    background-color: var(--main-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--main-accent);
    text-decoration: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    min-height: 44px;
}

#header .hazel-cta-btn:hover {
    background-color: #2743a8;
    color: #ffffff;
    border-color: #2743a8;
}

#header .navbar-toggler {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    gap: 4px;
}

#header .navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--main-accent);
    outline: none;
}

#header .toggler-icon-bar {
    width: 22px;
    height: 2px;
    background-color: var(--main-text);
    display: block;
    transition: all 0.2s ease;
}

#header .mobile-dropdown {
    display: none;
    background-color: var(--primary-background);
    border-top: 1px solid var(--border-color);
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

#header .mobile-dropdown.open {
    display: block;
}

#header .mobile-link {
    color: var(--main-text);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

#header .mobile-link:hover,
#header .mobile-link:focus {
    color: var(--main-accent);
    background-color: rgba(200, 227, 212, 0.3);
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
    hyphens: auto;
}

#hero h1 {
    word-break: keep-all;
}

@media(max-width:767.98px) {
    #hero h1 {
        font-size: 1.125rem;
        line-height: 1.25;
    }

    #hero p {
        font-size: 0.875rem;
    }
}

#hero .book-showcase-wrapper {
    min-height: 400px;
    gap: 8px;
    isolation: isolate;
}

#hero .hero-book-slot {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
}

#hero .book-card-item {
    width: 100%;
    pointer-events: none;
    transform: translateY(var(--book-offset, 0px)) rotate(var(--book-angle, 0deg));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#hero .hero-book-slot-1 { --book-angle: -6deg; }
#hero .hero-book-slot-2 { --book-offset: -12px; }
#hero .hero-book-slot-3 { --book-angle: 6deg; }

#hero .book-card-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
    #hero .hero-book-slot:hover .book-card-item {
        transform: translateY(calc(var(--book-offset, 0px) - 10px)) rotate(var(--book-angle, 0deg));
        box-shadow: 0 20px 40px rgba(37, 40, 50, 0.16) !important;
    }
}

@media (max-width: 575.98px) {
    #hero .book-showcase-wrapper { min-height: 280px; gap: 4px; }
    #hero .book-card-item { padding: 4px !important; }
    #hero .book-card-item .fw-bold { font-size: 0.7rem !important; }
}

/* ===== catalog_section ===== */
.catalog-block {
    background-color: var(--primary-background);
    color: var(--main-text);
    min-height: 100vh
}

.catalog-pill-badge {
    background-color: var(--secondary-background);
    color: var(--main-text);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: -.02em
}

.catalog-title {
    color: var(--main-text);
    letter-spacing: -.03em;
    word-break: keep-all
}

.catalog-subtitle {
    color: var(--muted-text);
    font-size: 1.05rem;
    word-break: keep-all
}

.catalog-search-wrapper {
    max-width: 540px;
    width: 100%
}

.catalog-search-input {
    background-color: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding-left: 2.8rem;
    color: var(--main-text);
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease
}

.catalog-search-input:focus {
    background-color: var(--card-surface);
    border-color: var(--main-accent);
    color: var(--main-text);
    box-shadow: 0 0 0 .25rem rgba(52, 85, 209, .15)
}

.catalog-search-wrapper .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    pointer-events: none
}

.text-muted-custom {
    color: var(--muted-text)
}

.filter-btn {
    background-color: var(--card-surface);
    color: var(--main-text);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: .5rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    transition: all .2s ease
}

.filter-btn:hover {
    background-color: var(--secondary-background);
    color: var(--main-text);
    border-color: var(--secondary-background)
}

.filter-btn.active {
    background-color: var(--main-accent);
    color: #ffffff;
    border-color: var(--main-accent)
}

.book-card {
    perspective: 1000px;
    height: 530px;
    width: 100%
}

.book-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
    transform-style: preserve-3d;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06)
}

.book-card.is-flipped .book-card-inner {
    transform: rotateY(180deg)
}

.book-card-front,
.book-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden
}

.book-card-front {
    background-color: var(--card-surface);
    color: var(--main-text)
}

.book-card-back {
    background-color: var(--main-text);
    color: #ffffff;
    transform: rotateY(180deg)
}

.book-cover-container {
    position: relative;
    width: 100%;
    height: 290px;
    flex-shrink: 0;
    padding: 12px;
    background-color: var(--primary-background);
    overflow: hidden
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}



.book-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700
}

.category-badge-art {
    background-color: var(--detail-accent);
    color: var(--main-text)
}

.category-badge-sci {
    background-color: var(--secondary-background);
    color: var(--main-text)
}

.category-badge-life {
    background-color: var(--secondary-accent);
    color: #ffffff
}

.book-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.book-card-price {
    color: var(--main-accent);
    font-weight: 800;
    font-size: 1.15rem
}

.book-card-summary {
    color: var(--muted-text);
    font-size: .85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em
}

.btn-primary-custom {
    background-color: var(--main-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color .2s ease
}

.btn-primary-custom:hover {
    background-color: #2a45aa;
    color: #ffffff
}

.modal-content-custom {
    border-radius: 16px;
    border: none;
    background-color: var(--card-surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15)
}

.selected-book-banner {
    background-color: var(--primary-background);
    border: 1px solid var(--border-color);
    border-radius: 10px
}

.selected-book-thumb {
    width: 46px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border-color)
}

.quantity-control .btn {
    width: 42px;
    font-weight: 700;
    border-color: var(--border-color);
    color: var(--main-text)
}

.quantity-control input {
    border-color: var(--border-color);
    font-weight: 600;
    color: var(--main-text)
}

@media(max-width:767.98px) {
    .catalog-title {
        font-size: 1rem;
        line-height: 1.2;
        hyphens: auto
    }

    .book-card {
        height: 510px
    }

    .book-cover-container {
        height: 280px
    }

    .book-card-title {
        font-size: .875rem
    }
}

/* ===== discover_section ===== */
#discover {
    overflow: hidden;
}

#discover .js-discover-tab {
    transition: all 0.25s ease-in-out;
    border-width: 1px;
}

#discover .js-discover-tab:hover {
    opacity: 0.95;
}

#discover .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-color);
}

#discover .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(37, 40, 50, 0.08) !important;
}

#discover input.form-control:focus {
    border-color: var(--main-accent);
    box-shadow: 0 0 0 0.2rem rgba(52, 85, 209, 0.15);
}

@media (max-width: 767.98px) {
    #discover h2 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        hyphens: auto;
    }

    #discover h3 {
        font-size: 0.875rem !important;
    }

    #discover .js-discover-tab {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem !important;
    }
}

/* ===== reading_notes_section ===== */
.reading-notes-block {
    width: 100%;
    box-sizing: border-box;
}

.reading-notes-block .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reading-notes-block .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 40, 50, 0.08) !important;
}

.reading-notes-block .js-share-btn:hover {
    background-color: #2743a8 !important;
    border-color: #2743a8 !important;
}

.reading-notes-block .share-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    start: 50%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--main-text) transparent;
}

@media (max-width: 767.98px) {
    .reading-notes-block h2 {
        font-size: 1rem !important;
        line-height: 1.25 !important;
        hyphens: auto;
    }

    .reading-notes-block h3 {
        font-size: 0.875rem !important;
        line-height: 1.25 !important;
        hyphens: auto;
    }
}

/* ===== delivery_info_section ===== */
#delivery {
    background-color: var(--primary-background);
    color: var(--main-text);
    overflow: hidden;
    hyphens: auto;
}

#delivery .delivery-badge {
    background-color: var(--secondary-background);
    color: var(--main-text);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

#delivery .delivery-main-title {
    color: var(--main-text);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

#delivery .delivery-sub-title {
    color: var(--muted-text);
    font-size: 1rem;
    line-height: 1.6;
}

#delivery .delivery-card {
    background-color: var(--card-surface);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#delivery .delivery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 40, 50, 0.06);
}

#delivery .icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: var(--primary-background);
    border: 1px solid var(--border-color);
}

#delivery .icon-elem {
    font-size: 26px;
    color: var(--main-accent);
}

#delivery .delivery-card-title {
    color: var(--main-text);
    font-size: 1.125rem;
    font-weight: 700;
}

#delivery .delivery-card-desc {
    color: var(--muted-text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

#delivery .faq-container {
    background-color: var(--card-surface);
    border: 1px solid var(--border-color);
}

#delivery .faq-section-title {
    color: var(--main-text);
    font-size: 1.35rem;
    font-weight: 700;
}

#delivery .faq-section-subtitle {
    color: var(--muted-text);
    font-size: 0.95rem;
}

#delivery .faq-item {
    border: 1px solid var(--border-color);
    background-color: var(--primary-background);
}

#delivery .faq-item .accordion-button {
    background-color: var(--primary-background);
    color: var(--main-text);
    font-size: 1rem;
    font-weight: 600;
    padding: 1.15rem 1.25rem;
    box-shadow: none;
    border: 0;
}

#delivery .faq-item .accordion-button:not(.collapsed) {
    background-color: var(--card-surface);
    color: var(--main-accent);
    border-bottom: 1px solid var(--border-color);
}

#delivery .faq-item .accordion-button::after {
    filter: grayscale(1);
}

#delivery .faq-index {
    color: var(--secondary-accent);
    font-weight: 700;
    font-size: 0.95rem;
}

#delivery .faq-title {
    flex-grow: 1;
    text-align: left;
}

#delivery .faq-body {
    background-color: var(--card-surface);
    color: var(--main-text);
    font-size: 0.9375rem;
    line-height: 1.7;
    padding: 1.25rem;
}

@media (max-width: 767.98px) {
    #delivery .delivery-main-title {
        font-size: 1rem;
        line-height: 1.2;
    }

    #delivery .delivery-card-title,
    #delivery .faq-section-title {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    #delivery .delivery-sub-title,
    #delivery .delivery-card-desc,
    #delivery .faq-section-subtitle,
    #delivery .faq-body {
        font-size: 0.85rem;
    }

    #delivery .faq-item .accordion-button {
        font-size: 0.875rem;
        padding: 0.85rem 1rem;
    }

    #delivery .faq-container {
        padding: 1.25rem;
    }
}

/* ===== contact_section ===== */
#contact {
    background-color: var(--primary-background);
    color: var(--main-text);
}

.contact-sidebar {
    background-color: var(--secondary-background);
    border: 1px solid var(--border-color);
    color: var(--main-text);
}

.contact-tag {
    background-color: var(--card-surface);
    color: var(--main-accent);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    width: fit-content;
}

.contact-title {
    font-size: clamp(1rem, 2.5vw, 1.875rem);
    line-height: 1.25;
    font-weight: 800;
    color: var(--main-text);
    hyphens: auto;
}

@media (max-width: 767.98px) {
    .contact-title {
        font-size: 1rem;
        line-height: 1.2;
    }
}

.contact-desc {
    color: var(--muted-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: var(--card-surface);
    color: var(--main-accent);
    font-size: 1.25rem;
    border: 1px solid var(--border-color);
}

.contact-label {
    font-size: 0.75rem;
    color: var(--muted-text);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-value {
    font-weight: 600;
    color: var(--main-text);
    word-break: break-all;
}

.contact-link {
    color: var(--main-text);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--main-accent);
    text-decoration: underline;
}

.contact-form-container {
    background-color: var(--card-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(37, 40, 50, 0.04);
}

.text-dark-custom {
    color: var(--main-text);
    font-size: 0.9rem;
}

.custom-input {
    background-color: var(--primary-background);
    border: 1px solid var(--border-color);
    color: var(--main-text);
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input:focus {
    background-color: var(--card-surface);
    border-color: var(--main-accent);
    color: var(--main-text);
    box-shadow: 0 0 0 0.25rem rgba(52, 85, 209, 0.15);
}

.custom-input::placeholder {
    color: var(--muted-text);
    opacity: 0.8;
}

.custom-checkbox {
    border-color: var(--border-color);
    background-color: var(--primary-background);
}

.custom-checkbox:checked {
    background-color: var(--main-accent);
    border-color: var(--main-accent);
}

.privacy-anchor {
    color: var(--main-accent);
    font-weight: 600;
    text-decoration: underline;
}

.privacy-anchor:hover {
    color: var(--secondary-accent);
}

.submit-btn {
    background-color: var(--main-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background-color: #2743a7;
    color: #ffffff;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* ===== footer_section ===== */
#footer.hazelret-footer {
    background-color: #252832;
    color: #FFFFFF;
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    hyphens: auto;
}

#footer .hazelret-brand-name {
    font-size: 1.625rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

#footer .hazelret-brand-desc {
    color: #A6ABB9;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 360px;
}

#footer .hazelret-company-info {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

#footer .hazelret-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: #A6ABB9;
    font-size: 0.875rem;
    line-height: 1.5;
}

#footer .hazelret-info-icon {
    color: #FFFFFF;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

#footer .hazelret-info-text {
    color: #A6ABB9;
    word-break: keep-all;
}

#footer .hazelret-info-link {
    color: #A6ABB9;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .hazelret-info-link:hover {
    color: #FFFFFF;
}

#footer .hazelret-footer-title {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.125rem;
    letter-spacing: -0.01em;
}

#footer .hazelret-nav-list,
#footer .hazelret-legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

#footer .hazelret-nav-link,
#footer .hazelret-legal-link {
    color: #A6ABB9;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: inline-block;
}

#footer .hazelret-nav-link:hover,
#footer .hazelret-legal-link:hover {
    color: #FFFFFF;
}

#footer .hazelret-bottom-bar {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

#footer .hazelret-copyright {
    color: #A6ABB9;
    font-size: 0.8125rem;
    margin: 0;
}

@media(max-width:767.98px) {
    #footer.hazelret-footer {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    #footer .hazelret-brand-name {
        font-size: 1.125rem;
        line-height: 1.2;
    }

    #footer .hazelret-footer-title {
        font-size: 0.875rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    #footer .hazelret-brand-desc {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    #footer .hazelret-bottom-bar {
        margin-top: 2.5rem;
        padding-top: 1.25rem;
    }
}
/* Book covers keep their complete portrait composition. */
.recommendation-cover {
    height: 380px;
    padding: 20px;
    background-color: var(--primary-background);
}
.recommendation-cover img {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    margin: auto;
}
.selected-book-thumb { width: 66px; height: 99px; flex-shrink: 0; }
@media (min-width: 992px) {
    #header .navbar-toggler { display: none; }
}

/* Lock the page while allowing a long dialog to scroll internally. */
html { scrollbar-gutter: stable; }
html.dialog-open { overflow: hidden; }
body.dialog-open { position: fixed; width: 100%; overflow: hidden; }
.modal-backdrop.show { opacity: 1; }
.modal-backdrop {
    background: rgba(20, 24, 34, 0.58);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
#orderModal { overscroll-behavior: contain; }
#orderModal .modal-body { overscroll-behavior: contain; }
#cookieConsentModal {
    background: rgba(20, 24, 34, 0.58);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    overscroll-behavior: contain;
}
.cookieConsentModalDialog { max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) {
    #hero .book-card-item { transition: none; }
}
