:root {
    --bg: #fcfbf8;
    --surface: #ffffff;
    --surface-soft: #f7f3ee;
    --text: #171717;
    --muted: #6b7280;
    --line: #e8e2d9;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 10px 30px rgba(17, 24, 39, .06);
    --container: 1200px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.5;
    text-align: center;
}

a {
    color: inherit;
    text-decoration: none
}

img {
    display: block;
    max-width: 100%
}

.siteNav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(252, 251, 248, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(232, 226, 217, .7);
}

.siteNav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.siteBrand img {
    height: 34px;
    width: auto;
}

.siteNav__links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.siteNav__link {
    font-size: 14px;
    color: #444;
    position: relative;
    transition: color .2s ease;
}

.siteNav__link:hover {
    color: #111;
}

.siteNav__link.is-active {
    color: #111;
    font-weight: 700;
}

.siteNav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: #111;
}

.siteNav__link--accent {
    color: #7c3aed;
    font-weight: 600;
}

.siteNav__toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
}

.siteNav__toggle-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.siteNav__toggle-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
    transition-timing-function: cubic-bezier(.55, .055, .675, .19);
    transition-duration: .15s;
}

.siteNav__toggle-inner,
.siteNav__toggle-inner::after,
.siteNav__toggle-inner::before {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    position: absolute;
    transition-property: transform;
    transition-duration: .15s;
    transition-timing-function: ease;
}

.siteNav__toggle-inner::after,
.siteNav__toggle-inner::before {
    content: "";
    display: block;
}

.siteNav__toggle-inner::before {
    top: -8px;
    transition: top .12s cubic-bezier(.33333, .66667, .66667, 1) .2s, transform .13s cubic-bezier(.55, .055, .675, .19);
}

.siteNav__toggle-inner::after {
    bottom: -8px;
    transition: bottom .12s cubic-bezier(.33333, .66667, .66667, 1) .2s, transform .13s cubic-bezier(.55, .055, .675, .19);
}

.siteNav__toggle.is-active .siteNav__toggle-inner {
    transform: translate3d(0, 0, 0) rotate(45deg);
    transition-delay: .22s;
    transition-timing-function: cubic-bezier(.215, .61, .355, 1);
}

.siteNav__toggle.is-active .siteNav__toggle-inner::before {
    top: 0;
    transition: top .1s cubic-bezier(.33333, 0, .66667, .33333) .16s, transform .13s cubic-bezier(.215, .61, .355, 1) .25s;
    transform: rotate(-90deg);
}

.siteNav__toggle.is-active .siteNav__toggle-inner::after {
    bottom: 0;
    transition: bottom .1s cubic-bezier(.33333, 0, .66667, .33333) .16s, transform .13s cubic-bezier(.215, .61, .355, 1) .25s;
    transform: rotate(-90deg);
}

.page {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px 18px 40px;
}

.hero {
    padding: 0;
}

.hero__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.hero__text {
    font-size: 16px;
    color: #4b5563;
}

.hero__actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    font-weight: 600;
    font-size: 14px;
}

.btn--dark {
    background: #111;
    color: #fff;
}

.btn--light {
    background: #fff;
    border: 1px solid var(--line);
}

.sectionTop,
.sectionBottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 20px;
}

.sectionBottom {
    margin-top: 30px;
}

