/* ============ Pustaka Mane — brand styles ============ */
:root {
    --pm-navy: #1b1453;
    --pm-navy-dark: #130e3d;
    --pm-purple: #5b2d8e;
    --pm-purple-dark: #43216b;
    --pm-orange: #f7941d;
    --pm-red: #e8442e;
    --pm-blue: #29abe2;
    --pm-green: #1d7a3c;
    --pm-cream: #fdf9f2;
    --pm-ink: #2b2333;
    /* Cart / checkout process (Items → Shipping → Payment) — one palette */
    --pm-checkout-accent: var(--pm-purple);
    --pm-checkout-accent-dark: var(--pm-purple-dark);
    --pm-checkout-accent-soft: #f3eafb;
    --pm-checkout-accent-line: #d4c2e8;
    --pm-checkout-muted: #8b7a9e;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

body {
    font-family: var(--font-body);
    color: var(--pm-ink);
    background: var(--pm-cream);
}

/* ===== Custom scrollbar (site-wide) ===== */
* {
    scrollbar-width: thin;                          /* Firefox */
    scrollbar-color: var(--pm-purple) #ece5f5;
}
::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}
::-webkit-scrollbar-track {
    background: #ece5f5;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pm-purple), var(--pm-navy));
    border-radius: 10px;
    border: 2px solid #ece5f5;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--pm-orange), var(--pm-purple));
}

h1, h2, h3, h4, h5, .navbar-brand, .footer-heading {
    font-family: var(--font-display);
}

