/* The Den — original category illustrations and accessible, mobile-first shop cards. */
body:has(.den-shop-intro) .page-head{background:linear-gradient(125deg,#100f38,#47276b 65%,#1a1644);color:#fff}
body:has(.den-shop-intro) .page-head h1{font-size:clamp(36px,5vw,64px);font-weight:800;letter-spacing:-.03em}
body:has(.den-shop-intro) .page-head h1 em{font-style:normal;color:#ffe29b}
body:has(.den-shop-intro) .page-head p{max-width:790px;color:#e9e4fb}
.den-shop-intro{display:grid;grid-template-columns:1.3fr .7fr;gap:24px;align-items:center;background:linear-gradient(120deg,#191844,#4b296c);color:#fff;padding:clamp(22px,4vw,42px);border:1px solid #8d61aa;border-radius:23px;margin-bottom:26px;box-shadow:0 18px 42px #21153b30}
.den-shop-intro h2{font-family:Georgia,serif;font-size:clamp(25px,3vw,38px);color:#ffe4a1;margin:8px 0 13px}
.den-shop-intro p{max-width:570px;color:#f4eafa;font-size:16px;line-height:1.6}
.den-shop-hero-visual img{display:block;width:100%;max-height:260px;aspect-ratio:640/460;object-fit:cover;border:2px solid #eacb80;border-radius:18px}
.den-shop-categories{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0}
.den-shop-categories a{display:inline-flex;padding:10px 17px;background:#f8efff;border:1px solid #dbc7f4;color:#3b2460;font-weight:800;border-radius:99px;text-decoration:none}
.den-shop-categories a:hover,.den-shop-categories a:focus-visible{background:#4a2671;color:#fff}
.teacher-disclaimer{background:#fff8e8;padding:17px 22px;border-radius:15px;border-left:4px solid #dbad50;color:#3c3150;margin:18px 0 30px;line-height:1.55}
.book-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;align-items:stretch;margin:20px 0 35px}
.book-category{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:18px;background:#fff;border:1px solid #ded4e8;box-shadow:0 12px 30px #27133d17;transition:transform .2s,box-shadow .2s;scroll-margin-top:110px}
.book-category:hover{transform:translateY(-3px);box-shadow:0 18px 35px #27133d28}
.den-category-image{width:100%;height:auto;aspect-ratio:640/460;object-fit:cover;display:block;background:#241a4b}
.den-category-content{padding:22px 21px 26px;display:flex;flex:1;flex-direction:column}
.den-category-content h2{font-size:clamp(21px,2vw,26px);line-height:1.2;color:#2c2056;margin:0 0 8px}
.den-category-note{color:#776b87;font-size:12px;margin:0 0 20px}
.book-category .book-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.book-category .book-list li{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:14px 12px;background:#f7f4fc;border:1px solid #ebe4f1;border-radius:12px}
.book-category .book-list li span{font-weight:700;font-size:14px;color:#2a2550;line-height:1.4}
.book-category .book-list a{display:inline-flex;align-items:center;min-height:36px;padding:8px 12px;border-radius:8px;background:#39245c;color:#fff;font-size:12px;font-weight:800;text-decoration:none}
.book-category .book-list a:hover,.book-category .book-list a:focus-visible{background:#6b3d95}
.book-category .den-category-content > p:not(.den-category-note){font-size:14px;color:#544b62}
.nav .nav-shop{border:1px solid #eac36e;padding:8px 12px;border-radius:10px;color:#ffe29b!important;background:#34214d}
.nav .nav-shop:hover{background:#62407c;color:#fff!important}
@media(min-width:881px) and (max-width:1560px){.header-inner{gap:10px;padding-block:9px;flex-wrap:wrap}.nav{gap:9px;flex-wrap:wrap;justify-content:flex-end}.nav a{font-size:11px}.brand{min-width:205px}}
@media(max-width:1050px){.book-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.book-columns{grid-template-columns:1fr}.den-shop-intro{grid-template-columns:1fr}.den-shop-hero-visual img{max-height:220px}.den-category-content{padding:20px}.den-shop-categories a{font-size:13px;padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.book-category{transition:none}}

/* Product-first photography replacing the old illustrated shop categories. */
.den-real-cover-hero{display:flex;gap:10px;align-items:center;justify-content:center;padding:15px;min-height:270px;background:linear-gradient(135deg,#1b1238,#362452);border:1px solid #caa75c;border-radius:18px}
.den-real-cover-hero img{display:block;min-width:0;width:30%;height:235px!important;max-height:none!important;object-fit:contain!important;aspect-ratio:auto!important;background:#fff;border:1px solid #d2bedf;border-radius:7px;box-shadow:0 11px 18px #0007;transform:rotate(-5deg)}
.den-real-cover-hero img:nth-child(2){transform:translateY(-12px);z-index:1}
.den-real-cover-hero img:nth-child(3){transform:rotate(5deg)}
.den-shop-hero-visual .den-real-cover-hero img{border-radius:7px}
.den-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;list-style:none;margin:18px 0 4px;padding:0}
.den-product-card{min-width:0;display:flex;flex-direction:column;background:#fff;border-radius:15px;overflow:hidden;border:1px solid #ddd4e7;box-shadow:0 6px 17px #28133b17}
.den-product-cover{min-height:250px;display:flex;align-items:center;justify-content:center;padding:15px;background:linear-gradient(#fff,#f7f5fb);text-decoration:none}
.den-product-cover img{display:block;width:100%;height:245px;max-width:215px;object-fit:contain;filter:drop-shadow(0 8px 7px #28133a2d)}
.den-image-missing{min-height:155px;display:flex;align-items:center;justify-content:center;color:#574866;background:#f7f4fa;border:1px dashed #b6a5c7;border-radius:10px;padding:14px;text-align:center;font-weight:700;font-size:13px;line-height:1.5}
.den-image-missing[hidden]{display:none!important}
.den-product-details{display:flex;flex:1;flex-direction:column;padding:15px}
.den-product-details h3{font-size:16px;line-height:1.45;min-height:42px;color:#1a1b35;margin:0 0 8px}
.den-cover-caption{font-size:12px;line-height:1.45;color:#5c536d;margin:0 0 14px}
.den-product-buy{display:block;text-align:center;margin-top:auto;padding:12px 8px;border-radius:9px;font-size:13px;font-weight:850;color:#24162f!important;text-decoration:none;background:linear-gradient(130deg,#ffe29a,#edba68)}
.den-product-buy:hover,.den-product-buy:focus-visible{background:#f7d289;text-decoration:underline}
.book-category{display:block}
.book-category .den-category-content{width:100%}
.book-category .den-category-note{margin:8px 0}
@media(max-width:900px){.den-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.den-real-cover-hero img{height:170px!important}}
@media(max-width:490px){.den-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.den-product-cover{padding:8px;min-height:170px}.den-product-cover img{height:160px}.den-product-details{padding:9px}.den-product-details h3{font-size:13px;min-height:0}.den-cover-caption{font-size:11px}.den-real-cover-hero{padding:5px;gap:5px;min-height:160px}.den-real-cover-hero img{height:150px!important}}

/* One full-width category per section; multiple real products inside. */
body:has(.den-product-grid) .book-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:26px}
body:has(.den-product-grid) .book-category{display:block;overflow:visible;padding:clamp(16px,3vw,26px)}
body:has(.den-product-grid) .book-category .den-category-content{padding:0}
body:has(.den-product-grid) .den-product-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
@media(max-width:490px){body:has(.den-product-grid) .den-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
