/* R17: catalogue, product discovery and comparison. Existing service hooks are retained. */
.r17-home-page .r17-category-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px 10px;align-items:start;justify-items:stretch;margin-inline:0;overflow:visible;white-space:normal;padding:20px 0;scroll-snap-type:none;scrollbar-width:none}
.r17-home-page .r17-category-grid .r15-home-category{width:auto;min-width:0;max-width:none;flex:none;white-space:normal;padding:4px 5px;gap:9px;line-height:1.35}
.r17-home-page .r17-category-grid .r15-home-category>span:last-child{display:block;-webkit-line-clamp:unset;overflow:visible;min-height:0;max-height:none;max-width:100%;overflow-wrap:anywhere;font-size:12px;line-height:1.4}
.r17-home-page .r17-category-grid .r15-home-category__icon{width:60px;height:60px;border:1px solid #f1e8e1;background:#fff9f4;box-shadow:none;transition:background .15s,border-color .15s,transform .15s}
.r17-home-page .r17-category-grid .r15-home-category:hover .r15-home-category__icon{background:#fff0e3;border-color:#ffb378;transform:translateY(-2px)}
.r17-home-page .r17-category-grid .r15-home-category--focus .r15-home-category__icon{background:#fff0e3;border-color:#ffc798}
.r17-showcase-category{display:inline-flex;align-items:center;gap:8px;max-width:100%;color:#a63f00;font-size:13px;font-weight:700;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}
.r17-showcase-category:hover{text-decoration:underline}
[dir=rtl] .r17-showcase-category>span[aria-hidden]{transform:scaleX(-1)}
.r17-product-card{position:relative;min-width:0;border:1px solid #e7e7e7!important;border-radius:14px!important;box-shadow:0 2px 7px #20202003;transition:border-color .15s,box-shadow .15s}
.r17-product-card:hover{border-color:#ffc38d!important;box-shadow:0 5px 18px #8d4d1712}
.r17-product-card>.relative{padding:12px 12px 0}
.r17-product-card .product-media{background:#fff;border-radius:10px;isolation:isolate}
.r17-product-card .product-media>img{object-fit:contain;padding:8px}
.r17-product-card .r15-product-title{font-size:14px;line-height:1.5;min-height:42px;overflow-wrap:anywhere}
.r17-product-card>.flex{padding:14px 12px;gap:0}
[data-r17-price]{unicode-bidi:isolate;display:inline-block}
.r17-product-card .r15-product-price{flex-wrap:wrap;align-items:baseline;line-height:1.5;gap:3px 8px;min-height:42px}
.r17-product-card .supplier-link{font-size:12px;line-height:1.5;min-height:24px;margin-top:6px}
.r17-product-card .r15-product-actions{gap:6px;margin-top:8px}
.r17-product-card .r15-product-actions a,.r17-product-card .r15-product-actions button{min-width:0;min-height:40px;padding:8px 5px;font-size:12px;line-height:1.3;text-align:center;white-space:normal;border-radius:8px;overflow-wrap:anywhere}
.r17-product-card [data-cart-add][data-kind=PRODUCT]{color:#fff!important;background:#c94700!important;border-color:#c94700!important}
.r17-product-card [data-cart-add][data-kind=PRODUCT]:hover{background:#a83d00!important}
.r17-product-card [data-cart-add][data-kind=SAMPLE]{background:#fff5eb!important;color:#9a3900!important;border:1px solid #ffd4ad}
.r17-product-card .r15-product-actions+.r15-product-actions a{background:#f8f8f8;color:#4b4b4b;border:1px solid #eaeaea}
.r17-compare-add{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid #dedede;background:transparent;border-radius:8px;color:#505050;font-size:12px;font-weight:600;line-height:1.4;text-align:center;white-space:normal;cursor:pointer}
.r17-compare-add[hidden],.r17-compare-tray[hidden],.r17-compare-message[hidden]{display:none!important}
.r17-product-card .r17-compare-add{margin-top:9px;width:100%;border:0;background:transparent;min-height:36px;padding:6px}
.r17-compare-add:hover{color:#a63f00;background:#fff5ed}
.r17-compare-add[aria-pressed=true]{color:#a63f00;background:#fff1e5;border-color:#ffbf87}
.r17-catalog,.r17-product-page{min-width:0;color:#303030}
.r17-catalog-results,.r17-catalog-filters,.r17-category-layout,.r17-catalog-grid>*{min-width:0}
.r17-catalog .field{max-width:100%}.r17-selected-filter{max-width:100%;min-width:0;overflow-wrap:anywhere}.r17-selected-filter>span{min-width:0}.r17-catalog-results a.rounded-full{max-width:100%;overflow-wrap:anywhere}
.r17-catalog-filters>.card,.r17-category-directory{border-radius:14px!important;border-color:#e7e7e7!important;box-shadow:none}
.r17-catalog .tree-link{min-height:38px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.r17-catalog .tree-link.is-active{background:#fff1e5;color:#a53a00;border-radius:7px}
.r17-category-directory{scroll-margin-top:150px}
.r17-category-directory>div:first-child{align-items:flex-start;flex-wrap:wrap}
.r17-category-directory-groups a{display:inline-block;line-height:1.65;overflow-wrap:anywhere}
.r17-product-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr) 280px;gap:24px}
.r17-product-information,.r17-gallery,.r17-product-supplier{min-width:0}
.r17-gallery{border-radius:16px!important;padding:14px!important;box-shadow:none}
.r17-gallery-main{position:relative;display:block;aspect-ratio:1;background:#fff;overflow:hidden;cursor:zoom-in}
.r17-gallery-main>img{width:100%;height:100%;object-fit:contain;padding:16px;transition:none}
.r17-gallery-expand{position:absolute;inset-inline-end:12px;bottom:12px;display:grid;place-items:center;width:36px;height:36px;color:#555;background:#fff;border:1px solid #e4e4e4;border-radius:50%;font-size:24px;box-shadow:0 2px 7px #0000000c}
.r17-gallery-thumbnails{display:grid;grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:8px;margin-top:12px}
.r17-gallery-thumbnails>a{display:block;aspect-ratio:1;border:1px solid #e2e2e2;border-radius:8px;padding:4px;background:#fff;overflow:hidden}
.r17-gallery-thumbnails>a[aria-current=true]{border:2px solid #df5600;padding:3px}
.r17-gallery-thumbnails img{width:100%;height:100%;object-fit:contain}
.r17-product-information h1{font-size:25px;line-height:1.35;letter-spacing:-.4px;overflow-wrap:anywhere}
.r17-product-facts{background:#fff7ef!important;border:1px solid #ffdfc1;border-radius:12px!important;padding:18px!important}
.r17-product-facts dl{gap:13px 18px}
.r17-product-facts dt{font-size:12px;line-height:1.5;color:#666}
.r17-product-facts dd{line-height:1.5;overflow-wrap:anywhere}
.r17-product-purchase{margin-top:20px}
.r17-product-request-actions,.r17-product-quote-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.r17-product-request-actions>button,.r17-product-quote-actions>a{min-width:0;min-height:46px;padding:11px 10px;border-radius:9px;font-size:13px;line-height:1.4;text-align:center;white-space:normal;overflow-wrap:anywhere}
.r17-product-request-actions>[data-kind=PRODUCT]{background:#c94700;color:white;border-color:#c94700}
.r17-product-request-actions>[data-kind=SAMPLE]{background:#fff5eb;border-color:#ffcfaa;color:#9a3900}
.r17-product-quote-actions{margin-top:8px}
.r17-product-quote-actions>a{border-color:#dedede;color:#444;background:#fff}
.r17-product-quote-actions>a svg{flex-shrink:0}
.r17-product-source-note{margin-top:12px;font-size:12px;line-height:1.65;color:#707070}
.r17-product-secondary-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.r17-detail-favorite{display:inline-flex;gap:7px;align-items:center;min-height:40px;padding:8px 12px;border:1px solid #dedede;border-radius:8px;font-size:12px;font-weight:600;line-height:1.4}
.r17-product-tools{margin-top:18px;border-top:1px solid #e6e6e6;padding-top:12px}
.r17-product-tools>summary{padding:8px 0;font-size:13px;font-weight:700;cursor:pointer;line-height:1.5}
.r17-product-tool-links{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px}
.r17-product-tool-links .btn-outline{font-size:12px;min-height:40px;white-space:normal;padding:9px 12px;line-height:1.5;text-align:center}
.r17-product-tool-links .r6-actions{margin:0;display:contents}
.r17-product-supplier{border-radius:14px!important;border-color:#e7e7e7!important;box-shadow:none;scroll-margin-top:160px}
.r17-product-supplier a,.r17-product-supplier dd{overflow-wrap:anywhere}
.r17-product-section-nav{display:flex;flex-wrap:wrap;gap:5px 28px;margin-top:30px;padding:0 20px;background:#fff;border:1px solid #e6e6e6;border-radius:12px}
.r17-product-section-nav>a{display:flex;align-items:center;min-height:54px;border-bottom:3px solid transparent;padding:12px 0 9px;color:#555;font-size:14px;font-weight:700;line-height:1.45;text-decoration:none}
.r17-product-section-nav>a:hover,.r17-product-section-nav>a:focus-visible{color:#a63f00;border-color:#df5600}
.r17-product-details{grid-template-columns:minmax(0,1fr) 280px}
.r17-product-details .card{border-radius:14px;box-shadow:none}
.r17-product-details .cf-source-details>img{max-width:100%;height:auto;margin-inline:auto;border-radius:8px}
.r17-product-specs th,.r17-product-specs td{overflow-wrap:anywhere;vertical-align:top;padding:13px}
.r17-product-specs tr:nth-child(odd){background:#f8f8f8}
#r17-description,#r17-features,#r17-related-products{scroll-margin-top:160px}
.r17-product-discovery{min-width:0}
.r17-product-discovery>.flex{flex-wrap:wrap}
.r17-discovery-note{padding:20px 22px;border:1px dashed #e6d1bd;border-radius:12px;background:#fff9f3;color:#666;font-size:14px;line-height:1.7}
.r17-gallery-dialog,.r17-compare-dialog{color:#303030;background:#fff;border:1px solid #e6e6e6;border-radius:18px;padding:0;box-shadow:0 22px 100px #0003;max-height:90dvh;width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px);overflow:hidden}
.r17-gallery-dialog::backdrop,.r17-compare-dialog::backdrop{background:#151515a6;backdrop-filter:blur(3px)}
.r17-dialog-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #e8e8e8;padding:16px 20px;background:#fff}
.r17-dialog-bar h2{font-size:18px;font-weight:800;line-height:1.4;min-width:0}
.r17-dialog-bar>button{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#f4f4f4;font-size:27px;color:#555}
.r17-gallery-stage{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;padding:16px;height:min(74dvh,780px);direction:ltr}
.r17-gallery-stage>button{width:44px;height:44px;background:#f5f5f5;border-radius:50%;font-size:30px;color:#555}
.r17-gallery-stage>img{width:100%;height:100%;min-height:0;object-fit:contain}
.r17-compare-tray{position:fixed;z-index:55;bottom:20px;inset-inline-end:20px;width:min(380px,calc(100vw - 32px));padding:15px 16px;background:#fff;border:1px solid #ffbf8a;border-radius:15px;box-shadow:0 8px 35px #63371129;color:#303030}
.r17-compare-tray-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:800}
.r17-compare-tray-heading button{font-size:12px;font-weight:600;text-decoration:underline;min-height:36px;padding:4px}
.r17-compare-preview-list{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px;padding:0;list-style:none}
.r17-compare-preview-list li{position:relative;min-width:0;width:52px;height:52px;border:1px solid #e5e5e5;border-radius:8px;background:#fff}
.r17-compare-preview-list img{width:100%;height:100%;object-fit:contain;border-radius:8px;padding:3px}
.r17-compare-preview-list button{position:absolute;top:-7px;inset-inline-end:-6px;display:grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:#fff;border:1px solid #ddd;font-size:18px;color:#555}
.r17-compare-open{display:flex;width:100%;justify-content:center;align-items:center;min-height:44px;background:#c94700;color:#fff;border:1px solid #c94700;border-radius:8px;font-size:13px;font-weight:700;padding:10px 12px}
.r17-compare-open:disabled{background:#eee;color:#666;border-color:#e3e3e3;cursor:not-allowed}
.r17-compare-message{font-size:12px;line-height:1.6;margin-top:9px;color:#666}
.r17-compare-dialog{width:min(1240px,calc(100vw - 32px))}
.r17-compare-content{overflow-y:auto;max-height:calc(90dvh - 90px);padding:18px 20px 24px;overscroll-behavior:contain}
.r17-compare-status{display:flex;gap:12px;align-items:center;min-height:80px;font-size:14px;line-height:1.6}
.r17-compare-status[aria-busy=true]::before{content:"";width:22px;height:22px;flex:0 0 22px;border-radius:50%;border:2px solid #ffe0c6;border-top-color:#c94700;animation:r17-spin .7s linear infinite}
.r17-compare-scroll{max-width:100%;overflow:auto;overscroll-behavior-inline:contain;border:1px solid #e5e5e5;border-radius:10px}
.r17-compare-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;font-size:13px;line-height:1.6}
.r17-compare-table[data-products="2"]{min-width:555px}.r17-compare-table[data-products="3"]{min-width:760px}.r17-compare-table[data-products="4"]{min-width:965px}
.r17-compare-table th,.r17-compare-table td{padding:13px 14px;text-align:start;vertical-align:top;border-bottom:1px solid #e8e8e8;overflow-wrap:anywhere;min-width:0}
.r17-compare-table th[scope=row]{width:145px;background:#f8f8f8;font-weight:600;color:#626262}
.r17-compare-table td+td,.r17-compare-table th+th{border-inline-start:1px solid #ececec}
.r17-compare-table thead th:first-child{width:145px}
.r17-compare-table thead th{position:relative;background:#fff;font-weight:700}.r17-compare-column-remove{display:grid;place-items:center;position:absolute;top:5px;inset-inline-end:5px;width:32px;height:32px;border:1px solid #ddd;border-radius:50%;background:#fff;color:#555;font-size:21px}
.r17-compare-table thead th img{display:block;width:130px;height:130px;object-fit:contain;margin:0 auto 12px}
.r17-compare-table thead th a{color:#303030;text-decoration:none;line-height:1.5}
.r17-compare-table thead th a:hover{color:#a63f00;text-decoration:underline}
.r17-compare-table tr:last-child th,.r17-compare-table tr:last-child td{border-bottom:0}
.r17-compare-table dl{margin:0}
.r17-compare-table dl>div+div{margin-top:9px}
.r17-compare-table dt{font-weight:700}
.r17-compare-table dd{margin:0;color:#666}
.r17-compare-table a{color:#a63f00;text-decoration:underline}
.r17-compare-note{font-size:12px;line-height:1.7;color:#666;margin:15px 0 0}
.r17-compare-retry{min-height:44px;padding:10px 16px;border:1px solid #dedede;border-radius:8px;font-size:13px;margin-top:12px}
.r17-compare-dialog [hidden]{display:none!important}
@keyframes r17-spin{to{transform:rotate(360deg)}}
@media(min-width:1440px){.r17-home-page .r17-category-grid{grid-template-columns:repeat(auto-fit,minmax(75px,1fr));gap:8px}.r17-home-page .r17-category-grid .r15-home-category__icon{width:56px;height:56px}}
@media(max-width:1150px){.r17-product-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.r17-product-supplier{grid-column:1/-1;position:static!important}.r17-product-supplier>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}.r17-product-supplier>dl>div{margin:0}.r17-product-details{grid-template-columns:minmax(0,1fr) 240px}.r17-home-page .r17-category-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:900px){.r17-home-page .r17-category-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 8px}.r17-category-layout{grid-template-columns:minmax(0,1fr)!important}.r17-catalog-filters{position:static!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.r17-catalog-filters>.card{margin:0}.r17-product-details{grid-template-columns:minmax(0,1fr)}.r17-product-information h1{font-size:23px}}
@media(max-width:639px){.r17-home-page .r17-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;padding:16px 0}.r17-home-page .r17-category-grid .r15-home-category__icon{width:52px;height:52px}.r17-home-page .r17-category-grid .r15-home-category>span:last-child{font-size:11px;line-height:1.4}.r17-home-page .r17-category-grid .r15-home-category{padding:2px;min-height:88px}.r17-product-card>.relative{padding:8px 8px 0}.r17-product-card>.flex{padding:11px 8px}.r17-product-card .r15-product-title{font-size:13px;line-height:1.5;min-height:39px}.r17-product-card .tag{font-size:10px}.r17-product-card .r15-product-actions{grid-template-columns:minmax(0,1fr);gap:5px;margin-top:6px}.r17-product-card .r15-product-actions+.r15-product-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.r17-product-card .r15-product-actions a,.r17-product-card .r15-product-actions button{min-height:44px;font-size:12px;padding:8px 4px}.r17-product-card .r15-product-actions+.r15-product-actions a:first-child>span:first-child{display:none}.r17-product-card .supplier-link{font-size:11px}.r17-product-card .r15-product-price{font-size:12px;min-height:56px}.r17-product-card .r17-compare-add{font-size:12px;min-height:44px}.r17-catalog-grid{gap:10px!important}.r17-catalog-filters{grid-template-columns:minmax(0,1fr)}.r17-category-directory{padding:18px!important}.r17-category-directory h2{font-size:19px}.r17-category-directory-groups{gap:20px}.r17-product-hero{grid-template-columns:minmax(0,1fr);gap:20px}.r17-product-information h1{font-size:23px}.r17-gallery{padding:10px!important}.r17-gallery-main>img{padding:12px}.r17-gallery-thumbnails{grid-template-columns:repeat(auto-fill,minmax(48px,1fr))}.r17-product-facts{padding:16px!important}.r17-product-request-actions>button,.r17-product-quote-actions>a{font-size:12px;min-height:48px;padding:10px 8px}.r17-product-supplier>dl{grid-template-columns:minmax(0,1fr)}.r17-product-section-nav{padding:0 14px;gap:0 18px;margin-top:22px}.r17-product-section-nav>a{font-size:12px;min-height:48px}.r17-product-details .card{padding:18px!important}.r17-product-specs th,.r17-product-specs td{padding:11px 8px;font-size:12px}.r17-discovery-note{padding:16px;font-size:13px}.r17-compare-tray{bottom:84px;inset-inline-end:16px;max-width:calc(100vw - 32px);padding:10px 12px}.r17-compare-tray-heading{font-size:12px;margin-bottom:5px}.r17-compare-preview-list{display:none}.r17-compare-tray-heading button{min-height:32px}.r17-gallery-dialog,.r17-compare-dialog{border-radius:13px;max-width:calc(100vw - 20px);width:calc(100vw - 20px);max-height:88dvh}.r17-dialog-bar{padding:10px 12px;gap:8px}.r17-dialog-bar h2{font-size:16px}.r17-gallery-stage{grid-template-columns:36px minmax(0,1fr) 36px;padding:8px;gap:4px;height:70dvh}.r17-gallery-stage>button{width:36px;height:44px}.r17-compare-content{padding:12px;max-height:calc(88dvh - 70px)}.r17-compare-table th[scope=row],.r17-compare-table thead th:first-child{width:110px}.r17-compare-table[data-products="2"]{min-width:430px}.r17-compare-table[data-products="3"]{min-width:590px}.r17-compare-table[data-products="4"]{min-width:750px}.r17-compare-table th,.r17-compare-table td{padding:10px;font-size:12px}.r17-compare-table thead th img{width:110px;height:110px}.r17-showcase-category{font-size:12px}.r17-home-page .r15-home-section-heading{flex-wrap:wrap;gap:10px}}
html.dark .r17-home-page .r17-category-grid .r15-home-category__icon{background:#2b2724;border-color:#44382f}
html.dark .r17-product-card,html.dark .r17-gallery,html.dark .r17-product-supplier,html.dark .r17-category-directory,html.dark .r17-catalog-filters>.card{background:#252525;border-color:#424242!important}
html.dark .r17-product-card .product-media,html.dark .r17-gallery-main,html.dark .r17-gallery-thumbnails>a{background:#fff}
html.dark .r17-catalog,html.dark .r17-product-page{color:#eee}
html.dark .r17-product-card .r15-product-actions+.r15-product-actions a{background:#303030;border-color:#484848;color:#ddd}
html.dark .r17-product-card [data-cart-add][data-kind=SAMPLE]{background:#3d2d22!important;color:#ffd0aa!important;border-color:#70513a}
html.dark .r17-compare-add,html.dark .r17-detail-favorite{color:#ddd;border-color:#505050}
html.dark .r17-compare-add:hover,html.dark .r17-compare-add[aria-pressed=true]{color:#ffd1ab;background:#3d2e23}
html.dark .r17-showcase-category{color:#ffc28c}
html.dark .r17-product-facts{background:#302820!important;border-color:#5b4330}
html.dark .r17-product-facts dt,html.dark .r17-product-source-note{color:#bfb8b2}
html.dark .r17-product-quote-actions>a,html.dark .r17-product-section-nav{background:#252525;border-color:#484848;color:#ddd}
html.dark .r17-product-request-actions>[data-kind=SAMPLE]{background:#3d2d22;color:#ffd1ab;border-color:#76513a}
html.dark .r17-product-section-nav>a{color:#ddd}
html.dark .r17-product-section-nav>a:hover{color:#ffc28c}
html.dark .r17-product-tools{border-color:#484848}
html.dark .r17-product-specs tr:nth-child(odd){background:#303030}
html.dark .r17-discovery-note{background:#2f2924;color:#c8c1ba;border-color:#65513f}
html.dark .r17-compare-tray,html.dark .r17-gallery-dialog,html.dark .r17-compare-dialog,html.dark .r17-dialog-bar{background:#252525;border-color:#505050;color:#eee}
html.dark .r17-dialog-bar>button,html.dark .r17-gallery-stage>button{background:#373737;color:#eee}
html.dark .r17-compare-message,html.dark .r17-compare-note,html.dark .r17-compare-table dd{color:#c3c3c3}
html.dark .r17-compare-table thead th{background:#252525}
html.dark .r17-compare-table th[scope=row]{background:#303030;color:#ddd}
html.dark .r17-compare-table td,html.dark .r17-compare-table th,html.dark .r17-compare-scroll{border-color:#484848}
html.dark .r17-compare-table thead th a{color:#eee}
html.dark .r17-compare-table a{color:#ffc28c}
@media(prefers-reduced-motion:reduce){.r17-product-card,.r17-home-page .r17-category-grid .r15-home-category__icon{transition:none}.r17-compare-status[aria-busy=true]::before{animation:none}}