/* ===== Top contact bar ===== */
.announce-bar {
    background: var(--pm-orange);
    color: #fff;
    font-size: .85rem;
    letter-spacing: .2px;
}
.announce-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color .18s ease, opacity .18s ease, transform .18s ease, text-decoration-color .18s ease;
}
.announce-bar a:hover,
.announce-bar a:focus-visible {
    color: var(--pm-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.topbar-sep { color: rgba(255, 255, 255, .7); }
.announce-bar .social-links { display: flex; align-items: center; gap: .15rem; }
.announce-bar .social-links a {
    margin: 0 .35rem;
    font-size: 1.05rem;
    color: #fff;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    justify-content: center;
    text-decoration: none;
}
.announce-bar .social-links a:hover,
.announce-bar .social-links a:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px) scale(1.08);
}
.announce-bar .social-links a[title="YouTube"]:hover,
.announce-bar .social-links a[title="YouTube"]:focus-visible { color: #ff2d2d; background: rgba(255,255,255,.92); }
.announce-bar .social-links a[title="Instagram"]:hover,
.announce-bar .social-links a[title="Instagram"]:focus-visible { color: #e1306c; background: rgba(255,255,255,.92); }
.announce-bar .social-links a[title="Facebook"]:hover,
.announce-bar .social-links a[title="Facebook"]:focus-visible { color: #1877f2; background: rgba(255,255,255,.92); }
.announce-bar .social-links a[title="WhatsApp"]:hover,
.announce-bar .social-links a[title="WhatsApp"]:focus-visible { color: #25d366; background: rgba(255,255,255,.92); }
.announce-bar .social-links a:last-child { margin-right: 0; }

/* ===== Main header (navy) ===== */
.header-main {
    background: var(--pm-navy);
    padding-top: .9rem !important;
    padding-bottom: .9rem !important;
    position: relative;
    z-index: 1030;
}
.header-logo { height: 62px; max-width: 100%; object-fit: contain; }

.header-search {
    border-radius: 50rem;
    background: #fff;
    height: 48px;
    align-items: center;
    flex-wrap: nowrap;
    padding: 4px;
}
.header-search > .autoComplete_wrapper {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.header-search .form-control {
    box-shadow: none;
    height: 100%;
    padding-left: 1.1rem;
    background: transparent;
    border-radius: 50rem 0 0 50rem;
}
.header-search-ph {
    position: absolute;
    left: 1.1rem;
    right: calc(44px + 4.75rem);
    top: 0;
    bottom: 0;
    display: grid;
    align-items: center;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    color: #94a3b8;
    font-size: inherit;
    line-height: 1.25;
}
.header-search-ph[hidden],
.header-search-ph.is-hidden {
    display: none !important;
}
.header-search-ph__text {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    will-change: transform, opacity;
}
.header-search-ph__text.is-out {
    animation: pmSearchPhOut .45s cubic-bezier(.22, 1, .36, 1) forwards;
}
.header-search-ph__text.is-in {
    animation: pmSearchPhIn .45s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes pmSearchPhOut {
    from { transform: translate3d(0, 0, 0); opacity: 1; }
    to { transform: translate3d(0, -115%, 0); opacity: 0; }
}
@keyframes pmSearchPhIn {
    from { transform: translate3d(0, 115%, 0); opacity: 0; }
    to { transform: translate3d(0, 0, 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .header-search-ph__text.is-out,
    .header-search-ph__text.is-in {
        animation: none;
    }
}
.btn-scan {
    background: transparent;
    color: var(--pm-navy, #2c1e4a);
    border: none;
    height: 40px;
    width: 44px;
    padding: 0;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}
.btn-scan:hover,
.btn-scan:focus {
    background: #f3eef8;
    color: var(--pm-red, #e03d26);
}
.btn-search {
    background: var(--pm-red);
    color: #fff;
    border: none;
    height: 40px;
    padding: 0 1.5rem;
    border-radius: 50rem !important;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.btn-search:hover { background: #c93620; color: #fff; }

/* ISBN camera scanner */
.pm-isbn-scan-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}
.pm-isbn-scan-modal .modal-header {
    border-bottom: 1px solid #eee;
    padding: .9rem 1.1rem;
}
.pm-isbn-scan-modal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
}
.pm-isbn-scan-modal .modal-body {
    padding: 1rem 1.1rem 1.2rem;
}
.pm-isbn-scan-reader {
    width: 100%;
    min-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}
.pm-isbn-scan-reader video {
    border-radius: 12px;
}
.pm-isbn-scan-status {
    margin: .5rem 0 0;
    font-size: .85rem;
    text-align: center;
    min-height: 1.25em;
}
.pm-isbn-scan-status.is-error { color: #c0392b; }
.pm-isbn-scan-status.is-ok { color: #047857; }

/* Full-screen scan UI — phones only */
.pm-isbn-scan-modal--mobile .modal-dialog.modal-fullscreen {
    margin: 0;
    max-width: 100%;
    height: 100%;
}
.pm-isbn-scan-modal--mobile .modal-content {
    border-radius: 0;
    height: 100%;
    min-height: 100dvh;
    background: #0b0b0f;
    color: #fff;
    display: flex;
    flex-direction: column;
}
.pm-isbn-scan-modal--mobile .modal-header {
    border-bottom: none;
    background: transparent;
    padding: calc(.75rem + env(safe-area-inset-top, 0px)) 1rem .75rem;
    z-index: 2;
}
.pm-isbn-scan-modal--mobile .modal-title {
    color: #fff;
    font-size: 1.1rem;
}
.pm-isbn-scan-modal--mobile .modal-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0 0 calc(.9rem + env(safe-area-inset-bottom, 0px));
    min-height: 0;
}
.pm-isbn-scan-modal--mobile .pm-isbn-scan-reader {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 0;
    background: #000;
}
.pm-isbn-scan-modal--mobile .pm-isbn-scan-reader video {
    border-radius: 0;
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
}
.pm-isbn-scan-modal--mobile #pmIsbnScanReader,
.pm-isbn-scan-modal--mobile #pmIsbnScanReader > div {
    height: 100% !important;
    min-height: 100%;
}
.pm-isbn-scan-modal--mobile .pm-isbn-scan-status {
    margin: 0;
    padding: .65rem 1rem 0;
    color: rgba(255, 255, 255, .78);
}
.pm-isbn-scan-modal--mobile .pm-isbn-scan-status.is-error { color: #ff8a80; }
.pm-isbn-scan-modal--mobile .pm-isbn-scan-status.is-ok { color: #86efac; }

/* Header book search autocomplete */
.header-search-form { width: 100%; }
.header-search-wrap { position: relative; z-index: 1035; }
.header-search-wrap .autoComplete_wrapper { width: 100%; position: relative; flex: 1 1 auto; min-width: 0; }
.header-search-wrap .autoComplete_wrapper > input { width: 100%; }
.autoComplete_list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e4ddf0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(60, 30, 90, .16);
    max-height: min(420px, 62vh);
    overflow: auto;
    z-index: 1045;
}
.autoComplete_list:empty { display: none; }
.autoComplete_result {
    cursor: pointer;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}
.autoComplete_result[aria-selected="true"],
.autoComplete_result:hover {
    background: #f6f0fc;
}
.pm-search-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .65rem .9rem;
    text-decoration: none;
    color: inherit;
}
.pm-search-cover {
    width: 40px;
    height: 54px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: #eee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.pm-search-no-cover {
    width: 40px;
    height: 54px;
    border-radius: 5px;
    background: #f0ebf8;
    color: var(--pm-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.pm-search-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 1px;
}
.pm-search-title {
    display: block;
    font-weight: 650;
    font-size: .9rem;
    line-height: 1.3;
    color: var(--pm-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-search-line {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    min-width: 0;
    font-size: .75rem;
    line-height: 1.35;
    color: #6c757d;
}
.pm-search-label {
    flex-shrink: 0;
    color: #9ca3af;
    font-weight: 500;
}
.pm-search-label::after {
    content: ':';
}
.pm-search-value {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4b5563;
}
.pm-search-author {
    display: block;
    font-size: .75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-search-price {
    font-size: .82rem;
    font-weight: 700;
    color: var(--pm-purple);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}
.pm-search-all {
    display: block;
    padding: .65rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--pm-purple);
    text-decoration: none;
    border-top: 1px solid #ece5f5;
}
.pm-search-all:hover { background: #f6f0fc; color: var(--pm-navy); }
.pm-search-empty {
    padding: .85rem;
    font-size: .85rem;
    color: #6c757d;
    text-align: center;
}
.autoComplete_highlight { color: var(--pm-purple); font-weight: 700; background: transparent; }

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}
.header-icon {
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.header-icon:hover { color: var(--pm-orange); }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -11px;
    background: var(--pm-red);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50rem;
    padding: 0 4px;
    border: 2px solid var(--pm-navy);
    box-sizing: content-box;
}

/* ===== Nav row ===== */
.nav-row {
    background: #fff;
    min-height: 56px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}
.nav-row .nav-link {
    font-weight: 500;
    color: #6b6478;
    padding: .9rem 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
    transition: color .2s ease;
}
@media (min-width: 992px) {
    .nav-row {
        min-height: 62px;
    }
    /* Equal side columns keep category links truly centered */
    .nav-row > .container.nav-row__bar,
    .nav-row > .nav-row__bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: stretch;
        column-gap: .75rem;
        min-height: 62px;
        width: 100%;
    }
    .nav-row .navbar-collapse {
        display: flex !important;
        flex: 0 0 auto;
        align-items: stretch;
        justify-content: center;
        grid-column: 2;
        min-width: 0;
        width: auto;
        max-width: 100%;
    }
    .nav-row .navbar-nav {
        gap: .55rem;
        align-items: stretch;
        flex-wrap: nowrap;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
    }
    .nav-row .nav-item {
        display: flex;
        align-items: stretch;
    }
    .nav-row .nav-link {
        padding: 0 .75rem;
        min-height: 62px;
        white-space: nowrap;
        font-size: .9rem;
        align-self: stretch;
    }
    .nav-row .nav-link:not(.nav-link--coming-soon):hover,
    .nav-row .nav-link:not(.nav-link--coming-soon):focus-visible,
    .nav-row .nav-link.dropdown-toggle.show,
    .nav-row .nav-link.dropdown-toggle[aria-expanded="true"] {
        color: #f07c29;
        background-color: transparent;
    }
    .nav-row .nav-link.dropdown-toggle::after {
        border-top-color: currentColor;
        transition: border-top-color .2s ease;
    }
    .nav-find {
        grid-column: 1;
        justify-self: start;
        align-self: center;
        margin-right: 0;
        white-space: nowrap;
    }
    .nav-phone {
        grid-column: 3;
        justify-self: end;
        align-self: center;
        margin-left: 0;
        font-size: .92rem;
        white-space: nowrap;
    }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
    .nav-row .navbar-nav {
        gap: .45rem;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .nav-row .nav-link {
        font-size: .82rem;
        min-height: 62px;
        padding: 0 .55rem;
    }
    .nav-find {
        font-size: .78rem;
    }
    .nav-phone {
        font-size: .82rem;
    }
    .nav-phone .bi {
        margin-right: .35rem !important;
    }
}
@media (max-width: 991.98px) {
    .nav-row .nav-link:not(.nav-link--coming-soon):hover,
    .nav-row .nav-link:not(.nav-link--coming-soon):focus-visible,
    .nav-row .nav-link.dropdown-toggle.show,
    .nav-row .nav-link.dropdown-toggle[aria-expanded="true"] {
        color: #f07c29;
        background-color: transparent;
    }
}
.nav-row .nav-link--coming-soon {
    cursor: default;
    opacity: 0.85;
    gap: 0.35rem;
}
.nav-row .nav-link--coming-soon:hover {
    color: inherit;
}
.nav-soon-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #f3eef9;
    color: var(--pm-purple);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1.3;
}
.nav-find {
    color: #6b6478;
    font-weight: 500;
    font-size: .88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    border-radius: 8px;
    padding: .4rem .55rem;
    transition: color .2s ease, background-color .2s ease;
}
.nav-find:hover {
    color: var(--pm-purple);
    background-color: #f5f0fa;
}
.nav-phone {
    color: #6b6478;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    border-radius: 8px;
    padding: .45rem .65rem;
    transition: color .2s ease, background-color .2s ease;
}
.nav-phone:hover {
    color: var(--pm-purple);
    background-color: #f5f0fa;
}

.nav-row .nav-link.dropdown-toggle::after {
    margin-left: .35rem;
    vertical-align: .15em;
}
.nav-row .dropdown-menu.nav-db-dropdown {
    border: 1px solid #e8ddf0;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(60, 30, 90, .12);
    padding: 0;
    min-width: 12rem;
    overflow: hidden;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-search {
    padding: .55rem .65rem;
    border-bottom: 1px solid #e8ddf0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-search-wrap {
    display: block;
    position: relative;
    margin: 0;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-search-icon {
    position: absolute;
    left: .55rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: .82rem;
    pointer-events: none;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-search-input {
    width: 100%;
    border: 1px solid #ddd5e8;
    border-radius: 6px;
    padding: .42rem .65rem .42rem 1.85rem;
    font-size: .85rem;
    line-height: 1.35;
    color: var(--pm-ink);
    background: #faf8fc;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-search-input::placeholder {
    color: #9ca3af;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-search-input:focus {
    outline: none;
    border-color: var(--pm-purple);
    box-shadow: none;
    background: #fff;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-search-input:focus-visible {
    outline: none;
    border-color: var(--pm-purple);
    box-shadow: 0 0 0 2px rgba(107, 63, 160, .15);
    background: #fff;
}
.nav-row .nav-item.dropdown:focus-within,
.nav-row .nav-item.dropdown:has(.nav-db-dropdown-search-input:focus),
.nav-row .nav-item.dropdown:has(.nav-db-dropdown-search-input:focus) > .nav-link,
.nav-row .nav-link.dropdown-toggle:focus,
.nav-row .nav-link.dropdown-toggle:focus-visible,
.nav-row .nav-link.dropdown-toggle.show:focus,
.nav-row .nav-link.dropdown-toggle.show:focus-visible,
.nav-row .nav-link.dropdown-toggle[aria-expanded="true"]:focus,
.nav-row .nav-link.dropdown-toggle[aria-expanded="true"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-empty {
    padding: .75rem 1rem;
    font-size: .85rem;
    color: #9ca3af;
    text-align: center;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-body {
    height: min(70vh, 420px);
    max-height: min(70vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: .4rem 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #b8a8cc #f0eaf6;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-body::-webkit-scrollbar {
    width: 8px;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-body::-webkit-scrollbar-track {
    background: #f0eaf6;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-body::-webkit-scrollbar-thumb {
    background: #b8a8cc;
    border-radius: 4px;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-cols {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}
.nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-col {
    flex: 1 1 0;
    min-width: 0;
}
@media (min-width: 992px) {
    .nav-row .nav-item.dropdown {
        position: relative;
    }
    .nav-row .dropdown-menu.nav-db-dropdown {
        position: absolute;
        top: 100% !important;
        left: 0;
        right: auto;
        bottom: auto !important;
        transform: none !important;
        margin-top: 0;
        width: 14rem;
        max-width: min(16rem, calc(100vw - 24px));
    }
    .nav-row .dropdown-menu.nav-db-dropdown.dropdown-menu-end {
        left: auto;
        right: 0;
    }
    .nav-row .dropdown-menu.nav-db-dropdown.show {
        display: block;
    }
    .nav-row .dropdown-menu.nav-db-dropdown.nav-db-dropdown--cols.show {
        width: auto;
        min-width: 14rem;
        max-width: min(26rem, calc(100vw - 24px));
    }
    .nav-row .dropdown-menu.nav-db-dropdown.nav-db-dropdown--cols3.show {
        max-width: min(40rem, calc(100vw - 24px));
    }
    .nav-row .dropdown-menu.nav-db-dropdown .dropdown-item {
        padding: .48rem 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.nav-row .dropdown-menu.nav-db-dropdown .dropdown-item {
    font-size: .9rem;
    padding: .45rem 1rem;
    color: #6b6478;
    transition: background-color .15s ease, color .15s ease;
}
.nav-row .dropdown-menu.nav-db-dropdown .dropdown-item.nav-db-dropdown-item--all {
    font-weight: 600;
    color: #6b6478;
    border-bottom: 1px solid #ede7f6;
    margin-bottom: 4px;
}
.pm-multi-select__item--all {
    font-weight: 600;
    border-bottom: 1px solid #ece7dc;
    margin-bottom: 4px;
}
.nav-row .dropdown-menu.nav-db-dropdown .dropdown-item:hover,
.nav-row .dropdown-menu.nav-db-dropdown .dropdown-item:focus {
    background: #f5f0fa;
    color: var(--pm-purple);
}
.nav-row .dropdown-menu.nav-db-dropdown .dropdown-header {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9ca3af;
}
@media (max-width: 991px) {
    .nav-row .nav-item.dropdown {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding: .15rem 0;
    }
    .nav-row .navbar-nav > .nav-item.dropdown:last-child {
        border-bottom: none;
    }
    .nav-row .nav-link.dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: .65rem 0;
        gap: .5rem;
    }
    .nav-row .nav-link.dropdown-toggle::after {
        margin-left: auto;
        transition: transform .2s ease;
    }
    .nav-row .nav-link.dropdown-toggle.show::after,
    .nav-row .nav-link.dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    .nav-row .dropdown-menu.nav-db-dropdown {
        position: static !important;
        float: none;
        transform: none !important;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f7f4fb;
        margin: .35rem 0 .65rem;
        padding: 0;
    }
    .nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-body {
        height: min(55vh, 320px);
        max-height: min(55vh, 320px);
        padding: .35rem 0;
    }
    .nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-cols {
        display: block;
    }
    .nav-row .dropdown-menu.nav-db-dropdown .nav-db-dropdown-col {
        display: block;
        width: 100%;
    }
    .nav-row .dropdown-menu.nav-db-dropdown.show {
        display: block;
    }
    .nav-row .dropdown-menu.nav-db-dropdown .dropdown-item {
        display: block;
        width: 100%;
        padding: .55rem .85rem;
        font-size: .88rem;
        white-space: normal;
        line-height: 1.35;
    }
}

@media (max-width: 991.98px) {
    .nav-row {
        min-height: 42px;
        overflow-x: clip;
    }
    .nav-row > .container,
    .nav-row > .container.nav-row__bar {
        display: flex;
        min-height: 42px;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: .5rem;
    }
    .nav-row__mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
    .nav-row .navbar-brand {
        font-size: 1rem;
        padding-top: .3rem !important;
        padding-bottom: .3rem !important;
        margin: 0;
        min-width: 0;
        white-space: nowrap;
    }
    .nav-row .navbar-toggler {
        border: none;
        padding: .2rem .35rem;
        box-shadow: none;
        border-radius: 8px;
        transition: background-color .2s ease;
        flex-shrink: 0;
        margin-left: auto;
    }
    .nav-row .navbar-toggler:hover {
        background-color: #f5f0fa;
    }
    .nav-row .navbar-toggler:focus,
    .nav-row .navbar-toggler:focus-visible {
        box-shadow: none;
        outline: none;
    }
    .nav-row .navbar-toggler-icon {
        width: 1.35rem;
        height: 1.35rem;
    }
    .nav-row .navbar-nav {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 0;
    }
    .nav-row .navbar-nav .nav-item { padding: .2rem 0; }
    .nav-row .navbar-nav .nav-item:not(.dropdown) {
        border-bottom: 1px solid #eee;
    }
    .nav-row .navbar-nav > .nav-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .nav-row .nav-link {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: .65rem .75rem;
        border-radius: 8px;
        text-align: left;
        justify-content: flex-start;
        white-space: normal;
    }
    .nav-row .nav-link--coming-soon {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: .35rem;
    }
    .nav-row .nav-link:not(.nav-link--coming-soon):hover,
    .nav-row .nav-link:not(.nav-link--coming-soon):focus-visible,
    .nav-row .nav-link.dropdown-toggle.show,
    .nav-row .nav-link.dropdown-toggle[aria-expanded="true"] {
        color: #f07c29;
        background-color: transparent;
    }
    .header-logo { height: 50px; }

    /* Mobile menu: overlay dropdown instead of pushing content */
    .nav-row .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        z-index: 1040;
        padding: .35rem .75rem .5rem;
        box-shadow: 0 14px 24px rgba(0, 0, 0, .18);
        border-top: 1px solid #eee;
        border-radius: 0;
        touch-action: pan-y;
        will-change: transform;
        max-height: calc(100dvh - 8.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .nav-row .navbar-collapse.collapsing {
        height: auto !important;
        transition: none !important;
    }
    body.nav-open {
        overflow: hidden;
    }
}
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 40, .55);
    z-index: 1010;
}
.menu-overlay.show { display: block; }

.btn-brand { background: var(--pm-purple); color: #fff; border: none; }
.btn-brand:hover { background: var(--pm-purple-dark); color: #fff; }
.btn-accent { background: var(--pm-navy) !important; color: #fff !important; border: none; font-weight: 600; }
.btn-accent:hover { background: var(--pm-navy-dark) !important; color: #fff !important; }
.btn-buy-now {
    background: var(--pm-orange) !important;
    color: #fff !important;
    border: none;
    font-weight: 600;
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-buy-now:hover,
.btn-buy-now:focus-visible {
    background: #e5830f !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(247, 148, 29, .38);
}
.btn-buy-now:active {
    background: #d97a0e !important;
    color: #fff !important;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(247, 148, 29, .28);
}
.btn-outline-brand { border: 2px solid var(--pm-purple); color: var(--pm-purple); font-weight: 600; }
.btn-outline-brand:hover { background: var(--pm-purple); color: #fff; }

.text-brand { color: var(--pm-purple) !important; }
.bg-brand { background: var(--pm-purple) !important; }

.social-links a { color: inherit; margin: 0 .45rem; text-decoration: none; }
.social-links a:hover { color: var(--pm-orange); }

/* ===== Hero banner (admin slide images only) ===== */
.hero {
    margin: 0;
    padding: 0;
}
.hero--banner {
    width: 100%;
    overflow: hidden;
    background: #0f0a1e;
    line-height: 0;
}
.hero-banner-swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.hero-banner-swiper .swiper-wrapper {
    align-items: stretch;
    display: flex;
}
/* Before Swiper JS: only show the first slide so LCP is on-screen. */
.hero-banner-swiper:not(.swiper-initialized) .swiper-slide {
    width: 100%;
    flex-shrink: 0;
}
.hero-banner-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}
.hero-banner-swiper .swiper-slide {
    display: block;
    overflow: hidden;
    background: #0f0a1e;
    aspect-ratio: 1966 / 983;
}
.hero-banner-swiper--static .hero-banner-static,
.hero-banner-static {
    display: block;
}
.hero-banner-slide {
    display: block;
    overflow: hidden;
    background: #0f0a1e;
    aspect-ratio: 1966 / 983;
}
.hero-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.hero-banner-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Section headings */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.35rem;
    padding-bottom: .65rem;
    font-weight: 700;
    line-height: 1.25;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pm-purple) 0%, var(--pm-orange) 100%);
}
h5.section-title,
h6.section-title {
    padding-bottom: .55rem;
    margin-bottom: 1.1rem;
}
h5.section-title::after,
h6.section-title::after {
    width: 2.5rem;
    height: 2.5px;
}

/* Book cards */
.book-card {
    position: relative;
    border: 0 !important;
    border-radius: 18px;
    overflow: hidden;
    background: #fff !important;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 2px 12px rgba(60, 30, 90, .08);
    height: 100%;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    container-name: book-card;
}
.book-card-stretch-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.book-card-stretch-link:focus-visible {
    outline: 2px solid var(--pm-brand, #6b2d8b);
    outline-offset: 2px;
}
.book-card-foot,
.book-card-author-link {
    position: relative;
    z-index: 2;
}
.book-card-media {
    padding: 1rem 1rem 0.55rem;
    position: relative;
}
.product-flag {
    position: absolute;
    top: 0.55rem;
    left: 0.85rem;
    z-index: 3;
    pointer-events: none;
}
.product-flag ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.product-flag ul li > span {
    display: inline-block;
    position: relative;
    background: #15803d;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    padding: 0.34rem 0.46rem;
    border-radius: 2px 0 0 2px;
}
.product-flag ul li > span:before {
    border-color: #15803d transparent transparent #15803d;
    border-style: solid;
    border-width: 4.5px 3px;
    content: "";
    position: absolute;
    right: -6px;
    top: 0;
}
.product-flag ul li > span:after {
    border-color: transparent transparent #15803d #15803d;
    border-style: solid;
    border-width: 4.5px 3px;
    bottom: 0;
    content: "";
    position: absolute;
    right: -6px;
}
.book-card-cover-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 220px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f4f6;
    text-decoration: none;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
    transition: background-color .28s ease, box-shadow .28s ease;
}
.book-card-cover-link.is-empty {
    background: linear-gradient(165deg, #e8dff3 0%, #eceef2 55%, #f3ede3 100%);
}
.book-card-cover-link .book-cover {
    /* Avoid width/height:auto — that zeros lazy images before load (Chrome CLS issue). */
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    transform-origin: center center;
    will-change: transform;
}
.book-card-cover-link .book-card-cover-empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.book-card:hover .book-card-cover-link,
.book-card:has(.book-card-stretch-link:focus-visible) .book-card-cover-link {
    background: #9b7bc4;
}
.book-card:hover .book-card-cover-link .book-cover,
.book-card:has(.book-card-stretch-link:focus-visible) .book-card-cover-link .book-cover {
    transform: rotate(-7deg) scale(1.03);
}
.book-card:hover .book-card-cover-link.is-empty,
.book-card:has(.book-card-stretch-link:focus-visible) .book-card-cover-link.is-empty {
    background: linear-gradient(145deg, #b08fd4 0%, #9b7bc4 55%, #8663b3 100%);
}
.book-card:hover .book-card-cover-link.is-empty .book-card-cover-empty-icon,
.book-card:has(.book-card-stretch-link:focus-visible) .book-card-cover-link.is-empty .book-card-cover-empty-icon {
    color: #fff;
    transform: rotate(-7deg) scale(1.05);
}
.book-cover {
    display: block;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s cubic-bezier(.22, 1, .36, 1);
    background: transparent;
}
.book-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 1rem 1rem;
    min-height: 0;
    min-width: 0;
}
.book-card-cover-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem;
    text-align: center;
}
.book-card-cover-empty-icon {
    font-size: 2.75rem;
    line-height: 1;
    color: var(--pm-purple);
    opacity: 0.55;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), color .28s ease;
}
.book-card-cover-empty-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4f4a57;
}
.book-card-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 0;
    padding-bottom: 0.35rem;
}
.book-card-kicker {
    margin: 0;
    font-size: 0.74rem;
    color: #4f4a57;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s ease;
}
.book-card:hover .book-card-kicker,
.book-card:has(.book-card-stretch-link:focus-visible) .book-card-kicker {
    color: var(--pm-purple);
    font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
    .book-card:hover .book-card-cover-link .book-cover,
    .book-card:has(.book-card-stretch-link:focus-visible) .book-card-cover-link .book-cover,
    .book-card:hover .book-card-cover-link.is-empty .book-card-cover-empty-icon,
    .book-card:has(.book-card-stretch-link:focus-visible) .book-card-cover-link.is-empty .book-card-cover-empty-icon {
        transform: none;
        box-shadow: none;
    }
}
.book-card-title-link {
    text-decoration: none;
    color: inherit;
}
.book-card:hover .book-card-title-link .card-title,
.book-card:has(.book-card-stretch-link:focus-visible) .book-card-title-link .card-title {
    color: var(--pm-purple);
}
.book-card .card-title {
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--pm-navy);
    transition: color .15s ease;
}
.book-card-author {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.35;
    color: #4f4a57;
    min-width: 0;
    flex: 1 1 auto;
}
.book-card-author-avatar {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--pm-orange), var(--pm-purple));
}
.book-card-author-photo {
    width: 1.55rem;
    height: 1.55rem;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    background: #eceef2;
    border: 1px solid #dfd8e8;
}
.book-card-author-link {
    color: #3f3b47;
    text-decoration: none;
    font-weight: 500;
}
.book-card-author-link:hover,
.book-card-author-link:focus-visible {
    color: var(--pm-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.book-card-author-names {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(60, 30, 90, .14);
}
.book-card-foot {
    margin-top: auto;
    padding-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}
.book-card-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
}
.book-card-price-row .price-new {
    font-size: 1.05rem;
    line-height: 1.1;
    color: var(--pm-orange);
    font-weight: 800;
}
.book-card-price-row .price-old {
    font-size: 0.8rem;
    color: #5c5766;
}
.book-card-preorder {
    margin: 0;
    font-size: 0.74rem;
    color: #065f46;
    font-weight: 600;
    line-height: 1.35;
}
.book-card-preorder strong {
    color: #047857;
}
.book-card-oos {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 999px;
    background: #e9ecef;
    color: #495057;
}
.book-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    width: 100%;
}
.book-card-actions > .book-card-action-form:only-child {
    grid-column: 1 / -1;
}
.book-card-action-form {
    margin: 0;
    width: 100%;
    min-width: 0;
}
.book-card-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.5rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    border-width: 1px;
    border-radius: 999px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    box-sizing: border-box;
}
.book-card-btn i {
    font-size: 0.92rem;
    flex-shrink: 0;
}
.book-card-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@container book-card (min-width: 300px) {
    .book-card-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
.btn-brand-soft {
    border-color: #d7c4e0;
    background: #f6edf8;
    color: #43216b;
}
.btn-brand-soft:hover,
.btn-brand-soft:focus-visible {
    border-color: #c4aed4;
    background: #efe0f4;
    color: #2f1849;
}
.book-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    margin-top: 0.1rem;
}
.book-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    font-size: 0.72rem;
    color: var(--pm-orange);
    flex-shrink: 0;
}
.book-card-rating .bi-star {
    opacity: 0.65;
}
@media (max-width: 767.98px) {
    .book-card-media {
        padding: 0.75rem 0.75rem 0;
    }
    .book-card-cover-link {
        min-height: 200px;
        padding: 0.65rem 0.75rem;
    }
    .book-card-body {
        padding: 0.75rem 0.85rem 0.9rem;
    }
    .book-card .card-title {
        font-size: 0.92rem;
    }
}
.book-card-actions .btn-buy-now {
    background: var(--pm-orange) !important;
    border-color: var(--pm-orange);
    color: #fff;
}
.book-card-actions .btn-buy-now:hover,
.book-card-actions .btn-buy-now:focus-visible {
    background: #e5830f !important;
    border-color: #e5830f;
    color: #fff;
}
.price-old { text-decoration: line-through; color: #595959; font-size: .85rem; }
.price-new { font-weight: 700; }

/* Feature cards */
.feature-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(60,30,90,.08);
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(60,30,90,.15); }
.feature-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.icon-purple { background: #ece2f7; color: var(--pm-purple); }
.icon-green  { background: #ddf3e4; color: #0f7a3a; }
.icon-orange { background: #fdeedd; color: #92400e; }
.icon-blue   { background: #def2fb; color: #0369a1; }
.feature-title { font-weight: 700; font-size: .95rem; color: var(--pm-ink); }
.feature-sub { color: #4f4a57; font-size: .8rem; }

@media (max-width: 575px) {
    .feature-card { flex-direction: column; text-align: center; padding: 1rem .6rem; gap: .5rem; }
}

/* ===== Footer (dark) ===== */
.site-footer { background: #0e0c12; color: #b9b3c4; margin-top: 2.5rem; padding-top: 3rem; }
.site-footer > .container,
.site-footer .footer-bottom > .container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}
.site-footer .footer-grid.row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 100%;
}
.site-footer .footer-grid > [class*="col"] {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}
@media (min-width: 992px) {
    .site-footer .footer-grid.row {
        --bs-gutter-x: 1.5rem;
        column-gap: 0;
    }
    .site-footer .footer-grid > [class*="col"] {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }
}
body.page-home {
    overflow-x: clip;
}
body.page-home .site-footer { margin-top: 0; }

/* Homepage book section headers */
.home-books-section .home-section-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.4rem;
}
.home-books-section .home-section-title {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.95rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--pm-navy);
    white-space: nowrap;
    flex-shrink: 0;
}
.home-books-section .home-section-line {
    width: .85rem;
    height: .85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pm-orange) 75%, #fff 25%);
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 1.05rem;
    opacity: 0.9;
}
.home-books-section .home-section-viewall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    flex-shrink: 0;
    min-height: 3.15rem;
    padding: .82rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(154, 52, 18, 0.28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    margin-left: auto;
}
.home-books-section .home-section-viewall:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(154, 52, 18, 0.34);
    color: #fff;
}
.home-books-section .home-section-viewall i {
    font-size: 1.06rem;
    line-height: 1;
}
@media (max-width: 767.98px) {
    .home-books-section .home-section-head {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: .5rem .65rem;
    }
    .home-books-section .home-section-title {
        white-space: normal;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 10.2rem);
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.15;
    }
    .home-books-section .home-section-line {
        margin-left: 0;
        margin-right: .2rem;
    }
    .home-books-section .home-section-viewall {
        flex-shrink: 0;
        margin-left: auto;
        min-height: 2.5rem;
        padding: .6rem 1.05rem;
        font-size: .86rem;
    }
}
@media (max-width: 575.98px) {
    .home-books-section .home-section-head {
        gap: .45rem;
    }
    .home-books-section .home-section-title {
        max-width: calc(100% - 9rem);
        font-size: clamp(1.3rem, 6.4vw, 1.75rem);
    }
    .home-books-section .home-section-viewall {
        min-height: 2.2rem;
        padding: .5rem .78rem;
        font-size: .74rem;
    }
    .home-books-section .home-section-line { display: none; }
}
.home-books-section { margin-bottom: 2.5rem; }
.home-books-section .books-grid {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    column-count: initial;
    column-gap: 0;
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
    row-gap: 1.5rem;
}
.home-books-section .books-grid > [class*="col"] {
    display: block;
    width: auto;
    margin: 0 0 1.5rem;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    break-inside: auto;
    -webkit-column-break-inside: auto;
}
.site-footer .footer-heading {
    color: #fff;
    margin-bottom: 1.25rem;
    position: relative;
}
.footer-col {
    border: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.footer-about-text { line-height: 1.7; margin-bottom: 1rem; }
.footer-contact-list .footer-contact-item {
    margin-bottom: 1rem;
    line-height: 1.65;
}
.footer-contact-list .footer-contact-item:last-child { margin-bottom: 0; }
.footer-contact-location {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.footer-loc-label {
    display: block;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.footer-loc-addr,
.footer-loc-phone,
.footer-loc-hours {
    display: flex;
    align-items: flex-start;
    gap: .15rem;
    color: #b9b3c4;
    text-decoration: none;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.footer-loc-addr-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.footer-loc-line {
    display: block;
}
.footer-loc-addr:hover,
.footer-loc-phone:hover {
    color: var(--pm-orange);
}
.footer-contact-list a {
    display: flex;
    align-items: flex-start;
    gap: .15rem;
}
.footer-contact-list i { flex-shrink: 0; margin-top: .15rem; }
.footer-links li { margin-bottom: .65rem; }
.footer-link-soon {
    color: #b9b3c4;
    opacity: .85;
}
.footer-link-soon .nav-soon-badge {
    background: rgba(255, 255, 255, .1);
    color: #e8dff5;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    margin-top: 2rem;
    padding-top: 1.35rem;
    padding-bottom: .5rem;
}
@media (min-width: 992px) {
    .site-footer .footer-grid.row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 1.15fr) minmax(0, 1fr);
        column-gap: 2.5rem;
        row-gap: 0;
        --bs-gutter-x: 0;
        align-items: start;
    }
    .site-footer .footer-grid > [class*="col"] {
        width: auto;
        max-width: none;
        flex: none;
        padding-left: 0;
        padding-right: 0;
    }
    .site-footer .footer-col {
        padding-left: 0;
        padding-right: 0;
    }
    .site-footer .footer-side {
        display: grid;
        gap: 1.75rem;
    }
    .site-footer .footer-side--right {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 1.5rem;
        align-items: start;
    }
    .site-footer .footer-side--left {
        grid-template-columns: 1fr;
    }
    .site-footer .footer-center {
        padding-left: 0;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }
    .site-footer .footer-logo {
        width: 240px;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    .site-footer .footer-loc-label {
        font-size: .95rem;
        font-weight: 700;
        margin-bottom: .2rem;
    }
    .site-footer .footer-contact-item + .footer-contact-item {
        margin-top: 1.15rem;
    }
    .site-footer .footer-phone {
        font-size: 1.45rem;
    }
    .site-footer .footer-heading {
        margin-bottom: 1rem;
    }
}
@media (max-width: 991.98px) {
    .site-footer { padding-top: 2.5rem; }
    .site-footer .footer-grid { row-gap: 1.35rem; }
    .site-footer .footer-block {
        padding: 0;
        border: none;
    }
    .site-footer .footer-center {
        padding-bottom: 1.25rem;
        border: none;
        margin-bottom: 0;
    }
    .site-footer .footer-side {
        display: grid;
        gap: 1.5rem;
    }
    .site-footer .footer-col {
        border: none;
        padding: 0;
    }
    /* Line + space above Contact Info (after logo / social) */
    .site-footer .footer-contact {
        border-top: 1px solid rgba(255,255,255,.14);
        margin-top: 0;
        padding-top: 1.75rem;
    }
    .site-footer .footer-side--left {
        border-top: 1px solid rgba(255,255,255,.14);
        margin-top: 1.15rem;
        padding-top: 0;
    }
    .site-footer .footer-side--left .footer-contact {
        border-top: none;
        padding-top: 1.75rem;
    }
    /* Line + space below Legal (before copyright bar) */
    .site-footer .footer-legal {
        border-bottom: 1px solid rgba(255,255,255,.14);
        padding-bottom: 1.5rem;
        margin-bottom: .25rem;
    }
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.35rem;
        border-top: none; /* Legal already has the line above copyright on mobile */
    }
    .footer-heading { margin-bottom: 1rem; }
    .footer-contact-list .footer-contact-item { margin-bottom: 1.1rem; }
    .footer-links li { margin-bottom: .55rem; }
}
.footer-links a, .site-footer a { color: #b9b3c4; text-decoration: none; }
.footer-links a:hover, .site-footer a:hover { color: var(--pm-orange); }
.footer-readmore { color: var(--pm-orange) !important; font-weight: 600; }
.footer-logo { width: 220px; max-width: min(220px, 72vw); height: auto; filter: drop-shadow(0 0 2px rgba(255,255,255,.35)); }
.footer-phone {
    color: var(--pm-orange) !important;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
}
.footer-phone:hover { color: #fff !important; }
.footer-center .social-links a { color: #b9b3c4; }

/* Footer social icons — same muted style as other footer links */
.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem;
}
.footer-social--icons {
    justify-content: center;
}
.footer-social a,
.footer-social a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #b9b3c4 !important;
    font-size: 1.15rem;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.footer-social a i { color: inherit; }
.footer-social a:hover,
.footer-social a:focus-visible {
    transform: translateY(-4px) scale(1.08);
    background: rgba(247, 148, 29, .18);
    color: var(--pm-orange) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}
.footer-social a.soc-fb:hover,
.footer-social a.soc-fb:focus-visible { color: #1877f2 !important; background: rgba(255,255,255,.92); }
.footer-social a.soc-ig:hover,
.footer-social a.soc-ig:focus-visible { color: #e1306c !important; background: rgba(255,255,255,.92); }
.footer-social a.soc-yt:hover,
.footer-social a.soc-yt:focus-visible { color: #ff2d2d !important; background: rgba(255,255,255,.92); }
.footer-social a.soc-wa:hover,
.footer-social a.soc-wa:focus-visible { color: #25d366 !important; background: rgba(255,255,255,.92); }

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    text-align: center;
    font-size: .875rem;
}
/* Small screen: payment on top; copyright + credit as one block with a thin line */
.payment-badges {
    display: flex;
    justify-content: center;
    order: 1;
    width: 100%;
}
.footer-copy-stack {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    max-width: 22rem;
}
.footer-copy-line {
    display: block;
    line-height: 1.45;
    color: #b9b3c4;
}
.footer-copy-credit {
    display: block;
    line-height: 1.45;
    color: #b9b3c4;
    padding-top: 0;
    border-top: none;
    width: 100%;
}
@media (min-width: 992px) {
    .footer-bottom-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "copy pay";
        align-items: center;
        column-gap: 1.25rem;
        text-align: left;
    }
    .footer-copy-stack {
        grid-area: copy;
        order: unset;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0;
        max-width: none;
    }
    .footer-copy-line,
    .footer-copy-credit {
        display: inline;
        padding-top: 0;
        border-top: none;
        width: auto;
    }
    .footer-copy-credit::before {
        content: "|";
        margin: 0 0.45em;
        color: #b9b3c4;
    }
    .payment-badges {
        grid-area: pay;
        order: unset;
        width: auto;
        justify-content: flex-end;
    }
}
.site-footer .footer-copyright .footer-brand-link,
.site-footer .footer-copy-line .footer-brand-link,
.site-footer .footer-copy-credit .footer-brand-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}
.site-footer .footer-copyright .footer-brand-link:hover,
.site-footer .footer-copyright .footer-brand-link:focus-visible,
.site-footer .footer-copy-line .footer-brand-link:hover,
.site-footer .footer-copy-line .footer-brand-link:focus-visible,
.site-footer .footer-copy-credit .footer-brand-link:hover,
.site-footer .footer-copy-credit .footer-brand-link:focus-visible {
    color: var(--pm-orange) !important;
    text-decoration: none;
}
.payment-badges .footer-pay-img {
    display: block;
    width: 380px;
    max-width: min(100%, 380px);
    height: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* ===== Pustaka Mane in News ===== */
.news-section {
    background: #c9ecfa;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 3rem;
    margin-top: 0;
}
.news-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.6rem;
    color: var(--pm-ink);
    margin-bottom: .2rem;
}
.news-subtitle {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--pm-ink);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    margin-bottom: 1.4rem;
}
.news-brand {
    font-family: var(--font-display);
    color: #9f1239;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: .35rem;
}
.news-side-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 60, 90, .15);
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.news-slider-wrap {
    position: relative;
    padding: 0 30px; /* keeps arrows & slides away from edges */
}
.news-frame {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20, 60, 90, .18);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-img {
    width: 100%;
    max-height: 400px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}
.news-nav-prev, .news-nav-next {
    width: 46px !important;
    height: 46px !important;
    margin-top: 0;
    border-radius: 50% !important;
    background: var(--pm-navy) !important;
    color: #fff !important;
    box-shadow: 0 5px 16px rgba(20, 30, 80, .35);
    top: 50%;
    transform: translateY(-50%);
    transition: background .18s ease, transform .18s ease;
}
.news-nav-prev { left: -10px; }
.news-nav-next { right: -10px; }
.news-nav-prev:hover, .news-nav-next:hover {
    background: var(--pm-orange) !important;
    transform: translateY(-50%) scale(1.08);
}
.news-nav-prev::after, .news-nav-next::after {
    font-size: 1rem !important;
    font-weight: 800;
}
@media (max-width: 575px) {
    .news-slider-wrap { padding: 0 8px; }
    .news-nav-prev, .news-nav-next { display: none; }
    .news-title { font-size: clamp(1.5rem, 7vw, 2rem); }
    .news-subtitle { font-size: clamp(1.15rem, 5.5vw, 1.5rem); }
    .news-brand {
        font-size: clamp(0.95rem, 4.5vw, 1.2rem);
        letter-spacing: clamp(0.08rem, 1.5vw, 0.25rem);
        word-break: break-word;
    }
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 1050;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.7rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25); text-decoration: none;
}
.whatsapp-float:hover { background: #1faa52; color: #fff; transform: scale(1.06); }

/* Cart items */
.cart-thumb { width: 56px; height: 74px; object-fit: cover; border-radius: 6px; display: block; }
.cart-item-book {
    grid-area: book;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: .75rem 1rem;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
}
.cart-item-book:hover .cart-item-title,
.cart-item-book:focus-visible .cart-item-title {
    color: var(--pm-brand, #6b2d8b);
}
.cart-item-book:hover .cart-thumb,
.cart-item-book:focus-visible .cart-thumb {
    opacity: .92;
}
.cart-item-book:focus-visible {
    outline: 2px solid var(--pm-brand, #6b2d8b);
    outline-offset: 2px;
}
.cart-item-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}
.cart-item-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    font-weight: 600;
    color: var(--pm-ink, #1a1a1a);
    margin: 0 0 .2rem;
}
.cart-item-author,
.cart-item-category {
    display: block;
    line-height: 1.4;
}
.cart-item-author {
    margin-top: .15rem;
}
.cart-item-category {
    font-size: .78rem;
    margin-top: .1rem;
}
.cart-qty-input {
    min-width: 88px;
    max-width: 96px;
    height: 30px;
}
.cart-qty-input .btn {
    min-width: 28px;
    padding: 0 .2rem;
    font-size: .85rem;
    line-height: 1;
}
.cart-qty-input .form-control {
    min-width: 1.75rem;
    max-width: 2rem;
    padding: 0 .15rem;
    font-size: .82rem;
    height: 100%;
}
.cart-remove-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-items {
    display: flex;
    flex-direction: column;
}
.cart-items-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 88px 100px 44px;
    gap: .75rem 1rem;
    align-items: center;
    padding: .65rem 1.1rem;
    border-bottom: 1px solid #ece7f3;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #64748b;
}
.cart-items-head__book { grid-column: 1 / 3; }
.cart-items-head--buy-now {
    grid-template-columns: 56px minmax(0, 1fr) 88px 100px;
}
.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    grid-template-areas: "book meta remove";
    gap: .75rem 1rem;
    align-items: center;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid #f0ebf6;
}
.cart-item:last-child { border-bottom: none; }
.cart-item--buy-now {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "book meta";
}
.buy-now-qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    font-weight: 700;
    color: var(--pm-ink);
}
.buy-now-items-card {
    margin-bottom: 0;
}
body.page-checkout .buy-now-items-card + #checkoutForm {
    margin-top: 1.5rem;
}
@media (max-width: 991.98px) {
    body.page-checkout .buy-now-items-card + #checkoutForm {
        margin-top: 1.25rem !important;
    }
}
.cart-item-info { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.cart-item-meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: 88px 100px;
    gap: .75rem 1rem;
    align-items: center;
}
.cart-item-price {
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    line-height: 1.2;
}
.cart-price-new { font-weight: 700; color: var(--pm-ink, #1a1a1a); }
.cart-price-old {
    font-size: .78rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: line-through;
}
.cart-item-total {
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    line-height: 1.2;
}
.cart-item-total-value { font-weight: 700; color: var(--pm-ink); white-space: nowrap; }
.cart-item-total-old {
    font-size: .78rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: line-through;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    padding: 0 0 .75rem;
    margin: 0 0 .65rem;
    border-bottom: 1px solid #ece7f3;
}
.summary-item-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--pm-ink, #1a1a1a);
    line-height: 1.35;
    min-width: 0;
}
.summary-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .1rem;
    flex-shrink: 0;
}
.cart-item-remove { grid-area: remove; justify-self: end; }

@media (max-width: 991.98px) {
    body.page-cart .container.pb-4 {
        padding-bottom: 1rem !important;
    }
    body.page-cart .cart-form {
        width: 100%;
        margin-bottom: 0 !important;
        padding-bottom: 0;
    }
    .cart-list-card {
        width: 100%;
        border: none;
        background: transparent;
        box-shadow: none !important;
        border-radius: 0;
    }
    .cart-items { gap: .65rem; }
    .cart-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "book remove"
            "meta meta";
        gap: .45rem .6rem;
        align-items: start;
        padding: .7rem .75rem;
        background: #fff;
        border: 1px solid #ece7f3;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(60, 30, 90, .06);
    }
    .cart-item--buy-now {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "book"
            "meta";
    }
    .cart-item:last-child {
        border-bottom: 1px solid #ece7f3;
    }
    .cart-item-book {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: .45rem .6rem;
        align-items: center;
    }
    .cart-item-remove {
        justify-self: end;
        align-self: start;
    }
    .cart-item-thumb .cart-thumb {
        width: 52px;
        height: 70px;
    }
    .cart-item-title { font-size: .88rem; }
    .cart-item-author { font-size: .75rem; }
    .cart-item-category { font-size: .72rem; }
    .cart-remove-btn {
        width: 32px;
        height: 32px;
    }
    .cart-item-meta {
        grid-template-columns: minmax(4.25rem, 1fr) auto;
        gap: .3rem .4rem;
        width: 100%;
        margin: 0;
        padding-top: .5rem;
        border-top: 1px solid #ece7f3;
        align-items: center;
    }
    .cart-item-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: .1rem;
        font-size: .84rem;
        min-width: 0;
    }
    .cart-item-price::before {
        content: attr(data-label);
        font-size: .62rem;
        font-weight: 600;
        letter-spacing: .03em;
        text-transform: uppercase;
        color: #64748b;
        line-height: 1;
    }
    .cart-item-qty { justify-self: end; }
    .cart-item-qty .cart-qty-input {
        min-width: 0;
        max-width: 88px;
        width: 88px;
        height: 28px;
    }
    .cart-qty-input .btn {
        min-width: 26px;
        padding-left: .15rem;
        padding-right: .15rem;
        font-size: .8rem;
    }
    .cart-qty-input .form-control {
        min-width: 1.5rem;
        max-width: 1.85rem;
        padding-left: .05rem;
        padding-right: .05rem;
        font-size: .78rem;
    }
    body.page-cart .checkout-summary-col {
        margin-top: 0;
    }
    .coupon-input-row {
        flex-wrap: nowrap;
        gap: .5rem;
    }
    .coupon-input-row .form-control {
        min-width: 0;
        flex: 1 1 auto;
    }
    .coupon-input-row .btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}


/* ===== Page header band with breadcrumb ===== */
.page-head {
    background: var(--pm-orange);
    padding: 3rem 0;
    margin-bottom: 1.75rem;
}
.page-head + .shop-page {
    padding-top: 1.5rem;
}
.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    color: #fff;
}
.book-detail-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
}
.book-detail-byline__author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.book-detail-byline__avatar,
.book-detail-byline__avatar-img {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.book-detail-byline__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--pm-orange), var(--pm-purple));
}
.book-detail-byline__avatar-img {
    object-fit: cover;
    display: block;
    background: #eceef2;
    border: 1px solid #dfd8e8;
}
.book-detail-byline__by {
    min-width: 0;
}
.book-detail-byline__by-label {
    color: #9ca3af;
    font-weight: 400;
    margin-right: 0.2rem;
}
.book-detail-byline__name {
    color: #374151;
    font-weight: 700;
    text-decoration: none;
}
a.book-detail-byline__name:hover,
a.book-detail-byline__name:focus-visible {
    color: var(--pm-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.book-detail-byline__sep {
    color: #9ca3af;
    font-weight: 400;
}
.book-detail-byline__dot {
    color: #9ca3af;
    font-weight: 700;
    line-height: 1;
}
.book-detail-byline__cats {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.book-detail-byline__cat {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    background: var(--pm-purple);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}
.book-detail-byline__cat:hover,
.book-detail-byline__cat:focus-visible {
    background: var(--pm-purple-dark);
    color: #fff;
    text-decoration: none;
}
.book-detail-title {
    margin: 0 0 0.55rem;
    color: #1e3a5f;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
}

/* ===== Checkout process: Cart / Shipping / Payment ===== */
.pm-checkout-progress {
    margin: 0 0 2.25rem;
    padding-bottom: .5rem;
}
.pm-checkout-progress__list {
    list-style: none;
    margin: 0;
    padding: 0 0 .25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.pm-checkout-step[data-checkout-step="1"].is-active {
    padding-bottom: 1.5rem;
}
body.page-cart.has-mobile-action-bar .pm-checkout-step[data-checkout-step="1"].is-active {
    padding-bottom: calc(1.25rem + 4.75rem);
}
body.page-cart .pm-cart-recs {
    margin-top: 2rem;
    margin-bottom: .5rem;
}
body.page-cart .pm-why-shop {
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
}
body.page-cart .cart-list-card,
body.page-cart .order-summary {
    margin-bottom: .25rem;
}
.pm-checkout-progress__step {
    position: relative;
    display: flex;
    justify-content: center;
    min-width: 0;
    color: var(--pm-checkout-muted);
}
.pm-checkout-progress__btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    text-align: center;
    color: inherit;
    cursor: pointer;
    min-width: 0;
}
.pm-checkout-progress__btn:focus-visible {
    outline: 2px solid var(--pm-checkout-accent);
    outline-offset: 3px;
    border-radius: 8px;
}
.pm-checkout-progress__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 2px;
    background: var(--pm-checkout-accent-line);
    z-index: 0;
    pointer-events: none;
}
.pm-checkout-progress__step.is-done:not(:last-child)::after,
.pm-checkout-progress__step.is-current:not(:last-child)::after {
    background: var(--pm-checkout-accent);
}
.pm-checkout-progress__node {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: #fff;
    color: var(--pm-checkout-muted);
    border: 2px solid var(--pm-checkout-accent-line);
}
.pm-checkout-progress__step.is-done .pm-checkout-progress__node,
.pm-checkout-progress__step.is-current .pm-checkout-progress__node {
    background: var(--pm-checkout-accent);
    border-color: var(--pm-checkout-accent);
    color: #fff;
}
.pm-checkout-progress__label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    color: inherit;
}
.pm-checkout-progress__step.is-done,
.pm-checkout-progress__step.is-current {
    color: var(--pm-checkout-accent-dark);
}
.pm-checkout-progress__step.is-current .pm-checkout-progress__label {
    color: var(--pm-checkout-accent);
}
.pm-checkout-step[hidden] {
    display: none !important;
}
.pm-cart-recs__title,
.pm-why-shop__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pm-navy);
    margin: 0 0 1rem;
}
.pm-cart-recs__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}
.pm-cart-recs__nav {
    display: inline-flex;
    gap: .4rem;
}
.pm-cart-recs__prev,
.pm-cart-recs__next {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1.5px solid var(--pm-checkout-accent-line, #d4c2e8);
    background: #fff;
    color: var(--pm-checkout-accent, #5b2d8e);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.pm-cart-recs__prev:hover,
.pm-cart-recs__next:hover {
    background: var(--pm-checkout-accent-soft, #f3eafb);
    border-color: var(--pm-checkout-accent, #5b2d8e);
}
.pm-cart-recs__prev.swiper-button-disabled,
.pm-cart-recs__next.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}
.pm-cart-recs-swiper {
    overflow: hidden;
    padding-bottom: .25rem;
}
.pm-cart-recs-swiper .swiper-slide {
    height: auto;
}
.pm-cart-recs-swiper .book-card {
    height: 100%;
}
.pm-checkout-pay-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: var(--pm-checkout-accent-soft);
    border: 1px solid var(--pm-checkout-accent-line);
}
.pm-checkout-pay-total span {
    font-weight: 600;
    color: var(--pm-ink);
}
.pm-amount-accent {
    color: var(--pm-checkout-accent) !important;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .01em;
}
.summary-row.grand #sumTotal.pm-amount-accent,
#sumTotal.pm-amount-accent {
    color: var(--pm-checkout-accent);
    font-size: 1.2rem;
}
.pm-checkout-step-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-top: 0;
}
.pm-checkout-step-actions-card {
    margin-top: 1rem;
}
.pm-checkout-cards + .pm-checkout-step-actions-card,
.pm-checkout-pay-card + .pm-checkout-step-actions-card {
    margin-top: 1rem;
}
.pm-checkout-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.pm-checkout-back-btn i {
    font-size: 1rem;
    line-height: 1;
}
.pm-checkout-continue-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Desktop: bigger buttons in card under shipping / payment */
@media (min-width: 992px) {
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions-card,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions-card {
        margin-top: 1rem;
        min-height: 0;
        pointer-events: auto;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions {
        position: static;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: .85rem;
        transform: none;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .btn,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .btn {
        min-height: 52px;
        padding-top: .85rem;
        padding-bottom: .85rem;
        font-size: 1.05rem;
        font-weight: 700;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn {
        width: auto;
        min-width: 0;
        max-width: none;
        padding-left: 1.15rem;
        padding-right: 1.15rem;
        gap: .45rem;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn span,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn span {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
        border: 0;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn i,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn i {
        font-size: 1.15rem;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-continue-btn,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-continue-btn {
        flex: 1 1 auto;
        width: auto;
        min-width: 12rem;
        margin-left: 0;
        justify-content: center;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-continue-btn i,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-continue-btn i {
        display: inline-block;
    }
    body.page-cart.pm-checkout-footer-active,
    body.page-checkout.pm-checkout-footer-active {
        padding-bottom: 0;
    }
    body.page-cart.pm-checkout-footer-active .whatsapp-float,
    body.page-checkout.pm-checkout-footer-active .whatsapp-float {
        bottom: 1.25rem;
    }
    body.page-cart.pm-checkout-footer-active .site-footer,
    body.page-checkout.pm-checkout-footer-active .site-footer {
        display: block;
    }
}
/* Mobile: fixed footer bar for shipping / payment */
@media (max-width: 991.98px) {
    body.page-cart .pm-checkout-step[data-checkout-step="2"].is-active,
    body.page-cart .pm-checkout-step[data-checkout-step="3"].is-active,
    body.page-checkout .pm-checkout-step[data-checkout-step="2"].is-active,
    body.page-checkout .pm-checkout-step[data-checkout-step="3"].is-active {
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions-card,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions-card {
        margin: 0;
        padding: 0 !important;
        background: transparent;
        border: 0;
        box-shadow: none;
        /* Keep end-of-step scroll space so content never sits under the fixed CTA */
        min-height: calc(4.5rem + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1060;
        margin: 0;
        padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #dde3ef;
        box-shadow: 0 -6px 24px rgba(27, 20, 83, .12);
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: .55rem;
        pointer-events: auto;
        /* Avoid iOS rubber-band revealing content under the bar */
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .btn,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .btn {
        margin: 0;
        min-height: 48px;
        font-weight: 600;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn {
        flex: 0 0 auto;
        width: 48px;
        min-width: 48px;
        max-width: 48px;
        padding-left: 0;
        padding-right: 0;
        gap: 0;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn span,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn i,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-back-btn i {
        font-size: 1.15rem;
        margin: 0;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-continue-btn,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-continue-btn {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        margin-left: 0;
    }
    body.page-cart .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-continue-btn i,
    body.page-checkout .pm-checkout-step.is-active .pm-checkout-step-actions .pm-checkout-continue-btn i {
        display: none;
    }
    body.page-cart.pm-checkout-footer-active,
    body.page-checkout.pm-checkout-footer-active {
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
        overscroll-behavior-y: none;
    }
    body.page-cart.pm-checkout-footer-active .whatsapp-float,
    body.page-checkout.pm-checkout-footer-active .whatsapp-float {
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
    body.page-cart.pm-checkout-footer-active .site-footer,
    body.page-checkout.pm-checkout-footer-active .site-footer {
        display: none !important;
    }
}
@media (max-width: 575.98px) {
    .pm-checkout-back-btn {
        flex: 0 0 auto;
        width: 48px;
        min-width: 48px;
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
        gap: 0;
    }
    .pm-checkout-back-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .pm-checkout-back-btn i {
        font-size: 1.15rem;
        margin: 0;
    }
    .pm-checkout-continue-btn {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        margin-left: 0;
        justify-content: center;
    }
    .pm-checkout-continue-btn i {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .pm-checkout-progress__list {
        padding: 0;
    }
    .pm-checkout-progress__node {
        width: 32px;
        height: 32px;
        font-size: .9rem;
    }
    .pm-checkout-progress__step:not(:last-child)::after {
        top: 15px;
        left: calc(50% + 18px);
        right: calc(-50% + 18px);
    }
    .pm-checkout-progress__label {
        font-size: .7rem;
    }
}

.crumb {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.crumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.crumb-item,
.crumb-sep {
    display: inline-flex;
    align-items: center;
}
.crumb a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.crumb a:hover { color: #fff7ed; }
.crumb span { color: #fff; }
.crumb i { color: #fff; font-size: .8rem; }
@media (max-width: 991.98px) {
    .page-head { padding: 1.65rem 0; margin-bottom: 1rem; }
    .page-head + .shop-page { padding-top: 1rem; }
    .page-head .container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: .45rem;
    }
    .page-title {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    .crumb {
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .15px;
        line-height: 1.35;
        flex-wrap: wrap;
        row-gap: .15rem;
    }
    .crumb i {
        font-size: .55rem;
        margin-left: .2rem !important;
        margin-right: .2rem !important;
    }
}
.card-soft { border: none; border-radius: 14px; box-shadow: 0 2px 12px rgba(60,30,90,.08); }

/* ===== Author profile page ===== */
.author-page { max-width: 1140px; }
.author-profile {
    margin-bottom: 2.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #faf8ff 55%, #f3f8ff 100%);
    border: 1px solid rgba(91, 45, 142, .08);
}
.author-profile__inner {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 2rem;
    padding: 1.75rem 1.5rem;
    align-items: start;
}
.author-profile__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
}
.author-profile__photo-wrap {
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--pm-purple), var(--pm-orange), var(--pm-blue));
    box-shadow: 0 10px 28px rgba(91, 45, 142, .18);
}
.author-profile__photo {
    display: block;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    background: #f3f4f6;
}
.author-profile__book-count {
    display: inline-flex;
    align-items: center;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--pm-navy);
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(91, 45, 142, .12);
}
.author-profile__eyebrow {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pm-purple);
}
.author-profile__name {
    margin: 0 0 1rem;
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    line-height: 1.15;
    color: var(--pm-navy);
}
.author-profile__bio {
    max-width: 62rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #4b5563;
}
.author-profile__social {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--pm-navy);
    background: #fff;
    border: 1.5px solid #e7e1f0;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.author-social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(60, 30, 90, .1);
    color: var(--pm-purple);
    border-color: #d8c9ef;
}
.author-social-link i { font-size: 1rem; }
.author-social-link--website:hover { color: #1d4ed8; border-color: #bfdbfe; }
.author-social-link--instagram:hover { color: #c13584; border-color: #f9c9e4; }
.author-social-link--facebook:hover { color: #1877f2; border-color: #bfdbfe; }
.author-social-link--xtwitter:hover,
.author-social-link--twitter:hover { color: #111827; border-color: #d1d5db; }
.author-social-link--youtube:hover { color: #ff0000; border-color: #fecaca; }
.author-social-link--linkedin:hover { color: #0a66c2; border-color: #bfdbfe; }
.author-books { margin-top: .5rem; }
.author-books .section-title { margin-bottom: 1.75rem; }
@media (max-width: 767.98px) {
    .author-profile__inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem 1rem 1.5rem;
        text-align: center;
    }
    .author-profile__body { text-align: left; }
    .author-profile__photo { width: 140px; height: 140px; }
    .author-profile__social { justify-content: flex-start; }
}

/* ===== Book detail page ===== */
.book-short-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #374151;
    margin: 0;
}
.book-promo-hook {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1f2937;
    margin: 0 0 1rem;
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 4px solid var(--pm-gold, #f7941d);
    border-radius: 0 10px 10px 0;
}
.book-promo-pricing {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    box-sizing: border-box;
}
.book-price-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.book-price-display__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}
.book-price-display__mrp {
    font-size: 1.05rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}
.book-price-display__now {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--pm-orange, #f7941d);
    letter-spacing: -0.02em;
}
.book-price-display__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}
.book-price-display__save {
    font-size: 0.92rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.35;
}
.book-price-display__save-amt,
.book-price-display__save-pct {
    color: #16a34a;
    font-weight: 700;
}
.book-promo-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.9rem;
}
.book-promo-label {
    color: #6b7280;
    font-weight: 600;
}
.book-promo-label-en {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.85em;
}
.book-promo-shipping {
    color: #065f46;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.book-delivery-ticket {
    --coupon-bg: #f7f8fa;
    --coupon-page: var(--pm-cream, #fdf9f2);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    margin-bottom: 1rem;
    padding: 0;
    border: 1px solid #d8dde6;
    border-radius: 12px;
    overflow: hidden;
    background: var(--coupon-bg);
    box-shadow: 0 2px 10px rgba(30, 40, 60, .06);
}
.book-delivery-ticket.is-preorder {
    --coupon-bg: #f0fdf4;
    border-color: #bbf7d0;
}
.book-delivery-ticket::before,
.book-delivery-ticket::after {
    content: "";
    position: absolute;
    top: 42%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--coupon-page);
    border: 1px solid #d8dde6;
    z-index: 2;
    transform: translateY(-50%);
    pointer-events: none;
}
.book-delivery-ticket::before { left: -9px; }
.book-delivery-ticket::after { right: -9px; }
.book-delivery-ticket__body {
    display: grid;
    grid-template-columns: minmax(5rem, 30%) 1px minmax(0, 1fr);
    align-items: stretch;
    padding: 12px 14px 10px;
}
.book-delivery-ticket__code-col,
.book-delivery-ticket__offer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
    gap: 4px;
}
.book-delivery-ticket__code-col { padding-right: 10px; }
.book-delivery-ticket__offer-col { padding-left: 12px; gap: 6px; }
.book-delivery-ticket__divider {
    width: 1px;
    align-self: stretch;
    background-image: linear-gradient(to bottom, #c5cbd6 40%, transparent 0%);
    background-position: center;
    background-size: 1px 8px;
    background-repeat: repeat-y;
}
.book-delivery-ticket__eyebrow {
    font-size: .68rem;
    font-weight: 600;
    color: #9ca3af;
    line-height: 1.2;
}
.book-delivery-ticket__code {
    font-size: 1.25rem;
    line-height: 1;
    color: #111827;
}
.book-delivery-ticket.is-preorder .book-delivery-ticket__code { color: #047857; }
.book-delivery-ticket__tc {
    font-size: .68rem;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.2;
}
.book-delivery-ticket__offer {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}
.book-delivery-ticket__offer strong {
    font-weight: 800;
    color: #047857;
}
.book-delivery-ticket__expires {
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.3;
    color: #6b7280;
}
.book-delivery-ticket__foot {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: #e85d4c;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}
.book-delivery-ticket.is-preorder .book-delivery-ticket__foot {
    background: #059669;
}
/* Book detail — shipping + ETA + PIN card */
.book-delivery-eta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    max-width: 420px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    box-sizing: border-box;
}
.book-delivery-eta.is-preorder {
    background: #ecfdf5;
    border-color: #6ee7b7;
}
.book-delivery-eta__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #047857;
    font-size: 1.85rem;
    line-height: 1;
}
.book-delivery-eta__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}
.book-delivery-eta__date {
    margin: 0;
    color: #065f46;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}
.book-delivery-eta__date strong {
    color: #047857;
    font-weight: 800;
}
.book-delivery-eta__pin.pm-shipping-pin {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.4rem;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.book-delivery-eta__dest {
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
}
.book-delivery-eta__pin-input.pm-shipping-pin__input {
    width: 4.6rem;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    box-shadow: none;
}
.book-delivery-eta__pin.is-editing .book-delivery-eta__pin-input.pm-shipping-pin__input,
.book-delivery-eta__pin-input.pm-shipping-pin__input:not(:read-only) {
    width: 5.4rem;
    padding: 0.15rem 0.4rem;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    background: #fff;
    text-align: center;
}
.book-delivery-eta__pin.is-editing .book-delivery-eta__pin-input.pm-shipping-pin__input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.book-delivery-eta__pin.is-editing .book-delivery-eta__cost {
    display: none;
}
.book-delivery-eta__change {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}
.book-delivery-eta__change:hover,
.book-delivery-eta__change:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.book-delivery-eta__cost {
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
}
.book-delivery-eta__cost .book-shipping-display,
.book-delivery-eta__cost strong {
    color: #047857;
    font-weight: 800;
}
/* Legacy delivery block kept for cached markup */
.book-delivery-block {
    margin-bottom: 1rem;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    max-width: 420px;
}
.book-delivery-block--preorder {
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.book-delivery-est {
    font-size: .92rem;
    color: #065f46;
    font-weight: 600;
}
.book-delivery-est strong { color: #047857; }
.book-whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin: 0 0 1rem;
}
.book-shipping-display { color: var(--pm-purple); font-variant-numeric: tabular-nums; }
.book-promo-row--shipping { align-items: baseline; }
.pm-shipping-pin {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 4px 0 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #faf7fd 0%, #f5f1fa 100%);
    box-sizing: border-box;
}
.pm-shipping-pin[hidden] { display: none !important; }
.pm-shipping-pin__text {
    flex: 1 1 8rem;
    min-width: 0;
    margin: 0;
    font-size: .78rem;
    line-height: 1.3;
    color: #7a6b8c;
}
.pm-shipping-pin__input {
    flex: 0 0 auto;
    width: 5.6rem;
    height: 32px;
    margin: 0;
    padding: 0 .55rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
    color: var(--pm-purple);
    font-size: .9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .1em;
    text-align: center;
    box-shadow: none;
    cursor: default;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pm-shipping-pin__input:read-only {
    background: transparent;
    border-color: transparent;
}
.pm-shipping-pin.is-editing .pm-shipping-pin__input,
.pm-shipping-pin__input:not(:read-only) {
    background: #fff;
    border-color: #e4dced;
    cursor: text;
}
.pm-shipping-pin.is-editing .pm-shipping-pin__input:focus {
    outline: none;
    border-color: var(--pm-purple);
    box-shadow: 0 0 0 3px rgba(91, 45, 142, .12);
}
.pm-shipping-pin__input::placeholder {
    letter-spacing: .18em;
    color: #c4b8d4;
    font-weight: 500;
}
.pm-shipping-pin__edit-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--pm-purple);
    cursor: pointer;
    transition: background .15s ease;
}
.pm-shipping-pin__edit-btn:hover {
    background: rgba(91, 45, 142, .1);
}
.order-summary .pm-shipping-pin {
    margin: 0 0 .75rem;
}

.book-details-divider {
    margin: 1.25rem 0 1rem;
    border: 0;
    border-top: 1px solid #e5e7eb;
    opacity: 1;
}
.book-details-heading {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .85rem;
}
.book-details-under-buy {
    margin-top: 1.25rem;
}
.book-details-under-buy .book-details-heading {
    margin-bottom: 0.85rem;
}
.book-details-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    width: 100%;
}
.book-details-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.book-details-tile__icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: #efe8f8;
    color: #4c1d95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
}
.book-details-tile__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.book-details-tile__value {
    color: #3b1f6e;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
    word-break: break-word;
}
.book-details-tile__label {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.82rem;
    line-height: 1.25;
}
.book-details-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.book-details-link:hover,
.book-details-link:focus-visible {
    color: #5b2d8e;
}
@media (min-width: 768px) {
    .book-details-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem 1.5rem;
    }
}
@media (min-width: 1100px) {
    .book-details-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* Legacy selectors kept for any cached markup */
.book-details-list { display: none; }
.book-details-grid { display: block; }
.book-details-item { margin: 0; padding: .4rem 0; }
.book-details-table {
    width: auto;
    max-width: 100%;
}
.book-details-table th {
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    vertical-align: top;
}
.book-details-table td {
    color: #4b5563;
}

/* Book detail — share icon below card */
.book-share-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: .75rem;
}
.book-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1.5px solid #e0d8ec;
    border-radius: 50%;
    background: #fff;
    color: var(--pm-purple);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(60, 30, 90, .08);
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.book-share-icon:hover {
    border-color: var(--pm-purple);
    color: var(--pm-orange);
    transform: translateY(-2px);
}
.book-share-icon.is-copied {
    border-color: var(--pm-green);
    color: var(--pm-green);
}

@media (max-width: 575.98px) {
    .book-detail-body {
        padding: 1.15rem !important;
    }
}

.book-description {
    white-space: pre-line;
    line-height: 1.75;
    color: #374151;
}

/* Book detail — buy actions */
.book-buy-bar {
    --pm-buy-action-h: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    max-width: 480px;
    margin-top: .15rem;
    margin-bottom: 1rem;
    align-items: stretch;
}
.book-buy-bar .js-add-cart,
.book-buy-bar .book-buy-now-form {
    flex: 1 1 0;
    min-width: 0;
    align-items: stretch;
}
.book-buy-bar .book-buy-qty {
    width: 90px;
    flex-shrink: 0;
    height: var(--pm-buy-action-h);
    min-height: var(--pm-buy-action-h);
    padding: 0 .5rem;
    text-align: center;
    box-sizing: border-box;
}
.book-buy-bar .btn-outline-brand,
.book-buy-bar .btn-buy-now {
    height: var(--pm-buy-action-h);
    min-height: var(--pm-buy-action-h);
    padding: 0 1.15rem;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: .375rem;
    box-sizing: border-box;
}
.book-buy-bar .btn-outline-brand {
    border-width: 2px;
    padding: 0 calc(1.1rem - 2px);
}
.book-buy-bar .book-buy-now-form {
    min-width: 140px;
}
.book-buy-bar--preorder {
    max-width: 420px;
}
.book-buy-bar--preorder .book-buy-now-form.book-buy-bar-inner {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    gap: .65rem;
    align-items: stretch;
}
.book-buy-bar--preorder .btn-buy-now {
    flex: 1 1 auto;
    min-width: 0;
}
.book-notify-block {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    max-width: 420px;
    width: 100%;
    margin-bottom: 1rem;
}
.book-notify-oos-alert {
    width: 100%;
    margin: 0;
    padding: .65rem .9rem;
    border-radius: 10px;
    text-align: center;
}
.book-buy-bar--notify {
    max-width: none;
    width: 100%;
    margin-bottom: 0;
}
.book-buy-bar--notify .btn-outline-brand {
    width: 100%;
    height: var(--pm-buy-action-h);
    min-height: var(--pm-buy-action-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.checkout-notify-form {
    margin-top: .35rem;
    max-width: 480px;
}
.cart-customer-card .form-label {
    font-weight: 600;
}
.book-buy-bar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: .75rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.book-buy-bar--sticky {
    box-sizing: border-box;
    display: block !important;
    flex-wrap: nowrap;
    max-width: none !important;
    width: 100%;
    margin: 0;
}
.book-sticky-bar-inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}
.book-sticky-thumb {
    width: 44px;
    height: 58px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #eee;
    border: 1px solid #ece7f3;
}
.book-sticky-info {
    flex: 1 1 auto;
    min-width: 0;
}
.book-sticky-heading {
    margin: 0;
    line-height: 1.3;
}
.book-sticky-label {
    font-size: .72rem;
    color: #64748b;
    margin-right: .25rem;
}
.book-sticky-title {
    display: inline;
    font-size: .78rem;
    font-weight: 600;
    color: var(--pm-ink);
}
.book-sticky-cat {
    display: block;
    font-size: .68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: .12rem;
}
.book-sticky-price {
    font-size: .85rem;
    margin-top: .15rem;
}
.book-sticky-price strong {
    color: var(--pm-ink);
    font-weight: 700;
}
.book-sticky-price s {
    margin-left: .35rem;
    color: #94a3b8;
    font-size: .78rem;
}
.book-sticky-preorder {
    margin-top: .2rem;
    font-size: .78rem;
    color: #065f46;
    font-weight: 600;
}
.book-sticky-preorder strong {
    color: #047857;
}
.book-sticky-actions {
    --pm-buy-action-h: 44px;
    display: flex;
    align-items: stretch;
    gap: .4rem;
    flex-shrink: 0;
    margin-left: auto;
}
.book-sticky-form {
    margin: 0;
    display: flex;
    align-items: stretch;
}
.book-sticky-qty {
    width: 42px;
    min-width: 42px;
    height: var(--pm-buy-action-h);
    min-height: var(--pm-buy-action-h);
    padding: 0 .25rem;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    flex-shrink: 0;
    box-sizing: border-box;
}
.book-sticky-btn {
    height: var(--pm-buy-action-h);
    min-height: var(--pm-buy-action-h);
    padding: 0 .65rem;
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .book-buy-bar--sticky {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1055;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(10px);
        border-top: 1px solid #ece7f3;
        box-shadow: 0 -10px 32px rgba(27, 20, 83, .14);
        transform: translateY(110%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .28s ease, visibility .38s;
    }
    .book-sticky-bar-inner {
        max-width: 1140px;
        padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    }
    .book-sticky-title {
        font-size: .88rem;
    }
    .book-sticky-thumb {
        width: 52px;
        height: 68px;
    }
    .book-sticky-btn {
        font-size: .82rem;
        padding: 0 .85rem;
    }
    body.book-buy-sticky-visible .book-buy-bar--sticky {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.book-buy-sticky-visible .whatsapp-float {
        bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 991.98px) {
    body.page-book-detail.has-mobile-action-bar .book-buy-bar--inline {
        display: none !important;
    }
    body.page-book-detail.has-mobile-action-bar .book-buy-bar--sticky {
        display: block !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        z-index: 1055;
        margin: 0;
        padding: 0;
        background: #fff;
        border-top: 1px solid #ece7f3;
        box-shadow: 0 -6px 24px rgba(27, 20, 83, .12);
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.page-book-detail.has-mobile-action-bar .book-sticky-thumb,
    body.page-book-detail.has-mobile-action-bar .book-sticky-info {
        display: none !important;
    }
    body.page-book-detail.has-mobile-action-bar .book-sticky-bar-inner {
        align-items: stretch;
        gap: .65rem;
        padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
        max-width: 100%;
        box-sizing: border-box;
    }
    body.page-book-detail.has-mobile-action-bar .book-sticky-actions {
        --pm-buy-action-h: 48px;
        width: 100%;
        margin-left: 0;
        gap: .65rem;
        align-items: stretch;
    }
    body.page-book-detail.has-mobile-action-bar .book-sticky-form {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: stretch;
    }
    body.page-book-detail.has-mobile-action-bar .book-sticky-qty {
        width: 58px;
        min-width: 58px;
        height: var(--pm-buy-action-h);
        min-height: var(--pm-buy-action-h);
        flex-shrink: 0;
        font-size: 1rem;
        font-weight: 600;
        padding: 0 .35rem;
        border-radius: 8px;
    }
    body.page-book-detail.has-mobile-action-bar .book-sticky-btn {
        width: 100%;
        height: var(--pm-buy-action-h);
        min-height: var(--pm-buy-action-h);
        padding: 0 .75rem;
        font-size: .88rem;
        font-weight: 600;
        border-radius: 8px;
    }
    body.page-book-detail.has-mobile-action-bar {
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }
    body.page-book-detail.has-mobile-action-bar .whatsapp-float {
        bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 575.98px) {
    body.page-book-detail.has-mobile-action-bar .book-sticky-bar-inner {
        padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom, 0px));
        gap: .55rem;
    }
    body.page-book-detail.has-mobile-action-bar .book-sticky-qty {
        width: 54px;
        min-width: 54px;
    }
    body.page-book-detail.has-mobile-action-bar .book-sticky-btn {
        font-size: .82rem;
        padding: 0 .5rem;
    }
}

/* Notify-me uses the shared cart page — warning accent only */
body.page-notify-me {
    --pm-checkout-accent: #d97706;
    --pm-checkout-accent-dark: #b45309;
    --pm-checkout-accent-soft: #fff7ed;
    --pm-checkout-accent-line: #fcd34d;
    --pm-checkout-muted: #92400e;
}
body.page-notify-me .pm-fulfillment-block {
    display: none !important;
}
body.page-notify-me .pm-notify-banner {
    border-radius: 12px;
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}
body.page-notify-me .btn-warning.pm-checkout-continue-btn {
    font-weight: 700;
    color: #111;
}

/* ===== Mobile fixed action bars (book + cart/checkout pay + notify-me) ===== */
@media (max-width: 991.98px) {
    body.page-cart.has-mobile-action-bar,
    body.page-checkout.has-mobile-action-bar,
    body.page-notify-me.has-mobile-action-bar {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
    body.page-cart.has-mobile-action-bar .whatsapp-float,
    body.page-checkout.has-mobile-action-bar .whatsapp-float,
    body.page-notify-me.has-mobile-action-bar .whatsapp-float {
        bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }
    body.has-mobile-action-bar:not(.page-book-detail):not(.page-cart):not(.page-checkout):not(.page-notify-me) {
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    }
    body.has-mobile-action-bar:not(.page-book-detail):not(.page-cart):not(.page-checkout):not(.page-notify-me) .whatsapp-float {
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
    /* Pay button only — order summary stays in page flow */
    body.page-cart.has-mobile-action-bar .order-summary-actions,
    body.page-checkout.has-mobile-action-bar .order-summary-actions,
    body.page-notify-me.has-mobile-action-bar .order-summary-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1055;
        margin: 0;
        padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #dde3ef;
        box-shadow: 0 -6px 24px rgba(27, 20, 83, .12);
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: .55rem;
    }
    body.page-cart.has-mobile-action-bar .order-summary-actions .checkout-pay-hint,
    body.page-cart.has-mobile-action-bar .order-summary-actions .summary-pay-note,
    body.page-cart.has-mobile-action-bar .order-summary-actions .cart-continue-link,
    body.page-checkout.has-mobile-action-bar .order-summary-actions .checkout-pay-hint,
    body.page-checkout.has-mobile-action-bar .order-summary-actions .summary-pay-note,
    body.page-notify-me.has-mobile-action-bar .order-summary-actions .checkout-pay-hint {
        display: none;
    }
    body.page-cart.has-mobile-action-bar .order-summary-actions .btn,
    body.page-checkout.has-mobile-action-bar .order-summary-actions .btn,
    body.page-notify-me.has-mobile-action-bar .order-summary-actions .btn {
        margin: 0;
        min-height: 48px;
        font-weight: 600;
    }
    body.page-cart.has-mobile-action-bar .order-summary-actions .pm-checkout-back-btn,
    body.page-checkout.has-mobile-action-bar .order-summary-actions .pm-checkout-back-btn {
        flex: 0 0 auto;
        width: 48px;
        min-width: 48px;
        max-width: 48px;
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
        gap: 0;
    }
    body.page-cart.has-mobile-action-bar .order-summary-actions .pm-checkout-back-btn span,
    body.page-checkout.has-mobile-action-bar .order-summary-actions .pm-checkout-back-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    body.page-cart.has-mobile-action-bar .order-summary-actions .pm-checkout-back-btn i,
    body.page-checkout.has-mobile-action-bar .order-summary-actions .pm-checkout-back-btn i {
        margin: 0;
        font-size: 1.15rem;
    }
    body.page-cart.has-mobile-action-bar .order-summary-actions .pm-checkout-continue-btn,
    body.page-checkout.has-mobile-action-bar .order-summary-actions .pm-checkout-continue-btn {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
    }
}

/* ===== Order summary (cart / checkout — like project b) ===== */
.checkout-mobile-total {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    background: #eef6fc;
    border: 1.5px solid #dde3ef;
    border-radius: 12px;
}
.checkout-mobile-total-label {
    font-size: .95rem;
    font-weight: 700;
    color: var(--pm-navy);
}
.checkout-mobile-total-amount {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pm-navy);
}
.checkout-summary-col { position: sticky; top: 1rem; }
.order-summary {
    background: #eef6fc;
    border-radius: 14px;
    padding: 20px 22px;
    border: 1.5px solid #dde3ef;
}
.order-summary-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--pm-navy);
    margin: 0 0 12px;
}
.notify-me-book-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #dde3ef;
}
.notify-me-book-thumb {
    width: 72px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(27, 20, 83, .12);
}
.notify-me-book-meta strong {
    display: block;
    color: var(--pm-navy);
    line-height: 1.35;
}
.notify-success-book {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.notify-success-book-thumb {
    width: 72px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(27, 20, 83, .12);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: .55rem 0;
    font-size: .9rem;
    line-height: 1.35;
    color: #334155;
    border-bottom: 1px solid #dde3ef;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row:has(+ .summary-row.grand) { border-bottom: none; }
.summary-row.no-border { border-bottom: none; }
.summary-row.subtotal {
    border-top: none;
    margin-top: 0;
    padding: .55rem 0;
    font-weight: 600;
    color: #333;
}
.summary-row--shipping {
    padding: .55rem 0;
}
.summary-row--gift-wrap {
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    min-height: 2.25rem;
    border-bottom: 1px solid #dde3ef;
}
.cart-gift-wrap-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
.cart-gift-wrap-text .bi-gift {
    color: #d97706;
}
.cart-gift-wrap-check {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.cart-gift-wrap-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--pm-navy, #5b2d8e);
    cursor: pointer;
}
.summary-row.grand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--pm-navy);
    border-top: 2px solid var(--pm-navy);
    border-bottom: none;
    margin-top: 2px;
    margin-bottom: 0;
    padding: .7rem 0 .15rem;
}
.order-summary .summary-row--shipping + .summary-row--gift-wrap {
    border-top: 1px solid #dde3ef;
}
.order-summary .summary-row--gift-wrap + .summary-row.grand {
    margin-top: 2px;
}
.order-summary .summary-row.grand + .coupon-box {
    border-top: none;
    margin-top: 12px;
    padding-top: 0;
}
.cart-gift-wrap-fee {
    font-size: .9rem;
    font-weight: 700;
    color: #334155;
    margin-right: 10px;
}
.summary-row.subtotal:has(+ .summary-row--shipping + .summary-row.grand) {
    border-bottom: none;
}
.summary-discount { color: var(--pm-green); font-weight: 600; }
.summary-postal-placeholder { color: #94a3b8; font-style: italic; font-weight: 500; }
.summary-weight-note { font-size: .78rem; color: #334155; font-weight: 500; margin-left: 4px; }
.summary-note { font-size: .78rem; color: #64748b; margin-top: 6px; }
.receipt-actions .btn { min-width: 10.5rem; }
.order-success-details { display: flex; flex-direction: column; gap: 14px; }
.order-success-block {
    border: 1px solid #e8edf8;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fafbff;
}
.order-success-block--summary { background: #f8faff; }
.order-success-block-title {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 10px;
}
.order-success-block .table { margin-bottom: 0; }
.shipping-status { margin-top: 4px; font-size: .8rem; }
.shipping-status--ok { color: var(--pm-green); }
.shipping-status--error { color: #dc3545; }
.shipping-status--loading { color: #64748b; }
.order-summary-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dde3ef; }
.order-summary-actions .btn { width: 100%; max-width: 100%; box-sizing: border-box; }
body.page-cart .order-summary-actions[data-step-actions="1"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}
body.page-cart .order-summary-actions[data-step-actions="1"] .pm-checkout-back-btn {
    width: auto;
    max-width: none;
}
@media (max-width: 991.98px) {
    body.page-cart .order-summary-actions[data-step-actions="1"] .pm-checkout-back-btn {
        width: 48px;
        min-width: 48px;
        max-width: 48px;
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
        gap: 0;
    }
    body.page-cart .order-summary-actions[data-step-actions="1"] .pm-checkout-back-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}
body.page-cart .order-summary-actions[data-step-actions="1"] .pm-checkout-continue-btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: 0;
}
.checkout-form-error {
    background: #fef0f0;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .88rem;
    color: #c0392b;
    margin-top: 16px;
}
.pm-checkout-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: #130e3d;
    margin: 0 0 1rem;
}
.pm-checkout-section-title--sub {
    font-size: 1.05rem;
}
.pm-checkout-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pm-checkout-cards > .pm-checkout-section.pm-checkout-cards {
    gap: 1rem;
}
.pm-fulfillment-block + .pm-checkout-section,
.pm-checkout-section + .pm-checkout-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.pm-checkout-cards .pm-checkout-subsection + .pm-checkout-subsection {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.pm-checkout-subsection + .pm-checkout-subsection {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8edf4;
}
.pm-checkout-cards .checkout-form-error {
    margin-top: 0;
}
.pm-delivery-address .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}
.pm-delivery-address .form-control {
    border: 2px solid #dde3ef;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.pm-delivery-address .form-control:focus {
    border-color: var(--pm-purple, #5b2d8e);
    box-shadow: 0 0 0 3px rgba(91, 45, 142, 0.1);
}
.pm-delivery-address textarea.form-control {
    min-height: 4.5rem;
    resize: vertical;
}
.pm-phone-field {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    border: 2px solid #dde3ef;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.pm-phone-field:focus-within {
    border-color: var(--pm-purple, #5b2d8e);
    box-shadow: 0 0 0 3px rgba(91, 45, 142, 0.1);
}
.pm-phone-field.is-valid {
    border-color: #22c55e;
}
.pm-phone-field.is-invalid {
    border-color: #ef4444;
}
.pm-phone-field.is-incomplete {
    border-color: #f59e0b;
}
.pm-phone-field__prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.7rem 0 0.85rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
    user-select: none;
}
.pm-phone-field__input.form-control,
.pm-delivery-address .pm-phone-field__input.form-control {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-left: 0.75rem;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.pm-phone-field__hint {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.35rem 0.85rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    color: #64748b;
}
.pm-phone-field.is-valid .pm-phone-field__hint {
    color: #15803d;
    background: #f0fdf4;
}
.pm-phone-field.is-invalid .pm-phone-field__hint {
    color: #b91c1c;
    background: #fef2f2;
}
.pm-phone-field.is-incomplete .pm-phone-field__hint {
    color: #b45309;
    background: #fffbeb;
}
.pm-fulfillment-toggle {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: stretch;
}
.pm-pay-order-summary {
    margin: 0;
}
.pm-checkout-step[data-checkout-step="3"] .pm-checkout-cards {
    gap: 1rem;
}
.pm-pay-method-toggle {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: stretch;
}
.pm-fulfillment-or {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0 .15rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--pm-checkout-muted, #8b7a9e);
    line-height: 1;
    user-select: none;
}
.pm-fulfillment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 2px solid #dde3ef;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-width: 0;
}
.pm-fulfillment-option:hover:not(.is-disabled) {
    border-color: #c4b5fd;
    background: #faf8ff;
}
.pm-fulfillment-option:has(input:checked) {
    border-color: var(--pm-purple, #5b2d8e);
    background: #f7f3fc;
}
.pm-fulfillment-option.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}
.pm-fulfillment-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.pm-fulfillment-option:has(input:focus-visible) {
    outline: 2px solid var(--pm-purple, #5b2d8e);
    outline-offset: 2px;
}
.pm-fulfillment-option__icon {
    flex-shrink: 0;
    width: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--pm-navy, #1b1453);
    line-height: 1;
}
.pm-fulfillment-option__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pm-fulfillment-option__body strong {
    color: var(--pm-navy, #1b1453);
    font-size: .95rem;
    line-height: 1.25;
}
.pm-fulfillment-option__body small {
    color: #64748b;
    line-height: 1.3;
}
@media (max-width: 575.98px) {
    .pm-fulfillment-toggle,
    .pm-pay-method-toggle {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .pm-fulfillment-or {
        justify-self: center;
        width: 100%;
        min-height: auto;
        padding: .85rem 0;
    }
}
.pm-pickup-stores {
    display: grid;
    gap: 12px;
}
.pm-pickup-store {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    overflow: hidden;
}
.pm-pickup-store:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 14px rgba(91, 45, 142, .08);
}
.pm-pickup-store:focus-within {
    border-color: var(--pm-purple, #5b2d8e);
    box-shadow: 0 0 0 3px rgba(91, 45, 142, .12);
}
.pm-pickup-store:has(input:checked),
.pm-pickup-store.is-selected {
    border-color: var(--pm-purple, #5b2d8e);
    background: #faf8ff;
    box-shadow: 0 4px 16px rgba(91, 45, 142, .12);
}
.pm-pickup-store > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    margin: 0;
}
.pm-pickup-store__radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 20px 0 0 16px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.pm-pickup-store:hover .pm-pickup-store__radio {
    border-color: var(--pm-purple, #5b2d8e);
}
.pm-pickup-store:has(input:checked) .pm-pickup-store__radio,
.pm-pickup-store.is-selected .pm-pickup-store__radio {
    border-color: var(--pm-purple, #5b2d8e);
    box-shadow: 0 0 0 3px rgba(91, 45, 142, .14);
}
.pm-pickup-store:has(input:checked) .pm-pickup-store__radio::after,
.pm-pickup-store.is-selected .pm-pickup-store__radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--pm-purple, #5b2d8e);
}
.pm-pickup-store__body {
    flex: 1;
    min-width: 0;
    padding: 16px 18px 16px 0;
}
.pm-pickup-store--single .pm-pickup-store__body,
.pm-pickup-store:not(:has(input)) .pm-pickup-store__body {
    padding: 18px 20px;
}
.pm-pickup-store__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.pm-pickup-store__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(145deg, #f3eef8 0%, #ebe4f5 100%);
    color: var(--pm-purple, #5b2d8e);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.pm-pickup-store__title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.pm-pickup-store__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}
.pm-pickup-store__code {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--pm-purple, #5b2d8e);
    background: #f3eef8;
    border: 1px solid #e9d5ff;
}
.pm-pickup-store__addr {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: .875rem;
    color: #475569;
    line-height: 1.45;
}
.pm-pickup-store__addr > i {
    color: #94a3b8;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.pm-pickup-store__meta {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.pm-pickup-store__meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    color: #64748b;
    line-height: 1.35;
}
.pm-pickup-store__meta i {
    width: 18px;
    text-align: center;
    color: #94a3b8;
    flex-shrink: 0;
}
.pm-pickup-store__meta a {
    color: #475569;
    text-decoration: none;
}
.pm-pickup-store__meta a:hover {
    color: var(--pm-purple, #5b2d8e);
    text-decoration: underline;
}
.pm-pickup-store__ready {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    line-height: 1.3;
}
.pm-pickup-store__ready i {
    font-size: .95rem;
}
.pm-pickup-store--single,
.pm-pickup-store--single.is-selected {
    border-color: var(--pm-purple, #5b2d8e);
    background: linear-gradient(180deg, #fdfbff 0%, #fff 100%);
    box-shadow: 0 4px 16px rgba(91, 45, 142, .1);
    cursor: default;
}
.pm-pickup-store--single .pm-pickup-store__map {
    pointer-events: auto;
}
.pm-pickup-store__map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1.5px solid #dde3ef;
    background: #fff;
    color: var(--brand, #8b4513);
    text-decoration: none;
    font-size: .8125rem;
    font-weight: 600;
    transition: border-color .15s, background .15s, color .15s;
}
.pm-pickup-store__map:hover {
    border-color: var(--pm-purple, #5b2d8e);
    background: #faf8ff;
    color: var(--pm-purple, #5b2d8e);
    text-decoration: none;
}
.pincode-hint {
    margin-top: 6px;
    font-size: .8rem;
    border-radius: 6px;
    padding: 6px 10px;
}
.pincode-hint--ok {
    background: #eafaf1;
    color: #1a7a45;
    border: 1px solid #b2dfce;
}
.pincode-hint--err {
    background: #fef0f0;
    color: #b91c1c;
    border: 1px solid #f5c6cb;
}
.pm-location-summary {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .86rem;
    font-weight: 600;
    color: #1a7a45;
    background: #eafaf1;
    border: 1px solid #b2dfce;
    border-radius: 8px;
    padding: 6px 10px;
}
.pm-location-summary[hidden] { display: none !important; }
.shipping-location-fields.is-hidden { display: none !important; }
.pm-delivery-address > [class*="col-"] {
    min-width: 0;
}
.pm-delivery-address .pincode-hint {
    margin-top: 4px;
}
.pm-delivery-address .bb-location-locked {
    background: #f8fafc;
    color: #334155;
}
.pm-delivery-address [data-pm-location-field].bb-autofilled:not(:focus) {
    background: #f8fafc;
}
.checkout-pay-hint {
    font-size: .8rem;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
    min-height: 1.2em;
}
#payBtn:disabled { opacity: .65; cursor: not-allowed; }
.coupon-box { margin-top: 10px; padding-top: 10px; border-top: 1px solid #dde3ef; }
.coupon-box .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.pm-cart-share {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.pm-cart-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.pm-cart-share__hint {
    line-height: 1.35;
    word-break: break-all;
}
.pm-free-delivery {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eafaf1;
    border: 1px solid #c6ebd5;
}
.pm-free-delivery__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pm-free-delivery__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #15803d;
    font-size: 1.15rem;
    line-height: 1;
}
.pm-free-delivery__copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pm-free-delivery__title {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: #14532d;
    line-height: 1.3;
}
.pm-free-delivery__hint {
    display: block;
    font-size: .8rem;
    color: #3f6212;
    line-height: 1.35;
}
.pm-free-delivery__track {
    margin-top: 10px;
    height: 8px;
    border-radius: 999px;
    background: #dce8e0;
    overflow: hidden;
}
.pm-free-delivery__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #16a34a;
    transition: width .35s ease;
}
.pm-free-delivery.is-unlocked {
    background: #dff7e8;
    border-color: #86efac;
    padding-top: 10px;
    padding-bottom: 10px;
}
.pm-free-delivery.is-unlocked .pm-free-delivery__row {
    align-items: center;
}
.pm-free-delivery.is-unlocked .pm-free-delivery__hint,
.pm-free-delivery.is-unlocked .pm-free-delivery__track {
    display: none;
}
.pm-free-delivery.is-pickup-hidden {
    display: none;
}
.coupon-input-row {
    display: flex;
    gap: 8px;
}
.coupon-input-row .form-control {
    flex: 1;
    border: 1.5px solid #dde3ef;
    border-radius: 8px;
    min-width: 0;
    text-transform: uppercase;
}
.coupon-input-row .btn {
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}
.coupon-recs {
    margin-top: 10px;
    width: 100%;
    overflow: hidden;
}
.book-delivery-block + .coupon-recs,
.book-delivery-eta + .coupon-recs {
    margin-top: 12px;
}
.page-book-detail .coupon-recs {
    max-width: min(480px, 100%);
    margin-bottom: 1.1rem;
    overflow: hidden;
}
.page-book-detail .coupon-recs + .book-buy-bar,
.page-book-detail .coupon-recs + .book-notify-block {
    margin-top: 0;
}
.coupon-recs--info .coupon-ticket {
    cursor: default;
}
.coupon-recs--info .coupon-ticket:hover,
.coupon-recs--info .coupon-ticket:focus-visible {
    transform: none;
}
.coupon-recs-swiper {
    width: 100%;
    padding: 6px 2px 8px;
}
.coupon-recs-swiper .swiper-wrapper {
    align-items: stretch;
}
.coupon-recs-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    display: flex;
}
.coupon-ticket {
    --coupon-bg: #f7f8fa;
    --coupon-page: var(--pm-cream, #fdf9f2);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 108px;
    padding: 0;
    border: 1px solid #d8dde6;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    color: #1f2937;
    background: var(--coupon-bg);
    box-shadow: 0 2px 10px rgba(30, 40, 60, .06);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.coupon-ticket.is-ready {
    --coupon-bg: #f8fafc;
    border-color: #cfd6e2;
}
.coupon-ticket.is-locked {
    --coupon-bg: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
}
.coupon-ticket:hover,
.coupon-ticket:focus-visible {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 6px 18px rgba(30, 40, 60, .12);
    transform: translateY(-1px);
}
.coupon-ticket::before,
.coupon-ticket::after {
    content: "";
    position: absolute;
    top: 42%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--coupon-page);
    border: 1px solid #d8dde6;
    z-index: 2;
    transform: translateY(-50%);
    pointer-events: none;
}
.coupon-ticket::before { left: -9px; }
.coupon-ticket::after { right: -9px; }
.coupon-ticket__body {
    display: grid;
    grid-template-columns: minmax(5.5rem, 34%) 1px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 14px 10px;
}
.coupon-ticket__code-col,
.coupon-ticket__offer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.coupon-ticket__code-col {
    padding-right: 10px;
    justify-content: center;
    gap: 4px;
}
.coupon-ticket__offer-col {
    padding-left: 12px;
    justify-content: center;
    gap: 6px;
}
.coupon-ticket__divider {
    width: 1px;
    align-self: stretch;
    background-image: linear-gradient(to bottom, #c5cbd6 40%, transparent 0%);
    background-position: center;
    background-size: 1px 8px;
    background-repeat: repeat-y;
}
.coupon-ticket__eyebrow {
    font-size: .68rem;
    font-weight: 600;
    color: #9ca3af;
    line-height: 1.2;
}
.coupon-ticket__code {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #111827;
    line-height: 1.15;
    word-break: break-word;
}
.coupon-ticket.is-locked .coupon-ticket__code { color: #374151; }
.coupon-ticket__tc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.2;
}
.coupon-ticket__tc i { font-size: .7rem; }
.coupon-ticket__offer {
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.coupon-ticket.is-locked .coupon-ticket__offer { color: #4b5563; }
.coupon-ticket__expires {
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.3;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.coupon-ticket__foot {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    background: #b91c1c;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    border: 0;
}
.coupon-ticket.is-ready .coupon-ticket__foot { background: #b91c1c; }
.coupon-ticket.is-locked .coupon-ticket__foot { background: #4b5563; }
.coupon-ticket.is-delivery {
    cursor: default;
}
.coupon-ticket.is-delivery:hover,
.coupon-ticket.is-delivery:focus-visible {
    transform: none;
    border-color: #cfd6e2;
    box-shadow: 0 2px 10px rgba(30, 40, 60, .06);
}
.coupon-ticket.is-delivery .coupon-ticket__foot {
    background: #2563eb;
}
.coupon-ticket.is-delivery .coupon-ticket__code {
    font-size: .95rem;
    letter-spacing: .02em;
    color: #1d4ed8;
}
.coupon-ticket.is-pickup {
    cursor: default;
}
.coupon-ticket.is-pickup:hover,
.coupon-ticket.is-pickup:focus-visible {
    transform: none;
    border-color: #cfd6e2;
    box-shadow: 0 2px 10px rgba(30, 40, 60, .06);
}
.coupon-ticket.is-pickup .coupon-ticket__foot {
    background: #047857;
}
.coupon-ticket.is-pickup .coupon-ticket__code {
    font-size: .88rem;
    letter-spacing: .01em;
    color: #047857;
    line-height: 1.25;
}
.coupon-ticket:hover .coupon-ticket__foot,
.coupon-ticket:focus-visible .coupon-ticket__foot { filter: brightness(1.05); }
@media (max-width: 420px) {
    .coupon-ticket__body {
        grid-template-columns: minmax(4.8rem, 32%) 1px minmax(0, 1fr);
        padding: 10px 12px 8px;
    }
    .coupon-ticket__code { font-size: .92rem; }
    .coupon-ticket__offer { font-size: .8rem; }
    .coupon-ticket::before,
    .coupon-ticket::after {
        top: 40%;
        width: 14px;
        height: 14px;
    }
    .coupon-ticket::before { left: -8px; }
    .coupon-ticket::after { right: -8px; }
}
@media (max-width: 575.98px) {
    .page-book-detail .book-delivery-block,
    .page-book-detail .book-delivery-eta {
        max-width: none;
        margin-bottom: .75rem;
    }
    .page-book-detail .coupon-recs {
        max-width: none;
        margin-bottom: 1.25rem;
    }
    .page-book-detail .coupon-recs-swiper {
        padding: 4px 0 2px;
    }
    .page-book-detail .book-buy-bar--inline {
        max-width: none;
        gap: .5rem;
    }
    .page-book-detail .book-buy-bar--inline .js-add-cart {
        flex: 1 1 100%;
        display: flex;
        gap: .5rem;
    }
    .page-book-detail .book-buy-bar--inline .book-buy-qty {
        width: 4.25rem;
        flex: 0 0 4.25rem;
    }
    .page-book-detail .book-buy-bar--inline .book-buy-now-form {
        flex: 1 1 100%;
        min-width: 0;
    }
    .page-book-detail .book-buy-bar--inline .btn-outline-brand,
    .page-book-detail .book-buy-bar--inline .btn-buy-now {
        width: 100%;
        font-size: .9rem;
        padding-left: .75rem;
        padding-right: .75rem;
    }
}

.coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0faf0;
    border: 1.5px solid #b2dfdb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .88rem;
}
.summary-pay-note {
    font-size: .78rem;
    color: #64748b;
    text-align: center;
    margin: 10px 0 0;
}
/* Desktop: space between cart books and address / order summary */
@media (min-width: 992px) {
    body.page-cart .cart-form {
        margin-bottom: 0 !important;
    }
    body.page-cart #checkoutForm {
        margin-top: 1.5rem !important;
        display: block;
    }
    body.page-cart #checkoutForm > .row {
        margin-top: 0 !important;
    }
    body.page-cart #checkoutForm > .row > [class*="col"] {
        margin-top: 0 !important;
    }
}
@media (max-width: 991.98px) {
    .checkout-summary-col { position: static; }
    /*
     * Bootstrap .row.g-* uses margin-top: -gutter, which pulls Order Summary
     * up into the cart list / Checkout band. Kill that and leave a clear gap.
     */
    body.page-cart .cart-form {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    body.page-cart .page-head,
    body.page-checkout .page-head {
        margin-bottom: 1.35rem;
    }
    body.page-cart .page-head + .container,
    body.page-checkout .page-head + .container {
        padding-top: .85rem;
    }
    body.page-cart #checkoutForm {
        margin-top: 1.25rem !important;
        display: block;
    }
    body.page-checkout #checkoutForm {
        margin-top: 0;
        display: block;
    }
    body.page-cart #checkoutForm > .row,
    body.page-checkout #checkoutForm > .row {
        --bs-gutter-y: 1.25rem;
        margin-top: 0 !important;
    }
    body.page-cart #checkoutForm > .row > [class*="col"],
    body.page-checkout #checkoutForm > .row > [class*="col"] {
        margin-top: 0 !important;
    }
    body.page-cart #checkoutForm > .row > .order-2,
    body.page-checkout #checkoutForm > .row > .order-2 {
        margin-top: 1.25rem !important; /* address below summary */
    }
    /* Cart step (small screens): Order Summary first, books below */
    body.page-cart .pm-cart-main-row {
        --bs-gutter-y: 1.25rem;
        margin-top: 0 !important;
    }
    body.page-cart .pm-cart-main-row > [class*="col"] {
        margin-top: 0 !important;
    }
    body.page-cart .pm-cart-main-row > .checkout-summary-col {
        margin-top: 0 !important;
        margin-bottom: 0;
    }
    body.page-cart .pm-cart-main-row > .order-2.order-lg-1 {
        margin-top: 1.35rem !important;
    }
    body.page-cart .pm-cart-main-row > .checkout-summary-col .order-summary {
        margin-top: 0 !important;
    }
    body.page-checkout .checkout-summary-col {
        margin-top: 0 !important;
        margin-bottom: 0;
    }
    body.page-checkout .checkout-summary-col .order-summary {
        margin-top: 0 !important;
    }
}

/* Shop filters — right sidebar layout */
.shop-layout {
    align-items: flex-start;
}
.shop-filters-panel {
    background: #fff;
    border: 1px solid #e8dff5;
    border-radius: 14px;
    padding: 1.15rem 1.1rem 1.2rem;
    box-shadow: 0 4px 18px rgba(60, 30, 90, .07);
    overflow: visible;
}
.shop-filter-fields--desktop,
.shop-filter-fields--mobile {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.shop-filter-fields--desktop > .shop-filter-field--search-desktop,
.shop-filter-fields--mobile > .shop-filter-field--search {
    margin-bottom: 1rem;
}
.shop-filter-fields--desktop > .shop-filter-field--search-desktop .shop-filter-search,
.shop-filter-fields--mobile > .shop-filter-field--search .shop-filter-search {
    width: 100%;
}
.shop-filter-fields--desktop > .shop-filter-block + .shop-filter-block,
.shop-filter-fields--mobile > .shop-filter-block + .shop-filter-block {
    margin-top: 2.25rem;
}
.shop-filter-fields--desktop > .shop-filter-more,
.shop-filter-fields--mobile > .shop-filter-more {
    margin-top: 2.25rem;
    padding-top: 1.25rem;
}
.shop-filter-fields--desktop > .shop-filter-field--actions,
.shop-filter-fields--mobile > .shop-filter-field--actions {
    margin-top: 1.5rem;
}
.shop-filter-block__title {
    margin: 0 0 0.85rem;
    padding-top: 0.15rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pm-ink);
}
.shop-filter-block__box {
    background: #ebe8df;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
}
.shop-filter-fields--desktop .shop-filter-block__box,
.shop-filter-fields--mobile .shop-filter-block__box {
    width: 100%;
    padding: 0.65rem 0.75rem;
}
.shop-filter-fields--desktop .pm-multi-select--shop.pm-multi-select--always-visible,
.shop-filter-fields--mobile .pm-multi-select--shop.pm-multi-select--always-visible {
    width: 100%;
}
.shop-filter-fields--desktop .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__trigger,
.shop-filter-fields--mobile .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__trigger {
    display: none !important;
}
.shop-filter-fields--desktop .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__field,
.shop-filter-fields--mobile .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__field {
    display: block !important;
    margin-top: 0;
    width: 100%;
}
.shop-filter-fields--desktop .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__panel,
.shop-filter-fields--mobile .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__panel {
    width: 100%;
    background: #fff;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}
.shop-filter-fields--desktop .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__panel-search,
.shop-filter-fields--mobile .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__panel-search {
    border-radius: 10px 10px 0 0;
}
.shop-filter-fields--desktop .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__list,
.shop-filter-fields--mobile .pm-multi-select--shop.pm-multi-select--always-visible .pm-multi-select__list {
    max-height: 280px;
    width: 100%;
}
.shop-filter-more {
    border-top: 1px solid #e8e2d6;
    padding-top: 0;
}
.shop-filter-more__summary {
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pm-purple-dark);
    list-style: none;
    padding: 0.35rem 0;
}
.shop-filter-more__summary::-webkit-details-marker {
    display: none;
}
.shop-filter-more__body {
    padding-top: 0.75rem;
}
.shop-filter-grid--more {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
.shop-sidebar {
    overflow: visible;
}
.shop-filters-heading {
    margin: 0 0 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #ece7f3;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pm-navy);
    letter-spacing: 0.01em;
}
.shop-sidebar .shop-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    align-items: stretch;
}
.shop-sidebar .shop-filter-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    margin-top: .15rem;
}
.shop-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    align-items: end;
}
.shop-filter-label {
    display: block;
    margin-bottom: .35rem;
    font-size: .75rem;
    font-weight: 600;
    color: #4b5563;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.shop-filter-label--actions { visibility: hidden; height: 0; margin: 0; }
.shop-filter-control {
    border: 1px solid #d8dce3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: .875rem !important;
    min-height: 40px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.shop-filter-control:focus {
    border-color: var(--pm-purple) !important;
    box-shadow: 0 0 0 3px rgba(91, 45, 142, 0.12) !important;
    outline: none;
}
.shop-filter-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
}
.shop-filter-apply {
    border-radius: 8px !important;
    font-weight: 600;
    min-height: 40px;
    padding-top: .45rem;
    padding-bottom: .45rem;
}
.shop-filter-reset {
    border-radius: 8px !important;
    font-weight: 600;
    min-height: 40px;
    white-space: nowrap;
}
.shop-filter-apply-float[hidden] {
    display: none !important;
}
.shop-filter-apply-float {
    z-index: 6;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (min-width: 992px) {
    .shop-filter-apply-float {
        position: sticky;
        bottom: 1rem;
        margin-top: 2rem;
        padding-top: 0.85rem;
        background: linear-gradient(to bottom, rgba(250, 248, 245, 0) 0%, rgba(250, 248, 245, 0.95) 40%, rgba(250, 248, 245, 1) 100%);
    }
}
.shop-filter-apply-float.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}
.shop-filter-apply-float__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 999px !important;
    font-weight: 600;
    min-height: 44px;
    padding: 0.55rem 1rem;
    box-shadow: 0 4px 16px rgba(40, 20, 60, 0.12);
}
.shop-filter-apply-float__btn--apply {
    box-shadow: 0 6px 22px rgba(91, 45, 142, 0.28);
    font-size: 0.8125rem;
}
.shop-filter-apply-float__btn--clear {
    background: #fff;
    border-color: #d8dce3;
    color: #4b5563;
    font-size: 0.8125rem;
}
.shop-filter-apply-float__btn--clear:hover {
    background: #f9fafb;
    border-color: #c4c9d4;
    color: #374151;
}
.shop-filter-apply-float__btn i {
    font-size: 0.95rem;
}
/* Mobile floating filter button + bottom sheet */
.shop-filters-fab {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 1045;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 48px;
    padding: .7rem 1.35rem;
    border: none;
    border-radius: 999px;
    background: var(--pm-purple);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 28px rgba(91, 45, 142, .38);
    transition: background .15s ease, transform .2s ease, box-shadow .15s ease, opacity .2s ease, visibility .2s ease;
    pointer-events: auto;
}
.shop-filters-fab.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
}
.shop-filters-fab:hover,
.shop-filters-fab:focus-visible {
    background: var(--pm-purple-dark);
    color: #fff;
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 0 12px 30px rgba(67, 33, 107, .42);
}
.shop-filters-fab.is-hidden:hover,
.shop-filters-fab.is-hidden:focus-visible {
    transform: translateX(-50%) translateY(12px);
}
.shop-filters-fab:active {
    transform: translateX(-50%) scale(0.98);
}
.shop-filters-fab i {
    font-size: 1.05rem;
    line-height: 1;
}
.shop-filters-fab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--pm-orange);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

.shop-filter-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid #d8dce3;
    border-radius: 8px;
    background: #fff;
    padding: 0 .65rem;
    min-height: 40px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.shop-filter-search i {
    color: #6b7280;
    font-size: .95rem;
    flex-shrink: 0;
}
.shop-filter-search-input {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-height: 38px;
}
.shop-filter-search:focus-within {
    border-color: var(--pm-purple);
    box-shadow: 0 0 0 3px rgba(91, 45, 142, 0.12);
}

.shop-filter-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
}
.shop-filter-sublabel {
    display: block;
    margin-bottom: .25rem;
    font-size: .72rem;
    font-weight: 600;
    color: #4b5563;
}

.pm-multi-select--always-visible .pm-multi-select__trigger {
    display: none;
}
.pm-multi-select--always-visible .pm-multi-select__field {
    display: block !important;
    margin-top: 0;
}
.pm-multi-select--always-visible .pm-multi-select__panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.pm-multi-select--always-visible .pm-multi-select__panel-search[hidden] {
    display: none !important;
}
.pm-multi-select--always-visible .pm-multi-select__list {
    max-height: 280px;
    padding: 0;
}
.pm-multi-select--radio .pm-multi-select__list li,
.pm-multi-select--avatar .pm-multi-select__list li {
    background: transparent;
    border-radius: 8px;
    padding: 0.55rem 0.35rem;
}
.pm-multi-select--radio .pm-multi-select__list li:hover,
.pm-multi-select--avatar .pm-multi-select__list li:hover {
    background: rgba(255, 255, 255, 0.45);
}
.pm-multi-select--radio .pm-multi-select__list li.is-selected,
.pm-multi-select--avatar .pm-multi-select__list li.is-selected {
    background: rgba(255, 255, 255, 0.55);
    color: var(--pm-ink);
    font-weight: 600;
}
.pm-multi-select__radio {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid #8f8a82;
    border-radius: 3px;
    background: #fff;
    position: relative;
}
.pm-multi-select__radio.is-selected {
    border-color: var(--pm-purple);
    background: var(--pm-purple);
}
.pm-multi-select__radio.is-selected::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    border-radius: 0;
    background: transparent;
    transform: rotate(45deg);
}
.pm-multi-select__avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #d9d4cb;
}
.pm-multi-select__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pm-multi-select__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pm-purple-dark);
}
.pm-multi-select--avatar .pm-multi-select__list li {
    gap: 0.75rem;
    padding: 0.5rem 0.35rem;
}
.pm-multi-select--radio .pm-multi-select__list li {
    gap: 0.7rem;
}
.pm-multi-select--radio .pm-multi-select__check,
.pm-multi-select--avatar .pm-multi-select__check {
    display: none;
}
/* Shop multi-select — expand in page flow (pushes filters below) */
.shop-filters-panel .shop-filter-field {
    position: relative;
}
.pm-multi-select--shop {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.pm-multi-select--shop .pm-multi-select__field {
    display: none;
    margin-top: 0.35rem;
}
.pm-multi-select--shop.is-open .pm-multi-select__field {
    display: block;
}
.pm-multi-select--shop .pm-multi-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid #d8dce3;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: .875rem;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pm-multi-select--shop .pm-multi-select__trigger:hover,
.pm-multi-select--shop.is-open .pm-multi-select__trigger {
    border-color: var(--pm-purple);
}
.pm-multi-select--shop.is-open .pm-multi-select__trigger {
    box-shadow: 0 0 0 3px rgba(91, 45, 142, 0.12);
}
.pm-multi-select--shop .pm-multi-select__trigger-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    max-height: 56px;
    overflow-y: auto;
}
.pm-multi-select--shop .pm-multi-select__placeholder {
    color: #6b7280;
    font-size: .875rem;
}
.pm-multi-select--shop .pm-multi-select__chevron {
    color: #6b7280;
    font-size: .8rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.pm-multi-select--shop.is-open .pm-multi-select__chevron {
    transform: rotate(180deg);
    color: var(--pm-purple);
}
.pm-multi-select--shop .pm-multi-select__chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    background: #f3eef9;
    border: 1px solid #e4ddf0;
    border-radius: 999px;
    font-size: .72rem;
    color: var(--pm-purple-dark);
    line-height: 1.35;
    max-width: 100%;
}
.pm-multi-select--shop .pm-multi-select__chip-remove {
    border: none;
    background: transparent;
    color: var(--pm-purple-dark);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.75;
}
.pm-multi-select--shop .pm-multi-select__chip-remove:hover {
    opacity: 1;
}
.pm-multi-select--shop .pm-multi-select__panel {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    background: #fff;
    border: 1px solid #e8dff5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(60, 30, 90, 0.1);
    overflow: hidden;
}
.pm-multi-select--shop .pm-multi-select__panel-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #ece7f3;
    background: #faf8fc;
}
.pm-multi-select--shop .pm-multi-select__panel-search i {
    color: var(--pm-purple);
    font-size: .9rem;
}
.pm-multi-select--shop .pm-multi-select__search {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: .875rem;
    color: #333;
    font-family: inherit;
    padding: 4px 0;
}
.pm-multi-select--shop .pm-multi-select__search::placeholder {
    color: #6b7280;
}
.pm-multi-select--shop .pm-multi-select__list {
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
}
.pm-multi-select--shop .pm-multi-select__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: .875rem;
    cursor: pointer;
    color: #374151;
    transition: background .12s ease;
}
.pm-multi-select--shop .pm-multi-select__list li:hover {
    background: #f6f0fc;
}
.pm-multi-select--shop .pm-multi-select__list li.is-selected {
    background: #ede4f5;
    color: var(--pm-purple-dark);
    font-weight: 600;
}
.pm-multi-select--shop .pm-multi-select__check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    background: #fff;
}
.pm-multi-select--shop .pm-multi-select__list li.is-selected .pm-multi-select__check {
    background: var(--pm-purple);
    border-color: var(--pm-purple);
}
.pm-multi-select--shop .pm-multi-select__label {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}
.pm-multi-select--shop .pm-multi-select__empty {
    color: #6b7280;
    cursor: default;
    font-style: italic;
    justify-content: center;
}
.pm-multi-select--shop .pm-multi-select__empty:hover {
    background: transparent;
    color: #6b7280;
}

.shop-page .shop-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding: .65rem .85rem;
    background: #f6f0fc;
    border: 1px solid #e8dff5;
    border-radius: 10px;
}
.shop-results-text { color: #334155; font-size: .92rem; }
.shop-query { color: #130e3d; font-weight: 600; }
.shop-clear-all {
    color: var(--pm-purple);
    font-weight: 600;
    text-decoration: none;
}
.shop-clear-all:hover { text-decoration: underline; color: var(--pm-navy); }
.shop-books-grid {
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}
.shop-catalog-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin: 0 0 0.35rem;
}
.shop-sort-toggle {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    flex-wrap: wrap;
    border: 1px solid #e4ddf0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(60, 30, 90, 0.06);
}
.shop-sort-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.4rem 0.55rem;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.shop-sort-toggle__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.shop-sort-toggle__btn + .shop-sort-toggle__btn {
    border-left: 1px solid #e4ddf0;
}
.shop-sort-toggle__btn:hover {
    color: var(--pm-purple-dark);
    background: #f8f5fc;
}
.shop-sort-toggle__btn.is-active {
    background: #c4a8e0;
    color: #fff;
}
.shop-sort-toggle__btn.is-active:hover {
    background: #b895d6;
    color: #fff;
}
.shop-view-toggle {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid #e4ddf0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(60, 30, 90, 0.06);
}
.shop-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.4rem 0.55rem;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.shop-view-toggle__btn + .shop-view-toggle__btn {
    border-left: 1px solid #e4ddf0;
}
.shop-view-toggle__btn:hover {
    color: var(--pm-purple-dark);
    background: #f8f5fc;
}
.shop-view-toggle__btn.is-active {
    background: var(--pm-purple);
    color: #fff;
}
.shop-view-toggle__btn.is-active:hover {
    background: var(--pm-purple-dark);
    color: #fff;
}
@media (max-width: 991.98px) {
    .shop-catalog-toolbar {
        flex-wrap: wrap;
        gap: 0.65rem;
        margin-bottom: 0.65rem;
        padding: 0 0.2rem;
    }
    .shop-sort-toggle {
        flex: 0 0 auto;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    .shop-sort-toggle__btn {
        min-width: 2.15rem;
        min-height: 2.15rem;
        padding: 0.35rem 0.45rem;
        font-size: 0.92rem;
        flex-shrink: 0;
    }
    .shop-view-toggle {
        flex-shrink: 0;
    }
    .shop-view-toggle__btn {
        min-width: 2.15rem;
        min-height: 2.15rem;
    }
}
.shop-books-grid.is-list-view {
    grid-template-columns: 1fr !important;
    row-gap: 1rem;
}
.shop-books-grid.is-list-view .book-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-align: left;
}
.shop-books-grid.is-list-view .book-card-media {
    flex: 0 0 132px;
    width: 132px;
    max-width: 132px;
    padding: 0.85rem 0.7rem;
}
.shop-books-grid.is-list-view .book-card-cover-link {
    min-height: 168px;
    height: 100%;
    padding: 0.85rem 0.7rem;
}
.shop-books-grid.is-list-view .book-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.95rem 1.1rem 0.95rem 0.35rem;
}
.shop-books-grid.is-list-view .book-card-foot {
    margin-top: auto;
    padding-top: 0.65rem;
}
@media (min-width: 992px) {
    .shop-books-grid.is-list-view .book-card-body {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
        padding: 0.85rem 1.15rem 0.85rem 0.35rem;
    }
    .shop-books-grid.is-list-view .book-card-info {
        flex: 1 1 auto;
        min-width: 0;
        padding-bottom: 0;
    }
    .shop-books-grid.is-list-view .book-card-foot {
        flex: 0 0 auto;
        margin-top: 0;
        padding-top: 0;
        width: auto;
        min-width: 8.75rem;
        max-width: 11rem;
        align-self: center;
    }
    .shop-books-grid.is-list-view .book-card-actions {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }
    .shop-books-grid.is-list-view .book-card:hover {
        transform: none;
    }
}
.shop-books-grid.is-list-view .book-card:hover .book-card-cover-link .book-cover,
.shop-books-grid.is-list-view .book-card:has(.book-card-stretch-link:focus-visible) .book-card-cover-link .book-cover {
    transform: none;
}
.shop-books-grid.is-list-view .book-card:hover .book-card-cover-link,
.shop-books-grid.is-list-view .book-card:has(.book-card-stretch-link:focus-visible) .book-card-cover-link {
    background: transparent;
}
/* Masonry-like books grid (cards can have natural, uneven heights) */
.books-grid {
    display: block;
    column-count: 2;
    column-gap: 1.25rem;
}
.books-grid > [class*="col"] {
    display: inline-block;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
.books-grid .book-card {
    width: 100%;
    height: auto;
}
/* Shop catalogue: CSS grid (row order) so LCP is the first cover, not a mid-list masonry cell */
.shop-books-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 2rem;
    column-count: auto;
}
.shop-books-grid > [class*="col"] {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    break-inside: auto;
    -webkit-column-break-inside: auto;
}
.shop-books-grid .book-card {
    width: 100%;
    height: auto;
}
.shop-books-grid .book-card-media,
.related-books-grid .book-card-media {
    padding: 1.25rem 1.1rem 0.85rem;
}
.shop-books-grid .book-card-cover-link,
.related-books-grid .book-card-cover-link {
    min-height: 240px;
    padding: 1.15rem 1rem;
}
.shop-books-grid .book-card-body,
.related-books-grid .book-card-body {
    padding: 0.95rem 1.1rem 1.35rem;
    gap: 0.35rem;
}
/* Book detail related — 2 on mobile, 3 on tablet/desktop */
.related-books-grid.row {
    --bs-gutter-x: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    row-gap: 2rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    justify-content: start;
}
@media (min-width: 768px) {
    .related-books-grid.row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 2.25rem;
    }
}
.related-books-grid > [class*="col"] {
    display: block;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    flex: none;
}
.related-books-grid .book-card {
    width: 100%;
    max-width: 100%;
    height: auto;
}
@media (max-width: 575.98px) {
    .related-books-grid.row {
        gap: .75rem;
    }
}

/* Clip only book content — never header/nav (body overflow was clipping cart/truck icons) */
body.page-book-detail .book-detail-card,
body.page-book-detail .book-detail-body {
    max-width: 100%;
    min-width: 0;
}
body.page-book-detail .book-detail-body {
    overflow-x: clip;
}
body.page-book-detail .book-detail-body .row,
body.page-book-detail .related-books-grid {
    max-width: 100%;
    min-width: 0;
}
/* Legacy class kept so older cached HTML still lays out */
.books-grid--related {
    display: flex !important;
    flex-wrap: wrap;
    column-count: 1 !important;
    column-gap: normal;
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    padding-left: 0;
    padding-right: 0;
}
.books-grid--related > [class*="col"] {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    break-inside: auto;
    -webkit-column-break-inside: auto;
}
.shop-empty {
    background: #fafbfd;
    border: 1px dashed #dde3ef;
    border-radius: 12px;
    width: 100%;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}
.shop-empty .text-muted {
    color: #4b5563 !important;
}
.shop-page .btn-outline-secondary {
    --bs-btn-color: #374151;
    --bs-btn-border-color: #9ca3af;
    --bs-btn-hover-color: #111827;
    --bs-btn-hover-bg: #f3f4f6;
    --bs-btn-hover-border-color: #6b7280;
}
/* Empty state: exit masonry columns and center on all screen sizes */
.shop-books-grid:has(.shop-empty) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-count: auto;
    column-gap: normal;
}
.shop-books-grid > .col-12:has(.shop-empty) {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 1rem 0.75rem;
    break-inside: auto;
}
@media (max-width: 575.98px) {
    .books-grid {
        column-count: 2;
        column-gap: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    .shop-books-grid {
        column-count: auto;
        column-gap: 0.75rem;
        row-gap: 1.5rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    .books-grid.row,
    .shop-books-grid.row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    .home-books-section .books-grid.row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
        row-gap: 0.75rem;
    }
    .home-books-section .books-grid > [class*="col"] {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
        margin-bottom: 0.75rem;
    }
    .books-grid > [class*="col"] {
        margin-bottom: 0.75rem;
    }
    .book-card-media {
        padding: 0.55rem 0.55rem 0.35rem;
    }
    .book-card-body {
        padding: 0.55rem 0.6rem 0.75rem;
    }
    .book-card-cover-link {
        min-height: 150px;
        padding: 0.5rem 0.55rem;
    }
    .book-card .card-title {
        font-size: 0.82rem;
    }
    .book-card-kicker {
        font-size: 0.62rem;
    }
    .book-card-price-row .price-new {
        font-size: 0.88rem;
    }
    .book-card-btn {
        font-size: 0.72rem;
        padding: 0.42rem 0.55rem;
    }
}
@media (min-width: 768px) {
    .shop-books-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 2.25rem;
    }
}
@media (min-width: 992px) {
    .books-grid {
        column-count: 4;
    }
}
.shop-empty-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
}
.shop-pagination {
    margin-top: 2rem;
    padding-top: 0.25rem;
    text-align: center;
}
.shop-pagination__summary {
    margin: 0 0 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.01em;
}
.shop-pagination__controls {
    display: flex;
    justify-content: center;
}
.shop-pagination__list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem;
    margin: 0;
    list-style: none;
    border: 1px solid #e4ddf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(60, 30, 90, 0.07);
}
.shop-pagination__list.pagination {
    border-radius: 14px;
}
.shop-pagination__item {
    margin: 0;
}
.shop-pagination__item .page-link,
.shop-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.7rem;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--pm-purple);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.shop-pagination__item:not(.active):not(.disabled) .shop-pagination__link:hover {
    background: #f6f0fc;
    color: var(--pm-purple-dark);
}
.shop-pagination__item.active .shop-pagination__link {
    background: var(--pm-purple);
    color: #fff;
    box-shadow: 0 3px 10px rgba(91, 45, 142, 0.22);
}
.shop-pagination__item.disabled .shop-pagination__link {
    background: transparent;
    color: #c4c9d4;
    pointer-events: none;
    cursor: default;
}
.shop-pagination__item--gap .shop-pagination__ellipsis {
    min-width: 1.75rem;
    padding: 0.4rem 0.15rem;
    color: #9ca3af;
    font-weight: 700;
}
.shop-pagination__item--prev .shop-pagination__link,
.shop-pagination__item--next .shop-pagination__link {
    padding: 0.4rem 0.85rem;
    font-weight: 600;
}
.shop-pagination__nav-text {
    font-size: 0.8125rem;
}
@media (max-width: 575.98px) {
    .shop-pagination__nav-text {
        display: none;
    }
    .shop-pagination__item--prev .shop-pagination__link,
    .shop-pagination__item--next .shop-pagination__link {
        padding: 0.4rem 0.65rem;
    }
}
@media (min-width: 576px) {
    .shop-pagination__item--prev .shop-pagination__link i,
    .shop-pagination__item--next .shop-pagination__link i {
        font-size: 0.95rem;
    }
}
@media (max-width: 991.98px) {
    /* Clear space so the floating Filter button does not cover books / pagination */
    .shop-page {
        padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px)) !important;
    }
    .shop-layout {
        padding-bottom: 0;
    }
    .shop-pagination {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    .shop-pagination__list {
        gap: 0.3rem;
        padding: 0.4rem;
    }
    .shop-pagination__item .page-link,
    .shop-pagination__link {
        min-width: 2.15rem;
        min-height: 2.15rem;
        padding: 0.35rem 0.55rem;
        font-size: 0.8125rem;
    }
    .shop-filter-grid { grid-template-columns: 1fr; }
    .shop-filter-field--actions,
    .shop-filter-field--search,
    .shop-filter-field--price-row { grid-column: 1 / -1; }
    .shop-filter-label--actions { display: none !important; }

    .shop-filters-offcanvas {
        --bs-offcanvas-height: min(88vh, 680px);
        border-radius: 18px 18px 0 0;
        display: flex;
        flex-direction: column;
    }
    .shop-filters-offcanvas__header {
        border-bottom: 1px solid #ece7f3;
        padding: 1rem 1.1rem;
    }
    .shop-filters-offcanvas__header .offcanvas-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--pm-navy);
    }
    .shop-filters-offcanvas__body {
        padding: 0;
        overflow: hidden;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }
    .shop-filters-offcanvas .shop-filters-panel {
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .shop-filters-offcanvas #shopFilters {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .shop-filters-offcanvas .shop-filter-fields--mobile {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .shop-filters-offcanvas .shop-filter-fields__scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1.1rem 0.75rem;
    }
    .shop-filters-offcanvas .shop-filter-field--actions-sticky {
        flex: 0 0 auto;
        margin-top: 0;
        padding: 0.75rem 1.1rem max(1rem, env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #ece7f3;
        box-shadow: 0 -4px 16px rgba(40, 20, 60, 0.08);
    }
    .shop-filters-offcanvas .shop-filter-field--actions-sticky .shop-filter-actions {
        margin-top: 0;
    }
    /* Keep WhatsApp clear of the filter FAB */
    .whatsapp-float {
        bottom: 86px;
    }
}
@media (min-width: 992px) {
    .shop-filters-panel {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    .shop-filters-offcanvas {
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        background: transparent !important;
        border: 0 !important;
        z-index: auto !important;
    }
    .shop-filters-offcanvas__body {
        overflow: visible !important;
        padding: 0 !important;
        display: block !important;
    }
}

/* ===== Custom error page ===== */
.error-page {
    padding-top: 2rem;
}
.error-page__card {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    text-align: center;
}
.error-page__icon {
    font-size: 3rem;
    color: var(--pm-orange);
    margin-bottom: .5rem;
}
.error-page__code {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--pm-navy);
    margin: 0 0 .75rem;
}
.error-page__title {
    margin-bottom: .75rem;
    color: #18120a;
}
.error-page__message {
    color: #5c5348;
    margin-bottom: 1.75rem;
}
.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}
@media (max-width: 575.98px) {
    .error-page__card { padding: 2rem 1.25rem; }
    .error-page__actions .btn { width: 100%; }
}
