/* ============ 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;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    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: 'Baloo Tamma 2', 'Inter', sans-serif;
}

/* ===== Top contact bar ===== */
.announce-bar {
    background: var(--pm-orange);
    color: #1d1405;
    font-size: .85rem;
    letter-spacing: .2px;
}
.announce-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.announce-bar a:hover { color: var(--pm-navy); }
.topbar-sep { color: rgba(255,255,255,.7); }
.announce-bar .social-links { display: flex; align-items: center; }
.announce-bar .social-links a { margin: 0 .45rem; font-size: 1rem; color: #fff; }
.announce-bar .social-links a:hover { color: var(--pm-navy); }
.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;
}
.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; }

/* 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: center;
    gap: .75rem;
    padding: .55rem .85rem;
    text-decoration: none;
    color: inherit;
}
.pm-search-cover {
    width: 38px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #eee;
}
.pm-search-no-cover {
    width: 38px;
    height: 50px;
    border-radius: 4px;
    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; }
.pm-search-title {
    font-weight: 600;
    font-size: .88rem;
    line-height: 1.25;
    color: var(--pm-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-search-author {
    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;
}
.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-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 (white) ===== */
.nav-row { background: #fff; min-height: 56px; }
.nav-row .nav-link {
    font-weight: 600;
    color: var(--pm-ink);
    padding: .9rem 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
}
@media (min-width: 992px) {
    .nav-row {
        min-height: 62px;
    }
    .nav-row > .container {
        align-items: center;
    }
    .nav-row .navbar-collapse {
        display: flex !important;
        flex-grow: 1;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
    }
    .nav-row .navbar-nav {
        gap: 1.85rem;
        align-items: center;
        flex-wrap: nowrap;
    }
    .nav-row .nav-item {
        display: flex;
        align-items: center;
    }
    .nav-row .nav-link {
        padding: 1.05rem 0;
        white-space: nowrap;
        font-size: .9rem;
    }
    .nav-find {
        flex-shrink: 0;
        margin-right: .5rem;
    }
    .nav-phone {
        flex-shrink: 0;
        margin-left: .5rem;
        font-size: .92rem;
    }
}
.nav-row .nav-link:hover { color: var(--pm-navy); }
.nav-find {
    color: var(--pm-ink);
    font-weight: 600;
    font-size: .88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.nav-find:hover { color: var(--pm-purple); }
.nav-phone {
    color: var(--pm-navy);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}
.nav-phone:hover { color: var(--pm-orange); }

.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: 10px;
    box-shadow: 0 10px 28px rgba(60, 30, 90, .12);
    padding: .4rem 0;
    min-width: 12rem;
    max-height: min(70vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
}
@media (min-width: 992px) {
    .nav-row .nav-item.dropdown {
        position: relative;
    }
    .nav-row .dropdown-menu.nav-db-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        margin-top: 0;
        width: 14rem;
        max-width: min(16rem, calc(100vw - 24px));
        max-height: min(70vh, 420px);
    }
    .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(24rem, calc(100vw - 24px));
        column-count: 2;
        column-gap: 0;
    }
    .nav-row .dropdown-menu.nav-db-dropdown.nav-db-dropdown--cols3.show {
        max-width: min(30rem, calc(100vw - 24px));
        column-count: 3;
    }
    .nav-row .dropdown-menu.nav-db-dropdown > li {
        break-inside: avoid;
    }
    .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: var(--pm-ink);
}
.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-navy);
}
.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 .nav-item.dropdown:last-of-type {
        margin-bottom: .25rem;
    }
    .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: 8px;
        background: #f7f4fb;
        margin: .35rem 0 .65rem;
        padding: .35rem 0;
        max-height: min(42vh, 240px);
        overflow-y: auto;
    }
    .nav-row .dropdown-menu.nav-db-dropdown.show {
        display: block;
    }
    .nav-row .dropdown-menu.nav-db-dropdown .dropdown-item {
        padding: .55rem .85rem;
        font-size: .88rem;
        white-space: normal;
    }
}

