/* Shop-only rules deliberately outrank earlier commerce styles without changing other screens. */
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation]{min-width:0;max-width:100%;color:var(--ds-ink)}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] [hidden]{display:none!important}
html .thp-site .commerce-scope[data-commerce] .shop-intro[data-shop-presentation]{margin-bottom:var(--ds-space-5,1.5rem)}
html .thp-site .commerce-scope[data-commerce] .shop-intro[data-shop-presentation] h1,html .thp-site .commerce-scope[data-commerce] .shop-product-header h1{font-size:clamp(1.7rem,2.5vw,2.5rem);margin:.5rem 0}
html .thp-site .commerce-scope[data-commerce] .shop-intro[data-shop-presentation] .lead{font-weight:400;max-width:70ch;font-size:1.1rem;line-height:1.55}
html .thp-site .commerce-scope[data-commerce] .shop-category-header-image{max-height:220px;overflow:hidden;border-radius:var(--ds-radius-card)}
html .thp-site .commerce-scope[data-commerce] .shop-category-header-image img{width:100%;height:220px;object-fit:cover}
html .thp-site .commerce-scope[data-commerce] .shop-category-tiles[data-shop-presentation]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:18px;margin-bottom:28px}
html .thp-site .commerce-scope[data-commerce] .shop-category-tile{display:flex;flex-direction:column;gap:0;overflow:hidden;max-width:360px;padding:0;background:var(--ds-surface);color:var(--ds-ink);border:1px solid var(--ds-line);text-decoration:none;transition:transform var(--ds-fast),box-shadow var(--ds-fast)}
html .thp-site .commerce-scope[data-commerce] .shop-category-photo{aspect-ratio:3/2;overflow:hidden;width:100%}
html .thp-site .commerce-scope[data-commerce] .shop-category-photo :is(img,.public-card-fallback){width:100%;height:100%;object-fit:cover}
html .thp-site .commerce-scope[data-commerce] .shop-category-photo .public-card-fallback{min-height:0;background:linear-gradient(140deg,color-mix(in srgb,var(--ds-brand) 16%,var(--ds-surface)),var(--ds-surface));display:grid;place-items:center}
html .thp-site .commerce-scope[data-commerce] .shop-category-photo .public-card-fallback span{display:none}
html .thp-site .commerce-scope[data-commerce] .shop-category-tile>div:last-child{display:grid;gap:4px;padding:14px 16px}
html .thp-site .commerce-scope[data-commerce] .shop-category-tile strong{font:600 1.05rem/1.35 var(--body-font);color:var(--ds-heading)}
html .thp-site .commerce-scope[data-commerce] .shop-category-tile>div:last-child>span{font-size:.85rem;color:var(--ds-muted)}
html .thp-site .commerce-scope[data-commerce] .shop-category-tile:hover{transform:translateY(-3px);box-shadow:var(--ds-shadow)}
html .thp-site .commerce-scope[data-commerce] .shop-catalog[data-shop-presentation]{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}
html .thp-site .commerce-scope[data-commerce] .shop-catalog[data-shop-no-sidebar]{grid-template-columns:minmax(0,1fr)}
html .thp-site .commerce-scope[data-commerce] .shop-catalog[data-shop-no-sidebar] :is(.shop-filter-position,.shop-filter-open){display:none!important}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-filter-panel{padding:16px;background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:var(--ds-radius-card)}
html .thp-site .commerce-scope[data-commerce] .shop-filter-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}
html .thp-site .commerce-scope[data-commerce] .shop-filter-title h2{font-size:1.05rem;margin:0}
html .thp-site .commerce-scope[data-commerce] .shop-filter-title a{font-size:.8rem;text-decoration:underline}
html .thp-site .commerce-scope[data-commerce] .shop-filter-group{padding-block:9px;border-top:1px solid var(--ds-line)}
html .thp-site .commerce-scope[data-commerce] .shop-filter-group>summary{font-weight:600;min-height:44px;display:list-item;cursor:pointer;line-height:1.4;padding-block:12px}
html .thp-site .commerce-scope[data-commerce] .shop-filter-group fieldset{min-width:0;border:0;margin:0;padding:8px 0}
html .thp-site .commerce-scope[data-commerce] .shop-filter-group label{display:flex;align-items:start;gap:8px;font-weight:400;font-size:.9rem;min-height:36px;margin:0;padding-block:5px}
html .thp-site .commerce-scope[data-commerce] .shop-filter-group :is(input[type=checkbox],input[type=radio]){flex:0 0 18px;min-height:18px;width:18px;margin-top:2px;accent-color:var(--ds-brand)}
html .thp-site .commerce-scope[data-commerce] .shop-filter-group small{font-size:.78rem;color:var(--ds-muted)}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html .thp-site .commerce-scope[data-commerce] .shop-price-fields label{display:grid;gap:4px}
html .thp-site .commerce-scope[data-commerce] .shop-price-fields input{width:100%;min-width:0;padding:.45rem!important}
html .thp-site .commerce-scope[data-commerce] .shop-category-tree,html .thp-site .commerce-scope[data-commerce] .shop-category-tree ul{padding:0;margin:0;list-style:none}
html .thp-site .commerce-scope[data-commerce] .shop-category-tree ul{padding-left:12px;border-left:1px solid var(--ds-line)}
html .thp-site .commerce-scope[data-commerce] .shop-category-choice{display:flex;gap:5px;align-items:baseline}
html .thp-site .commerce-scope[data-commerce] .shop-category-choice label{flex:1;min-width:0;overflow-wrap:anywhere}
html .thp-site .commerce-scope[data-commerce] .shop-category-choice>a{font-size:.75rem;min-height:32px;display:inline-flex;align-items:center;flex-shrink:0}
html .thp-site .commerce-scope[data-commerce] .shop-category-children>summary{font-size:.78rem;margin-left:26px;cursor:pointer;min-height:30px;padding-block:5px}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-results-heading{display:grid;grid-template-columns:auto minmax(140px,1fr) minmax(150px,190px);gap:16px;align-items:end;margin-bottom:16px}
html .thp-site .commerce-scope[data-commerce] .shop-results-heading p{font-size:.9rem;white-space:nowrap;margin:0 0 12px}
html .thp-site .commerce-scope[data-commerce] .shop-results-heading label{margin:0;font-size:.8rem;font-weight:500;display:grid;gap:5px}
html .thp-site .commerce-scope[data-commerce] .shop-results-heading :is(input,select){width:100%;padding:.65rem!important}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-active-filters{display:flex;flex-wrap:wrap;gap:8px;margin-block:0 18px}
html .thp-site .commerce-scope[data-commerce] .shop-active-filters:empty{display:none!important}
html .thp-site .commerce-scope[data-commerce] .shop-active-filters>a{font-size:.78rem;text-decoration:none;min-height:36px;border:1px solid var(--ds-line)}
html .thp-site .commerce-scope[data-commerce] .shop-chip-remove{font-size:.75em;margin-left:8px;text-decoration:underline}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:20px;justify-content:start}
html .thp-site .commerce-scope[data-commerce] [data-shop-no-sidebar] .shop-product-grid,html .thp-site .commerce-scope[data-commerce] .shop-related .shop-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
html .thp-site .commerce-scope[data-commerce] .shop-product-card.public-image-card{display:flex;flex-direction:column;padding:0;max-width:320px;min-width:0;overflow:hidden;border:1px solid var(--ds-line);background:var(--ds-surface);border-radius:var(--ds-radius-card);box-shadow:none}
html .thp-site .commerce-scope[data-commerce] .shop-product-main-link{display:flex;flex-direction:column;flex:1;color:var(--ds-ink)!important;text-decoration:none;min-width:0}
html .thp-site .commerce-scope[data-commerce] .shop-product-image{position:relative;display:block;width:100%;aspect-ratio:3/2;margin:0;overflow:hidden;background:var(--ds-canvas);border-radius:0;flex-shrink:0}
html .thp-site .commerce-scope[data-commerce] .shop-ratio-portrait .shop-product-image{aspect-ratio:4/5}
html .thp-site .commerce-scope[data-commerce] .shop-product-image :is(img,.public-card-fallback){width:100%;height:100%;min-height:0;object-fit:cover}
html .thp-site .commerce-scope[data-commerce] .shop-ratio-portrait .shop-product-image img{object-fit:contain}
html .thp-site .commerce-scope[data-commerce] .shop-product-image .public-card-fallback{background:linear-gradient(145deg,color-mix(in srgb,var(--ds-brand) 15%,var(--ds-surface)),var(--ds-surface));display:grid;place-items:center;padding:20px;text-align:center;font-size:.85rem}
html .thp-site .commerce-scope[data-commerce] .shop-product-image .shop-badges{position:absolute;top:10px;left:10px;right:10px;display:flex;gap:5px;flex-wrap:wrap;z-index:1}
html .thp-site .commerce-scope[data-commerce] .shop-badges .ds-badge{font-size:.7rem;padding:.25rem .45rem;background:var(--ds-surface);color:var(--ds-ink);border:1px solid var(--ds-line)}
html .thp-site .commerce-scope[data-commerce] .shop-product-card .shop-card-body{display:grid;grid-template-rows:2.8em 3.2em 2.5em 1.6em;gap:8px;padding:16px;margin-top:auto;min-width:0}
html .thp-site .commerce-scope[data-commerce] .shop-card-body h3{font:600 1rem/1.4 var(--body-font);margin:0;color:var(--ds-heading);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-decoration:none}
html .thp-site .commerce-scope[data-commerce] .shop-card-body .shop-card-excerpt{font-size:.87rem;line-height:1.6;color:var(--ds-muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html .thp-site .commerce-scope[data-commerce] .shop-card-price{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline;margin:0}
html .thp-site .commerce-scope[data-commerce] .shop-card-price strong{font-size:1rem;color:var(--ds-ink)}
html .thp-site .commerce-scope[data-commerce] .shop-card-price small{font-size:.75rem;color:var(--ds-muted)}
html .thp-site .commerce-scope[data-commerce] .shop-card-body .shop-stock{margin:0;font-size:.78rem;color:var(--ds-muted)}
html .thp-site .commerce-scope[data-commerce] .shop-quick-add{padding:0 16px 16px;margin:0}
html .thp-site .commerce-scope[data-commerce] .shop-quick-add button{font-size:.8rem;min-height:38px;padding:.4rem .75rem;background:transparent;color:var(--ds-link);border:1px solid var(--ds-line);width:auto}
html .thp-site .commerce-scope[data-commerce] .shop-product-card:not(:has(.shop-quick-add))::after{content:"";height:54px}
html .thp-site .commerce-scope[data-commerce] .shop-product-main-link:hover h3{text-decoration:underline;text-underline-offset:.2em}
html .thp-site .commerce-scope[data-commerce] .shop-product-main-link:focus-visible{outline-offset:-4px!important}
html .thp-site .commerce-scope[data-commerce].commerce-product .shop-product-detail[data-shop-presentation] .shop-product-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:36px;align-items:start}
html .thp-site .commerce-scope[data-commerce] .shop-product-header{margin-bottom:24px}
html .thp-site .commerce-scope[data-commerce] .shop-product-header p{font-size:.9rem}
html .thp-site .commerce-scope[data-commerce].commerce-product [data-shop-presentation] .shop-gallery{max-width:560px;width:100%;min-width:0}
html .thp-site .commerce-scope[data-commerce].commerce-product [data-shop-presentation] [data-product-zoom]{display:block;border-radius:var(--ds-radius-card);background:var(--ds-canvas);overflow:hidden}
html .thp-site .commerce-scope[data-commerce].commerce-product [data-shop-presentation] [data-product-image]{width:100%;height:auto;max-height:520px;aspect-ratio:1/1;object-fit:contain}
html .thp-site .commerce-scope[data-commerce].commerce-product .publishing-book-detail[data-shop-presentation] [data-product-image]{aspect-ratio:4/5;max-height:540px;object-fit:contain}
html .thp-site .commerce-scope[data-commerce] .shop-product-fallback{width:min(100%,320px);aspect-ratio:3/2;background:var(--ds-canvas);border-radius:var(--ds-radius-card);overflow:hidden}
html .thp-site .commerce-scope[data-commerce] .shop-product-fallback .public-card-fallback{width:100%;height:100%;min-height:0;display:grid;place-items:center;padding:24px;color:var(--ds-muted);font-size:.9rem;background:linear-gradient(145deg,color-mix(in srgb,var(--ds-brand) 15%,var(--ds-surface)),var(--ds-surface))}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-gallery-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
html .thp-site .commerce-scope[data-commerce] .shop-gallery-thumbs a{width:70px;height:70px;border:1px solid var(--ds-line);border-radius:var(--ds-radius);overflow:hidden;background:var(--ds-surface)}
html .thp-site .commerce-scope[data-commerce] .shop-gallery-thumbs img{width:100%;height:100%;object-fit:contain}
html .thp-site .commerce-scope[data-commerce].commerce-product [data-shop-presentation] .shop-buy-panel{position:sticky;top:calc(var(--site-header-height,72px) + 20px);border:0;background:transparent;padding:0;box-shadow:none}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-price{font-size:1.8rem;font-weight:600;margin:0}
html .thp-site .commerce-scope[data-commerce] .shop-tax-note,html .thp-site .commerce-scope[data-commerce] .shop-credit-unit{font-size:.85rem;color:var(--ds-muted);margin:4px 0}
html .thp-site .commerce-scope[data-commerce] .shop-buy-panel>.shop-stock{font-size:.9rem;margin-block:16px}
html .thp-site .commerce-scope[data-commerce] .shop-quantity-stepper{display:flex;align-items:stretch;width:180px;max-width:100%;gap:0}
html .thp-site .commerce-scope[data-commerce] .shop-quantity-stepper button{min-width:44px;min-height:44px;width:44px;padding:0;background:var(--ds-surface);color:var(--ds-ink);border:1px solid var(--ds-line);font-size:1.2rem;border-radius:var(--ds-radius)}
html .thp-site .commerce-scope[data-commerce] .shop-quantity-stepper input{width:80px;min-width:0;margin:0;text-align:center;border-radius:0;padding:.5rem}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .add-to-cart-form{display:grid;gap:10px;max-width:360px;margin-block:20px}
html .thp-site .commerce-scope[data-commerce] .shop-credit-explanation,html .thp-site .commerce-scope[data-commerce] .shop-delivery p,html .thp-site .commerce-scope[data-commerce] .shop-trust-note{font-size:.9rem;line-height:1.6}
html .thp-site .commerce-scope[data-commerce] .shop-delivery h2{font:600 1rem/1.4 var(--body-font);margin:20px 0 8px}
html .thp-site .commerce-scope[data-commerce] .shop-trust-note{border-top:1px solid var(--ds-line);padding-top:12px;color:var(--ds-muted)}
html .thp-site .commerce-scope[data-commerce] .shop-credit-explanation a{display:inline;text-decoration:underline}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-tab-buttons{display:flex;gap:24px;padding:0;margin:0 0 24px;border-bottom:1px solid var(--ds-line);background:transparent}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-tab-buttons [role=tab]{background:transparent;color:var(--ds-muted);border:0;border-bottom:3px solid transparent;border-radius:0;padding:12px 0;box-shadow:none;font-size:1rem;font-weight:500;min-height:48px}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-tab-buttons [aria-selected=true]{border-bottom-color:var(--ds-link);color:var(--ds-ink)}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-tab-buttons [role=tab]:hover{color:var(--ds-ink)}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-product-information{margin-top:36px;max-width:100%}
html .thp-site .commerce-scope[data-commerce] .shop-product-facts{margin:0;max-width:760px}
html .thp-site .commerce-scope[data-commerce] .shop-product-facts>div{display:grid;grid-template-columns:minmax(100px,.4fr) minmax(0,1fr);gap:20px;border-bottom:1px solid var(--ds-line);padding:12px 0}
html .thp-site .commerce-scope[data-commerce] .shop-product-facts dt{font-weight:600}
html .thp-site .commerce-scope[data-commerce] .shop-product-facts dd{margin:0;overflow-wrap:anywhere}
html .thp-site .commerce-scope[data-commerce] .shop-related{margin-top:40px}
html.thp-high-contrast .thp-site .commerce-scope[data-commerce] [data-shop-presentation] :is(.shop-product-card,.shop-category-tile,.shop-filter-panel){box-shadow:none;border:2px solid currentColor}
html.thp-high-contrast .thp-site .commerce-scope[data-commerce] [data-shop-presentation] :is(.shop-card-excerpt,.shop-stock,.shop-tax-note,.shop-credit-unit,.shop-trust-note){color:var(--ds-ink)}
@media(max-width:1199px){html .thp-site .commerce-scope[data-commerce] .shop-catalog[data-shop-presentation]{grid-template-columns:210px minmax(0,1fr);gap:18px}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html .thp-site .commerce-scope[data-commerce] .shop-related .shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-results-heading{grid-template-columns:1fr 1fr}
html .thp-site .commerce-scope[data-commerce] .shop-results-heading p{grid-column:1/-1;margin-bottom:0}
html .thp-site .commerce-scope[data-commerce] .shop-results-heading .shop-search-label{min-width:0}
}
@media(max-width:899px){html .thp-site .commerce-scope[data-commerce] .shop-catalog[data-shop-presentation]{grid-template-columns:minmax(0,1fr)}
html .thp-site .commerce-scope[data-commerce] .shop-filter-open{justify-self:start}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation][data-shop-enhanced]>.shop-filter-position{display:none}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-product-grid,html .thp-site .commerce-scope[data-commerce] .shop-related .shop-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html .thp-site .commerce-scope[data-commerce].commerce-product [data-shop-presentation] .shop-product-layout{gap:24px}
html .thp-site .commerce-scope[data-commerce].commerce-product [data-shop-presentation] .shop-buy-panel{position:static}
}
@media(max-width:599px){html .thp-site .commerce-scope[data-commerce] .shop-category-tiles[data-shop-presentation]{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html .thp-site .commerce-scope[data-commerce] .shop-category-tile>div:last-child{padding:10px}
html .thp-site .commerce-scope[data-commerce] .shop-category-tile strong{font-size:.95rem}
html .thp-site .commerce-scope[data-commerce] .shop-category-tile>div:last-child>span{font-size:.75rem}
html .thp-site .commerce-scope[data-commerce].commerce-product .shop-product-detail[data-shop-presentation] .shop-product-layout{grid-template-columns:minmax(0,1fr)}
html .thp-site .commerce-scope[data-commerce].commerce-product [data-shop-presentation] [data-product-image]{max-height:400px}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-product-grid,html .thp-site .commerce-scope[data-commerce] [data-shop-no-sidebar] .shop-product-grid,html .thp-site .commerce-scope[data-commerce] .shop-related .shop-product-grid{grid-template-columns:minmax(0,1fr)}
html .thp-site .commerce-scope[data-commerce] .shop-product-card.public-image-card{max-width:360px;width:100%}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-results-heading{grid-template-columns:minmax(0,1fr)}
html .thp-site .commerce-scope[data-commerce] .shop-results-heading p{grid-column:auto}
html .thp-site .commerce-scope[data-commerce] .shop-product-facts>div{grid-template-columns:minmax(80px,.4fr) minmax(0,1fr);gap:12px}
html .thp-site .commerce-scope[data-commerce] .shop-ratio-portrait .shop-product-image{max-height:400px}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .shop-tab-buttons{gap:20px}
html .thp-site .commerce-scope[data-commerce] .shop-product-fallback{max-width:280px}
}
@media(prefers-reduced-motion:reduce){html .thp-site .commerce-scope[data-commerce] .shop-category-tile{transition:none;transform:none}
}
html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

html .thp-site .commerce-scope[data-commerce] [data-shop-presentation] .add-to-cart-form{grid-template-columns:minmax(0,1fr)}
html .thp-site .commerce-scope[data-commerce] .shop-card-body{grid-template-rows:2.8em 3.2em 2.5em minmax(1.6em,auto)}
html .thp-site .commerce-scope[data-commerce] .shop-card-body h3{grid-row:1}
html .thp-site .commerce-scope[data-commerce] .shop-card-body .shop-card-excerpt{grid-row:2}
html .thp-site .commerce-scope[data-commerce] .shop-card-body .shop-card-price{grid-row:3}
html .thp-site .commerce-scope[data-commerce] .shop-card-body .shop-stock{grid-row:4}