.sectionBottom a {
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid var(--line-dark);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.sectionTop>a {
    margin-top: 4px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.sectionTop h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.sectionTop a {
    font-size: 14px;
    color: #666;
}

.bookSlider {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.bookSlider::-webkit-scrollbar {
    display: none;
}

.bookSlider>* {
    flex: 0 0 240px;
}

@media (min-width: 768px) {
    .bookSlider>* {
        flex-basis: 260px;
    }
}

@media (min-width: 1200px) {
    .bookSlider>* {
        flex-basis: 280px;
    }
}

.catalogGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 50px 22px;
}

.bookCard {
    display: block;
}

.bookCard__media {
    aspect-ratio: 1/1;
    background: var(--surface-soft);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.bookCard:hover .bookCard__media {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.bookCard__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .28s ease, transform .35s ease;
}

.bookCard__img--primary {
    opacity: 1;
}

.bookCard__img--hover {
    position: absolute;
    inset: 18px;
    width: calc(100% - 36px);
    height: calc(100% - 36px);
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
}

.bookCard__media.has-hover-image {
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .bookCard:hover .bookCard__img--primary {
        opacity: 0;
    }

    .bookCard:hover .bookCard__img--hover {
        opacity: 1;
    }
}

.bookCard__body {
    padding: 12px 4px 0;
    text-align: center;
}

.bookCard__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bookCard__meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.bookCard__price {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
}

.collectionGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.collectionCard {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
}

.collectionCard__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.collectionCard__desc {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

.catalogToolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.catalogSearch {
    display: flex;
    gap: 10px;
}

.catalogSearch input {
    flex: 1;
    min-height: 46px;
    border: 1px solid var(--line);
    padding: 0 16px;
    background: #fff;
    font-size: 14px;
}

.catalogSearch button {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    background: #111;
    color: #fff;
    font-weight: 700;
}

.catalogFilters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalogFilters select {
    min-height: 42px;
    border: 1px solid var(--line);
    padding: 0 14px;
    background: #fff;
    font-size: 14px;
}

.resultsBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #555;
}

.listingHero {
    padding: 12px 0 22px;
}

.listingHero__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.listingHero h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.listingHero p {
    margin: 12px 0 0;
    color: #5b6470;
}

.siteFooter {
    border-top: 1px solid var(--line);
    text-align: left;
}

.siteFooter__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 18px;
    color: #666;
    font-size: 14px;
}

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

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

@media (max-width: 768px) {
    .page {
        padding: 20px 14px;
    }

    .siteNav__inner {
        padding: 12px 14px;
    }

    .hero {
        padding: 0;
    }

    .hero__title {
        font-size: 20px;
    }

    .hero__text {
        font-size: 14px;
    }

    .bookSlider {
        grid-auto-columns: minmax(170px, 170px);
        gap: 16px;
    }

    .catalogGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 14px;
    }

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

    .bookCard__media {
        padding: 14px;
    }

    .bookCard__title {
        font-size: 14px;
    }

    .bookCard__price {
        font-size: 13px;
    }

    .catalogSearch {
        flex-direction: column;
    }
}

.bookCard {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bookCard__media {
    position: relative;
}

.bookCard__eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8b6f47;
}

.bookCard__submeta {
    margin-top: 6px;
    font-size: 12px;
    color: #8a8f98;
    line-height: 1.4;
}

.galleryHint {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 0 8px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .06);
    font-size: 11px;
    font-weight: 700;
    color: #333;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 34px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
    color: #444;
}

.pagination a.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.pagination .dots {
    border-color: transparent;
    background: transparent;
    min-width: auto;
    padding: 0 2px;
}

.pageBtn {
    font-weight: 600;
}

.sectionSub {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.ctaPanel {
    padding: 20px;
    background: #fff;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ctaPanel__title {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.03em;
}

.ctaPanel__text {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--muted);
}

.ctaPanel__actions {
    flex-shrink: 0;
    margin: 30px auto 0;
}

.collectionCard--rich {
    display: block;
    overflow: hidden;
    padding: 0;
}

.collectionCard__covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}