@media (max-width: 991px) {
    .nav-row { min-height: 42px; }
    .nav-row > .container {
        min-height: 42px;
        align-items: center;
    }
    .nav-row .navbar-brand {
        font-size: 1rem;
        padding-top: .3rem !important;
        padding-bottom: .3rem !important;
        margin: 0;
    }
    .nav-row .navbar-toggler {
        border: none;
        padding: .2rem .35rem;
        box-shadow: none;
    }
    .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 .nav-item { padding: .2rem 0; }
    .nav-row .navbar-nav .nav-item:not(.dropdown) {
        border-bottom: 1px solid #eee;
    }
    .nav-row .nav-link {
        display: inline-block;
        padding: .55rem 0;
    }
    .header-logo { height: 50px; }

    /* Mobile menu: overlay dropdown instead of pushing content */
    .nav-row .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1040;
        padding: .5rem 1.25rem 1rem;
        box-shadow: 0 14px 24px rgba(0, 0, 0, .18);
        border-top: 1px solid #eee;
        border-radius: 0 0 14px 14px;
        touch-action: pan-y;
        will-change: transform;
    }
    .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-orange); color: #fff; border: none; font-weight: 600; }
.btn-accent:hover { background: #d97e0f; color: #fff; }
.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%;
    height: auto;
}
.hero-banner-swiper .swiper-wrapper {
    height: auto;
    align-items: stretch;
}
.hero-banner-swiper .swiper-slide {
    height: auto;
    display: block;
    overflow: hidden;
    background: #0f0a1e;
}
.hero-banner-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    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 {
    border: none; border-radius: 14px; overflow: hidden;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 2px 10px rgba(60, 30, 90, .08);
    height: auto;
    width: 100%;
}
.book-card .card-body {
    flex: 0 1 auto;
    gap: 0.35rem;
}
.book-card-author {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.35;
}
.book-card-author-icon {
    flex-shrink: 0;
    margin-top: 0.12em;
    font-size: 0.85em;
    opacity: 0.75;
}
.book-card-author-names {
    flex: 1;
    min-width: 0;
}
.book-card-cat {
    padding-left: 1.2rem;
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
}
.book-card-cat-badge {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.28em 0.55em;
}
.book-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(60, 30, 90, .16); }
.book-cover {
    aspect-ratio: 3 / 4; width: 100%; object-fit: cover; background: #eee;
}
.book-cover-placeholder {
    aspect-ratio: 3 / 4; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(145deg, #ece2f7, #fbeedd);
    color: var(--pm-purple); padding: 1rem;
    font-family: 'Baloo Tamma 2', sans-serif; font-weight: 600;
}
.book-card .card-title {
    font-size: .95rem; font-weight: 700; margin-bottom: 0.15rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-card-price { margin-top: 0.25rem; margin-bottom: 0.35rem; }
.book-card-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    width: 100%;
}
.book-card-actions form {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    display: flex;
}
.book-card-actions .btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 2.35rem;
    padding: .45rem .3rem;
    font-size: .72rem;
    line-height: 1.15;
    white-space: nowrap;
    box-sizing: border-box;
    border-width: 2px;
    border-style: solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .2rem;
}
.book-card-actions .btn-outline-brand {
    border-color: var(--pm-purple);
}
.book-card-actions .btn-accent {
    border-color: transparent;
}
@media (min-width: 768px) {
    .book-card-actions .btn {
        font-size: .78rem;
        padding: .45rem .4rem;
        min-height: 2.45rem;
    }
}
.price-old { text-decoration: line-through; color: #999; font-size: .85rem; }
.price-new { color: var(--pm-green); 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: var(--pm-green); }
.icon-orange { background: #fdeedd; color: var(--pm-orange); }
.icon-blue   { background: #def2fb; color: var(--pm-blue); }
.feature-title { font-weight: 700; font-size: .95rem; }
.feature-sub { color: #8a8395; 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; }
body.page-home .site-footer { margin-top: 0; }
.home-books-section { margin-bottom: 2.5rem; }
.site-footer .footer-heading {
    color: #fff;
    margin-bottom: 1.25rem;
    position: relative;
}
.footer-col {
    border-right: 1px solid rgba(255,255,255,.08);
    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-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; }
@media (max-width: 991.98px) {
    .site-footer { padding-top: 2.5rem; }
    .site-footer .footer-grid { row-gap: 0; }
    .site-footer .footer-block {
        padding: 1.35rem 0;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .site-footer .footer-block:first-child {
        padding-top: 0;
        border-top: none;
    }
    .footer-col {
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }
    .footer-center { padding-bottom: .25rem; }
    .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 { max-width: 210px; filter: drop-shadow(0 0 2px rgba(255,255,255,.35)); }
.footer-phone {
    color: var(--pm-orange) !important;
    font-family: 'Baloo Tamma 2', sans-serif;
    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;
    gap: .65rem;
}
.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-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1rem; padding-bottom: .5rem; }
.footer-bottom-inner .footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    line-height: 1.5;
    text-align: center;
}
.footer-copy-line,
.footer-copy-credit { display: block; }
@media (min-width: 992px) {
    .footer-bottom-inner .footer-copyright {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0;
        text-align: left;
    }
    .footer-copy-line,
    .footer-copy-credit { display: inline; }
    .footer-copy-credit::before {
        content: " | ";
        color: #b9b3c4;
    }
}
.footer-brand-link {
    color: var(--pm-orange) !important;
    text-decoration: none;
    transition: color .2s ease;
}
.footer-brand-link:hover,
.footer-brand-link:focus-visible {
    color: var(--pm-orange) !important;
}
.footer-copy-credit .footer-brand-link:hover,
.footer-copy-credit .footer-brand-link:focus-visible {
    color: #fff !important;
}
@media (max-width: 991.98px) {
    .footer-bottom-inner .payment-badges {
        display: flex;
        justify-content: center;
    }
}
.payment-badges .footer-pay-img {
    display: block;
    max-width: min(100%, 380px);
    width: auto;
    height: auto;
    max-height: 32px;
}

/* ===== Pustaka Mane in News ===== */
.news-section {
    background: #c9ecfa;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 3rem;
    margin-top: 0;
}
.news-title {
    font-family: 'Baloo Tamma 2', sans-serif;
    font-weight: 700;
    font-size: 2.6rem;
    color: var(--pm-ink);
    margin-bottom: .2rem;
}
.news-subtitle {
    font-family: 'Baloo Tamma 2', sans-serif;
    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 {
    color: #e91e63;
    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;
    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: 2rem; }
    .news-subtitle { font-size: 1.5rem; }
    .news-brand { font-size: 1.2rem; letter-spacing: .25rem; }
}

/* 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 / tables */
.cart-thumb { width: 56px; height: 74px; object-fit: cover; border-radius: 6px; }
.cart-table .cart-th-qty { width: 130px; }
.cart-table .cart-th-remove { width: 48px; }
.cart-item-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
}
.cart-qty-input {
    min-width: 118px;
    max-width: 130px;
}
.cart-qty-input .form-control {
    min-width: 2.5rem;
    padding-left: .25rem;
    padding-right: .25rem;
}
.cart-remove-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    body.page-cart .container.pb-4 {
        padding-bottom: 1rem !important;
    }
    body.page-cart .cart-form {
        width: 100%;
    }
    .cart-list-card {
        width: 100%;
        border: none;
        background: transparent;
        box-shadow: none !important;
        border-radius: 0;
    }
    .cart-list-card > .cart-table-wrap {
        padding: 0;
        width: 100%;
    }
    .cart-table-wrap {
        overflow: visible;
        width: 100%;
    }
    .cart-table-head {
        display: none;
    }
    .cart-table,
    .cart-table tbody {
        display: block;
        width: 100%;
    }
    .cart-table tbody .cart-item {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb info remove"
            "price qty total";
        gap: .55rem .75rem;
        width: 100%;
        box-sizing: border-box;
        padding: 1rem;
        margin: 0 0 .75rem;
        background: #fff;
        border: 1px solid #ece7f3;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(60, 30, 90, .06);
        align-items: end;
    }
    .cart-table tbody .cart-item:last-child {
        margin-bottom: 0;
    }
    .cart-table tbody .cart-item > td {
        display: block;
        padding: 0;
        border: none;
        width: 100%;
        box-sizing: border-box;
    }
    .cart-item-thumb { grid-area: thumb; align-self: start; width: auto; }
    .cart-item-info { grid-area: info; min-width: 0; align-self: start; width: auto; }
    .cart-item-remove {
        grid-area: remove;
        align-self: start;
        justify-self: end;
        width: auto;
    }
    .cart-item-price { grid-area: price; }
    .cart-item-qty { grid-area: qty; }
    .cart-item-total { grid-area: total; }
    .cart-item-price,
    .cart-item-qty,
    .cart-item-total {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: .2rem;
        min-width: 0;
        margin-top: .35rem;
        padding-top: .75rem;
        border-top: 1px solid #ece7f3;
    }
    .cart-item-qty {
        align-items: center;
    }
    .cart-item-total {
        align-items: flex-end;
        text-align: right;
    }
    .cart-item-price::before,
    .cart-item-qty::before,
    .cart-item-total::before {
        content: attr(data-label);
        font-size: .7rem;
        font-weight: 600;
        letter-spacing: .02em;
        text-transform: uppercase;
        color: #64748b;
    }
    .cart-item-total-value {
        font-weight: 700;
        color: var(--pm-ink);
    }
    .cart-item-price,
    .cart-item-total {
        font-weight: 600;
        color: var(--pm-ink);
    }
    .cart-item-thumb .cart-thumb {
        width: 72px;
        height: 96px;
    }
    .cart-item-title {
        font-size: .92rem;
    }
    .cart-qty-input {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
    .cart-qty-input .btn {
        min-width: 36px;
        padding-left: .4rem;
        padding-right: .4rem;
    }
}

@media (max-width: 575.98px) {
    .cart-table tbody .cart-item {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb info remove"
            "price price price"
            "qty qty qty"
            "total total total";
        gap: .45rem .65rem;
        padding: .9rem 1rem;
        align-items: stretch;
    }
    .cart-item-thumb .cart-thumb {
        width: 64px;
        height: 86px;
    }
    .cart-item-price,
    .cart-item-qty,
    .cart-item-total {
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .cart-item-price {
        margin-top: .5rem;
    }
    .cart-item-qty,
    .cart-item-total {
        margin-top: 0;
        padding-top: .55rem;
        border-top: 1px solid #ece7f3;
    }
    .cart-item-qty {
        justify-content: flex-start;
        gap: .5rem;
    }
    .cart-item-qty .cart-qty-input {
        max-width: 148px;
        margin-left: auto;
    }
}

/* ===== Page header band with breadcrumb ===== */
.page-head {
    background: var(--pm-orange);
    padding: 3rem 0;
    margin-bottom: 1.25rem;
}
.page-title {
    font-family: 'Baloo Tamma 2', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.6rem;
    color: #18120a;
}
.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: none; }
.crumb a:hover { color: var(--pm-navy); }
.crumb span { color: #fff; }
.crumb i { color: #fff; font-size: .8rem; }
@media (max-width: 991.98px) {
    .page-head { padding: 1.65rem 0; margin-bottom: .75rem; }
    .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: .62rem;
        font-weight: 600;
        letter-spacing: .15px;
        line-height: 1.35;
        flex-wrap: wrap;
        row-gap: .15rem;
        opacity: .92;
    }
    .crumb i {
        font-size: .5rem;
        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: 8px;
    margin-bottom: 1rem;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    max-width: 420px;
}
.book-promo-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.95rem;
}
.book-promo-row--price .book-promo-price-now {
    color: var(--pm-green);
    font-size: 1.15rem;
}
.book-promo-label {
    color: #374151;
    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-block {
    margin-bottom: 1rem;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    max-width: 420px;
}
.book-delivery-est {
    font-size: .92rem;
    color: #065f46;
    font-weight: 600;
}
.book-delivery-est strong { color: #047857; }
.book-shipping-display { color: var(--pm-purple); }

/* 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-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-accent {
    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-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-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: 100vw;
        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: 100vw;
        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));
    }
    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;
    }
}

/* ===== Mobile fixed action bars (book + cart + checkout) ===== */
@media (max-width: 991.98px) {
    body.page-checkout.has-mobile-action-bar,
    body.page-cart.has-mobile-action-bar {
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    }
    body.page-checkout.has-mobile-action-bar .whatsapp-float,
    body.page-cart.has-mobile-action-bar .whatsapp-float {
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
    body.has-mobile-action-bar:not(.page-book-detail):not(.page-checkout):not(.page-cart) {
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    }
    body.has-mobile-action-bar:not(.page-book-detail):not(.page-checkout):not(.page-cart) .whatsapp-float {
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
    body.page-checkout.has-mobile-action-bar .order-summary-actions,
    body.page-cart.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);
    }
    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 {
        display: none;
    }
    body.page-cart.has-mobile-action-bar .order-summary-actions .cart-continue-link {
        display: none;
    }
    body.page-checkout.has-mobile-action-bar .order-summary-actions .btn,
    body.page-cart.has-mobile-action-bar .order-summary-actions .btn {
        margin: 0;
    }
    body.page-cart.has-mobile-action-bar .order-summary-actions .cart-checkout-btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: .95rem;
        font-weight: 600;
        border-radius: 8px;
    }
}

/* ===== 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: 'Baloo Tamma 2', 'Inter', sans-serif;
    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: 28px;
    border: 1.5px solid #dde3ef;
}
.order-summary-title {
    font-family: 'Baloo Tamma 2', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--pm-navy);
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: .9rem;
    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: 2px solid #dde3ef;
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 600;
    color: #333;
}
.summary-row.grand {
    font-family: 'Baloo Tamma 2', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--pm-navy);
    border-top: 2px solid var(--pm-navy);
    border-bottom: none;
    margin-top: 8px;
    padding-top: 12px;
}
.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: #64748b; font-weight: 500; margin-left: 4px; }
.summary-note { font-size: .78rem; color: #64748b; margin-top: 6px; }
.receipt-actions .btn { min-width: 10.5rem; }
.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; }
.checkout-form-error {
    background: #fef0f0;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .88rem;
    color: #c0392b;
    margin-top: 16px;
}
.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: 14px; padding-top: 14px; border-top: 1px solid #dde3ef; }
.coupon-box .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}
.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-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;
}
@media (max-width: 991.98px) {
    .checkout-summary-col { position: static; }
    .checkout-mobile-total.d-lg-none {
        display: flex;
    }
    body.page-cart .order-summary,
    body.page-checkout .order-summary {
        margin-top: .25rem;
        padding: 1rem 1.1rem;
        background: #eef6fc;
        border: 1.5px solid #dde3ef;
        border-radius: 14px;
    }
    body.page-cart .order-summary-title,
    body.page-checkout .order-summary-title {
        display: block !important;
        font-size: 1rem;
        margin-bottom: .75rem;
    }
    body.page-cart .order-summary .summary-row,
    body.page-checkout .order-summary .summary-row {
        display: flex !important;
        font-size: .88rem;
        padding: .42rem 0;
    }
    body.page-cart .order-summary .summary-row.grand,
    body.page-checkout .order-summary .summary-row.grand {
        display: none !important;
    }
    body.page-cart.has-mobile-action-bar .checkout-summary-col {
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto;
    }
    body.page-cart.has-mobile-action-bar .checkout-summary-col .order-summary {
        padding: 1rem 1.1rem;
        margin: 0 0 .25rem;
        min-height: auto;
    }
    body.page-checkout .order-summary .coupon-box {
        margin-top: .5rem;
        padding-top: .75rem;
        border-top: 1px solid #dde3ef;
    }
    .order-summary-actions {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}

/* Shop filters — classic row layout */
.shop-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem .75rem;
    align-items: end;
}
.shop-filter-label {
    display: block;
    margin-bottom: .25rem;
    font-size: .78rem;
    font-weight: 600;
    color: #333;
}
.shop-filter-label--actions { visibility: hidden; height: 0; margin: 0; }
.shop-filter-control {
    border: 1px solid #adb5bd !important;
    border-radius: 2px !important;
    background: #fff !important;
    font-size: .875rem !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.shop-filter-control:focus {
    border-color: #666 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    outline: 1px solid #999;
    outline-offset: 0;
}
.shop-filter-actions {
    display: flex;
    gap: .4rem;
    align-items: center;
}
.shop-filter-apply {
    border-radius: 2px !important;
    font-weight: 600;
    min-width: 4.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.shop-filter-reset {
    border-radius: 2px !important;
    font-weight: 600;
    white-space: nowrap;
}

.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: #475569; font-size: .92rem; }
.shop-query { color: var(--pm-navy); 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;
}
.books-grid > [class*="col"] {
    display: flex;
    align-items: flex-start;
}
.books-grid .book-card {
    display: flex;
    flex-direction: column;
    height: auto;
}
.shop-books-grid > [class*="col"] {
    display: flex;
    align-items: flex-start;
}
.shop-books-grid .book-card {
    display: flex;
    flex-direction: column;
    height: auto;
}
.shop-empty {
    background: #fafbfd;
    border: 1px dashed #dde3ef;
    border-radius: 12px;
}
.shop-empty-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
}
.shop-pagination .page-link {
    color: var(--pm-purple);
    border-color: #e4ddf0;
    min-width: 2.4rem;
    text-align: center;
}
.shop-pagination .page-item.active .page-link {
    background: var(--pm-purple);
    border-color: var(--pm-purple);
    color: #fff;
}
.shop-pagination .page-link:hover {
    background: #f3eef9;
    color: var(--pm-purple-dark);
}
@media (max-width: 991.98px) {
    .shop-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-filter-field--actions { grid-column: 1 / -1; }
    .shop-filter-label--actions { display: none !important; }
    .shop-pagination .page-link { padding: .35rem .55rem; font-size: .875rem; }
    .shop-filter-fields.collapse:not(.show) { display: none; }
}
@media (min-width: 992px) {
    .shop-filter-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
        gap: .75rem;
        align-items: end;
    }
    .shop-filter-field--actions {
        grid-column: auto;
    }
    .shop-filter-fields,
    .shop-filter-fields.collapse,
    .shop-filter-fields.collapse:not(.show) {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        overflow: visible !important;
    }
}
