/* Dëshmia Studio 3.1 — catalog controls, cart toolbar, interactive book. */
.ds-store .bl-catalog-layout{grid-template-columns:264px minmax(0,1fr);gap:28px;align-items:start}
.ds-store .bl-filter-drawer{padding:22px;border-radius:16px;box-shadow:0 12px 40px #20202008;min-width:0}
.ds-store .bl-filter-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 22px;padding:0 0 19px;line-height:1.4}
.ds-store .bl-filter-title strong{font-size:14px;font-weight:700;letter-spacing:-.02em}
.ds-store .bl-filter-title a{flex:none;font-size:11px;padding:5px 0 5px 8px;border:0;color:#806433;text-decoration:underline;text-underline-offset:3px}
.ds-store .bl-filter-form>.field{gap:8px;margin:0}
.ds-store .bl-filter-form .field label{font-size:12px;font-weight:600;color:#514b41}
.ds-store .bl-filter-form .field input{height:44px;padding:10px 12px;border:1px solid #dedbd5;background:#fdfdfc;border-radius:9px;width:100%;min-width:0;font-size:13px}
.ds-store .bl-filter-group{padding:20px 0;border-bottom:1px solid #ebe8e2;min-width:0}
.ds-store .bl-filter-group>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:#49463f;cursor:pointer;list-style:none;min-height:24px}
.ds-store .bl-filter-group>summary::after{content:'+';font-size:18px;font-weight:400;color:#97815b;line-height:1}
.ds-store .bl-filter-group[open]>summary::after{content:'−'}
.ds-store .bl-filter-choice{display:flex;align-items:center;gap:10px;min-height:38px;margin:12px 0 0;cursor:pointer;font-size:12px;color:#62605c;line-height:1.5}
.ds-store .bl-filter-choice input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:0 0 18px;width:18px;height:18px;border:1px solid #c9c4ba;border-radius:5px;background:white;margin:0;display:grid;place-content:center;cursor:pointer;box-shadow:inset 0 1px 2px #22222206}
.ds-store .bl-filter-choice input:checked{background:var(--ds-metal);border-color:#9a7a40}
.ds-store .bl-filter-choice input:checked::after{content:'';width:8px;height:5px;border-left:2px solid #382e1d;border-bottom:2px solid #382e1d;transform:translateY(-1px) rotate(-45deg)}
.ds-store .bl-filter-choice small{margin-left:auto;font-size:10px;border-radius:4px;background:#f5f4f1;padding:2px 6px}
.ds-store .bl-price-inputs{display:grid;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr);gap:7px;align-items:end;margin-top:15px;min-width:0}
.ds-store .bl-price-inputs>label{display:flex;flex-direction:column;gap:7px;min-width:0}
.ds-store .bl-price-inputs>label>span{font-size:11px;color:#827765;font-weight:500}
.ds-store .bl-price-inputs>span{align-self:end;display:flex;align-items:center;justify-content:center;height:43px;font-size:11px;color:#b4aea4}
.ds-store .bl-price-inputs input{width:100%;min-width:0;height:43px;box-sizing:border-box;border:1px solid #dcd8d0;border-radius:8px;padding:10px 9px;background:#fbfbfa;color:#37332a;font-size:13px;line-height:1;appearance:textfield;-moz-appearance:textfield;box-shadow:inset 0 1px 2px #11111103}
.ds-store .bl-price-inputs input::-webkit-inner-spin-button,.ds-store .bl-price-inputs input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.ds-store .bl-price-inputs input:focus,.ds-store .bl-filter-form .field input:focus{border-color:#aa8a4e;outline:2px solid #b99c621f;outline-offset:1px}
/* One visual track, two keyboard/touch reachable handles. Native JS hooks retained. */
.ds-store .bl-price-sliders{position:relative;height:34px;display:block;margin:15px 10px 0;--ds-range-low:0%;--ds-range-high:100%}
.ds-store .bl-price-sliders::before{content:'';position:absolute;top:15px;left:0;right:0;height:4px;border-radius:4px;background:linear-gradient(to right,#e5e2dc 0% var(--ds-range-low),#ad8c4f var(--ds-range-low) var(--ds-range-high),#e5e2dc var(--ds-range-high) 100%)}
.ds-store .bl-price-sliders input[type=range]{-webkit-appearance:none;appearance:none;position:absolute;inset:0;width:100%;height:34px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;pointer-events:none}
.ds-store .bl-price-sliders input[type=range]::-webkit-slider-runnable-track{background:transparent;height:4px;border:0}
.ds-store .bl-price-sliders input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;pointer-events:auto;width:18px;height:18px;margin-top:-7px;border:2px solid white;border-radius:50%;background:var(--ds-metal);box-shadow:0 0 0 1px #b09765,0 2px 5px #9b7c3438;cursor:ew-resize}
.ds-store .bl-price-sliders input[type=range]::-moz-range-track{height:4px;background:transparent;border:0}
.ds-store .bl-price-sliders input[type=range]::-moz-range-thumb{pointer-events:auto;width:15px;height:15px;border:2px solid white;border-radius:50%;background:#b2955b;box-shadow:0 0 0 1px #a3864e;cursor:ew-resize}
.ds-store .bl-price-sliders input[type=range]:focus-visible{outline:1px dashed #b09a70;outline-offset:5px}
.ds-store .bl-filter-form[data-ds-price-empty="1"] .bl-price-sliders{display:none!important}
.ds-store .ds-filter-price-note{font-size:11px;line-height:1.65;color:#827c70;margin:12px 0 0}
.ds-store .bl-filter-form>.btn{margin-top:20px;width:100%;min-height:44px;font-size:12px;white-space:normal}
.ds-store .bl-catalog-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;padding:3px 0 17px;border-bottom:1px solid #e7e5df;min-width:0}
.ds-store .bl-catalog-toolbar>p{margin:0;color:#888075;font-size:12px}
.ds-store .bl-catalog-toolbar>label{display:flex;align-items:center;gap:11px;font-size:11px;color:#766c5a}
.ds-store .bl-catalog-toolbar select{min-height:40px;max-width:210px;border:1px solid #dedbd4;border-radius:8px;background:#fcfbf9;padding:7px 12px;color:#504b42;font-size:12px}
/* Cart header: keep the existing refresh behaviour; change only its presentation. */
.ds-store .drawer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 24px;border-bottom:1px solid #e8e3da;background:linear-gradient(120deg,#faf9f6,#fff)}
.ds-store .drawer-head>div:first-child{min-width:0}
.ds-store .drawer-head .eyebrow{font-size:9px;letter-spacing:.18em;margin:0 0 8px;color:#988058}
.ds-store .drawer-head h2{margin:0 0 7px;font-size:29px;line-height:1.15;letter-spacing:-.045em}
.ds-store .drawer-head [data-cart-count-label]{display:block;font-size:11px;color:#8e877b}
.ds-store .ds-cart-tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.ds-store .ds-cart-tools button{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:1px solid #dfd9cd;border-radius:10px;background:var(--ds-silver);color:#807053;cursor:pointer;box-shadow:inset 0 1px 0 white;transition:border-color .2s,box-shadow .2s}
.ds-store .ds-cart-tools button:hover{border-color:#b59b68;box-shadow:0 3px 10px #9b865b17}
.ds-store .ds-cart-tools button .icon{width:17px;height:17px}
.ds-store .ds-cart-tools button[aria-busy=true] .icon{animation:ds-cart-spin .85s linear infinite}
.ds-store .ds-cart-tools button:disabled{cursor:wait;opacity:.6}
@keyframes ds-cart-spin{to{transform:rotate(360deg)}}
/* The closed covers preserve the original V3 composition. */
.ds-store button.ds-book{display:block;margin:0;padding:0;border:0;border-radius:5px;background:transparent;color:inherit;text-align:inherit;font:inherit;cursor:pointer}
.ds-store button.ds-book:focus-visible{outline:2px solid #a88a4f;outline-offset:10px}
.ds-store .ds-book-open-label{position:absolute;left:20%;right:20%;bottom:-26px;display:block;text-align:center;padding:4px 8px;font:10px/1.4 DS Sans,Arial,sans-serif;letter-spacing:.06em;color:#756347;background:#fffefaeb;border:1px solid #d3c4a3;border-radius:20px;white-space:nowrap;opacity:0;transform:translateY(-5px);transition:opacity .2s,transform .2s}
.ds-store .ds-book:hover .ds-book-open-label,.ds-store .ds-book:focus-visible .ds-book-open-label{opacity:1;transform:translateY(0)}
.ds-store .ds-art-caption strong{color:#76613b}.ds-store .ds-art-caption{flex-wrap:wrap;row-gap:4px}
/* Book reading room. Native dialog traps focus and restores it on close. */
.ds-store .ds-book-dialog{width:min(1050px,calc(100vw - 40px));max-width:none;max-height:calc(100svh - 36px);padding:0;border:1px solid #e4ded2;border-radius:20px;background:#f6f5f1;color:#292725;box-shadow:0 40px 120px #0006;overflow:auto;overscroll-behavior:contain}
.ds-store .ds-book-dialog:not([open]){display:none}
.ds-store .ds-book-dialog::backdrop{background:#161519b3;backdrop-filter:blur(7px)}
.ds-store.ds-reading-open{overflow:hidden}
.ds-store .ds-reader-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 30px;background:#fff;border-bottom:1px solid #e6e1d6}
.ds-store .ds-reader-title small{display:block;font-size:9px;letter-spacing:.19em;color:#9e8150;text-transform:uppercase;margin-bottom:4px}
.ds-store .ds-reader-head h2{font:26px/1.15 Georgia,serif;letter-spacing:-.03em;margin:0;color:#34302b}
.ds-store .ds-reader-tools{display:flex;gap:8px;align-items:center;flex:none}
.ds-store .ds-reader-tools button{height:38px;min-width:38px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:1px solid #ddd6ca;background:var(--ds-silver);border-radius:9px;color:#746044;cursor:pointer;font-size:11px}
.ds-store .ds-reader-tools .icon{width:17px;height:17px}
.ds-store .ds-reader-tools button[aria-pressed=false]{color:#787470;background:#f5f4f1}
.ds-store .ds-reader-stage{perspective:1800px;position:relative;padding:32px 30px 26px;overflow:hidden;touch-action:pan-y pinch-zoom;background:radial-gradient(ellipse at 50% 80%,#dedbd1aa,transparent 72%)}
.ds-store .ds-reader-book{position:relative;width:100%;max-width:820px;height:390px;margin:0 auto;transform-style:preserve-3d;border-radius:5px 8px 8px 5px;background:#2c2b2c;border:5px solid #2e2e30;box-shadow:0 2px 0 #a9a397,0 5px 0 #f7f5eb,0 7px 0 #b9b3a6,0 26px 45px #2822162e}
.ds-store .ds-reader-spread{display:grid;grid-template-columns:1fr 1fr;height:100%;position:relative;background:#fdfbf5}
.ds-store .ds-reader-page{min-width:0;height:100%;overflow:hidden;position:relative;padding:32px 35px;display:flex;flex-direction:column;justify-content:center;text-align:left;background:linear-gradient(90deg,#eeeae0,#fffef9 7%,#fdfbf5 86%,#e8e1d2 100%)}
.ds-store .ds-reader-page--right{background:linear-gradient(90deg,#dcd4c2,#f8f5ed 6%,#fffef9 19%,#fdfaf2 92%,#e8e2d5)}
.ds-store .ds-reader-page--left::after{content:'';position:absolute;right:0;top:0;bottom:0;width:1px;background:#aca28b65}
.ds-store .ds-reader-page small{display:block;font:9px/1.5 DS Sans,Arial,sans-serif;letter-spacing:.15em;text-transform:uppercase;color:#9b845c;margin:0 0 17px}
.ds-store .ds-reader-page h3{font:33px/1.12 Georgia,serif;letter-spacing:-.04em;color:#393129;margin:0 0 20px;overflow-wrap:anywhere}
.ds-store .ds-reader-page p{font:13px/1.85 DS Sans,Arial,sans-serif;color:#776d5d;margin:0 0 14px}
.ds-store .ds-reader-page .ds-reader-monogram{width:106px;height:125px;object-fit:contain;margin:0 auto 22px;filter:drop-shadow(0 1px 1px #81693a20)}
.ds-store .ds-reader-page.ds-reader-title-page{text-align:center;background:linear-gradient(90deg,#f1ece1,#fdfbf5 15%,#fffefa 85%,#e6dfd0)}
.ds-store .ds-reader-title-page h3{font-size:31px;text-transform:uppercase;letter-spacing:.015em;margin:0 0 5px}
.ds-store .ds-reader-title-page p{font-size:10px;letter-spacing:.36em;text-transform:uppercase}
.ds-store .ds-page-number{position:absolute;bottom:13px;left:25px;right:25px;font:10px Georgia,serif;color:#aa9b7e;text-align:center}
.ds-store .ds-reader-page .ds-page-line{width:40px;height:1px;background:#c7ae7d;margin:3px 0 18px}
.ds-store .ds-reader-cover,.ds-store .ds-reader-leaf{position:absolute;z-index:6;top:0;left:50%;width:50%;height:100%;transform-style:preserve-3d;transform-origin:left center;transition:transform .9s cubic-bezier(.2,.65,.2,1);pointer-events:none}
.ds-store .ds-reader-cover{transform:rotateY(0deg)}
.ds-store .ds-reader-cover.is-open{transform:rotateY(-180deg)}
.ds-store .ds-reader-cover-face,.ds-store .ds-leaf-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.ds-store .ds-reader-cover-front{border-radius:2px 5px 5px 2px;border:1px solid #685637;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(120deg,#343437,#17171a 35%,#343438 62%,#18181a);box-shadow:inset 8px 0 10px #0003,0 8px 15px #0003}
.ds-store .ds-reader-cover-front::after{content:'';position:absolute;inset:22px;border:1px solid #b49a6385;border-radius:85px 85px 0 0;pointer-events:none}
.ds-store .ds-reader-cover-front img{width:120px;height:150px;object-fit:contain;position:relative}
.ds-store .ds-reader-cover-front small{font-size:9px;letter-spacing:.24em;color:#cfb37c;margin:26px 0 0}
.ds-store .ds-reader-cover-back,.ds-store .ds-leaf-back{transform:rotateY(180deg)}
.ds-store .ds-book-dialog[data-edition=silver] .ds-reader-cover-front{background:var(--ds-silver);border-color:#c2bdb2;box-shadow:inset 8px 0 10px #70695318,0 8px 15px #0002}
.ds-store .ds-book-dialog[data-edition=silver] .ds-reader-cover-front small{color:#806a44}
.ds-store .ds-reader-leaf{transition:transform .62s cubic-bezier(.2,.55,.3,1);z-index:7}
.ds-store .ds-leaf-face{background:#fffdf5;box-shadow:6px 1px 15px #2222}
.ds-store .ds-leaf-face>.ds-reader-page{width:100%}
.ds-store .ds-reader-controls{display:flex;justify-content:center;align-items:center;gap:22px;padding:6px 22px 20px}
.ds-store .ds-reader-controls button{width:43px;height:40px;padding:0;border:1px solid #d4c6ac;border-radius:9px;display:grid;place-items:center;background:var(--ds-silver);color:#806638;cursor:pointer}
.ds-store .ds-reader-controls button:disabled{opacity:.32;cursor:default}
.ds-store .ds-reader-controls button .icon{width:18px;height:18px}
.ds-store .ds-reader-pagination{min-width:104px;text-align:center;font-size:11px;line-height:1.6;color:#847455;letter-spacing:.02em}
.ds-store .ds-reader-bottom{padding:17px 25px 20px;border-top:1px solid #e5dfd3;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}
.ds-store .ds-reader-bottom p{font-size:11px;line-height:1.7;margin:0;color:#918673;max-width:450px}
.ds-store .ds-reader-bottom .ds-btn{flex:none;font-size:11px;min-height:40px;padding:8px 16px}
.ds-store .ds-reader-credit{font-size:9px;color:#999286;padding:0 25px 12px;margin-top:-7px;background:#fff}
.ds-store .ds-reader-credit summary{cursor:pointer;display:inline;font-size:9px}
.ds-store .ds-reader-credit a{text-decoration:underline;text-underline-offset:2px}
@media(max-width:1024px){.ds-store .bl-catalog-layout{grid-template-columns:240px minmax(0,1fr);gap:22px}.ds-store .bl-filter-drawer{padding:18px}.ds-store .ds-reader-page{padding:27px}.ds-store .ds-reader-page h3{font-size:29px}}
@media(max-width:760px){.ds-store .bl-catalog-layout{grid-template-columns:minmax(0,1fr);gap:20px}.ds-store .bl-filter-drawer{padding:0;overflow:hidden}.ds-store .bl-filter-drawer>summary{display:flex;align-items:center;gap:10px;min-height:49px;padding:13px 17px;font-size:12px;color:#665433;background:var(--ds-silver);list-style:none;cursor:pointer}.ds-store .bl-filter-drawer>summary>span{margin-left:auto}.ds-store .bl-filter-form{padding:20px}.ds-store .bl-filter-title{margin-bottom:18px}.ds-store .bl-price-inputs{grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);gap:10px}.ds-store .bl-filter-form input:not([type=checkbox]):not([type=range]){font-size:16px}.ds-store .bl-catalog-toolbar{gap:10px}.ds-store .bl-catalog-toolbar>label{gap:7px}.ds-store .bl-catalog-toolbar select{max-width:170px}.ds-store .drawer-head{padding:20px;gap:12px}.ds-store .drawer-head h2{font-size:27px}.ds-store .ds-cart-tools{gap:6px}.ds-store .ds-cart-tools button{width:36px;height:36px}}
@media(max-width:600px){.ds-store .ds-book-dialog{width:calc(100vw - 20px);max-height:calc(100svh - 20px);border-radius:16px}.ds-store .ds-reader-head{padding:16px 17px;gap:10px}.ds-store .ds-reader-head h2{font-size:24px}.ds-store .ds-reader-title small{font-size:8px;letter-spacing:.11em}.ds-store .ds-reader-tools{gap:6px}.ds-store .ds-reader-tools button{width:35px;min-width:35px;height:35px;padding:0}.ds-store .ds-reader-tools button span{display:none}.ds-store .ds-reader-stage{padding:22px 18px 19px}.ds-store .ds-reader-book{height:360px;max-width:380px;border-width:4px}.ds-store .ds-reader-spread{display:block}.ds-store .ds-reader-page--left{display:none}.ds-store .ds-reader-page--right{width:100%;padding:26px 28px}.ds-store .ds-reader-page h3{font-size:29px}.ds-store .ds-reader-page p{font-size:13px;line-height:1.75}.ds-store .ds-reader-cover,.ds-store .ds-reader-leaf{left:0;width:100%}.ds-store .ds-reader-cover-back>.ds-reader-page{display:flex}.ds-store .ds-reader-cover-front img{width:116px;height:146px}.ds-store .ds-reader-controls{gap:25px;padding-bottom:15px}.ds-store .ds-reader-bottom{padding:15px 17px;display:block;text-align:center}.ds-store .ds-reader-bottom p{font-size:10px;margin:0 auto 11px}.ds-store .ds-reader-bottom .ds-btn{width:100%}.ds-store .ds-reader-credit{font-size:9px;text-align:center;padding:0 15px 12px;margin-top:0}.ds-store .ds-book-open-label{display:none}.ds-store .ds-art-caption>span:not(.ds-caption-dot){display:none}}
@media(prefers-reduced-motion:reduce){.ds-store .ds-reader-cover,.ds-store .ds-reader-leaf{transition:none!important}.ds-store .ds-cart-tools button[aria-busy=true] .icon{animation:none}.ds-store .ds-book-open-label{transition:none}}
