/* KZN warm bookstore theme: presentation only, original product and brand assets retained. */
@media(min-width:768px){header .language-switch{position:relative;padding-left:16px!important}header .language-switch:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);height:24px;width:1px;background:#d4c5b2}}
:root{--ink:#49382e;--navy:#49382e;--yellow:#e6bb61;--paper:#faf6ee;--muted:#77685c;--warm-line:#ded4c6;--warm-card:#fffdf9;color-scheme:light}
body{color:var(--ink);background:var(--paper)}
header{background:#fffdf8;color:var(--ink);border-bottom:1px solid #e8dfd2}header a{color:var(--ink)}
nav a:hover{color:#8e5b32;text-decoration-color:#c99645;text-underline-offset:7px}
.language-switch{border-color:var(--warm-line);border-radius:8px}.language-switch button{color:var(--ink);border-radius:5px}.language-switch button[aria-pressed=true]{background:var(--ink);color:#fffdf9}
h1,h2{letter-spacing:-.035em}html[lang=zh-Hans] h1,html[lang=zh-Hans] h2{font-family:'Songti SC','Noto Serif CJK SC','SimSun',serif;font-weight:600;letter-spacing:.015em}
.hero,.smart{background:#eee3d1;color:var(--ink)}.hero .eyebrow,.intro,.hero-bottom,.smart-copy>p:not(.eyebrow),.board-figure figcaption{color:#77604c}.hero h1 em,.smart h2 em{color:#9b672e}.smart li{border-color:#cdbda8}.smart li:before{color:#97682d}.hero-visual:after{background:linear-gradient(0deg,#49382eb3,transparent 65%)}.image-caption{color:#fffdf8}
.button,.publisher-catalog-link{border-radius:7px;background:var(--yellow);color:var(--ink)}.button:hover,.publisher-catalog-link:hover{background:#edc879}.ribbon{background:#eed49b;letter-spacing:.1em}.yellow-label{background:#e6bb61}
.catalog,.book-catalog,.contact-page{background:var(--paper);color:var(--ink)}.category-intro{padding-bottom:20px}.category-intro h1{color:var(--ink)}.catalog{padding-top:40px}.catalog h2{font-size:clamp(30px,3.2vw,46px)}.eyebrow{color:#946c36}.catalog-intro,.books-intro,.catalog-count,.catalog-note,.books-note,.product-category,.book-subject-label,.contact-heading>p:last-child,.contact-details dt{color:var(--muted)}
.catalog-controls input,.catalog-controls select,.book-controls input,.book-controls select,input,select,textarea{color:var(--ink);background:#fffdf9;border-color:#d3c6b5;border-radius:7px}.catalog-controls,.book-controls{border-color:var(--warm-line)}
.product-card,.book-card{background:var(--warm-card);border:1px solid var(--warm-line);border-radius:10px;overflow:hidden;box-shadow:0 3px 12px #49382e05}.product-open{border:0;background:var(--warm-card);color:var(--ink)}.product-open:hover{box-shadow:inset 0 0 0 1px #bd9a69}.product-open img,.book-cover-frame{background:#fff}.book-reader{border-color:var(--warm-line)}.product-action{border-color:var(--warm-line)}
.quote-add,.book-card>.quote-add,.product-card>.quote-add,.books-more,.books-clear,.catalog-more,.catalog-clear,.quote-next,.quote-picker button,.book-promo-action{background:#49382e;color:#fffdf9;border-radius:6px}.book-card>.quote-add,.product-card>.quote-add{width:calc(100% - 16px);margin:0 8px 8px;min-height:44px}.quote-add:hover,.quote-next:hover,.books-more:hover,.catalog-more:hover,.book-promo-action:hover{background:#674a36}
.quote-account-link{background:#f4e3bd;border:1px solid #d8be8b;box-shadow:none;border-radius:9px}.quote-account-link:hover{background:#eed8a9}.quote-cart-bar{background:#f4e3bd;color:var(--ink);border-color:#d8be8b}.quote-picker,.catalog dialog{background:var(--warm-card);color:var(--ink);border-radius:12px}.catalog dialog::backdrop,.quote-picker::backdrop{background:#33271fc2}
.page-back,.category,.category:last-child,.contact-details>div,.contact-location{border-color:var(--warm-line)}.back-home{color:var(--ink);background:#fffdf9;border-color:var(--warm-line);box-shadow:none}.back-arrow{background:#eed49b}.round-arrow,.tags span{border-color:#d1c2af}.round-arrow:hover{background:#eed49b}
.catalog-share,.catalog-share-status,.contact-map-link{color:var(--ink);border-color:var(--warm-line)}.catalog-share-actions button,.catalog-share-actions a{color:var(--ink);border-color:var(--warm-line)}.catalog-share-actions .catalog-share-whatsapp{color:#176142}.book-card>.catalog-share,.book-card-utilities{border-color:var(--warm-line)}
.publisher-promos{box-shadow:0 10px 30px #49382e08;border-radius:10px;overflow:hidden}.poster-controls{background:#f3e9d7;border-color:var(--warm-line)}.poster-controls button{color:var(--ink)}.poster-tabs button[aria-pressed=true],.poster-tabs button[aria-pressed=true]:hover{background:var(--ink);color:#fffdf9}.poster-transport button{border-color:#d3c6b5}.publisher-catalog{background:#f1e9db}.publisher-catalog-card{background:var(--warm-card);border-color:var(--warm-line);border-radius:10px}
.contact-help{background:#49382e;border-radius:12px}.contact-help>p{color:#e9ddcf}.contact-primary{background:#e6bb61;color:#49382e;border-radius:7px}.contact-k{color:#e6bb61}.contact-secondary{color:#fffdf9}
footer{background:#eee0c6;color:var(--ink);border-top:1px solid #dfcdae}.music-player,.music-toggle{background:#49382e;color:#fffdf9}
/* Member forms share the palette without changing registration or price permissions. */
.auth-card,.auth-aside,.panel{border-color:var(--warm-line)}.auth-card{background:var(--warm-card)}.auth-card button:not(.auth-password-toggle),.auth-submit{background:#49382e;color:#fffdf9}.auth-card .auth-password-toggle{color:var(--ink);background:transparent}.auth-card .auth-password-toggle:hover{background:#f3e9d7}.auth-card .auth-tabs button{background:#f1e9db;color:var(--ink)}.auth-card .auth-tabs button[aria-selected=true]{background:#49382e;color:#fffdf9}.auth-card a{color:#855c30}.auth-divider,.auth-google p,.muted{color:var(--muted)}
@media(max-width:767px){.catalog{padding:30px 12px 45px}.category-intro{padding-bottom:12px}.product-grid,.books-grid{gap:12px 8px}.product-open{padding:8px}.product-open h3{margin-bottom:10px}.product-card,.book-card{border-radius:8px}.book-card>.quote-add,.product-card>.quote-add{width:calc(100% - 12px);margin:0 6px 6px;padding:11px 5px;font-size:12px}.book-card-utilities{padding-left:6px;padding-right:6px}}
.auth-page{background:var(--paper)}.auth-page header{background:#fffdf8;color:var(--ink)}.auth-page header nav button{color:var(--ink)}.auth-page header nav button:hover{border-color:#cbb694}.auth-card .auth-tabs button{background:transparent;color:#77685c}.auth-card .auth-tabs button[aria-pressed=true]{color:#49382e;border-bottom-color:#c99645}.auth-card .auth-text-link{background:transparent;color:#855c30}.auth-intro,.auth-hint,.auth-privacy,.auth-steps,.auth-back,.auth-support,.auth-sent p{color:var(--muted)}.auth-card .auth-remember input{accent-color:#49382e}.auth-card .auth-submit:hover{background:#674a36}.auth-card input{border-color:#d3c6b5;background:#fffdf9}.music-player .music-toggle{background:#49382e;color:#fffdf9}.music-player .music-toggle:hover{background:#674a36}.music-player .music-icon{background:#e6bb61;color:#49382e}.music-player .music-equalizer i{background:#e6bb61}
/* Reference A component pass: compact chrome, quiet panels, aligned actions. */
header{padding:16px 4%;gap:18px;min-height:86px}header .brand .brand-wordmark{width:220px;max-height:64px;object-fit:contain}header nav{gap:22px}header nav a{padding:10px 0}header nav a[aria-current=page]{background:#eeeddf;box-shadow:0 3px 0 #c99645;border-radius:5px;padding:10px 12px}header .quote-account-link{width:auto;max-width:none;min-height:44px;padding:8px 12px;margin:0;background:transparent;border:0;box-shadow:none;order:3}header .quote-account-link svg,header .quote-account-link small,header .quote-account-arrow{display:none}header .quote-account-copy strong{font-size:14px}header .language-switch{border:0;padding:0}header .language-switch button{min-width:32px;padding:8px}.site-menu-toggle,.mobile-filter-toggle{display:none}
.category-site .page-back{padding:15px 5%;border:0}.category-site .category-intro{padding-top:20px;padding-bottom:0}.category-site .category-intro h1{font-size:32px}.category-site .catalog>.eyebrow{display:none}.category-site .catalog{padding-top:22px}.category-site .catalog>h2{font-size:clamp(25px,2.5vw,36px)}.catalog-layout{gap:28px}.catalog-filters{background:#f0e8db;border:1px solid #e4d9c9;border-radius:10px;padding:20px;align-self:start}.catalog-filters .catalog-filter-title{font-size:22px}.catalog-filters .catalog-controls{gap:12px;margin-top:20px}.catalog-filters input,.catalog-filters select{padding:12px;font-size:14px;min-height:46px}.catalog-filters .catalog-share-filters{margin-bottom:0}.catalog-results .catalog-count{margin-top:0}.grid-density{gap:6px;margin:0 0 18px}.grid-density button{background:#fffdf8;border:1px solid #ded4c6;border-radius:5px;color:#49382e;min-width:40px;min-height:40px}.grid-density button[aria-pressed=true]{background:#eed49b;border-color:#d3b372;color:#49382e}.product-open{padding:10px 10px 0}.product-open h3{font-size:15px;line-height:1.5;margin-bottom:10px}.product-open .product-action{padding-top:8px;margin-bottom:0;font-size:12px}.product-category{margin:10px 0 5px}.product-card>.catalog-share{padding:0 8px;margin:0;border:0;color:#49382e}.product-card>.catalog-share .catalog-share-caption{display:none}.product-card>.catalog-share .catalog-share-actions{justify-content:flex-end;gap:0}.product-card>.catalog-share .catalog-share-actions a,.product-card>.catalog-share .catalog-share-actions button{border:0;background:transparent;color:#49382e;padding:8px;min-height:44px;width:44px;flex:none}.product-card>.catalog-share svg{display:block;width:25px;height:25px}.product-card>.catalog-share .catalog-share-status:empty{display:none}.product-card>.quote-add,.book-card>.quote-add{margin-top:auto;font-size:14px;letter-spacing:.02em}.catalog-pagination button{border:1px solid #d3c6b5;border-radius:6px;background:#49382e;color:#fffdf9}.catalog-pagination button:disabled{background:#e5dccf;color:#77685c}
@media(max-width:767px){header{padding:12px 16px;gap:10px;min-height:70px}header .brand{flex:1;margin:0}header .brand .brand-wordmark{width:160px;max-height:50px}header .language-switch{order:4;margin:0 auto;width:auto}header .quote-account-link{order:2;padding:8px 2px}header .quote-account-copy strong{font-size:11px;max-width:100px}.site-menu-toggle{display:block;border:1px solid #ded4c6;border-radius:6px;background:transparent;color:#49382e;min-width:44px;min-height:44px;padding:8px;font:600 12px Arial,sans-serif}header nav{display:none!important}header.navigation-open nav{display:flex!important;order:5;padding-top:8px;border-top:1px solid #e4d9c9}header nav a[aria-current=page]{padding:8px}.category-site .page-back{padding:10px 16px}.category-site .category-intro{padding:14px 16px 0}.category-site .category-intro h1{font-size:28px}.category-site .catalog{padding-top:16px}.category-site .catalog>h2{font-size:25px}.catalog-intro{margin:8px 0 18px;font-size:14px}.catalog-layout{gap:16px}.catalog-filters{width:100%;padding:12px 14px}.catalog-filters .catalog-filter-title{display:none}.mobile-filter-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;background:transparent;color:#49382e;font:600 15px Arial,sans-serif;min-height:44px;text-align:left;padding:0}.catalog-filters.filters-collapsed>:not(.mobile-filter-toggle){display:none}.catalog-filters .catalog-controls{margin-top:10px}.catalog-filters .catalog-share-filters{padding-top:12px}.product-open{padding:7px 7px 0}.product-open h3{font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3em}.product-open .the-lab-option{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card>.catalog-share{padding:0 4px}.product-card>.catalog-share .catalog-share-actions a,.product-card>.catalog-share .catalog-share-actions button{width:40px;min-height:40px;padding:8px}.product-card>.catalog-share svg{width:23px;height:23px}.product-card>.quote-add,.book-card>.quote-add{font-size:12px}.grid-density{display:none}.catalog-results .catalog-count{margin-bottom:12px}.product-grid{gap:14px 8px}}
@media print{body{background:#fff}.quote-add{box-shadow:none}}
@media(min-width:768px) and (max-width:1150px){header{padding:12px 3%;gap:10px}header .brand .brand-wordmark{width:170px}header nav{gap:12px;font-size:12px}header nav a[aria-current=page]{padding:8px}header .language-switch button{min-width:28px;padding:7px;font-size:11px}header .quote-account-link{padding:8px 0}header .quote-account-copy strong{font-size:11px}}
/* Compact mobile navigation with consistent touch targets. */
@media(max-width:767px){body:not(.auth-page)>header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0 12px;padding:8px 16px 6px;min-height:0;border-bottom:1px solid #e8dfd1}header .site-menu-toggle{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:#f3ece1;padding:0;width:44px;height:44px}header .brand{grid-column:2;grid-row:1;min-width:0;justify-self:center;display:flex;align-items:center;justify-content:center}header .brand .brand-wordmark{width:158px;max-width:100%;height:auto;max-height:48px}header .quote-account-link{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #e5d9c8;border-radius:12px;background:#fbf7ef}header .quote-account-link>svg{display:block;width:23px;height:23px}header .quote-account-copy{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}header .language-switch{grid-column:1/-1;grid-row:2;justify-self:center;margin:5px 0 0;display:flex;align-items:center;gap:3px;padding:0;border:0}header .language-switch button{min-width:44px;min-height:32px;padding:4px 9px;font-size:11px;border-radius:8px;line-height:1.3}header.navigation-open .site-menu-toggle{background:#49382e;color:#fffaf2}header.navigation-open nav{grid-column:1/-1;grid-row:3;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:9px;padding-top:10px;border-top:1px solid #e4d9c9;width:100%;max-width:100%;box-sizing:border-box}header.navigation-open nav a{display:flex;align-items:center;min-height:44px;padding:8px 10px;margin:0;border-radius:9px;font-size:13px;line-height:1.4}header .site-menu-toggle:focus-visible,header .quote-account-link:focus-visible{outline:2px solid #b57b25;outline-offset:3px}}

.music-player{background:transparent!important;border-radius:999px}.music-player .music-toggle{border-radius:999px}#book-catalog .book-card{background:#f3ecdf}#book-catalog .book-reader{background:transparent}#book-catalog .book-reader>.book-publisher-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;font-weight:600;line-height:1.4;min-height:2.8em;margin:10px 12px 4px;color:#80613f}#book-catalog .book-reader>h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:normal;word-break:normal;font-size:14px;line-height:1.45;min-height:2.9em;max-height:2.9em;margin:0 12px 8px;text-wrap:pretty}#book-catalog .book-reader>.book-grade{align-self:flex-start;display:block;white-space:nowrap;border:1px solid #d8c6aa;border-radius:5px;background:#fffbf2;color:#624b32;font-size:12px;font-weight:600;line-height:1.3;padding:4px 8px;margin:0 12px 6px}#book-catalog .book-reader>.book-subject-label{font-size:10px;margin:0 12px 10px;line-height:1.4;color:#77685c}#book-catalog .book-card-utilities{border-top:1px solid #e0d4c0;background:transparent}@media(max-width:767px){#book-catalog .book-reader>.book-publisher-name{font-size:10px;margin:8px 8px 4px}#book-catalog .book-reader>h3{font-size:12px;margin:0 8px 7px}#book-catalog .book-reader>.book-grade{font-size:11px;padding:4px 6px;margin:0 8px 5px}#book-catalog .book-reader>.book-subject-label{margin:0 8px 8px}}
#book-catalog .book-card-utilities .catalog-share-caption{display:none}#book-catalog .book-card-utilities>.catalog-share{grid-template-columns:minmax(0,1fr)}#book-catalog .book-card-utilities .catalog-share-actions{justify-content:flex-end}
body:has(#book-catalog) .publisher-promos{width:calc(100% - 8vw);max-width:none;margin-left:auto;margin-right:auto}body:has(#book-catalog) #book-catalog{padding:30px 4% 65px}#book-catalog>.eyebrow{margin-bottom:12px}.books-heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.books-heading-row h1{font-size:clamp(28px,3vw,42px);flex:1;min-width:0}.books-heading-row .page-back{padding:0!important;border:0;flex-shrink:0}.books-heading-row .back-home{padding:6px 10px;min-height:38px;font-size:12px;gap:7px}.books-heading-row .back-arrow{width:26px;height:26px}#book-catalog>.books-intro{margin:10px 0 20px;max-width:820px;font-size:14px}#book-catalog .book-layout{margin-top:16px}@media(max-width:767px){body:has(#book-catalog) .publisher-promos{width:calc(100% - 24px)}body:has(#book-catalog) #book-catalog{padding:22px 12px 45px}.books-heading-row{align-items:flex-start;gap:10px}.books-heading-row h1{font-size:25px}.books-heading-row .back-home{padding:5px 7px;font-size:10px;gap:4px}.books-heading-row .back-arrow{width:22px;height:22px}#book-catalog>.eyebrow{font-size:10px;margin-bottom:10px}#book-catalog>.books-intro{font-size:12px;margin:8px 0 14px}}
.category .round-arrow{border-color:#cfbda5;background:#fffaf0;color:#624b32;box-shadow:0 2px 6px #49382e05}.category .round-arrow svg{display:block;width:21px;height:21px;flex-shrink:0;transition:transform .2s ease}.category:hover .round-arrow{background:#eed49b;border-color:#c99a55}@media(hover:hover){.category:hover .round-arrow svg{transform:translate(2px,-2px)}}@media(prefers-reduced-motion:reduce){.category .round-arrow svg{transition:none;transform:none!important}}

/* Shared external-link arrow: drawn paths stay identical across browsers. */
.site-external-arrow{display:inline-block;width:1em;height:1em;flex:none;vertical-align:-.12em;margin-inline-start:.32em;overflow:visible;pointer-events:none}
.contact-k>.site-external-arrow,.round-arrow>.site-external-arrow{margin:0}
/* Align book prices with the publisher, title, grade and subject. */
#book-catalog .book-reader>.book-price-em{margin-left:12px;margin-right:12px}
@media(max-width:767px){#book-catalog .book-reader>.book-price-em{margin-left:8px;margin-right:8px}}
.smart li:before{content:"";display:inline-block;width:1em;height:1em;vertical-align:-.12em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M6 6h12v12'/%3E%3C/svg%3E") center/contain no-repeat}

/* Book filter heading and reset action share one row with room above search. */
#book-catalog .catalog-filters{padding-top:12px}
#book-catalog .book-filter-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px;min-height:34px}
#book-catalog .book-filter-header .catalog-filter-title{margin:0;font-size:22px;line-height:1.25}
html[lang=ms] #book-catalog .book-filter-header .catalog-filter-title{font-size:20px;white-space:nowrap}
#book-catalog .books-reset{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:34px;padding:6px 8px;border:1px solid #d8c6aa;border-radius:6px;background:#fffaf2;color:#624b32;font:600 12px/1.2 Manrope,Arial,sans-serif;cursor:pointer}
#book-catalog .books-reset:hover{background:#eed49b;border-color:#c99a55}
#book-catalog .books-reset:focus-visible{outline:2px solid #b57b25;outline-offset:3px}
@media(max-width:767px){#book-catalog .catalog-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px}#book-catalog .catalog-filters>.mobile-filter-toggle{grid-column:1;grid-row:1;min-width:0}#book-catalog .book-filter-header{grid-column:2;grid-row:1;margin:0}#book-catalog .catalog-filters.filters-collapsed>.book-filter-header{display:flex}#book-catalog .catalog-filters>.book-controls,#book-catalog .catalog-filters>.catalog-share{grid-column:1/-1}#book-catalog .catalog-filters:not(.filters-collapsed)>.book-controls{margin-top:14px}#book-catalog .books-reset{min-height:40px}}

/* Submit search explicitly with Enter or the search button. */
#book-catalog .book-search-form{position:relative;display:flex;grid-column:1/-1;min-width:0;margin:0}
#book-catalog .book-search-form input{padding-right:49px}
#book-catalog .book-search-submit{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ink);cursor:pointer}
#book-catalog .book-search-submit:hover{background:var(--warm-line)}
#book-catalog .books-toolbar{scroll-margin-top:24px}

/* Shared product lift and image zoom, matching the book shelf. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body:not(.rich-motion-off) .product-card {
    transition: translate 0.3s ease, box-shadow 0.3s ease;
  }
  body:not(.rich-motion-off) .product-card .product-open > img {
    transition: scale 0.3s ease;
  }
  body:not(.rich-motion-off) .product-card:is(:hover, :focus-within) {
    translate: 0 -8px;
    box-shadow: 0 15px 35px rgb(0 0 0 / 15%);
  }
  body:not(.rich-motion-off) .product-card:is(:hover, :focus-within) .product-open > img {
    scale: 1.05;
  }
}
