/*
============================================================
BOOK STORE — EXACT EXTRACTED ACTIVE CSS
============================================================
Generated from the 17 active style.textContent blocks in
assets/js/views/book-store.js.

Phase 1A intentionally preserves:
- Source order
- Duplicate selectors
- Existing media queries
- Existing !important declarations
- Existing cascade behavior

No visual cleanup or redesign has been applied yet.
============================================================
*/

/* =========================================================
   EXTRACTED ACTIVE BLOCK 01
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .book-store-page {
            display: grid;
            gap: 18px;
        }

        .book-store-page * {
            box-sizing: border-box;
        }

        .book-store-hero {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            padding: 24px;
            border-radius: 24px;
            background:
                radial-gradient(circle at top left, rgba(212,169,90,.24), transparent 32%),
                linear-gradient(135deg, #1F3A2E, #2D5043);
            color: #fff;
            box-shadow: 0 18px 42px rgba(31,58,46,.16);
        }

        .book-store-hero span {
            color: #D4A95A;
            font-weight: 900;
        }

        .book-store-hero h2 {
            margin: 6px 0;
            font-size: 1.8rem;
        }

        .book-store-hero p {
            margin: 0;
            color: rgba(255,255,255,.78);
        }

        .book-store-account-note {
            min-height: 44px;
            padding: 11px 16px;
            border: 1px solid rgba(255,255,255,.20);
            border-radius: 999px;
            background: rgba(255,255,255,.10);
            color: #fff;
            font-weight: 900;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .book-store-cart-toggle {
            border: 0;
            border-radius: 16px;
            background: linear-gradient(135deg, #D4A95A, #B8893A);
            color: #1F3A2E;
            padding: 13px 17px;
            font-weight: 900;
            cursor: pointer;
        }

        .book-store-cart-toggle strong {
            display: inline-grid;
            place-items: center;
            min-width: 25px;
            height: 25px;
            border-radius: 999px;
            background: #1F3A2E;
            color: #D4A95A;
            margin-inline-start: 6px;
        }

        .book-store-info-strip {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }

        .book-store-info-card,
        .book-store-info-loading {
            background: #fff;
            border: 1px solid rgba(31,58,46,.08);
            border-radius: 20px;
            padding: 14px;
            box-shadow: 0 10px 24px rgba(31,58,46,.05);
        }

        .book-store-info-card {
            display: grid;
            gap: 5px;
        }

        .book-store-info-card span {
            color: #B8893A;
            font-weight: 900;
            font-size: .9rem;
        }

        .book-store-info-card strong {
            color: #1F3A2E;
            font-size: .92rem;
        }

        .book-store-info-card small {
            color: #6B6255;
            font-weight: 800;
        }

        .book-store-payment-lines strong,
        .book-store-info-card .copy-line {
            display: grid;
            grid-template-columns: auto minmax(120px, 1fr) auto;
            gap: 8px;
            align-items: center;
        }

        .book-store-payment-lines strong b {
            color: #1F3A2E;
            font-weight: 900;
        }

        .book-store-payment-lines strong em,
        .book-store-info-card .copy-line em {
            direction: ltr;
            text-align: left;
            font-style: normal;
            color: #1F3A2E;
            font-weight: 900;
            background: #FAF6EC;
            border-radius: 10px;
            padding: 4px 8px;
        }

        .book-store-payment-lines strong button,
        .book-store-info-card .copy-line button,
        .book-payment-box button {
            border: 0;
            border-radius: 10px;
            background: #1F3A2E;
            color: #fff;
            padding: 6px 9px;
            font-weight: 900;
            cursor: pointer;
            font-family: inherit;
            white-space: nowrap;
            font-size: .78rem;
            line-height: 1.2;
        }

        .book-store-copy-btn-fix {
            display: none;
        }

        .book-payment-box div {
            grid-template-columns: 1fr auto auto;
            align-items: center;
            gap: 8px;
        }

        .book-payment-box button {
            padding: 5px 8px;
            font-size: .78rem;
        }

        .book-store-filters {
            display: grid;
            grid-template-columns: 1.4fr .9fr .9fr auto auto auto;
            gap: 10px;
            background: #fff;
            padding: 16px;
            border-radius: 22px;
            border: 1px solid rgba(31,58,46,.08);
            box-shadow: 0 12px 28px rgba(31,58,46,.06);
        }

        .book-store-filters input,
        .book-store-filters select,
        .book-checkout input,
        .book-checkout textarea,
        .book-checkout select {
            width: 100%;
            border: 1px solid rgba(31,58,46,.12);
            border-radius: 14px;
            padding: 12px 13px;
            font-family: inherit;
            outline: 0;
            background: #fff;
            color: #1A1815;
        }

        .book-store-filters button,
        .book-checkout-actions button,
        .book-product-foot button,
        .book-success-actions button,
        .book-success-actions a {
            border: 0;
            border-radius: 14px;
            padding: 11px 14px;
            font-weight: 900;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            font-family: inherit;
        }

        .book-store-filters button,
        .book-checkout-actions button,
        .book-product-foot button,
        .book-success-actions button,
        .book-success-actions a {
            background: #1F3A2E;
            color: #fff;
        }

        .book-store-check {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #FAF6EC;
            border-radius: 14px;
            padding: 8px 12px;
            font-weight: 900;
            color: #1F3A2E;
        }

        .book-store-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 360px;
            gap: 18px;
            align-items: start;
        }

        .book-store-grade-note {
            background: #fff;
            border-radius: 18px;
            padding: 12px 14px;
            margin-bottom: 14px;
            color: #1F3A2E;
            border: 1px solid rgba(31,58,46,.08);
        }

        .book-store-grade-note strong {
            color: #B8893A;
        }

        .book-store-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 270px));
            justify-content: start;
            gap: 18px;
        }

        .book-product-card {
            background: #fff;
            border-radius: 22px;
            overflow: hidden;
            border: 1px solid rgba(31,58,46,.08);
            box-shadow: 0 14px 34px rgba(31,58,46,.07);
        }

        .book-product-cover {
            position: relative;
            aspect-ratio: 210 / 297;
            background: linear-gradient(135deg, #F5F1E8, #EFE7D2);
        }

        .book-product-cover img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .book-product-placeholder {
            height: 100%;
            display: grid;
            place-items: center;
            font-size: 3rem;
        }

        .book-product-cover span {
            position: absolute;
            top: 10px;
            right: 10px;
            border-radius: 999px;
            padding: 6px 10px;
            font-size: .78rem;
            font-weight: 900;
        }

        .book-product-cover span.ok {
            background: #E8F8EE;
            color: #1F7A45;
        }

        .book-product-cover span.off {
            background: #FFF0EC;
            color: #B22222;
        }

        .book-product-body {
            padding: 14px;
        }

        .book-product-body h3 {
            margin: 0 0 7px;
            color: #1F3A2E;
            line-height: 1.35;
        }

        .book-product-body p {
            margin: 0 0 10px;
            min-height: 44px;
            color: #6B6255;
            font-size: .9rem;
            line-height: 1.6;
        }

        .book-product-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
        }

        .book-product-tags span {
            background: #FAF6EC;
            color: #1F3A2E;
            border-radius: 999px;
            padding: 6px 9px;
            font-size: .75rem;
            font-weight: 900;
        }

        .book-product-foot {
            display: flex;
            justify-content: space-between;
            align-items: end;
            gap: 10px;
        }

        .book-price-box {
            background: #FAF6EC;
            border-radius: 14px;
            padding: 8px 10px;
        }

        .book-product-foot strong {
            display: block;
            color: #1F3A2E;
            font-size: 1.15rem;
        }

        .book-product-foot small {
            color: #6B6255;
            font-size: .75rem;
        }

        .book-product-foot button:disabled {
            opacity: .45;
            cursor: not-allowed;
        }

        .book-cart-panel {
            position: sticky;
            top: 18px;
            background: #fff;
            border-radius: 24px;
            padding: 16px;
            border: 1px solid rgba(31,58,46,.08);
            box-shadow: 0 16px 34px rgba(31,58,46,.08);
        }

        .book-cart-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .book-cart-head span {
            color: #B8893A;
            font-weight: 900;
        }

        .book-cart-head h3 {
            margin: 4px 0 0;
            color: #1F3A2E;
        }

        .book-cart-head-actions {
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }

        .book-cart-head-actions button {
            border: 0;
            border-radius: 10px;
            background: #FFF0EC;
            color: #B22222;
            padding: 7px 9px;
            font-weight: 900;
            cursor: pointer;
            font-family: inherit;
        }

        .book-cart-head > strong,
        .book-cart-head-actions > strong {
            display: grid;
            place-items: center;
            width: 34px;
            height: 34px;
            border-radius: 999px;
            background: #1F3A2E;
            color: #D4A95A;
        }

        .book-cart-items {
            display: grid;
            gap: 10px;
            max-height: 300px;
            overflow: auto;
            padding-inline-end: 3px;
        }

        .book-cart-item {
            display: grid;
            grid-template-columns: 54px 1fr;
            gap: 10px;
            align-items: center;
            background: #FAF6EC;
            border-radius: 16px;
            padding: 9px;
        }

        .book-cart-mini-cover {
            aspect-ratio: 210 / 297;
            background: #EFE7D2;
            border-radius: 10px;
            overflow: hidden;
            display: grid;
            place-items: center;
        }

        .book-cart-mini-cover img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .book-cart-item strong {
            display: block;
            color: #1F3A2E;
            font-size: .9rem;
        }

        .book-cart-item small {
            color: #6B6255;
        }

        .book-cart-qty {
            display: flex;
            gap: 5px;
            align-items: center;
            margin-top: 6px;
        }

        .book-cart-qty button {
            border: 0;
            border-radius: 8px;
            background: #fff;
            color: #1F3A2E;
            font-weight: 900;
            padding: 5px 8px;
            cursor: pointer;
        }

        .book-cart-summary {
            display: grid;
            gap: 8px;
            margin: 14px 0;
            padding: 12px;
            border-radius: 16px;
            background: #F5F1E8;
        }

        .book-cart-summary div {
            display: flex;
            justify-content: space-between;
            color: #1F3A2E;
        }

        .book-cart-summary .total {
            border-top: 1px solid rgba(31,58,46,.12);
            padding-top: 8px;
            font-weight: 900;
        }

        .book-cart-note {
            background: #FFF8E6;
            color: #8A6A2A;
            border: 1px solid rgba(184,137,58,.15);
            border-radius: 14px;
            padding: 10px;
            margin-bottom: 12px;
            font-size: .84rem;
            font-weight: 900;
            line-height: 1.7;
        }

        .book-checkout {
            display: grid;
            gap: 9px;
        }

        .book-checkout h4 {
            margin: 4px 0;
            color: #1F3A2E;
        }

        .book-checkout label {
            display: grid;
            gap: 5px;
            font-size: .82rem;
            font-weight: 900;
            color: #1F3A2E;
        }

        .book-shipping-help {
            display: block;
            color: #8A6A2A;
            background: #FAF6EC;
            border-radius: 10px;
            padding: 7px 9px;
            line-height: 1.6;
            font-size: .78rem;
        }

        .book-checkout-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .book-store-other-grades {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            background: #fff;
            border: 1px solid rgba(31,58,46,.08);
            border-radius: 22px;
            padding: 16px;
            box-shadow: 0 12px 28px rgba(31,58,46,.06);
        }

        .book-store-other-grades strong {
            display: block;
            color: #1F3A2E;
            margin-bottom: 4px;
        }

        .book-store-other-grades p {
            margin: 0;
            color: #6B6255;
            line-height: 1.7;
        }

        .book-store-other-grades button {
            border: 0;
            border-radius: 14px;
            padding: 12px 16px;
            background: linear-gradient(135deg, #D4A95A, #B8893A);
            color: #1F3A2E;
            font-weight: 900;
            cursor: pointer;
            font-family: inherit;
            white-space: nowrap;
        }

        .book-store-empty,
        .book-store-loading,
        .book-store-error,
        .book-cart-empty {
            background: #fff;
            border-radius: 22px;
            padding: 28px;
            text-align: center;
            color: #1F3A2E;
            border: 1px solid rgba(31,58,46,.08);
        }

        .book-store-error,
        .book-store-notice.error {
            background: #FFF0EC;
            color: #B22222;
        }

        .book-store-notice {
            padding: 13px 16px;
            border-radius: 16px;
            font-weight: 900;
            background: #E8F8EE;
            color: #1F7A45;
        }

        .book-order-success {
            text-align: center;
            display: grid;
            gap: 12px;
        }

        .success-icon {
            font-size: 2.4rem;
        }

        .book-order-success h3 {
            margin: 0;
            color: #1F3A2E;
        }

        .book-order-success > strong {
            color: #B8893A;
            font-size: 1.2rem;
        }

        .book-payment-box {
            display: grid;
            gap: 8px;
            background: #FAF6EC;
            border-radius: 18px;
            padding: 12px;
            text-align: right;
        }

        .book-payment-box div {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            color: #1F3A2E;
        }

        .book-order-note {
            color: #6B6255;
            line-height: 1.7;
        }

        .book-success-actions {
            display: grid;
            gap: 8px;
        }

        @media (max-width: 1100px) {
            .book-store-layout {
                grid-template-columns: 1fr;
            }

            .book-cart-panel {
                position: static;
            }
        }

        @media (max-width: 720px) {
            .book-store-info-strip {
                grid-template-columns: 1fr;
            }

            .book-store-payment-lines strong,
            .book-store-info-card .copy-line {
                grid-template-columns: 1fr auto;
            }

            .book-store-payment-lines strong b,
            .book-store-info-card .copy-line b {
                grid-column: 1 / -1;
            }

            .book-store-payment-lines strong button,
            .book-store-info-card .copy-line button {
                font-size: .74rem;
                padding: 6px 8px;
            }

            .book-store-hero,
            .book-store-other-grades {
                align-items: stretch;
                flex-direction: column;
                padding: 18px;
            }

            .book-store-info-strip {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }

        .book-store-info-card,
        .book-store-info-loading {
            background: #fff;
            border: 1px solid rgba(31,58,46,.08);
            border-radius: 20px;
            padding: 14px;
            box-shadow: 0 10px 24px rgba(31,58,46,.05);
        }

        .book-store-info-card {
            display: grid;
            gap: 5px;
        }

        .book-store-info-card span {
            color: #B8893A;
            font-weight: 900;
            font-size: .9rem;
        }

        .book-store-info-card strong {
            color: #1F3A2E;
            font-size: .92rem;
        }

        .book-store-info-card small {
            color: #6B6255;
            font-weight: 800;
        }

        .book-store-payment-lines strong,
        .book-store-info-card .copy-line {
            display: grid;
            grid-template-columns: auto minmax(120px, 1fr) auto;
            gap: 8px;
            align-items: center;
        }

        .book-store-payment-lines strong b {
            color: #1F3A2E;
            font-weight: 900;
        }

        .book-store-payment-lines strong em,
        .book-store-info-card .copy-line em {
            direction: ltr;
            text-align: left;
            font-style: normal;
            color: #1F3A2E;
            font-weight: 900;
            background: #FAF6EC;
            border-radius: 10px;
            padding: 4px 8px;
        }

        .book-store-payment-lines strong button,
        .book-store-info-card .copy-line button,
        .book-payment-box button {
            border: 0;
            border-radius: 10px;
            background: #1F3A2E;
            color: #fff;
            padding: 6px 9px;
            font-weight: 900;
            cursor: pointer;
            font-family: inherit;
            white-space: nowrap;
            font-size: .78rem;
            line-height: 1.2;
        }

        .book-store-copy-btn-fix {
            display: none;
        }

        .book-payment-box div {
            grid-template-columns: 1fr auto auto;
            align-items: center;
            gap: 8px;
        }

        .book-payment-box button {
            padding: 5px 8px;
            font-size: .78rem;
        }

        .book-store-filters {
                grid-template-columns: 1fr;
            }

            .book-store-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
            }

            .book-product-body {
                padding: 11px;
            }

            .book-product-foot {
                align-items: stretch;
                flex-direction: column;
            }

            .book-product-foot button {
                width: 100%;
            }
        }

        @media (max-width: 420px) {
            .book-store-grid {
                grid-template-columns: 1fr;
            }

            .book-checkout-actions {
                grid-template-columns: 1fr;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 02
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        #calculateBookShipping {
            display: none !important;
        }

        .book-checkout-actions {
            display: grid !important;
            grid-template-columns: 1fr !important;
        }

        #submitBookOrder {
            width: 100% !important;
            min-height: 46px !important;
            border-radius: 16px !important;
            font-weight: 900 !important;
        }

        .final-shipping-summary {
            margin-top: 12px !important;
            order: 50;
        }

        .compact-shipping-note {
            margin: 8px 0 10px !important;
            font-size: .9rem !important;
            line-height: 1.6 !important;
            text-align: center !important;
        }

        @media (max-width: 720px) {
            .final-shipping-summary {
                margin-top: 10px !important;
                border-radius: 16px !important;
                padding: 10px !important;
            }

            .final-shipping-summary div {
                padding: 6px 0 !important;
            }

            .final-shipping-summary span {
                font-size: .78rem !important;
            }

            .final-shipping-summary strong {
                font-size: .9rem !important;
            }

            .final-shipping-summary .total strong {
                font-size: 1.05rem !important;
            }

            .compact-shipping-note {
                display: none !important;
            }

            #submitBookOrder {
                height: 46px !important;
                font-size: .92rem !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 03
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .final-submit-actions {
            width: 100% !important;
            display: grid !important;
            grid-template-columns: 1fr !important;
            margin-top: 10px !important;
        }

        .final-submit-actions #submitBookOrder {
            width: 100% !important;
            min-height: 48px !important;
            border-radius: 16px !important;
            background: #1F3A2E !important;
            color: #fff !important;
            font-weight: 900 !important;
            font-family: inherit !important;
            font-size: 1rem !important;
            border: 0 !important;
            cursor: pointer !important;
        }

        @media (max-width: 720px) {
            .final-submit-actions {
                margin-top: 8px !important;
            }

            .final-submit-actions #submitBookOrder {
                min-height: 46px !important;
                border-radius: 15px !important;
                font-size: .95rem !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 04
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        @media (min-width: 1100px) {
            .book-store-page .book-store-layout {
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) 340px !important;
                gap: 18px !important;
                align-items: start !important;
                width: 100% !important;
            }

            .book-store-page #bookStoreContent {
                min-width: 0 !important;
                width: 100% !important;
            }

            .book-store-page #bookCartPanel {
                position: static !important;
                width: 340px !important;
                max-width: 340px !important;
                height: auto !important;
                max-height: none !important;
                overflow: visible !important;
                overflow-y: visible !important;
                overflow-x: visible !important;
                align-self: start !important;
            }

            .book-store-page #bookCartPanel *,
            .book-store-page .book-cart-items,
            .book-store-page .book-checkout-form {
                max-height: none !important;
                overflow: visible !important;
                overflow-y: visible !important;
                overflow-x: visible !important;
            }

            .student-books-native-layout {
                display: grid !important;
                gap: 18px !important;
                width: 100% !important;
            }

            .student-books-top-columns {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 18px !important;
                align-items: start !important;
            }

            .student-book-group {
                background: #fff !important;
                border: 1px solid rgba(31,58,46,.08) !important;
                border-radius: 24px !important;
                padding: 14px !important;
                box-shadow: 0 14px 34px rgba(31,58,46,.05) !important;
                min-width: 0 !important;
            }

            .student-book-group-title {
                background: #1F3A2E !important;
                color: #fff !important;
                border-radius: 16px !important;
                padding: 12px 14px !important;
                font-weight: 900 !important;
                text-align: center !important;
                margin-bottom: 12px !important;
                font-size: 1rem !important;
            }

            .student-book-group-list {
                display: grid !important;
                grid-template-columns: repeat(3, minmax(115px, 1fr)) !important;
                gap: 12px !important;
                align-items: start !important;
            }

            .student-book-group.full .student-book-group-list {
                grid-template-columns: repeat(auto-fit, minmax(145px, 185px)) !important;
                justify-content: start !important;
            }

            .student-book-group-empty {
                grid-column: 1 / -1 !important;
                background: #FAF6EC !important;
                color: #8A6A2A !important;
                border-radius: 14px !important;
                padding: 14px !important;
                text-align: center !important;
                font-weight: 900 !important;
            }

            .book-store-page .book-product-card {
                width: 100% !important;
                max-width: none !important;
                min-width: 0 !important;
                border-radius: 18px !important;
                overflow: hidden !important;
            }

            .book-store-page .book-product-cover {
                width: 100% !important;
                aspect-ratio: 3 / 4.25 !important;
                height: auto !important;
                min-height: 0 !important;
                background-size: cover !important;
                background-position: center !important;
            }

            .book-store-page .book-product-cover img {
                width: 100% !important;
                aspect-ratio: 3 / 4.25 !important;
                height: auto !important;
                object-fit: cover !important;
            }

            .book-store-page .book-product-body {
                padding: 8px !important;
            }

            .book-store-page .book-product-body h3 {
                font-size: .82rem !important;
                line-height: 1.3 !important;
                min-height: 2.55em !important;
            }

            .book-store-page .book-product-body p {
                display: none !important;
            }

            .book-store-page .book-product-tags {
                gap: 5px !important;
            }

            .book-store-page .book-product-tags span {
                font-size: .56rem !important;
                padding: 4px 5px !important;
            }

            .book-store-page .book-price-box {
                padding: 7px !important;
                border-radius: 12px !important;
            }

            .book-store-page .book-price-box strong {
                font-size: .9rem !important;
            }

            .book-store-page [data-add-book] {
                height: 36px !important;
                min-height: 36px !important;
                border-radius: 12px !important;
                font-size: .70rem !important;
            }
        }

        @media (min-width: 721px) and (max-width: 1099px) {
            .book-store-page .book-store-layout {
                grid-template-columns: 1fr !important;
            }

            .book-store-page #bookCartPanel {
                position: static !important;
                width: 100% !important;
                max-width: none !important;
                height: auto !important;
                max-height: none !important;
                overflow: visible !important;
            }

            .student-books-top-columns {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 14px !important;
            }

            .student-book-group-list {
                display: grid !important;
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 10px !important;
            }
        }

        @media (max-width: 720px) {
            .student-books-native-layout {
                display: grid !important;
                gap: 12px !important;
            }

            .student-books-top-columns {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 8px !important;
            }

            .student-book-group {
                background: #fff !important;
                border-radius: 18px !important;
                padding: 8px !important;
            }

            .student-book-group-title {
                background: #1F3A2E !important;
                color: #fff !important;
                border-radius: 13px !important;
                padding: 9px 7px !important;
                font-size: .78rem !important;
                text-align: center !important;
                font-weight: 900 !important;
                margin-bottom: 8px !important;
            }

            .student-book-group-list {
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 8px !important;
            }

            .student-book-group.full .student-book-group-list {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 05
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        @media (max-width: 720px) {
            .book-store-page {
                padding-inline: 8px !important;
                overflow-x: hidden !important;
            }

            /* تصغير الهيرو */
            .book-store-hero {
                padding: 14px 12px !important;
                border-radius: 20px !important;
                min-height: 0 !important;
                margin-bottom: 8px !important;
                display: grid !important;
                gap: 10px !important;
                text-align: center !important;
            }

            .book-store-hero span {
                font-size: .78rem !important;
                line-height: 1.1 !important;
            }

            .book-store-hero h2,
            .book-store-hero h1 {
                font-size: 1.45rem !important;
                line-height: 1.2 !important;
                margin: 0 !important;
            }

            .book-store-hero p {
                font-size: .76rem !important;
                line-height: 1.45 !important;
                margin: 0 auto !important;
                max-width: 95% !important;
            }

            .book-store-cart-toggle {
                height: 42px !important;
                border-radius: 15px !important;
                font-size: .92rem !important;
                width: 100% !important;
                padding: 0 12px !important;
            }

            /* إصلاح الكروت الثلاثة على الموبايل فقط */
            .book-store-info-strip {
                display: grid !important;
                grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
                gap: 7px !important;
                margin: 8px 0 10px !important;
            }

            .book-store-info-card,
            .book-store-info-card.uab-mobile-store-info-fixed {
                height: 74px !important;
                min-height: 74px !important;
                max-height: 74px !important;
                border-radius: 15px !important;
                padding: 7px 5px !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
                text-align: center !important;
                gap: 5px !important;
                overflow: hidden !important;
                min-width: 0 !important;
            }

            .book-store-info-card *,
            .book-store-info-card.uab-mobile-store-info-fixed * {
                writing-mode: horizontal-tb !important;
                text-orientation: mixed !important;
                word-break: normal !important;
                overflow-wrap: normal !important;
                box-sizing: border-box !important;
            }

            .book-store-info-card strong,
            .book-store-info-card.uab-mobile-store-info-fixed strong {
                display: block !important;
                width: 100% !important;
                color: #B8893A !important;
                font-size: .68rem !important;
                line-height: 1.1 !important;
                font-weight: 900 !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                margin: 0 !important;
            }

            .book-store-info-card span,
            .book-store-info-card.uab-mobile-store-info-fixed span {
                display: -webkit-box !important;
                -webkit-line-clamp: 2 !important;
                -webkit-box-orient: vertical !important;
                width: 100% !important;
                color: #1F3A2E !important;
                font-size: .58rem !important;
                line-height: 1.25 !important;
                font-weight: 900 !important;
                white-space: normal !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                margin: 0 !important;
            }

            .uab-mobile-store-phone {
                direction: ltr !important;
                unicode-bidi: plaintext !important;
                display: block !important;
                white-space: nowrap !important;
                font-size: .62rem !important;
                letter-spacing: 0 !important;
            }

            .book-store-info-card b,
            .book-store-info-card em,
            .book-store-info-card button,
            .book-store-info-card small {
                display: none !important;
            }

            /* تصغير وتنظيم البحث على الموبايل */
            .book-store-filters {
                display: grid !important;
                grid-template-columns: 1fr 1fr 62px !important;
                gap: 7px !important;
                padding: 9px !important;
                border-radius: 18px !important;
                margin: 8px 0 10px !important;
                align-items: center !important;
            }

            #bookStoreType {
                grid-column: 1 / 2 !important;
                grid-row: 1 !important;
            }

            #bookStoreDivision {
                grid-column: 2 / 3 !important;
                grid-row: 1 !important;
            }

            #bookStoreSearch {
                grid-column: 1 / 3 !important;
                grid-row: 2 !important;
            }

            #applyBookStoreFilters {
                grid-column: 3 / 4 !important;
                grid-row: 1 / 3 !important;
                background: #1F3A2E !important;
                color: #fff !important;
                font-weight: 900 !important;
            }

            #bookStoreType,
            #bookStoreDivision,
            #bookStoreSearch,
            #applyBookStoreFilters {
                height: 40px !important;
                min-height: 40px !important;
                border-radius: 13px !important;
                min-width: 0 !important;
                font-size: .72rem !important;
                padding: 0 8px !important;
            }

            #bookStoreSearch {
                font-size: .78rem !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 06
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .book-store-page .book-product-cover > span.ok,
        .book-store-page .book-product-cover > span.off {
            display: none !important;
        }

        .book-store-page .book-product-cover .book-grade-ribbon {
            position: absolute !important;
            top: 10px !important;
            right: 10px !important;
            left: auto !important;
            max-width: calc(100% - 20px) !important;
            background: rgba(255,255,255,.92) !important;
            color: #1F3A2E !important;
            border: 1px solid rgba(31,58,46,.08) !important;
            border-radius: 999px !important;
            padding: 5px 8px !important;
            font-size: .68rem !important;
            font-weight: 900 !important;
            line-height: 1.2 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            box-shadow: 0 8px 18px rgba(31,58,46,.08) !important;
            z-index: 3 !important;
        }

        .book-store-page .book-price-box small {
            display: none !important;
        }

        @media (max-width: 720px) {
            .book-store-page .book-product-cover .book-grade-ribbon {
                top: 7px !important;
                right: 7px !important;
                max-width: calc(100% - 14px) !important;
                font-size: .54rem !important;
                padding: 4px 6px !important;
            }

            .book-store-hero p {
                display: none !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 07
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        @media (max-width: 720px) {
            .book-store-page .book-store-hero {
                width: 100% !important;
                min-height: 0 !important;
                padding: 18px 16px !important;
                margin: 10px 0 12px !important;
                border-radius: 22px !important;
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 10px !important;
                text-align: center !important;
                align-items: center !important;
                justify-items: center !important;
                overflow: hidden !important;
            }

            .book-store-page .book-store-hero > * {
                max-width: 100% !important;
            }

            .book-store-page .book-store-hero span,
            .book-store-page .book-store-hero .eyebrow {
                font-size: .78rem !important;
                line-height: 1.2 !important;
                margin: 0 !important;
                color: #D6AA4B !important;
                font-weight: 900 !important;
            }

            .book-store-page .book-store-hero h1,
            .book-store-page .book-store-hero h2 {
                font-size: 1.75rem !important;
                line-height: 1.15 !important;
                margin: 0 !important;
                letter-spacing: -.5px !important;
                text-align: center !important;
                white-space: normal !important;
            }

            .book-store-page .book-store-hero p {
                display: none !important;
            }

            .book-store-page .book-store-cart-toggle,
            .book-store-page .book-store-hero button,
            .book-store-page .book-store-hero .cart-button {
                width: min(100%, 270px) !important;
                height: 48px !important;
                min-height: 48px !important;
                border-radius: 16px !important;
                padding: 0 14px !important;
                margin: 4px auto 0 !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 8px !important;
                font-size: 1rem !important;
                font-weight: 900 !important;
                white-space: nowrap !important;
            }

            .book-store-page .book-store-cart-toggle .cart-count,
            .book-store-page .book-store-hero .cart-count {
                width: 30px !important;
                height: 30px !important;
                min-width: 30px !important;
                border-radius: 999px !important;
                display: inline-grid !important;
                place-items: center !important;
                font-size: .9rem !important;
                line-height: 1 !important;
            }

            .book-store-page .book-store-info-strip {
                margin-top: 10px !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 08
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        /*
          شاشة واسعة جدًا:
          الكتب + السلة جنب بعض
          كل عمود يعرض 3 كتب قدر الإمكان
        */
        @media (min-width: 1450px) {
            .book-store-page .book-store-layout {
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) 340px !important;
                gap: 18px !important;
                align-items: start !important;
                width: 100% !important;
            }

            .book-store-page #bookStoreContent {
                grid-column: 1 !important;
                min-width: 0 !important;
                width: 100% !important;
            }

            .book-store-page #bookCartPanel {
                grid-column: 2 !important;
                position: static !important;
                width: 340px !important;
                max-width: 340px !important;
                height: auto !important;
                max-height: none !important;
                overflow: visible !important;
                overflow-y: visible !important;
                overflow-x: visible !important;
                align-self: start !important;
            }

            .book-store-page #bookCartPanel *,
            .book-store-page .book-cart-items,
            .book-store-page .book-checkout-form {
                max-height: none !important;
                overflow: visible !important;
                overflow-y: visible !important;
                overflow-x: visible !important;
            }

            .book-store-page .student-books-top-columns {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 18px !important;
                align-items: start !important;
            }

            .book-store-page .student-book-group-list {
                display: grid !important;
                grid-template-columns: repeat(3, minmax(115px, 1fr)) !important;
                gap: 12px !important;
            }

            .book-store-page .student-book-group.full .student-book-group-list {
                grid-template-columns: repeat(auto-fit, minmax(145px, 185px)) !important;
                justify-content: start !important;
            }
        }

        /*
          لاب صغير / شاشة متوسطة:
          ممنوع السلة تضغط الكتب
          السلة تنزل تحت منطقة الكتب
          كل عمود يعرض كتابين فقط
        */
        @media (min-width: 900px) and (max-width: 1449px) {
            .book-store-page .book-store-layout {
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 18px !important;
                width: 100% !important;
                align-items: start !important;
            }

            .book-store-page #bookStoreContent {
                grid-column: 1 !important;
                width: 100% !important;
                min-width: 0 !important;
            }

            .book-store-page #bookCartPanel {
                grid-column: 1 !important;
                position: static !important;
                width: 100% !important;
                max-width: none !important;
                height: auto !important;
                max-height: none !important;
                overflow: visible !important;
                overflow-y: visible !important;
                overflow-x: visible !important;
                align-self: start !important;
                margin-top: 12px !important;
            }

            .book-store-page #bookCartPanel *,
            .book-store-page .book-cart-items,
            .book-store-page .book-checkout-form {
                max-height: none !important;
                overflow: visible !important;
                overflow-y: visible !important;
                overflow-x: visible !important;
            }

            .book-store-page .student-books-native-layout {
                display: grid !important;
                gap: 18px !important;
                width: 100% !important;
            }

            .book-store-page .student-books-top-columns {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 18px !important;
                align-items: start !important;
                width: 100% !important;
            }

            .book-store-page .student-book-group {
                min-width: 0 !important;
                width: 100% !important;
            }

            .book-store-page .student-book-group-list {
                display: grid !important;
                grid-template-columns: repeat(2, minmax(135px, 1fr)) !important;
                gap: 12px !important;
                align-items: start !important;
            }

            .book-store-page .student-book-group.full .student-book-group-list {
                grid-template-columns: repeat(auto-fit, minmax(150px, 190px)) !important;
                justify-content: start !important;
            }

            .book-store-page .book-product-card {
                width: 100% !important;
                min-width: 0 !important;
                max-width: none !important;
            }
        }

        /*
          أقل من 900:
          نترك قواعد الموبايل/التابلت الحالية هي المسيطرة
          فقط نضمن عدم ظهور سكرول داخلي في السلة
        */
        @media (max-width: 899px) {
            .book-store-page #bookCartPanel {
                max-height: none !important;
                overflow: visible !important;
                overflow-y: visible !important;
                overflow-x: visible !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 09
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .book-store-page .book-price-box,
        .book-store-page .book-product-price,
        .book-store-page .book-product-foot .book-price-box {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            min-height: 52px !important;
            padding: 8px 10px !important;
            white-space: nowrap !important;
            overflow: hidden !important;
        }

        .book-store-page .book-price-box strong,
        .book-store-page .book-product-price strong,
        .book-store-page .book-product-foot .book-price-box strong {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 4px !important;
            white-space: nowrap !important;
            direction: rtl !important;
            unicode-bidi: plaintext !important;
            font-size: 1.05rem !important;
            line-height: 1 !important;
            font-weight: 900 !important;
            width: auto !important;
            max-width: 100% !important;
        }

        .book-store-page .book-price-box small,
        .book-store-page .book-product-price small {
            display: none !important;
        }

        @media (max-width: 720px) {
            .book-store-page .book-price-box,
            .book-store-page .book-product-price,
            .book-store-page .book-product-foot .book-price-box {
                min-height: 44px !important;
                padding: 7px 8px !important;
            }

            .book-store-page .book-price-box strong,
            .book-store-page .book-product-price strong,
            .book-store-page .book-product-foot .book-price-box strong {
                font-size: .9rem !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 10
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        /*
          Student book card:
          سعر أوضح + زر سلة أصغر
        */

        .book-store-page .book-product-foot {
            display: grid !important;
            grid-template-columns: minmax(70px, 1fr) 54px !important;
            gap: 7px !important;
            align-items: stretch !important;
        }

        .book-store-page .book-price-box {
            min-height: 52px !important;
            height: 52px !important;
            padding: 7px 8px !important;
            border-radius: 14px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            white-space: nowrap !important;
            overflow: hidden !important;
        }

        .book-store-page .book-price-box strong {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 4px !important;
            white-space: nowrap !important;
            direction: rtl !important;
            unicode-bidi: plaintext !important;
            font-size: 1rem !important;
            line-height: 1 !important;
            font-weight: 950 !important;
            letter-spacing: 0 !important;
        }

        .book-store-page .book-price-box small {
            display: none !important;
        }

        .book-store-page .book-product-foot button,
        .book-store-page [data-add-book] {
            width: 54px !important;
            min-width: 54px !important;
            max-width: 54px !important;
            height: 52px !important;
            min-height: 52px !important;
            padding: 0 !important;
            border-radius: 14px !important;
            font-size: .68rem !important;
            line-height: 1.1 !important;
            font-weight: 900 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            white-space: normal !important;
            overflow: hidden !important;
        }

        @media (min-width: 1100px) {
            .book-store-page .book-product-foot {
                grid-template-columns: minmax(76px, 1fr) 48px !important;
                gap: 6px !important;
            }

            .book-store-page .book-price-box {
                height: 50px !important;
                min-height: 50px !important;
            }

            .book-store-page .book-price-box strong {
                font-size: .98rem !important;
            }

            .book-store-page .book-product-foot button,
            .book-store-page [data-add-book] {
                width: 48px !important;
                min-width: 48px !important;
                max-width: 48px !important;
                height: 50px !important;
                min-height: 50px !important;
                font-size: .62rem !important;
            }
        }

        @media (max-width: 720px) {
            .book-store-page .book-product-foot {
                grid-template-columns: minmax(68px, 1fr) 48px !important;
                gap: 6px !important;
            }

            .book-store-page .book-price-box {
                height: 48px !important;
                min-height: 48px !important;
                border-radius: 13px !important;
            }

            .book-store-page .book-price-box strong {
                font-size: .88rem !important;
            }

            .book-store-page .book-product-foot button,
            .book-store-page [data-add-book] {
                width: 48px !important;
                min-width: 48px !important;
                max-width: 48px !important;
                height: 48px !important;
                min-height: 48px !important;
                border-radius: 13px !important;
                font-size: .58rem !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 11
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        /*
          Laptop/Desktop only
          تصغير بسيط لكارت السعر عشان زر السلة يدخل جوه مساحة الكتاب
          بدون لمس الموبايل
        */
        @media (min-width: 900px) {
            .book-store-page .book-product-foot {
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) 44px !important;
                gap: 5px !important;
                align-items: stretch !important;
                width: 100% !important;
            }

            .book-store-page .book-price-box {
                width: 100% !important;
                min-width: 0 !important;
                max-width: 100% !important;
                height: 46px !important;
                min-height: 46px !important;
                padding: 6px 7px !important;
                border-radius: 13px !important;
                overflow: hidden !important;
            }

            .book-store-page .book-price-box strong {
                font-size: .92rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
                letter-spacing: 0 !important;
            }

            .book-store-page .book-product-foot button,
            .book-store-page [data-add-book] {
                width: 44px !important;
                min-width: 44px !important;
                max-width: 44px !important;
                height: 46px !important;
                min-height: 46px !important;
                padding: 0 !important;
                border-radius: 13px !important;
                font-size: 0 !important;
                overflow: hidden !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
            }

            .book-store-page .book-product-foot button::before,
            .book-store-page [data-add-book]::before {
                content: "🛒" !important;
                font-size: .95rem !important;
                line-height: 1 !important;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 12
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .book-checkout-validation {
            background: #FFF0EC;
            color: #A33622;
            border: 1px solid rgba(163,54,34,.16);
            border-radius: 14px;
            padding: 10px 12px;
            font-weight: 900;
            line-height: 1.6;
            margin-bottom: 10px;
            text-align: center;
        }

        .book-checkout-validation[hidden] {
            display: none !important;
        }

        #bookGovernorate {
            cursor: pointer;
        }

        .book-checkout label:has(#bookRecipientName)::after {
            content: 'مطلوب اسم ثلاثي لتسهيل تسليم الشحنة';
            color: #8A6A2A;
            font-size: .74rem;
            font-weight: 800;
            margin-top: -4px;
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 13
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .book-store-page .book-store-guest-note {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: center;
            background: #FFF8E6;
            color: #1F3A2E;
            border: 1px solid rgba(184,137,58,.18);
            border-radius: 18px;
            padding: 12px 14px;
            font-weight: 900;
            line-height: 1.7;
        }

        .book-store-page .book-store-guest-note strong {
            color: #B8893A;
            white-space: nowrap;
        }

        .book-store-page .book-store-guest-note span {
            color: #4E4638;
            font-size: .9rem;
        }

        @media (max-width: 720px) {
            .book-store-page .book-store-guest-note {
                display: grid;
                gap: 5px;
                text-align: center;
            }

            .book-store-page .book-store-guest-note strong {
                white-space: normal;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 14
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .book-store-public-page {
            max-width: 1240px;
            margin: 0 auto;
            padding: 18px;
        }

        .book-store-public-page .book-store-layout {
            grid-template-columns: 1fr !important;
        }

        .book-store-public-page #bookCartPanel,
        .book-store-public-page .book-cart-panel {
            display: none !important;
        }

        .book-store-public-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .book-store-public-actions a {
            text-decoration: none;
            border-radius: 14px;
            padding: 11px 15px;
            font-weight: 900;
            background: #D4A95A;
            color: #1F3A2E;
        }

        .book-store-public-actions a:first-child {
            background: #fff;
            color: #1F3A2E;
        }

        .book-store-login-prompt {
            position: fixed;
            inset: 0;
            z-index: 99999;
            display: grid;
            place-items: center;
            padding: 18px;
            background: rgba(9,20,16,.58);
            backdrop-filter: blur(4px);
        }

        .book-store-login-card {
            position: relative;
            width: min(460px, 96vw);
            background: #fff;
            border-radius: 26px;
            padding: 26px;
            text-align: center;
            box-shadow: 0 24px 70px rgba(0,0,0,.22);
            border: 1px solid rgba(212,169,90,.24);
        }

        .book-store-login-close {
            position: absolute;
            top: 12px;
            left: 12px;
            width: 34px;
            height: 34px;
            border: 0;
            border-radius: 999px;
            background: #FAF6EC;
            color: #1F3A2E;
            font-size: 1.4rem;
            cursor: pointer;
        }

        .book-store-login-icon {
            width: 62px;
            height: 62px;
            border-radius: 22px;
            display: grid;
            place-items: center;
            margin: 0 auto 12px;
            background: #1F3A2E;
            color: #D4A95A;
            font-size: 1.8rem;
        }

        .book-store-login-card h3 {
            margin: 0 0 8px;
            color: #1F3A2E;
            font-size: 1.35rem;
        }

        .book-store-login-card p {
            margin: 0;
            color: #6B6255;
            line-height: 1.8;
            font-weight: 800;
        }

        .book-store-login-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 18px;
        }

        .book-store-login-actions a {
            text-decoration: none;
            border-radius: 15px;
            padding: 12px;
            font-weight: 900;
            background: #1F3A2E;
            color: #fff;
        }

        .book-store-login-actions a:last-child {
            background: #D4A95A;
            color: #1F3A2E;
        }

        @media (max-width: 720px) {
            .book-store-public-page {
                padding: 10px;
            }

            .book-store-public-actions,
            .book-store-login-actions {
                display: grid;
                grid-template-columns: 1fr;
            }
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 15
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .book-store-public-page .book-store-guest-note {
            display: none !important;
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 16
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .book-store-public-page .book-store-guest-note {
            display: none !important;
        }
    

/* =========================================================
   EXTRACTED ACTIVE BLOCK 17
   Source: assets/js/views/book-store.js
   Phase: BOOK_STORE_CSS_EXTRACTION_PHASE1A
   Do not consolidate during Phase 1A.
========================================================= */

        .book-store-login-card p {
            max-width: 360px;
            margin: 0 auto !important;
            line-height: 1.75 !important;
            font-size: .98rem !important;
            font-weight: 850 !important;
            color: #5F574B !important;
        }

        .book-store-login-card h3 {
            margin-bottom: 10px !important;
        }


        .book-proof-upload-btn {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            border: 0;
            border-radius: 14px;
            padding: 11px 14px;
            background: #D4A95A;
            color: #1F3A2E;
            font-family: inherit;
            font-weight: 950;
            cursor: pointer;
            text-decoration: none;
        }



        /* UAB_BOOK_STORE_PROOF_NOTICE_V1 */
        .book-store-proof-notice {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 999999;
            min-width: min(460px, calc(100vw - 32px));
            display: grid;
            gap: 4px;
            padding: 14px 18px;
            border-radius: 18px;
            background: #F0FFF5;
            border: 1px solid rgba(16, 185, 129, .25);
            box-shadow: 0 24px 70px rgba(0,0,0,.18);
            color: #14532D;
            font-weight: 900;
            text-align: center;
            direction: rtl;
        }

        .book-store-proof-notice.error {
            background: #FFF1F0;
            border-color: rgba(180, 35, 24, .25);
            color: #8A1C14;
        }

        .book-store-proof-notice strong {
            font-size: .95rem;
        }

        .book-store-proof-notice span {
            font-size: .86rem;
            line-height: 1.7;
        }

/* BOOK_STORE_VISUAL_CONTRACT_PHASE2A_START */

/*
============================================================
BOOK STORE — PREMIUM VISUAL CONTRACT
============================================================
Protected:
- Category division remains intact.
- Floating gold menu and Sidebar are untouched.
- Functional selectors, IDs and data attributes remain unchanged.
============================================================
*/

.book-store-page {
    --bs-ink: #173d2d;
    --bs-ink-deep: #0f2d21;
    --bs-gold: #d2a342;
    --bs-gold-deep: #b98226;
    --bs-ivory: #fbf8f0;
    --bs-ivory-deep: #f3eddf;
    --bs-paper: #ffffff;
    --bs-text: #17382c;
    --bs-muted: #6f746f;
    --bs-border: rgba(23, 61, 45, .10);
    --bs-border-strong: rgba(23, 61, 45, .16);
    --bs-shadow-sm: 0 8px 22px rgba(23, 61, 45, .06);
    --bs-shadow-md: 0 16px 38px rgba(23, 61, 45, .09);
    --bs-shadow-lg: 0 26px 65px rgba(23, 61, 45, .13);
    --bs-radius-sm: 13px;
    --bs-radius-md: 18px;
    --bs-radius-lg: 26px;

    display: grid !important;
    gap: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
    color: var(--bs-text) !important;
}

.book-store-page *,
.book-store-page *::before,
.book-store-page *::after {
    box-sizing: border-box !important;
}

/* ================= HERO ================= */

.book-store-page .book-store-hero {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    min-height: 170px !important;
    padding: 28px 30px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: var(--bs-radius-lg) !important;
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(210,163,66,.26),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            var(--bs-ink-deep),
            #244d3d 58%,
            #173d2d
        ) !important;
    box-shadow: var(--bs-shadow-lg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

.book-store-page .book-store-hero::after {
    content: "" !important;
    position: absolute !important;
    inset-inline-start: -60px !important;
    bottom: -95px !important;
    width: 260px !important;
    height: 260px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow:
        0 0 0 28px rgba(255,255,255,.025),
        0 0 0 58px rgba(255,255,255,.018) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.book-store-page .book-store-hero > div:first-child {
    min-width: 0 !important;
    max-width: 720px !important;
}

.book-store-page .book-store-hero span {
    color: #ebc66f !important;
    font-size: .88rem !important;
    font-weight: 950 !important;
    letter-spacing: .02em !important;
}

.book-store-page .book-store-hero h1,
.book-store-page .book-store-hero h2 {
    margin: 7px 0 5px !important;
    color: #fff !important;
    font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
    line-height: 1.25 !important;
    font-weight: 950 !important;
}

.book-store-page .book-store-hero p {
    max-width: 650px !important;
    margin: 0 !important;
    color: rgba(255,255,255,.76) !important;
    font-size: .94rem !important;
    line-height: 1.75 !important;
    font-weight: 700 !important;
}

.book-store-page .book-store-cart-toggle {
    flex: 0 0 auto !important;
    min-width: 180px !important;
    min-height: 58px !important;
    padding: 13px 20px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(
            135deg,
            #e2b553,
            var(--bs-gold)
        ) !important;
    color: var(--bs-ink-deep) !important;
    box-shadow: 0 16px 30px rgba(0,0,0,.16) !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
}

.book-store-page .book-store-cart-toggle strong {
    min-width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: var(--bs-ink-deep) !important;
    color: #f4cf7b !important;
    display: inline-grid !important;
    place-items: center !important;
}

/* ================= TRUST BAR ================= */

.book-store-page .book-store-info-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.book-store-page .book-store-info-card,
.book-store-page .book-store-info-loading {
    position: relative !important;
    min-height: 94px !important;
    padding: 17px 18px !important;
    overflow: hidden !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 21px !important;
    background:
        linear-gradient(
            145deg,
            #fff,
            #fdfbf6
        ) !important;
    box-shadow: var(--bs-shadow-sm) !important;
}

.book-store-page .book-store-info-card::after {
    content: "" !important;
    position: absolute !important;
    inset-inline-end: -22px !important;
    bottom: -34px !important;
    width: 95px !important;
    height: 95px !important;
    border-radius: 50% !important;
    background: rgba(210,163,66,.065) !important;
    pointer-events: none !important;
}

.book-store-page .book-store-info-card {
    display: grid !important;
    align-content: center !important;
    gap: 6px !important;
}

.book-store-page .book-store-info-card > span,
.book-store-page .book-store-info-card > strong:first-child {
    color: var(--bs-ink) !important;
    font-size: .9rem !important;
    font-weight: 950 !important;
}

.book-store-page .book-store-info-card small,
.book-store-page .book-store-info-card em,
.book-store-page .book-store-info-card b {
    color: var(--bs-gold-deep) !important;
    font-weight: 900 !important;
}

/* ================= FILTERS ================= */

.book-store-page .book-store-filters {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    grid-template-columns:
        minmax(260px, 1.5fr)
        minmax(175px, .7fr)
        minmax(175px, .7fr)
        auto !important;
    gap: 10px !important;
    padding: 14px !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: var(--bs-shadow-md) !important;
}

.book-store-page .book-store-filters input,
.book-store-page .book-store-filters select {
    min-width: 0 !important;
    min-height: 49px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--bs-border-strong) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--bs-text) !important;
    font-size: .91rem !important;
    font-weight: 750 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.book-store-page .book-store-filters input:focus,
.book-store-page .book-store-filters select:focus {
    border-color: rgba(210,163,66,.72) !important;
    box-shadow: 0 0 0 4px rgba(210,163,66,.12) !important;
}

.book-store-page .book-store-filters button {
    min-width: 90px !important;
    min-height: 49px !important;
    padding: 10px 17px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--bs-ink) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(23,61,45,.15) !important;
    font-size: .92rem !important;
    font-weight: 950 !important;
}

/* ================= MAIN LAYOUT ================= */

.book-store-page .book-store-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 18px !important;
    align-items: start !important;
}

.book-store-page #bookStoreContent {
    min-width: 0 !important;
    width: 100% !important;
}

.book-store-page .book-store-grade-note {
    margin: 0 0 14px !important;
    padding: 15px 18px !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: var(--bs-shadow-sm) !important;
    color: var(--bs-text) !important;
    font-size: .96rem !important;
    line-height: 1.7 !important;
}

/* ============================================================
   PROTECTED CATEGORY DIVISION
   Keeps Explanation and Exercises as separate visual groups.
   align-items:start prevents artificial equal-height blank space.
============================================================ */

.book-store-page .student-books-native-layout {
    display: grid !important;
    gap: 16px !important;
    width: 100% !important;
}

.book-store-page .student-books-top-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
}

.book-store-page .student-book-group {
    align-self: start !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(
            180deg,
            #fff,
            #fefdf9
        ) !important;
    box-shadow: var(--bs-shadow-md) !important;
}

.book-store-page .student-book-group-title {
    min-height: 53px !important;
    margin: 0 0 12px !important;
    padding: 11px 14px !important;
    border-radius: 15px !important;
    background:
        linear-gradient(
            135deg,
            var(--bs-ink),
            #214c3a
        ) !important;
    color: #fff !important;
    box-shadow: 0 9px 18px rgba(23,61,45,.14) !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.book-store-page .student-book-group-list {
    display: grid !important;
    grid-template-columns:
        repeat(auto-fit, minmax(145px, 1fr)) !important;
    gap: 11px !important;
    align-items: stretch !important;
}

.book-store-page
.student-book-group.full
.student-book-group-list {
    grid-template-columns:
        repeat(auto-fit, minmax(160px, 210px)) !important;
    justify-content: start !important;
}

/* ================= PRODUCT CARDS ================= */

.book-store-page .book-product-card {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 11px 28px rgba(23,61,45,.08) !important;
    display: flex !important;
    flex-direction: column !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease !important;
}

@media (hover: hover) {
    .book-store-page .book-product-card:hover {
        transform: translateY(-3px) !important;
        border-color: rgba(210,163,66,.32) !important;
        box-shadow: 0 18px 36px rgba(23,61,45,.13) !important;
    }
}

.book-store-page .book-product-cover {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 210 / 297 !important;
    overflow: hidden !important;
    background:
        linear-gradient(
            145deg,
            #f8f3e7,
            #eee5d2
        ) !important;
}

.book-store-page .book-product-cover img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.book-store-page
.book-product-cover
.book-grade-ribbon {
    top: 9px !important;
    right: 9px !important;
    left: auto !important;
    max-width: calc(100% - 18px) !important;
    padding: 5px 9px !important;
    border: 1px solid rgba(23,61,45,.09) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.94) !important;
    color: var(--bs-ink) !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.07) !important;
    font-size: .66rem !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.book-store-page .book-product-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
}

.book-store-page .book-product-body h3 {
    min-height: 2.8em !important;
    margin: 0 0 7px !important;
    overflow: hidden !important;
    color: var(--bs-text) !important;
    font-size: .95rem !important;
    line-height: 1.42 !important;
    font-weight: 950 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.book-store-page .book-product-body p {
    min-height: 0 !important;
    margin: 0 0 9px !important;
    overflow: hidden !important;
    color: var(--bs-muted) !important;
    font-size: .79rem !important;
    line-height: 1.55 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.book-store-page .book-product-tags {
    min-height: 28px !important;
    margin: 0 0 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

.book-store-page .book-product-tags span {
    max-width: 100% !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: var(--bs-ivory) !important;
    color: var(--bs-ink) !important;
    font-size: .65rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

.book-store-page .book-product-foot {
    margin-top: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    gap: 7px !important;
    align-items: stretch !important;
}

.book-store-page .book-price-box {
    min-width: 0 !important;
    min-height: 45px !important;
    padding: 7px 9px !important;
    border-radius: 13px !important;
    background:
        linear-gradient(
            135deg,
            #fbf6e9,
            #f6edda
        ) !important;
    color: var(--bs-ink) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.book-store-page .book-price-box strong {
    margin: 0 !important;
    color: var(--bs-ink-deep) !important;
    font-size: .94rem !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

.book-store-page [data-add-book] {
    min-width: 48px !important;
    width: 48px !important;
    min-height: 45px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: var(--bs-ink) !important;
    color: #fff !important;
    box-shadow: 0 9px 18px rgba(23,61,45,.15) !important;
    font-size: 0 !important;
    font-weight: 950 !important;
}

.book-store-page [data-add-book]::before {
    content: "🛒" !important;
    font-size: 1rem !important;
}

.book-store-page [data-add-book]:disabled {
    opacity: .43 !important;
    cursor: not-allowed !important;
}

/* ================= CART ================= */

.book-store-page #bookCartPanel,
.book-store-page .book-cart-panel {
    position: sticky !important;
    top: 18px !important;
    width: 100% !important;
    max-width: 330px !important;
    height: auto !important;
    max-height: calc(100dvh - 36px) !important;
    padding: 16px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 23px !important;
    background:
        linear-gradient(
            180deg,
            #fff,
            #fdfbf6
        ) !important;
    box-shadow: var(--bs-shadow-md) !important;
    scrollbar-width: thin !important;
}

.book-store-page .book-cart-head {
    margin-bottom: 12px !important;
    padding-bottom: 11px !important;
    border-bottom: 1px solid var(--bs-border) !important;
}

.book-store-page .book-cart-head span {
    color: var(--bs-gold-deep) !important;
    font-size: .78rem !important;
    font-weight: 950 !important;
}

.book-store-page .book-cart-head h3 {
    margin: 3px 0 0 !important;
    color: var(--bs-text) !important;
    font-size: 1.05rem !important;
    font-weight: 950 !important;
}

.book-store-page .book-cart-empty {
    min-height: 110px !important;
    padding: 20px 14px !important;
    border: 1px dashed rgba(23,61,45,.15) !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.72) !important;
    color: var(--bs-muted) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.75 !important;
}

.book-store-page .book-cart-items {
    max-height: 260px !important;
    padding-inline-end: 2px !important;
    overflow-y: auto !important;
    display: grid !important;
    gap: 8px !important;
}

.book-store-page .book-cart-item {
    padding: 8px !important;
    border: 1px solid rgba(23,61,45,.07) !important;
    border-radius: 14px !important;
    background: var(--bs-ivory) !important;
}

.book-store-page .book-cart-summary {
    margin: 12px 0 !important;
    padding: 11px !important;
    border: 1px solid rgba(23,61,45,.07) !important;
    border-radius: 15px !important;
    background: #f7f2e6 !important;
}

.book-store-page .book-cart-summary div {
    min-height: 29px !important;
    color: var(--bs-text) !important;
    font-size: .82rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.book-store-page .book-cart-summary .total {
    margin-top: 4px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--bs-border-strong) !important;
    color: var(--bs-ink-deep) !important;
    font-size: .92rem !important;
    font-weight: 950 !important;
}

/* ================= CHECKOUT ================= */

.book-store-page .book-checkout {
    display: grid !important;
    gap: 9px !important;
}

.book-store-page .book-checkout h4 {
    margin: 6px 0 1px !important;
    color: var(--bs-text) !important;
    font-size: .96rem !important;
    font-weight: 950 !important;
}

.book-store-page .book-checkout label {
    display: grid !important;
    gap: 5px !important;
    color: var(--bs-text) !important;
    font-size: .76rem !important;
    font-weight: 900 !important;
}

.book-store-page .book-checkout input,
.book-store-page .book-checkout select,
.book-store-page .book-checkout textarea {
    width: 100% !important;
    min-height: 43px !important;
    padding: 9px 11px !important;
    border: 1px solid var(--bs-border-strong) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--bs-text) !important;
    font-size: .82rem !important;
    outline: 0 !important;
}

.book-store-page .book-checkout textarea {
    min-height: 78px !important;
    resize: vertical !important;
}

.book-store-page .book-checkout input:focus,
.book-store-page .book-checkout select:focus,
.book-store-page .book-checkout textarea:focus {
    border-color: rgba(210,163,66,.7) !important;
    box-shadow: 0 0 0 3px rgba(210,163,66,.11) !important;
}

.book-store-page .final-submit-actions {
    width: 100% !important;
    margin-top: 8px !important;
    display: grid !important;
}

.book-store-page
.final-submit-actions
#submitBookOrder {
    width: 100% !important;
    min-height: 49px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background:
        linear-gradient(
            135deg,
            var(--bs-ink),
            #23503d
        ) !important;
    color: #fff !important;
    box-shadow: 0 11px 22px rgba(23,61,45,.17) !important;
    font-size: .95rem !important;
    font-weight: 950 !important;
}

/* ================= OTHER GRADES / STATES ================= */

.book-store-page .book-store-other-grades {
    padding: 16px 18px !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 21px !important;
    background: #fff !important;
    box-shadow: var(--bs-shadow-sm) !important;
}

.book-store-page .book-store-other-grades strong {
    color: var(--bs-text) !important;
    font-size: .95rem !important;
    font-weight: 950 !important;
}

.book-store-page .book-store-other-grades p {
    color: var(--bs-muted) !important;
    font-size: .84rem !important;
}

.book-store-page .book-store-other-grades button {
    min-height: 45px !important;
    border-radius: 14px !important;
    background: linear-gradient(
        135deg,
        #e0b04d,
        var(--bs-gold)
    ) !important;
    color: var(--bs-ink-deep) !important;
    font-weight: 950 !important;
}

.book-store-page .book-store-loading,
.book-store-page .book-store-empty,
.book-store-page .book-store-error {
    min-height: 150px !important;
    padding: 28px !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 21px !important;
    background: #fff !important;
    box-shadow: var(--bs-shadow-sm) !important;
    color: var(--bs-text) !important;
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
}

/* ================= TABLET ================= */

@media (max-width: 1099px) {
    .book-store-page .book-store-layout {
        grid-template-columns: 1fr !important;
    }

    .book-store-page #bookCartPanel,
    .book-store-page .book-cart-panel {
        position: static !important;
        top: auto !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .book-store-page .book-store-filters {
        grid-template-columns:
            minmax(220px, 1fr)
            repeat(2, minmax(160px, .7fr))
            auto !important;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 720px) {
    .book-store-page {
        gap: 13px !important;
        padding-inline: 8px !important;
        overflow-x: hidden !important;
    }

    .book-store-page .book-store-hero {
        min-height: 0 !important;
        padding: 19px 16px !important;
        border-radius: 23px !important;
        display: grid !important;
        gap: 13px !important;
        text-align: center !important;
    }

    .book-store-page .book-store-hero > div:first-child {
        max-width: none !important;
    }

    .book-store-page .book-store-hero h1,
    .book-store-page .book-store-hero h2 {
        margin: 5px 0 3px !important;
        font-size: 1.9rem !important;
        line-height: 1.25 !important;
    }

    .book-store-page .book-store-hero p {
        margin-inline: auto !important;
        max-width: 95% !important;
        font-size: .79rem !important;
        line-height: 1.6 !important;
    }

    .book-store-page .book-store-cart-toggle {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 49px !important;
        border-radius: 16px !important;
    }

    .book-store-page .book-store-info-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .book-store-page .book-store-info-card,
    .book-store-page .book-store-info-loading {
        min-width: 0 !important;
        min-height: 88px !important;
        height: 88px !important;
        max-height: 88px !important;
        padding: 8px 5px !important;
        border-radius: 16px !important;
        text-align: center !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
    }

    .book-store-page .book-store-info-card > span,
    .book-store-page .book-store-info-card > strong:first-child {
        width: 100% !important;
        overflow: hidden !important;
        font-size: .66rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .book-store-page .book-store-info-card small,
    .book-store-page .book-store-info-card em,
    .book-store-page .book-store-info-card b {
        max-width: 100% !important;
        overflow: hidden !important;
        font-size: .60rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .book-store-page .book-store-filters {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
        border-radius: 19px !important;
    }

    .book-store-page #bookStoreSearch {
        grid-column: 1 / -1 !important;
        order: -1 !important;
    }

    .book-store-page .book-store-filters input,
    .book-store-page .book-store-filters select {
        min-height: 43px !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
        font-size: .78rem !important;
    }

    .book-store-page .book-store-filters button {
        min-width: 0 !important;
        min-height: 43px !important;
        padding: 8px 12px !important;
        border-radius: 12px !important;
        font-size: .82rem !important;
    }

    .book-store-page .book-store-grade-note {
        padding: 15px !important;
        border-radius: 18px !important;
        font-size: .96rem !important;
        line-height: 1.75 !important;
        text-align: center !important;
    }

    /*
      Protected category split remains two columns.
      Groups do not stretch to matching heights.
    */
    .book-store-page .student-books-top-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
        align-items: start !important;
    }

    .book-store-page .student-book-group {
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 7px !important;
        border-radius: 18px !important;
    }

    .book-store-page .student-book-group-title {
        min-height: 49px !important;
        margin-bottom: 8px !important;
        padding: 8px 5px !important;
        border-radius: 13px !important;
        font-size: .78rem !important;
        line-height: 1.25 !important;
    }

    .book-store-page .student-book-group-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .book-store-page
    .student-book-group.full
    .student-book-group-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .book-store-page .book-product-card {
        border-radius: 16px !important;
    }

    .book-store-page .book-product-cover {
        aspect-ratio: 210 / 297 !important;
    }

    .book-store-page .book-product-body {
        padding: 9px !important;
    }

    .book-store-page .book-product-body h3 {
        min-height: 2.7em !important;
        margin-bottom: 5px !important;
        font-size: .86rem !important;
        line-height: 1.35 !important;
        -webkit-line-clamp: 2 !important;
    }

    .book-store-page .book-product-body p {
        min-height: 0 !important;
        margin-bottom: 7px !important;
        font-size: .68rem !important;
        line-height: 1.45 !important;
        -webkit-line-clamp: 2 !important;
    }

    .book-store-page .book-product-tags {
        min-height: 24px !important;
        margin-bottom: 7px !important;
        gap: 4px !important;
    }

    .book-store-page .book-product-tags span {
        padding: 4px 6px !important;
        font-size: .58rem !important;
    }

    .book-store-page .book-product-foot {
        grid-template-columns: minmax(0, 1fr) 43px !important;
        gap: 5px !important;
    }

    .book-store-page .book-price-box {
        min-height: 41px !important;
        padding: 6px 5px !important;
    }

    .book-store-page .book-price-box strong {
        font-size: .8rem !important;
    }

    .book-store-page [data-add-book] {
        min-width: 43px !important;
        width: 43px !important;
        min-height: 41px !important;
        border-radius: 12px !important;
    }

    .book-store-page #bookCartPanel,
    .book-store-page .book-cart-panel {
        border-radius: 20px !important;
        padding: 13px !important;
    }

    .book-store-page .book-store-other-grades {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 11px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .book-store-page .book-store-other-grades button {
        width: 100% !important;
    }
}

@media (max-width: 390px) {
    .book-store-page {
        padding-inline: 5px !important;
    }

    .book-store-page .student-books-top-columns {
        gap: 7px !important;
    }

    .book-store-page .student-book-group {
        padding: 6px !important;
    }

    .book-store-page .book-product-body {
        padding: 8px 7px !important;
    }

    .book-store-page .book-product-body h3 {
        font-size: .81rem !important;
    }

    .book-store-page .book-product-body p {
        font-size: .64rem !important;
    }
}

/* BOOK_STORE_VISUAL_CONTRACT_PHASE2A_END */
