/* Small runtime adjustments. Original skin and captured CSS own the visual design. */
html{scroll-behavior:smooth}#prdDetail{height:auto;max-height:none}#prdDetail img{max-width:100%;height:auto}.restore-pending{padding:18px;color:#555;font-size:14px;line-height:1.7}.restore-account{max-width:820px;margin:40px auto 80px;padding:0 20px}.restore-account input:not([type=checkbox]){min-width:240px;padding:12px;box-sizing:border-box}.restore-account table{width:100%}.restore-account th{width:160px}.restore-account>p{margin:18px 0}.restore-categories{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}#catalog-search{display:flex;gap:10px;justify-content:flex-end;margin-bottom:30px}#catalog-search input{height:40px;padding:0 12px;border:1px solid #ddd}.restore-price{font-size:20px;font-weight:700}.restore-selection{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #ddd;padding:20px 0}.restore-selection small{color:#777}.restore-selection input{width:50px;text-align:center}.restore-selection button{padding:6px 10px;border:1px solid #ddd}.restore-cart{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:50px;margin:50px auto 100px}.restore-basket-row{display:flex;align-items:center;gap:20px;border-bottom:1px solid #ddd;padding:24px 0}.restore-basket-row img{width:110px;height:110px;object-fit:contain;background:#f7f7f7}.restore-basket-row>div{flex:1}.restore-basket-row p{margin:10px 0}.restore-basket-row input{width:60px;padding:5px}.restore-basket-row> b{white-space:nowrap}#basket-summary{border:1px solid #ddd;border-radius:8px;padding:24px;align-self:start}#basket-summary p{margin-bottom:18px}#basket-summary button{width:100%}#restore-dialog{border:0;border-radius:12px;padding:30px;max-width:440px;width:calc(100% - 70px);box-shadow:0 10px 50px #0003}#restore-dialog::backdrop,#restore-image::backdrop{background:#0009}#restore-dialog p{line-height:1.8;font-size:16px;margin-bottom:22px;white-space:pre-line}#restore-dialog button{float:right}#restore-image{border:0;background:#fff;border-radius:10px;padding:25px;max-width:95vw;max-height:95vh}#restore-image img{display:block;max-width:85vw;max-height:85vh;object-fit:contain}#restore-image button{position:absolute;right:8px;top:3px;font-size:28px;background:white;width:35px;height:35px}.jsThumbNav li{cursor:pointer}.jsThumbNav li.selected{outline:1px solid #111;border-radius:8px}.jsPrdThumbSlide img{cursor:zoom-in}.restore-frame header,.restore-frame aside,.restore-frame footer,.restore-frame .quick-menu{display:none!important}.restore-frame #contents,.restore-frame #container{padding:0!important;margin:0!important}.restore-frame .urgency-layout{padding:15px!important}.restore-aside-open .aside{transform:translateX(0)!important;visibility:visible!important;display:block!important;left:0!important;z-index:10000}.restore-search-open .jsSearchLayer{display:flex!important;visibility:visible!important;opacity:1!important;transform:none!important}.restore-expanded>.aside-child{display:block!important}.restore-options-open .jsMobileLayer{transform:none!important;display:block!important;bottom:0!important}.restore-options-open .jsMobileLayerBG{display:block!important}.quote-popup-frame{min-height:570px}.detail-tab__item,[data-original-onclick],.jsHamburger,.jsSearchBtn{cursor:pointer}.tab-content{scroll-margin-top:150px}.restore-account .ec-base-table input[type=password]{max-width:100%}
@media(max-width:768px){.restore-cart{display:block;margin:20px auto;padding:0 15px}#basket-summary{margin-top:24px}.restore-basket-row{gap:12px;flex-wrap:wrap}.restore-basket-row img{width:80px;height:80px}.restore-selection{gap:8px;font-size:12px;flex-wrap:wrap}.restore-selection p{width:100%}.restore-account input:not([type=checkbox]){width:100%;min-width:0}.restore-account th{width:100px}.restore-account{margin:25px auto}.restore-categories{gap:6px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}[data-aos]{transition:none!important;transform:none!important;opacity:1!important}}

/* Preserve the source header styles while supporting keyboard navigation. */
.header__wrap .category__item:focus-within>.sub-category,
.header__wrap .category__item:hover>.sub-category,
.header__wrap .other__menu:focus-within>.sub-category{opacity:1;visibility:visible}
.restore-search-open .jsSearchLayer{display:block!important;overflow-y:auto;z-index:10001}
.restore-search-open .jsSearchLayer form{width:100%}
.jsSearchBtn[role="button"],.search__submit[role="button"],.jsHamburger[role="button"]{cursor:pointer}
.restore-expanded>.aside-category__toggle{transform:rotate(180deg)}

/* Source-sized product cards: Swiper 4 reads their widths in auto mode. */
@media(min-width:768px){.jsTSSlide .prdList>.slide-prd-item{width:25%!important;box-sizing:border-box;flex-shrink:0}}
.jsTSSlide .thumbnail img[id^="eListPrdImage"]{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain}
.main-review__item--photo .thumb__img--attach{opacity:1;visibility:visible}
.restore-quote-status{font-size:13px;line-height:1.6;color:#666;padding:12px 0}
#quotePopupBody form{margin:0;width:100%}
#quotePopupBody .urgency-layout{width:100%;margin:0;padding:0}
#quotePopupBody .urgency-container{padding-top:20px!important}
#quotePopupBody [name="content"]{width:100%;min-height:100px;box-sizing:border-box}
#quotePopupBody [name="privacy_agreement"]{width:100%;min-height:100px;box-sizing:border-box}
.restore-board{margin-top:35px;margin-bottom:90px;scroll-margin-top:110px}
.restore-source-note{font-size:13px;color:#666;line-height:1.7;margin:20px 0}
.restore-board [data-board-record][hidden]{display:none!important}
.restore-board-pages{display:flex;justify-content:center;gap:8px;margin:30px 0}
.restore-board-pages [aria-current="page"]{font-weight:bold;border-color:#111}
.restore-board-search{display:flex;justify-content:center;gap:8px;margin:25px 0}
.restore-board-search input{padding:9px 12px;border:1px solid #ddd;width:240px;max-width:60%}
.restore-board-empty{text-align:center;padding:35px}
.restore-article{max-width:1000px;margin:35px auto 90px}
.restore-article>img{display:block;width:auto;max-width:100%;max-height:650px;margin:30px auto;object-fit:contain}
.restore-article-body{font-size:16px;line-height:1.9;white-space:pre-wrap;margin:30px 0}
.restore-article-writer{color:#777;margin:15px 0}
/* Collected detail fragments omit the source images' inline auto margins. */
body[data-page="product"] #prdDetail.restore-detail-centered img{display:block;float:none;margin-left:auto;margin-right:auto;max-width:100%;height:auto;vertical-align:top}
body[data-page="product"] #prdDetail.restore-detail-centered iframe,body[data-page="product"] #prdDetail.restore-detail-centered video{display:block;margin-left:auto;margin-right:auto;max-width:100%}
@media(max-width:767px){.restore-board .ec-base-table{overflow-x:auto}.restore-board table{min-width:580px}.restore-article{padding:0 16px}}

.restore-board-pages{flex-wrap:wrap}
.restore-board-pages button:disabled{opacity:.4;cursor:default}
.restore-review-text{white-space:pre-wrap;overflow-wrap:anywhere}
.restore-review-photo{display:block;max-width:100%;text-align:center;margin-bottom:28px}
.restore-review-photo img{display:block;max-width:100%;height:auto;margin:0 auto}
.restore-review-adjacent{list-style:none;margin:30px 0 70px;padding:0;border-top:1px solid #e5e5e5}
.restore-review-adjacent li{display:flex;gap:25px;padding:18px;border-bottom:1px solid #e5e5e5;line-height:1.5}
.restore-review-adjacent strong{flex-shrink:0}
.restore-review-list-view .boardList .xans-board-list-8 ul{display:block;width:100%;margin:0}
.restore-review-list-view .boardList .xans-board-list-8 li{display:block;width:100%;margin:0;border-bottom:1px solid #e5e5e5}
.restore-review-list-view .boardList .xans-board-list-8 li a{display:flex;align-items:center;gap:25px;padding:20px 0}
.restore-review-list-view .boardList .xans-board-list-8 li .thumbnail{width:100px;flex-shrink:0}
.restore-review-list-view .gallery-desc{margin:0}
.restore-review-list-view .gallery-subject{font-size:16px}
@media(max-width:767px){.restore-board-pages{gap:4px}.restore-board-pages button{padding:7px;min-width:30px}.restore-board-search{flex-wrap:wrap}.restore-review-list-view .boardList .xans-board-list-8 li .thumbnail{width:75px}.restore-review-list-view .boardList .xans-board-list-8 li a{gap:15px}}

/* v1.3: source catalog stylesheet and structure, scoped repairs only. */
body[data-page="list"] #catalog-banner:empty{display:none}
body[data-page="list"] #catalog-grid .thumbnail img{display:block;aspect-ratio:1/1;object-fit:contain}
body[data-page="list"] #catalog-grid .icon__box img{aspect-ratio:auto}
body[data-page="list"] .grid-control__btn{padding:0;background:transparent;border:0;cursor:pointer}
@media(max-width:767px){body[data-page="list"] .jsCateSlide{overflow-x:auto}body[data-page="list"] #catalog-categories{flex-wrap:nowrap!important;width:max-content!important;min-width:100%;box-sizing:border-box}}

/* Use the captured board package spacing and thumbnail typography. */
body[data-page="questions"] .restore-board,body[data-page="gallery"] .restore-board{margin-top:0;margin-bottom:0}

/* Keep the original recent-products panel, with locally recorded product history. */
.today-view.is-mobile .today-view__content{max-height:calc(100dvh - 85px);padding:20px 0;overflow:auto}
.restore-aside-open .aside-bg{display:block!important;opacity:1!important;visibility:visible!important;z-index:9999}
@media(max-width:767px){body[data-page="product"] .quick-menu{margin-bottom:calc(var(--mobile-buy-height, 54px) + 16px + env(safe-area-inset-bottom))}}

@media(max-width:767px){body[data-page="product"]{padding-bottom:var(--mobile-buy-height,0px)}}

.today-view__info>span{font-size:13px;font-weight:600;color:#222}

/* Captured shared title animation must not override the catalog heading. */
body[data-page="list"] .titleArea.xans-product-headcategory{display:block;text-align:center;background:none;padding:0}