.collectionCard__cover {
    aspect-ratio: 1/1;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.collectionCard__cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.collectionCard__content {
    padding: 20px;
}

.collectionCard__link {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

@media (max-width: 768px) {
    .ctaPanel {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .ctaPanel__title {
        font-size: 24px;
    }

    .collectionCard__covers {
        gap: 8px;
        padding: 12px;
    }

    .collectionCard__content {
        padding: 16px;
    }
}

.emptyState {
    padding: 40px 24px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
}

.emptyState h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -.02em;
}

.emptyState p {
    margin: 10px auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 15px;
}

.emptyState .btn {
    margin-top: 18px;
}

.detailTopBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.detailSearch {
    max-width: 440px;
    width: 100%;
}

.bookDetail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 34px;
    align-items: start;
}

.bookGalleryCard {
    background: #fff;
    padding: 18px;
}

.bookGalleryMain {
    width: 100%;
    aspect-ratio: 1/1;
    border: 0;
    background: var(--surface-soft);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.bookGalleryMain__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bookThumbSlider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.bookGalleryThumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.bookGalleryThumbs::-webkit-scrollbar {
    display: none;
}

.bookGalleryThumb {
    flex: 0 0 calc((100% - 20px) / 3);
    aspect-ratio: 1/1;
    border: none;
    background: var(--surface-soft);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bookGalleryThumb.is-active {
    border: 1px solid var(--line-dark);
}

.bookGalleryThumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bookThumbNav {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #111;
    flex-shrink: 0;
    transition: all 0.2s ease;
    user-select: none;
}

.bookThumbNav:hover {
    background: #f1f1f1;
    border-color: #111;
}

.bookThumbNav:active {
    transform: scale(.9);
}

.bookThumbNav:disabled {
    opacity: 0;
    pointer-events: none;
}

.bookIntro__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.bookIntro__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.bookIntro__meta {
    margin-top: 14px;
    gap: 8px;
}

.bookIntro__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    background: #fff;
    font-size: 13px;
    color: #555;
}

.bookBuyCard {
    margin-top: 18px;
    padding: 22px;
    background: #fff;
}

.bookPrices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bookPriceRow {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    color: #4b5563;
    font-weight: 700;
}

.bookPriceRow.is-main {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.bookPriceRow__value {
    text-align: right;
}

.priceTba {
    color: var(--muted);
}

.bookFacts {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bookFacts__item span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.bookFacts__item strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.bookFormatSelect {
    min-height: 46px;
    border: 1px solid var(--line);
    padding: 0 14px;
    background: #fff;
    font-size: 14px;
    flex: 1;
    min-width: 180px;
}

.bookOrderBtn {
    flex: 1;
    min-width: 220px;
}

.detailSection__card {
    background: #fff;
    overflow: hidden;
}

.detailSection__head {
    padding: 20px 22px 0;
}

.detailSection__head h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -.02em;
}

.detailSection__body {
    padding: 18px 22px 22px;
}

.bookDescription {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.responsiveEmbed {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.responsiveEmbed--video {
    padding-top: 56.25%;
}

.responsiveEmbed--ig {
    padding-top: 120%;
}

.responsiveEmbed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.zoomModal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.zoomModal.open {
    display: block;
}

.zoomBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .72);
}

.zoomBox {
    position: relative;
    z-index: 2;
    width: min(92vw, 980px);
    height: min(88vh, 880px);
    margin: 4vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoomImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
}

.zoomClose,
.zoomPrev,
.zoomNext {
    position: absolute;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    background: rgba(255, 255, 255, .94);
    color: #111;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.zoomClose:hover,
.zoomPrev:hover,
.zoomNext:hover {
    background: #111;

}

.zoomClose {
    top: 14px;
    right: 14px;
}

.zoomPrev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.zoomNext {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.order-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .bookDetail {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .detailTopBar {
        flex-direction: column;
        align-items: stretch;
    }

    .detailSearch {
        max-width: none;
    }

    .bookGalleryCard {
        padding: 14px;
    }

    .bookGalleryMain {
        padding: 14px;
    }

    .bookBuyCard {
        padding: 18px;
    }

    .bookFacts {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .detailSection__head {
        padding: 18px 18px 0;
    }

    .detailSection__body {
        padding: 16px 18px 18px;
    }

    .bookDescription {
        font-size: 14px;
    }

    .zoomBox {
        width: min(96vw, 980px);
        height: min(82vh, 880px);
        margin: 9vh auto;
    }

    .bookCard__img--hover {
        inset: 14px;
        width: calc(100% - 28px);
        height: calc(100% - 28px);
    }
}

@media (hover: hover) and (pointer: fine) {
    .bookCard:hover .bookCard__img--primary {
        opacity: 0;
        transform: scale(.985);
    }

    .bookCard:hover .bookCard__img--hover {
        opacity: 1;
        transform: scale(1.02);
    }
}

@media (max-width: 560px) {
    .bookFacts {
        grid-template-columns: 1fr;
    }

    .order-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bookFormatSelect {
        width: 100%;
        min-width: 0;
    }

    .bookCartBtn {
        flex: 0 0 auto;
        width: 52px;
    }

    .bookOrderBtn {
        flex: 1;
        min-width: 0;
    }

    .bookCard__meta {
        display: none;
    }
}

.siteNav__link {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    position: relative;
    transition: color .2s ease;
    text-transform: uppercase;
}

.siteNav__link.is-active {
    color: #444;
    font-weight: 700;
}

.siteNav__link:hover::after,
.siteNav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: #444;
}

.siteNav__link--accent {
    color: #7c3aed;
    font-weight: 600;
}

.siteBrand {
    flex-shrink: 0;
}

.siteNav__links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.cartLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.cartItems {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cartItem {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.cartItem__media {
    aspect-ratio: 1/1;
    background: var(--surface-soft);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cartItem__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cartItem__titleRow {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.cartItem__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.cartItem__meta {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.cartItem__bottom {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    justify-content: space-between;
}

.cartItem__price,
.cartItem__total {
    font-weight: 700;
}

.cartQty {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cartQty label {
    font-size: 12px;
    color: var(--muted);
}

.cartQty input {
    width: 90px;
    min-height: 42px;
    border: 1px solid var(--line);
    padding: 0 12px;
    background: #fff;
    font-size: 14px;
}

.cartRemoveBtn {
    border: 0;
    background: none;
    color: #8b6f47;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.cartActions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cartSummary {
    position: sticky;
    top: 84px;
}

.cartSummary__card {
    padding: 22px;
    background: #fff;
}

.cartSummary__card h2 {
    margin: 0 0 18px;
    font-size: 24px;
    letter-spacing: -.02em;
}

.cartSummary__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe3;
}

.cartCheckoutBtn {
    width: 100%;
    margin-top: 18px;
}

.cartSummary__note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.bookCartBtn {
    flex: 0 0 auto;
    width: 52px;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .cartLayout {
        grid-template-columns: 1fr;
    }

    .cartSummary {
        position: static;
    }
}

@media (max-width: 640px) {
    .cartItem {
        grid-template-columns: 1fr;
    }

    .cartItem__bottom {
        align-items: stretch;
    }

    .cartQty input {
        width: 100%;
    }

    .bookOrderBtn {
        width: 100%;
        min-width: 0;
    }
}

.cartToast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    min-width: 220px;
    max-width: 320px;
    padding: 12px 14px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.cartToast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cartToast a {
    color: #60a5fa;
    text-decoration: underline;
    margin-left: 6px;
}

.cartToast a:hover {
    color: #93c5fd;
}

.cartToast.is-error {
    background: #7f1d1d;
}

.bookCartBtn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.collectionList {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.collectionShelf {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.collectionShelf:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #ddd5ca;
}

.collectionShelf__intro {
    min-width: 0;
}

.collectionShelf__title {
    font-size: 28px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.03em;
}

.collectionShelf__desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 34ch;
}

.collectionShelf__link {
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.collectionShelf__books {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    min-width: 0;
}

.collectionShelf__book {
    aspect-ratio: 1/1;
    background: var(--surface-soft);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform .25s ease;
}

.collectionShelf__book img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.collectionShelf__book:nth-child(1),
.collectionShelf__book:nth-child(3) {
    transform: translateY(-8px);
}

.collectionShelf:hover .collectionShelf__book:nth-child(1),
.collectionShelf:hover .collectionShelf__book:nth-child(3) {
    transform: translateY(-12px);
}

.collectionShelf__books--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.collectionShelf__empty {
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 1024px) {
    .collectionShelf {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .collectionShelf__title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .collectionShelf {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .collectionShelf__title {
        font-size: 22px;
    }

    .collectionShelf__desc {
        max-width: none;
    }

    .collectionShelf__books {
        display: grid !important;
        grid-template-columns: none !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc(46% - 8px) !important;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .collectionShelf__books::-webkit-scrollbar {
        display: none;
    }

    .collectionShelf__book {
        min-width: 0;
        padding: 12px;
        scroll-snap-align: start;
        transform: none !important;
    }

    .collectionShelf:hover .collectionShelf__book {
        transform: none !important;
    }

    .collectionList .collectionShelf .collectionShelf__books {
        display: grid !important;
        grid-template-columns: none !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc(46% - 8px) !important;
    }
}

.footerGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.footerCol {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footerBrand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.footerTitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 6px;
}

.footerText {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.siteFooter a {
    font-size: 14px;
    color: #444;
}

.siteFooter a:hover {
    color: #111;
}

.footerBottom {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: #888;
}

@media (max-width:768px) {
    .footerGrid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footerText {
        max-width: none;
    }
}

/* Mobile Navigation Fix */
@media (max-width: 768px) {
    .siteNav__toggle {
        display: block;
    }

    .siteNav__links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 18px 30px;
        gap: 0;
        z-index: 50;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        animation: siteNavSlideDown .25s ease-out;
    }

    .siteNav__links.is-open {
        display: flex !important;
    }

    .siteNav__link {
        font-size: 20px;
        font-weight: 600;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .siteNav__link.is-active::after {
        display: none;
    }

    .siteNav__links a {
        font-size: 20px;
    }
}

@keyframes siteNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sectionSub--normal {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    max-width: 760px;
}

.homeSection--collectionsIndex {
    padding-bottom: 14px;
}

.homeSection--collectionRow {
    padding-top: 18px;
}

.faqItem {
    margin-bottom: 10px;
}

.faqItem__question {
    font-weight: 400;
}

.faqItem__answer {
    color: #777;
}

#btnTop {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 999;

    width: 44px;
    height: 44px;
    border-radius: 50%;

    border: 1px solid var(--line);
    background: var(--text);
    color: #fff;

    font-size: 18px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);

    transition: all 0.25s ease;
}

#btnTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#btnTop:hover {
    transform: translateY(-2px);
}