/* MyGuide Commerce: scoped, mobile-first, accessible across all three layouts. */
:root{--shop-ink:#172747;--shop-muted:#64748b;--shop-violet:#6843d1;--shop-violet-deep:#43228f;--shop-border:#e5e7f0;--shop-surface:#fff;--shop-soft:#f7f5fe;--shop-shadow:0 16px 55px rgba(36,28,77,.11)}
.shop-section,.shop-hero,.shop-floating-root,.shop-user,.shop-admin{box-sizing:border-box;color:var(--shop-ink)}
.shop-section *, .shop-hero *, .shop-floating-root *{box-sizing:border-box}
.shop-section{padding:clamp(24px,5vw,68px) 0;min-width:0}
.shop-container-narrow{max-width:900px!important;margin-inline:auto}
.shop-hero{padding:clamp(68px,11vw,138px) 0 78px;background:radial-gradient(ellipse at 90% 10%,#ddd0ff 0%,transparent 39%),linear-gradient(125deg,#192d52 0%,#3d2d70 66%,#673fa2 100%);color:white;position:relative;overflow:hidden}
.shop-hero>.container{position:relative;z-index:1}.shop-hero h1{font-size:clamp(2.45rem,6.6vw,5.6rem);max-width:820px;letter-spacing:-.05em;line-height:1.08;font-weight:800;color:white;margin:19px 0 18px}
.shop-hero p{font-size:clamp(1.03rem,2vw,1.25rem);max-width:610px;color:#e1dcf5;line-height:1.7}.shop-eyebrow{font-size:.74rem;font-weight:800;letter-spacing:.17em;color:#8b61e5;text-transform:uppercase}
.shop-hero .shop-eyebrow{color:#e7d4a6}.shop-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:12px;padding:13px 20px;font-weight:750;text-decoration:none!important;white-space:normal;text-align:center;min-height:44px;cursor:pointer;font-size:.94rem;transition:background .2s,transform .2s,color .2s}
.shop-button:hover:not(:disabled){transform:translateY(-1px)}.shop-button:focus-visible,.shop-add:focus-visible,.shop-fab:focus-visible,.shop-icon-btn:focus-visible{outline:3px solid #eab651;outline-offset:3px}
.shop-button-primary{background:var(--shop-violet);color:white!important}.shop-button-primary:hover{background:var(--shop-violet-deep)}.shop-button-ghost{border-color:rgba(255,255,255,.45);color:white!important;background:rgba(255,255,255,.12)}.shop-button-light{background:#f4f1fb;color:var(--shop-violet-deep)!important}.shop-button:disabled,.shop-disabled{opacity:.5;pointer-events:none}
.shop-section-top,.shop-admin-top{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:26px}.shop-section-top h2,.shop-admin-top h1{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;letter-spacing:-.035em;margin:6px 0;color:var(--shop-ink)}.shop-admin-top p{color:var(--shop-muted);margin:0}
.shop-filters{display:grid;grid-template-columns:minmax(170px,2.5fr) repeat(3,minmax(132px,1fr)) auto;align-items:stretch;gap:10px;margin:25px 0 28px;padding:15px;border:1px solid var(--shop-border);border-radius:17px;background:#fff}
.shop-filters label{position:relative;min-width:0;margin:0}.shop-filters input,.shop-filters select{width:100%;min-width:0;border:1px solid #e1dfeb;border-radius:10px;padding:12px 13px;background:white;color:var(--shop-ink);min-height:46px;font:inherit}.shop-filters .shop-search input{padding-inline-start:37px}.shop-search i{position:absolute;inset-inline-start:13px;top:13px;color:#807793}.shop-filter-button{background:#ede8fa;color:var(--shop-violet-deep)}
.shop-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.shop-product-card{border-radius:17px;background:#fff;border:1px solid var(--shop-border);overflow:hidden;min-width:0;box-shadow:0 6px 22px rgba(30,35,60,.04);transition:transform .2s,box-shadow .2s}.shop-product-card:hover{transform:translateY(-3px);box-shadow:var(--shop-shadow)}
.shop-card-cover{display:flex;aspect-ratio:4/4.5;background:linear-gradient(135deg,#f6f3fb,#e7e0f6);position:relative;align-items:center;justify-content:center;overflow:hidden}.shop-cover{width:100%;height:100%;object-fit:cover;display:block}.shop-cover-placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(130deg,#e7d8fe,#d9e9f9);color:#7455ab;font-size:3.5rem}
.shop-card-badge{position:absolute;top:12px;inset-inline-start:12px;padding:4px 10px;border-radius:30px;background:#f5fffd;color:#125749;font-size:.76rem;font-weight:750}
.shop-product-info{padding:15px;display:flex;flex-direction:column;min-height:178px}.shop-card-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;font-weight:780;color:var(--shop-violet)}.shop-product-info h3{margin:7px 0 5px;font-size:1rem;font-weight:770;line-height:1.4;overflow-wrap:anywhere}.shop-product-info h3 a{color:var(--shop-ink);text-decoration:none}.shop-byline{font-size:.82rem;color:var(--shop-muted);margin:0 0 14px;overflow-wrap:anywhere}.shop-card-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:7px}.shop-card-bottom strong{font-size:1rem;overflow-wrap:anywhere}.shop-add{border:0;background:var(--shop-violet);color:#fff;min-height:44px;min-width:44px;border-radius:12px;font-size:1.1rem;flex-shrink:0}.shop-card-view{font-size:.85rem}
.shop-pagination{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin-top:35px}.shop-pagination a{padding:8px 13px;border-radius:9px;border:1px solid var(--shop-border);color:var(--shop-ink);text-decoration:none}.shop-pagination a[aria-current]{background:var(--shop-violet);color:#fff}
.shop-empty{text-align:center;padding:50px 16px;border:1px dashed #d8d2eb;background:#faf9fe;border-radius:20px;min-width:0}.shop-empty i{font-size:2rem;color:var(--shop-violet)}.shop-empty h2,.shop-empty h3{font-size:1.35rem;margin-top:18px}.shop-empty p{color:var(--shop-muted)}
.shop-breadcrumb{display:flex;align-items:center;gap:12px;min-width:0;margin-bottom:24px;font-size:.88rem;color:var(--shop-muted)}.shop-breadcrumb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-breadcrumb a{color:var(--shop-violet)}
.shop-detail-grid{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:clamp(24px,5vw,70px);align-items:start}.shop-detail-cover{background:#f1ecfb;border-radius:20px;overflow:hidden;min-height:300px;box-shadow:0 16px 40px rgba(36,28,77,.09);aspect-ratio:3/4}.shop-detail-body h1{font-size:clamp(2rem,4vw,3.55rem);font-weight:800;letter-spacing:-.04em;line-height:1.13;margin:12px 0;overflow-wrap:anywhere}.shop-subtitle,.shop-detail-intro{font-size:1rem;line-height:1.75;color:#637089}.shop-author{font-size:.94rem;color:var(--shop-muted)}.shop-detail-price{font-size:2rem;font-weight:850;margin:22px 0;color:var(--shop-violet-deep)}.shop-detail-meta{margin-top:27px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;border-top:1px solid var(--shop-border);padding-top:18px}.shop-detail-meta>div{min-width:0}.shop-detail-meta dt{color:var(--shop-muted);font-size:.77rem}.shop-detail-meta dd{font-weight:700;overflow-wrap:anywhere}.shop-description{margin-top:45px;padding:25px;border-radius:18px;background:#f9f7ff;overflow-wrap:anywhere;line-height:1.8}.shop-description h2{font-size:1.35rem}.shop-licence{margin:21px 0;padding:15px;background:#f9f7ff;border-radius:12px}.shop-licence p{font-size:.85rem;color:var(--shop-muted);margin:7px 0}.shop-text-link{display:inline-block;margin-top:12px;color:var(--shop-violet-deep);font-weight:750;text-decoration:none}
.shop-page-heading{font-size:clamp(1.65rem,4vw,2.8rem);font-weight:800;margin:0 0 22px}.shop-checkout-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:start}.shop-panel{background:var(--shop-surface);padding:clamp(17px,3vw,27px);border:1px solid var(--shop-border);border-radius:18px;box-shadow:0 9px 30px rgba(32,28,66,.035);min-width:0;margin-bottom:18px}.shop-panel h2{font-size:1.23rem;font-weight:800;color:var(--shop-ink);margin:0 0 19px}.shop-panel p{overflow-wrap:anywhere}.shop-form{display:grid;gap:17px}.shop-form label,.shop-editor label{display:grid;gap:8px;font-size:.88rem;font-weight:650;color:var(--shop-ink);min-width:0}.shop-form input:not([type=checkbox]):not([type=radio]),.shop-form select,.shop-form textarea,.shop-editor input:not([type=checkbox]),.shop-editor textarea,.shop-editor select{width:100%;min-width:0;border:1px solid #d8d7e4;border-radius:10px;padding:11px 12px;min-height:45px;color:var(--shop-ink);background:white;font:inherit;font-size:.95rem}.shop-form textarea,.shop-editor textarea{min-height:90px;resize:vertical}.shop-form input:focus,.shop-editor input:focus,.shop-form select:focus,.shop-editor select:focus{outline:3px solid #c7b6f4;outline-offset:1px}.shop-form label small,.shop-editor label small{font-size:.77rem;color:var(--shop-muted);font-weight:450}.shop-payment-choice{display:flex!important;align-items:center;flex-wrap:wrap;gap:10px;border:1px solid var(--shop-border);border-radius:13px;padding:14px;margin:10px 0}.shop-payment-choice input{accent-color:var(--shop-violet)}.shop-payment-choice small{margin-inline-start:auto;color:var(--shop-muted)}.shop-caption{font-size:.83rem;color:var(--shop-muted);line-height:1.5}.shop-checkout-item{display:grid;grid-template-columns:49px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--shop-border)}.shop-checkout-item strong{display:block;font-size:.85rem;overflow-wrap:anywhere}.shop-checkout-item span{display:block;font-size:.78rem;color:var(--shop-muted)}.shop-checkout-item b{font-size:.85rem}.shop-thumb{width:48px;height:65px;object-fit:cover;border-radius:6px;flex-shrink:0}.shop-summary-row{display:flex;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--shop-border);overflow-wrap:anywhere}.shop-total{font-size:1.2rem;font-weight:800}.shop-alert{padding:13px 16px;background:#fff3e8;border:1px solid #fed5a9;color:#764018;border-radius:12px;margin:12px 0;display:block}.shop-success{padding:12px 15px;background:#edfcf5;border:1px solid #bce8d2;color:#195c41;border-radius:12px;margin:12px 0}
.shop-admin{max-width:1450px;width:100%;margin-inline:auto}.shop-admin-tabs{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding:0 0 13px;margin:0 0 19px;scrollbar-width:thin}.shop-admin-tabs a{padding:11px 15px;text-decoration:none;border:1px solid var(--shop-border);border-radius:12px;white-space:nowrap;font-size:.87rem;font-weight:700;color:#4c5265;background:white}.shop-admin-tabs a.active{background:var(--shop-violet);color:white;border-color:var(--shop-violet)}
.shop-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.shop-stat{display:grid;gap:10px}.shop-stat span{color:var(--shop-muted);font-size:.85rem}.shop-stat strong{font-size:2.1rem;font-weight:800}.shop-admin-list{background:white;border:1px solid var(--shop-border);border-radius:17px;overflow:hidden;margin-bottom:20px}.shop-admin-list>h2{font-size:1.2rem;padding:23px 22px 10px}.shop-admin-item{display:flex;align-items:center;gap:15px;padding:16px;border-bottom:1px solid var(--shop-border);min-width:0;color:var(--shop-ink);text-decoration:none!important}.shop-admin-item:last-child{border-bottom:0}.shop-admin-item-main{flex:1;min-width:0}.shop-admin-item-main strong{display:block;overflow-wrap:anywhere}.shop-admin-item-main p,.shop-admin-item-main span{margin:6px 0 0;font-size:.83rem;color:var(--shop-muted);overflow-wrap:anywhere}.shop-admin-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.shop-admin-actions form{margin:0}.shop-admin-actions .shop-button{padding:9px 12px;min-height:40px;font-size:.78rem}.shop-status{display:inline-block;background:#f3edfe;border-radius:30px;padding:6px 12px;font-weight:700;color:#4c2ba0;font-size:.8rem}.shop-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.shop-editor{display:grid;gap:10px}.shop-editor-action{display:flex;justify-content:flex-end}.shop-switch{display:flex!important;align-items:start;flex-direction:row;gap:11px}.shop-switch input{min-width:19px;min-height:19px;accent-color:var(--shop-violet);margin-top:2px}.shop-inline-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.shop-inline-form input{max-width:210px;min-width:90px;border:1px solid #dbd7e8;border-radius:9px;padding:10px}.shop-order-heading{display:flex;align-items:start;justify-content:space-between;gap:13px;flex-wrap:wrap}
.shop-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.shop-library-card{display:flex;gap:15px;min-width:0;padding:15px;border:1px solid var(--shop-border);border-radius:17px;background:white}.shop-library-card>.shop-cover,.shop-library-card>.shop-cover-placeholder{width:90px;height:125px;flex-shrink:0;border-radius:9px}.shop-library-card>div:last-child{min-width:0;flex:1}.shop-library-card h2{font-size:1.03rem;overflow-wrap:anywhere}.shop-library-card p{font-size:.85rem;color:var(--shop-muted)}
.shop-floating-root{font-family:inherit}.shop-fab{position:fixed;inset-inline-end:max(18px,env(safe-area-inset-right));bottom:calc(91px + env(safe-area-inset-bottom));width:60px;height:60px;border-radius:21px;border:1px solid rgba(255,255,255,.35);background:linear-gradient(140deg,#8966e3,#4824a2);color:#fff;font-size:1.58rem;box-shadow:0 10px 30px rgba(55,28,113,.32);display:flex;align-items:center;justify-content:center;z-index:1130;cursor:pointer;touch-action:manipulation}.shop-fab-counter{position:absolute;top:-8px;inset-inline-end:-6px;background:#ffdc7c;color:#392452;border:2px solid #fff;border-radius:25px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:.73rem;font-weight:850;padding:0 3px}.shop-fab-counter[hidden]{display:none}
.shop-drawer-backdrop{position:fixed;inset:0;background:rgba(18,17,37,.58);z-index:1140}.shop-drawer-backdrop[hidden]{display:none}.shop-drawer{position:fixed;top:0;bottom:0;inset-inline-end:0;width:min(420px,100vw);max-width:100%;background:#fff;z-index:1141;box-shadow:-14px 0 50px rgba(0,0,0,.2);display:flex;flex-direction:column;transform:translateX(110%);transition:transform .27s ease;visibility:hidden;color:var(--shop-ink)}html[dir=rtl] .shop-drawer{transform:translateX(-110%)}.shop-drawer.is-open{transform:translateX(0);visibility:visible}.shop-drawer-head{display:flex;justify-content:space-between;align-items:center;gap:13px;padding:24px 22px 18px;border-bottom:1px solid var(--shop-border)}.shop-drawer-head h2{font-size:1.4rem;margin:6px 0 0;font-weight:800}.shop-icon-btn{width:44px;height:44px;border:0;border-radius:12px;background:#f4f1fa;color:#34255f;cursor:pointer}.shop-drawer-items{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:14px 20px;min-height:0}.shop-mini-item{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--shop-border);padding:13px 0}.shop-mini-item img{width:56px;height:73px;object-fit:cover;background:#eeedf3;border-radius:7px}.shop-mini-info{flex:1;min-width:0;display:grid;gap:6px}.shop-mini-title{font-size:.9rem;line-height:1.4;font-weight:750;color:var(--shop-ink);overflow-wrap:anywhere}.shop-mini-info small{color:var(--shop-muted)}.shop-mini-remove{border:0;background:none;font-size:1.55rem;min-width:44px;min-height:44px;color:#7a4358}.shop-mini-empty{text-align:center;padding:65px 20px;color:var(--shop-muted)}.shop-drawer-foot{border-top:1px solid var(--shop-border);padding:21px;display:grid;gap:10px;background:#fff}.shop-drawer-foot .shop-text-link{text-align:center;margin:0}.shop-price-row{display:flex;justify-content:space-between;gap:10px;font-size:1.1rem}.shop-toast{position:fixed;inset-inline-end:18px;bottom:calc(164px + env(safe-area-inset-bottom));z-index:1150;background:#251947;color:#fff;border-radius:12px;padding:12px 16px;max-width:min(320px,calc(100vw - 36px));box-shadow:var(--shop-shadow);font-size:.87rem}.shop-toast[hidden]{display:none}body.shop-cart-open{overflow:hidden}
@media(min-width:650px){.shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.shop-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){.shop-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:23px}.shop-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.shop-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-filters .shop-search{grid-column:span 2}.shop-checkout-grid{grid-template-columns:minmax(0,1fr)}.shop-detail-grid{grid-template-columns:minmax(0,280px) minmax(0,1fr)}}
@media(max-width:640px){.shop-hero{padding:65px 0 55px}.shop-section{padding:28px 0}.shop-filters{grid-template-columns:minmax(0,1fr);gap:9px;padding:12px}.shop-filters .shop-search{grid-column:auto}.shop-detail-grid{grid-template-columns:minmax(0,1fr);gap:25px}.shop-detail-cover{width:min(320px,100%);margin-inline:auto}.shop-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-form-grid,.shop-library-grid{grid-template-columns:minmax(0,1fr)}.shop-library-card>.shop-cover,.shop-library-card>.shop-cover-placeholder{width:68px;height:96px}.shop-admin-top{align-items:start}.shop-admin-top .shop-button{width:100%}.shop-admin-item{align-items:start;flex-wrap:wrap;gap:10px}.shop-admin-item-main{flex-basis:calc(100% - 80px)}.shop-admin-actions{width:100%;justify-content:flex-start}.shop-fab{width:55px;height:55px;border-radius:18px;bottom:calc(78px + env(safe-area-inset-bottom))}.shop-toast{bottom:calc(148px + env(safe-area-inset-bottom))}}
@media(max-width:359px){.shop-product-info{padding:10px}.shop-product-info h3{font-size:.91rem}.shop-card-bottom strong{font-size:.85rem}.shop-add{min-height:42px;min-width:42px}.shop-admin-tabs a{padding:9px 11px}.shop-panel{padding:14px}.shop-checkout-item{grid-template-columns:39px minmax(0,1fr) auto}.shop-checkout-item .shop-thumb{width:39px;height:53px}}
@media(prefers-reduced-motion:reduce){.shop-drawer,.shop-product-card,.shop-button{transition:none!important}}
/* Commerce enhancements: all controls reflow rather than expanding the mobile viewport. */
.shop-admin,.shop-section,.shop-section *,.shop-floating-root,.shop-floating-root *{box-sizing:border-box;min-width:0}
.shop-curated{padding-block:18px 32px;background:#f9f7ff}.shop-related{margin-top:34px}.shop-related h2{margin-bottom:18px}
.shop-filter-more{grid-column:1/-1;border:1px solid var(--shop-border);background:#fff;border-radius:12px;padding:12px 14px;max-width:100%}
.shop-filter-more summary,.shop-panel summary{cursor:pointer;font-weight:700;color:var(--shop-ink)}
.shop-filter-more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px;max-width:100%}
.shop-filter-more-grid label{display:grid;gap:5px;font-weight:600;font-size:.84rem}
.shop-filter-more-grid input,.shop-filter-more-grid select{min-width:0;width:100%;max-width:100%;border:1px solid #d8d7e4;border-radius:9px;padding:10px;background:#fff;color:#25233b}
.shop-details-fields{margin-top:18px}.shop-span-all{grid-column:1/-1}.shop-panel[open] summary{margin-bottom:8px}
.shop-mini-coupon{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;max-width:100%}
.shop-mini-coupon input{width:100%;min-width:0;padding:10px 12px;border:1px solid #d8d7e4;border-radius:10px;color:#27203c}
.shop-mini-coupon .shop-button{font-size:.8rem;padding:9px 12px;white-space:nowrap}
.shop-mini-qty{display:flex;align-items:center;gap:6px;margin-block:5px}.shop-mini-qty button{min-width:34px;min-height:34px;border:1px solid #e6e0f0;border-radius:8px;background:#faf8ff;color:#34205e;font-weight:700}
.shop-toast-undo{border:1px solid #fff;border-radius:6px;background:transparent;color:white;padding:5px 8px;margin-inline-start:9px;font-size:.82rem;font-weight:700;cursor:pointer}
.shop-clear{background:transparent;border:0;color:#583894;cursor:pointer;font-size:.83rem;text-align:end;padding:3px}
.shop-clear[hidden]{display:none}.shop-admin-item{overflow-wrap:anywhere}.shop-admin-item .shop-inline-form select{min-width:96px;max-width:100%}
.shop-filters,.shop-checkout-grid,.shop-admin-list,.shop-panel,.shop-form-grid,.shop-library-grid,.shop-product-grid{max-width:100%}
.shop-fab:focus-visible,.shop-mini-remove:focus-visible,.shop-mini-qty button:focus-visible,.shop-clear:focus-visible{outline:3px solid #ffcb60;outline-offset:3px}
@media(max-width:780px){.shop-filter-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.shop-filter-more-grid{grid-template-columns:1fr}.shop-mini-coupon{grid-template-columns:minmax(0,1fr) auto}.shop-admin-item{display:flex;flex-wrap:wrap;align-items:flex-start}.shop-admin-list .shop-admin-actions{width:100%}.shop-panel,.shop-drawer-head,.shop-drawer-foot{max-width:100%}.shop-section>.container{max-width:100%;min-width:0}.shop-detail-body h1,.shop-hero h1{overflow-wrap:anywhere}.shop-admin-top{flex-wrap:wrap}.shop-admin-tabs{max-width:100%;overscroll-behavior-inline:contain}}
@media(max-width:340px){.shop-mini-item img{width:42px;height:60px}.shop-drawer-foot{padding:12px}.shop-fab{inset-inline-end:10px}.shop-checkout-item b{font-size:.75rem;overflow-wrap:anywhere}}
/* Readable product cards on narrow phones: never squeeze two book cards into 130px columns. */
@media (max-width:379px){
 .shop-product-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .shop-product-card{display:grid;grid-template-columns:minmax(0,116px) minmax(0,1fr);min-height:170px;align-items:stretch}
 .shop-card-cover{aspect-ratio:auto;min-height:170px}
 .shop-product-info{padding:13px 12px;min-height:0}
 .shop-product-info h3{font-size:1rem;line-height:1.35}
 .shop-card-label{font-size:.65rem;letter-spacing:.07em}
 .shop-card-bottom{align-items:center;gap:5px}
 .shop-card-bottom strong{font-size:.87rem}
 .shop-add{min-width:42px;min-height:42px}
}
@media (max-width:340px){
 .shop-product-card{grid-template-columns:minmax(0,100px) minmax(0,1fr)}
 .shop-product-info{padding:11px 9px}
}
/* Library search is a native responsive form, not an unstyled desktop filter row. */
.shop-library-filters{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.shop-library-filters label{display:grid;gap:6px;font-size:.86rem;font-weight:650;min-width:0}
.shop-library-filters input,.shop-library-filters select{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--shop-border);border-radius:10px;background:white;color:var(--shop-ink)}
.shop-library-filters input:focus-visible,.shop-library-filters select:focus-visible{outline:3px solid #c7b6f4;outline-offset:1px}
@media(max-width:640px){.shop-library-filters{grid-template-columns:minmax(0,1fr)}.shop-library-filters .shop-button{width:100%}}

/* Related catalogue controls and safe refund reconciliation forms. */
.shop-taxonomy-group{border:1px solid var(--shop-border,#e6e5ee);border-radius:14px;padding:12px;margin:12px 0;min-width:0}
.shop-taxonomy-group legend{font-weight:700;padding:0 8px}.shop-taxonomy-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:6px 12px;max-height:240px;overflow:auto}
.shop-refund-complete{flex-wrap:wrap;width:100%;min-width:0}.shop-refund-complete label{flex:1 1 210px;min-width:0}.shop-refund-complete input{width:100%;max-width:100%}.shop-refund-complete small{flex-basis:100%}
@media(max-width:400px){.shop-taxonomy-options{grid-template-columns:minmax(0,1fr)}.shop-refund-complete button{width:100%}}

.shop-retry-form{display:inline-flex;margin:10px 0;max-width:100%;vertical-align:middle}.shop-retry-form button{max-width:100%;white-space:normal}

/* Shared floating cart and status panels: safe on compact screens and bottom navigation. */
.shop-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 20px}
.shop-status-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;padding:14px;border-radius:14px;border:1px solid var(--shop-border);background:#faf9ff}
.shop-status-card strong,.shop-gateway-item strong{font-size:.95rem;color:var(--shop-ink)}
.shop-status-card small,.shop-gateway-item small{color:var(--shop-muted);overflow-wrap:anywhere}
.shop-status-pill{font-size:.74rem;font-weight:750;border-radius:20px;padding:4px 10px;line-height:1.5;white-space:normal}
.shop-status-pill.is-on{background:#e7f8f1;color:#146c4b}.shop-status-pill.is-off{background:#f4f0f7;color:#744d83}
.shop-gateway-panel{margin-top:18px}.shop-gateway-list{display:grid;gap:9px;margin:16px 0}
.shop-gateway-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--shop-border);border-radius:12px;min-width:0}
.shop-gateway-item>div{display:grid;gap:4px;min-width:0}
.shop-floating-root .shop-fab{inset-inline-end:calc(18px + env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));max-width:calc(100vw - 30px)}
.shop-floating-root .shop-drawer{max-height:100dvh;height:100dvh;min-width:0}
.shop-floating-root .shop-drawer-foot{overflow-y:auto;max-height:min(58dvh,480px);overscroll-behavior:contain}
.shop-floating-root .shop-drawer-head{flex:0 0 auto}
.shop-floating-root .shop-drawer-items{min-height:68px}
.shop-floating-root [data-shop-checkout][aria-disabled="true"]{pointer-events:none;opacity:.55}
@media(max-width:640px){
 .shop-floating-root .shop-fab{inset-inline-end:calc(14px + env(safe-area-inset-right));bottom:calc(88px + env(safe-area-inset-bottom));width:56px;height:56px}
 .shop-floating-root .shop-drawer-head{padding:15px 17px 12px}
 .shop-floating-root .shop-drawer-items{padding:9px 15px}
 .shop-floating-root .shop-drawer-foot{padding:13px 15px calc(13px + env(safe-area-inset-bottom));gap:7px}
 .shop-status-grid{grid-template-columns:1fr}
 .shop-gateway-item{align-items:flex-start}
}
@media(max-width:359px){.shop-floating-root .shop-fab{inset-inline-end:calc(11px + env(safe-area-inset-right))}.shop-gateway-item{flex-wrap:wrap}.shop-gateway-item .shop-status-pill{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.shop-floating-root .shop-fab,.shop-floating-root .shop-drawer{transition:none}}
/* Product galleries and category-driven specifications on the public storefront. */
.shop-ux-public-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,70px),1fr));gap:9px;margin-top:13px;max-width:100%}
.shop-ux-public-gallery img{width:100%;height:85px;object-fit:cover;border-radius:10px;border:1px solid #e6e2ee;display:block}
.shop-ux-public-specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:12px;margin-top:15px;max-width:100%}
.shop-ux-public-specs>div{padding:13px;border:1px solid #eae6f2;border-radius:12px;background:#faf9fd;overflow-wrap:anywhere;min-width:0}
.shop-ux-public-specs dt{font-size:.82rem;color:#66748a;margin-bottom:5px}
.shop-ux-public-specs dd{font-size:.93rem;font-weight:700;color:#263249;margin:0}


/* General-purpose storefront v2: category-driven, mobile-first discovery. */
.shop-hero-general{padding:clamp(40px,7vw,88px) 0;background:radial-gradient(circle at 85% 20%,#e6dfff 0,transparent 45%),linear-gradient(110deg,#f9f7ff,#f1faff 80%);}
.shop-hero-inner{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(180px,.75fr);align-items:center;gap:clamp(20px,4vw,70px)}
.shop-hero-copy{min-width:0}.shop-hero-copy h1{max-width:780px;font-size:clamp(2rem,5.3vw,3.9rem);line-height:1.12;letter-spacing:-.035em}
.shop-hero-copy p{max-width:610px;line-height:1.65}.shop-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.shop-hero-general .shop-button-primary{background:var(--shop-violet);color:#fff;border-color:var(--shop-violet)}
.shop-hero-general .shop-button-ghost{border:1px solid #b9abe6;color:#47328a;background:#fff}
.shop-hero-art{width:min(100%,280px);aspect-ratio:1;display:grid;place-items:center;position:relative;border-radius:32%;background:linear-gradient(135deg,#eee5ff,#e0f7f9);box-shadow:inset 0 0 0 2px rgba(110,80,198,.14);justify-self:center}
.shop-hero-art>i{font-size:clamp(5rem,10vw,8rem);color:#674bd0;filter:drop-shadow(0 12px 14px rgba(70,45,125,.16))}.shop-art-chip{position:absolute;top:12%;right:9%;width:55px;height:55px;display:grid;place-items:center;background:white;border-radius:20px;box-shadow:var(--shop-shadow);font-size:1.75rem;color:#d39f29}
.shop-category-section{padding-block:30px 46px;background:#fff}.shop-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.shop-category-card{display:flex;align-items:center;gap:12px;padding:18px 14px;min-width:0;text-decoration:none!important;color:var(--shop-ink)!important;border:1px solid var(--shop-border);border-radius:18px;background:#fff;box-shadow:0 6px 20px rgba(31,27,70,.04);transition:transform .16s,border-color .16s,box-shadow .16s}
.shop-category-card:is(:hover,:focus-visible),.shop-category-card.is-selected{transform:translateY(-2px);border-color:#9177db;box-shadow:0 12px 30px rgba(64,39,134,.1)}
.shop-category-icon{height:48px;width:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:13px;background:#f1ecff;color:#6843d1;font-size:1.35rem}.shop-category-content{display:grid;gap:4px;min-width:0;flex:1}.shop-category-content strong{font-size:.92rem;line-height:1.35;overflow-wrap:anywhere}.shop-category-content small{font-size:.77rem;color:var(--shop-muted)}.shop-category-card>.bi-arrow-up-right{color:#8469c2}
.shop-curated{padding-block:28px;background:#f9f8fe}.shop-curated:nth-of-type(even){background:#fff}.shop-catalogue{scroll-margin-top:18px}
.shop-discovery{display:grid;gap:12px;margin:20px 0 25px;max-width:100%}.shop-discovery-search{display:flex;align-items:center;gap:9px;background:#fff;padding:8px 9px 8px 14px;border:1px solid #e3deed;border-radius:16px;min-width:0}
.shop-discovery-search>i{color:#776b9b;font-size:1.1rem}.shop-discovery-search input{min-width:0;flex:1;width:100%;border:0;outline:0;background:transparent;color:var(--shop-ink);font:inherit;padding:9px 0}.shop-discovery-search input:focus-visible{outline:2px solid #bba8ec;outline-offset:3px;border-radius:4px}
.shop-discovery-search .shop-button{flex:0 0 auto;min-height:42px}.shop-filter-panel{min-width:0;border:1px solid #e8e4f0;border-radius:15px;background:#fbfaff;padding:12px 16px}
.shop-filter-panel>summary{cursor:pointer;color:#382968;font-weight:700;display:flex;align-items:center;gap:9px;min-height:28px}.shop-filter-indicator{background:#e3d8ff;color:#4d308f;padding:3px 8px;border-radius:12px;font-size:.72rem}.shop-filter-panel[open]>summary{margin-bottom:16px}
.shop-discovery-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.shop-discovery-fields label{display:grid;gap:6px;min-width:0;font-size:.83rem;font-weight:650}.shop-discovery-fields input,.shop-discovery-fields select{width:100%;min-width:0;max-width:100%;padding:11px 12px;background:#fff;border:1px solid #dcd4eb;border-radius:10px;color:#222}.shop-discovery-actions{margin-top:16px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.shop-filter-advanced{grid-column:1/-1;padding:11px;border:1px solid #e8e2f3;border-radius:11px;background:#fff}.shop-filter-advanced summary{font-weight:650;cursor:pointer}.shop-filter-advanced .shop-discovery-fields{margin-top:12px}
.shop-product-type-physical .shop-card-cover,.shop-product-type-service .shop-card-cover{aspect-ratio:1/1;background:#fafbfd}.shop-product-type-physical .shop-cover,.shop-product-type-service .shop-cover{object-fit:contain}.shop-detail-policy{padding:18px 0}.shop-detail-policy h2{font-size:1.05rem}.shop-empty-products{padding-block:36px}
.shop-category-card:focus-visible,.shop-filter-panel summary:focus-visible,.shop-filter-advanced summary:focus-visible{outline:3px solid #bca7f1;outline-offset:3px}
@media(max-width:1100px){.shop-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-discovery-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:790px){.shop-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-hero-inner{grid-template-columns:minmax(0,1fr)}.shop-hero-art{display:none}.shop-discovery-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.shop-hero-general{padding:42px 0 39px}.shop-hero-copy h1{font-size:clamp(1.8rem,9vw,2.7rem)}.shop-hero-actions .shop-button{flex:1 1 135px;text-align:center}.shop-category-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.shop-category-card{display:flex;flex-direction:column;align-items:flex-start;min-height:132px;gap:9px;padding:13px}.shop-category-icon{height:40px;width:40px;flex-basis:40px}.shop-category-card>.bi-arrow-up-right{display:none}.shop-category-content strong{font-size:.85rem}.shop-discovery-fields{grid-template-columns:minmax(0,1fr)}.shop-discovery-search{gap:6px;padding:7px 8px}.shop-discovery-search .shop-button{padding:10px 12px;font-size:.82rem}.shop-filter-panel{padding:11px}.shop-discovery-actions .shop-button{flex:1 1 155px}}
@media(max-width:355px){.shop-category-grid{grid-template-columns:1fr}.shop-category-card{flex-direction:row;min-height:0}.shop-hero-actions{flex-direction:column}.shop-discovery-search input{font-size:.87rem}.shop-discovery-search .shop-button{padding:9px 8px}}
@media(prefers-reduced-motion:reduce){.shop-category-card{transition:none}}

.shop-promo-section{padding-block:18px}.shop-promo-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:clamp(22px,4vw,40px);border-radius:22px;background:linear-gradient(120deg,#e9e1ff,#e6f8f8);border:1px solid #e0d8f0;min-width:0}.shop-promo-card>div{min-width:0;max-width:750px}.shop-promo-card h2{margin:4px 0 8px;font-size:clamp(1.25rem,3vw,1.9rem)}.shop-promo-card p{margin:0;color:#56647a}.shop-promo-card .shop-button{flex:0 0 auto}@media(max-width:650px){.shop-promo-card{flex-direction:column;align-items:stretch}.shop-promo-card .shop-button{text-align:center}}
/* Contrast corrections: original dark bookstore hero styles are not suitable for the light Store hero. */
.shop-hero-general,.shop-hero-general .shop-hero-copy{color:#182a49}
.shop-hero-general h1{color:#182a49!important}
.shop-hero-general p{color:#59687e!important}
.shop-hero-general .shop-eyebrow{color:#6843d1!important}
.shop-hero-general .shop-button-ghost{color:#47328a!important;background:white;border-color:#b9abe6}
@media(max-width:379px){
 .shop-product-card.shop-product-type-physical .shop-card-cover,.shop-product-card.shop-product-type-service .shop-card-cover{aspect-ratio:auto;min-height:165px}
 .shop-product-card .shop-card-bottom{flex-wrap:wrap;gap:7px}
 .shop-product-card .shop-card-bottom strong{max-width:100%;overflow-wrap:anywhere}
 .shop-product-card .shop-product-info{min-width:0;overflow-wrap:anywhere}
 .shop-product-card .shop-product-info h3{overflow-wrap:anywhere}
 .shop-product-card .shop-card-view{max-width:100%;overflow-wrap:anywhere}
}

/* Accessibility: the general storefront hero is LIGHT, unlike the original
   dark shop hero. Give its heading, copy, label and light CTA dark foreground. */
.shop-hero.shop-hero-general { color:#172747 !important; }
.shop-hero.shop-hero-general h1 { color:#172747 !important; }
.shop-hero.shop-hero-general p { color:#334155 !important; }
.shop-hero.shop-hero-general .shop-eyebrow { color:#4c1d95 !important; }
.shop-hero.shop-hero-general .shop-button-ghost { color:#47328a !important; }

/* Keep the LIGHT general shop hero legible in the site's dark UI mode. */
html[data-mgc-theme="dark"] body.mgc-frontend .shop-hero.shop-hero-general h1,
body.mgc-frontend.mgc-dark-mode .shop-hero.shop-hero-general h1 {
  color:#172747 !important;
}
html[data-mgc-theme="dark"] body.mgc-frontend .shop-hero.shop-hero-general p,
body.mgc-frontend.mgc-dark-mode .shop-hero.shop-hero-general p {
  color:#334155 !important;
}

/* Keep the shop accessible while preventing its floating control from obstructing assessments. */
@media(max-width:640px){
  .mgc-frontend:has(.mgc-home-explorer) .shop-floating-root .shop-fab,
  .mgc-frontend:has(.visitor-panel) .shop-floating-root .shop-fab,
  .mgc-frontend:has(.mgc-catalogue-controls) .shop-floating-root .shop-fab{width:46px;height:46px;bottom:calc(102px + env(safe-area-inset-bottom));inset-inline-end:calc(8px + env(safe-area-inset-right));font-size:1.15rem;opacity:.91}
  .mgc-frontend:has(.visitor-panel) .shop-floating-root .shop-fab:not(:focus-visible):not(:hover){transform:translateX(15px)}
  .mgc-frontend:has(.visitor-panel) .shop-floating-root .shop-fab:focus-visible{transform:none;outline:3px solid #9a82ff;outline-offset:3px}
}
