/* A lighter visual hierarchy using the fonts already loaded by the site. */
body{font-family:"Vazirmatn",system-ui,sans-serif;font-size:14px;font-weight:500;line-height:1.8;text-rendering:optimizeLegibility}
button,input,select,textarea{font-family:inherit}
.hero h1,.section-head h2,.catalog-category-heading h3,.filter-heading b{font-weight:800;letter-spacing:-.012em}
.hero h1{font-size:clamp(32px,3vw,41px);line-height:1.42}
.section-head h2{font-size:clamp(22px,2vw,26px)}
.product-title,.product-meta b,.product-brand,.filter-option-count,.result-count,.catalog-category-count{font-family:"DM Sans","Vazirmatn",sans-serif;font-variant-numeric:tabular-nums}
.product-title{font-weight:700;letter-spacing:-.01em}
.result-count,.catalog-page .result-count,.catalog-category-count{color:var(--navy)!important;font-size:12px;font-weight:800;background:var(--info-background)!important;border-color:var(--line)!important}
.product-meta span{color:color-mix(in srgb,var(--muted) 72%,var(--ink))!important}
.product-meta b{color:var(--navy)!important;font-weight:700;letter-spacing:.01em}

/* Compact cards with a quiet dimensional effect; touch keeps a stable layout. */
.product-card,.catalog-page .product-card{border-radius:15px;box-shadow:0 2px 4px #102b4e0b,0 12px 25px #102b4e0d;transform-style:preserve-3d;backface-visibility:hidden;transition:transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .28s ease,border-color .28s ease}
.product-visual,.catalog-page .product-visual{background:radial-gradient(circle at 50% 38%,var(--surface) 0%,var(--product-image-start) 48%,var(--product-image-end) 100%)!important}
.product-visual::before{content:"";position:absolute;inset:10px;border:1px solid color-mix(in srgb,var(--surface) 75%,transparent);border-radius:12px;box-shadow:inset 0 1px 1px #fff8;pointer-events:none;z-index:1}
.product-visual>.product-photo,.product-visual>.product-illustration{filter:drop-shadow(0 8px 10px #102b4e16);transition:transform .28s ease,filter .28s ease}
.product-card .product-visual:after{opacity:.4}
@media(hover:hover) and (pointer:fine){
  .product-card:hover,.catalog-page .product-card:hover{transform:perspective(900px) translateY(-5px) rotateX(1.4deg);box-shadow:0 8px 16px #102b4e12,0 22px 40px #102b4e1a;border-color:color-mix(in srgb,var(--cyan) 44%,var(--line))!important}
  .product-card:hover .product-visual>.product-photo,.product-card:hover .product-visual>.product-illustration{transform:translateY(-5px) scale(1.045);filter:drop-shadow(0 15px 14px #102b4e26)}
}
.catalog-page .product-visual{height:128px;flex-basis:128px}
.catalog-page .product-visual>.product-photo{height:100%;padding:12px}
.catalog-page .product-visual>.product-illustration{width:100px;height:100px}
.catalog-page .product-info{padding:9px 11px 11px}
.catalog-page .product-title{min-height:38px;margin:6px 0;font-size:12.5px;line-height:1.5;-webkit-line-clamp:2;line-clamp:2}
.catalog-page .product-general{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:2px 0 7px;color:var(--ink);font-size:11px;line-height:1.65;overflow-wrap:anywhere}
.catalog-page .product-meta{min-height:25px;padding:4px 0;font-size:10px}
.catalog-page .product-grade{min-height:31px}
.catalog-page .product-bottom{padding-top:6px;gap:5px}
.catalog-page .add-quote{min-height:33px}
body:not(.catalog-page) .catalog-category-group .product-grid{max-width:850px;margin-inline-start:0}
body:not(.catalog-page) .catalog-category-group .product-visual{height:119px;flex-basis:119px}
body:not(.catalog-page) .catalog-category-group .product-visual>.product-photo{padding:12px}
body:not(.catalog-page) .catalog-category-group .product-info{padding:8px 10px 10px}
body:not(.catalog-page) .catalog-category-group .product-title{min-height:37px;margin:5px 0 6px;font-size:12px;-webkit-line-clamp:2;line-clamp:2}
body:not(.catalog-page) .catalog-category-group .product-meta{min-height:24px;padding:4px 0;font-size:10px}
body:not(.catalog-page) .catalog-category-group .product-bottom{padding-top:5px;gap:4px}
body:not(.catalog-page) .catalog-category-group .price-contact{display:none}
body:not(.catalog-page) .catalog-category-group .add-quote{min-height:32px}

/* Facets: stronger hierarchy, clearer counts, and easier selected states. */
.filters,.catalog-page .filters{border-radius:17px;box-shadow:0 2px 4px #102b4e08,0 14px 32px #102b4e0d}
.filter-heading{gap:10px;padding-bottom:15px;border-bottom:1px solid var(--line)!important}
.filter-heading b{display:flex;align-items:center;gap:9px;font-size:14px}
.filter-heading b::before{content:"";width:9px;height:9px;border-radius:3px;background:var(--cyan);box-shadow:0 0 0 4px var(--info-background)}
.filter-heading button{font-size:11px;font-weight:700}
.filter-search{position:relative;gap:8px;color:var(--navy);font-size:11px;font-weight:700}
.filter-search input,.catalog-page .filter-search input{min-height:43px;padding-inline:13px;border-radius:10px;font-size:12px;transition:border-color .2s ease,box-shadow .2s ease}
.filter-search input:focus{outline:0;border-color:var(--cyan)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--cyan) 16%,transparent)}
.filter-group>b{font-size:12px;font-weight:800}
.filters .filter-category-choice,.filters .filter-brand-choice{min-height:40px;border-radius:9px;font-size:11px;transition:background .18s ease,border-color .18s ease}
.filters .filter-category-choice:hover,.filters .filter-brand-choice:hover{background:var(--soft)}
.filter-category-branch.is-selected>.filter-category-line,.filters .filter-brand-choice:has(input:checked){background:var(--info-background);outline:1px solid color-mix(in srgb,var(--cyan) 35%,var(--line))}
.filter-option-count{min-width:27px;margin-inline-start:auto;padding:2px 6px;border-radius:999px;background:var(--soft);color:var(--navy);font-size:11px;font-weight:800;text-align:center}
.filter-category-branch.is-selected .filter-option-count,.filter-brand-choice:has(input:checked) .filter-option-count{background:var(--surface);color:var(--link-color)}
.filters .filter-brand-choice>span{font-size:11px;font-weight:600}
.active-filters button,.catalog-page .active-filters button{font-size:11px;font-weight:700}

@media(min-width:1101px){.catalog-layout,.catalog-page .catalog-layout{grid-template-columns:250px minmax(0,1fr);gap:18px}}
.catalog-layout>.filters{position:static;max-height:none;overflow:visible;overscroll-behavior:auto}
@media(min-width:721px){.catalog-page .catalog-layout>.filters{position:sticky;top:var(--catalog-filter-top,142px);align-self:start;max-height:calc(100dvh - var(--catalog-filter-top,142px) - 16px);overflow-y:auto;overscroll-behavior:contain}}
.filter-category-line{display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:2px;align-items:center}
.filters .filter-category-choice,.filters .filter-brand-choice{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:7px;width:100%;margin:0;padding:7px 5px;color:var(--ink)!important;line-height:1.45}
.filters .filter-category-choice input,.filters .filter-brand-choice input{grid-column:1;width:16px;height:16px;margin:0}
.filter-category-choice>span,.filter-brand-choice>span{grid-column:2;min-width:0;text-align:right}
.filters .filter-category-choice>span{font-weight:600}
.filters .filter-subcategory-choice>span{text-align:right}
.filters .filter-brand-choice>span{font-size:10.5px;line-height:1.4;overflow-wrap:normal;word-break:normal;text-align:right}
.filter-category-choice>.filter-option-count,.filter-brand-choice>.filter-option-count{grid-column:3;margin:0;padding:0;min-width:0;background:transparent;color:var(--navy);font-size:10px;font-weight:700;text-align:left}
.filter-branch-toggle{grid-column:2;width:24px;min-width:24px;flex-basis:24px;margin:0;color:var(--link-color)}
.filter-category-branch.is-selected .filter-option-count,.filter-brand-choice:has(input:checked) .filter-option-count{background:transparent;color:var(--navy)}
.filters .filter-brand-group>#brand-filters{gap:2px}
.filters .filter-category-group>#category-filters{margin-top:6px}
.filter-subcategory-list{margin-bottom:6px}
.filters .filter-note{margin-top:9px;padding:8px 10px;font-size:10px;line-height:1.7}

/* Keep Persian labels and Latin product identifiers in separate reading directions. */
.suggestions button>span:nth-child(2){min-width:0}
.suggestions b{overflow-wrap:anywhere}
.suggestions .suggestion-meta{display:grid;gap:0;direction:rtl;text-align:right;font-family:"Vazirmatn","DM Sans",sans-serif}
.suggestion-meta>span{min-width:0;unicode-bidi:isolate;overflow-wrap:anywhere}
.suggestion-meta>span[dir="ltr"]{text-align:right}
.suggestion-meta bdi{direction:ltr;unicode-bidi:isolate}
.quote-item-info>.quote-item-meta{display:grid;gap:0;direction:rtl;text-align:right;font-family:"Vazirmatn","DM Sans",sans-serif;line-height:1.7}
.quote-item-meta>span{min-width:0;unicode-bidi:isolate;overflow-wrap:anywhere}
.quote-item-meta>span[dir="ltr"]{text-align:right}
.quote-item-meta bdi,.quote-item-meta a{direction:ltr;unicode-bidi:isolate}

@media(max-width:720px){
  #search-input,#filter-search,.sigma-cas-form input,.quote-drawer input[data-qty-input],#quote-note{font-size:16px}
  .quote-item-info>.quote-item-meta{font-size:11px}
  .hero h1{font-size:clamp(27px,6vw,34px)}
  .section-head h2{font-size:21px}
  .filters,.catalog-page .filters{box-shadow:0 4px 16px #102b4e0d}
  .catalog-page .product-visual{height:105px;flex-basis:105px}
  .catalog-page .product-visual>.product-photo{padding:10px}
  .catalog-page .product-visual>.product-illustration{width:78px;height:78px}
  .catalog-page .product-info{padding:8px}
  .catalog-page .product-title{min-height:38px;font-size:11.5px}
  .catalog-page .product-meta{min-height:25px;font-size:9.5px}
  body:not(.catalog-page) .catalog-category-group .product-visual{height:105px;flex-basis:105px}
  body:not(.catalog-page) .catalog-category-group .product-visual>.product-photo{padding:10px}
  body:not(.catalog-page) .catalog-category-group .product-info{padding:8px}
  body:not(.catalog-page) .catalog-category-group .product-title{min-height:38px;font-size:11.5px}
  body:not(.catalog-page) .catalog-category-group .product-meta{font-size:9.5px}
  .filters .filter-brand-group>#brand-filters{grid-template-columns:1fr}
  .filters .filter-category-choice,.filters .filter-brand-choice{min-height:42px}
}
@media(max-width:390px){
  .catalog-page .product-visual,body:not(.catalog-page) .catalog-category-group .product-visual{height:120px;flex-basis:120px}
  .catalog-page .product-info,body:not(.catalog-page) .catalog-category-group .product-info{padding:9px}
  .catalog-page .product-title,body:not(.catalog-page) .catalog-category-group .product-title{font-size:11.5px}
}
@media(prefers-reduced-motion:reduce){
  html:not(.motion-preview-force) .product-card,html:not(.motion-preview-force) .product-visual>.product-photo,html:not(.motion-preview-force) .product-visual>.product-illustration{transition:none}
  html:not(.motion-preview-force) .product-card:hover{transform:none}
  html.motion-preview-force .lab-reveal{transition-duration:.58s!important}
  html.motion-preview-force .lab-reveal.section-head h2::after{transition-duration:.5s!important}
  html.motion-preview-force .lab-hero-active .orb-one{animation-duration:8s!important;animation-iteration-count:infinite!important}
  html.motion-preview-force .lab-hero-active .molecule i{animation-duration:4s!important;animation-iteration-count:infinite!important}
  html.motion-preview-force .product-card,html.motion-preview-force .product-visual>.product-photo,html.motion-preview-force .product-visual>.product-illustration{transition-duration:.28s!important}
}

/* Floating mini product page: one reusable panel, positioned in the viewport. */
.product-hover-sheet{display:none!important}
#product-peek{box-sizing:border-box;position:fixed;z-index:180;width:min(320px,calc(100vw - 28px));max-height:calc(100dvh - 164px);overflow:auto;border:1px solid #b6d9d8;border-radius:18px;background:linear-gradient(145deg,#ffffffbd 5%,#f9fcfdb8 63%,#edf8f6b5 100%);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:0 21px 55px #0e2b4b31,0 5px 17px #0e2b4b18;opacity:0;visibility:hidden;pointer-events:none;transform:perspective(800px) translateY(22px) scale(.88) rotateX(-7deg);transform-origin:50% 85%;transition:opacity .28s ease,transform .46s cubic-bezier(.16,1,.3,1),visibility 0s linear .46s;scrollbar-width:thin;direction:rtl;text-align:right}
#product-peek.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:perspective(800px) translateY(0) scale(1) rotateX(0);transition-delay:0s}
.product-peek-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;padding:6px 13px;background:linear-gradient(110deg,#0d2a4be8,#144a61dc);color:#fff;font:700 11px "Vazirmatn",sans-serif}
.product-peek-top>span{display:inline-flex;align-items:center;gap:8px}
.product-peek-top i{width:8px;height:8px;border-radius:50%;background:#70d5c8;box-shadow:0 0 0 4px #70d5c830,0 0 15px #70d5c8a8;animation:peek-pulse 2.5s ease-in-out infinite}
.product-peek-close{display:grid;place-items:center;width:29px;height:29px;border:1px solid #ffffff55;border-radius:9px;background:#ffffff13;color:#fff;font:22px/1 "DM Sans",sans-serif;cursor:pointer}
.product-peek-close:hover,.product-peek-close:focus-visible{background:#ffffff30}
.product-peek-hero{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:center;gap:11px;padding:12px 13px 8px}
.product-peek-media{display:grid;place-items:center;width:86px;height:86px;overflow:hidden;border:1px solid #e1eeef;border-radius:14px;background:radial-gradient(circle at 50% 42%,#ffffffc9 4%,#ecf7f5ad 100%);box-shadow:inset 0 1px 4px #ffffffeb,0 7px 15px #183e5a13}
.product-peek-media,.product-peek-title-link{color:inherit;text-decoration:none;cursor:pointer}
.product-peek-media:focus-visible,.product-peek-title-link:focus-visible{outline:2px solid #409eaa;outline-offset:2px}
.product-peek-media>.product-photo{width:100%;height:100%;padding:8px;object-fit:contain}
.product-peek-media>.product-illustration{width:75px;height:75px}
.product-peek-heading{min-width:0}
.product-peek-category{display:inline-block;margin-bottom:5px;padding:3px 9px;border-radius:999px;background:#e8f6f3;color:#287d83;font:700 10px/1.8 "Vazirmatn",sans-serif}
#product-peek .product-hover-name{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;color:#143451;font:800 15px/1.45 "Vazirmatn","DM Sans",sans-serif;overflow-wrap:anywhere}
#product-peek .product-title-en{display:block;margin-top:5px;color:#5e7284;font:600 11px/1.45 "DM Sans",sans-serif;text-align:right;overflow-wrap:anywhere}
.product-peek-divider{display:flex;align-items:center;gap:10px;margin:2px 13px 7px;color:#3a8589;font:800 10px "Vazirmatn",sans-serif}
.product-peek-divider::after{content:"";flex:1;height:1px;background:linear-gradient(to left,#b4d9d8,transparent)}
#product-peek .product-hover-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 13px}
#product-peek .product-hover-row{display:flex;flex-direction:column;gap:2px;min-width:0;min-height:51px;padding:6px 8px;border:1px solid #e4edef;border-radius:9px;background:#ffffffad;font:10px/1.4 "Vazirmatn","DM Sans",sans-serif}
#product-peek .product-hover-row span{color:#698090;font-weight:600}
#product-peek .product-hover-row bdi{color:#16354e;font-weight:800;overflow-wrap:anywhere;text-align:right}
.product-peek-note{margin:9px 13px 10px;padding:7px 9px;border-inline-start:3px solid #62bdb5;border-radius:7px;background:#ecf7f4b5;color:#486d74;font:600 9px/1.7 "Vazirmatn",sans-serif}
#product-peek .product-hover-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 13px 12px}
#product-peek .product-hover-actions a,#product-peek .product-hover-actions button{display:grid;place-items:center;min-height:36px;padding:6px;border:1px solid #aad1cf;border-radius:9px;background:#f0faf8dc;color:#1e6b71;font:800 10px/1.5 "Vazirmatn",sans-serif;text-align:center;text-decoration:none;cursor:pointer;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
#product-peek .product-hover-actions button{border-color:#0d3352;background:#123d5c;color:#fff}
#product-peek .product-hover-actions a:hover,#product-peek .product-hover-actions button:hover{transform:translateY(-2px);box-shadow:0 7px 15px #123d5c1e}
#product-peek .product-hover-actions a:focus-visible,#product-peek .product-hover-actions button:focus-visible{outline:2px solid #409eaa;outline-offset:2px}
#product-peek .product-peek-hero,#product-peek .product-peek-divider,#product-peek .product-hover-fields,#product-peek .product-peek-note,#product-peek .product-hover-actions{opacity:0;transform:translateY(9px);transition:opacity .25s ease,transform .38s cubic-bezier(.16,1,.3,1)}
#product-peek.is-open .product-peek-hero,#product-peek.is-open .product-peek-divider,#product-peek.is-open .product-hover-fields,#product-peek.is-open .product-peek-note,#product-peek.is-open .product-hover-actions{opacity:1;transform:translateY(0)}
#product-peek.is-open .product-peek-divider{transition-delay:.055s}
#product-peek.is-open .product-hover-fields{transition-delay:.095s}
#product-peek.is-open .product-peek-note{transition-delay:.13s}
#product-peek.is-open .product-hover-actions{transition-delay:.165s}
@keyframes peek-pulse{50%{box-shadow:0 0 0 7px #70d5c812,0 0 20px #70d5c8c0}}
@media(max-width:720px){#product-peek{display:none!important}}
@media(prefers-reduced-motion:reduce){
  html:not(.motion-preview-force) #product-peek,html:not(.motion-preview-force) #product-peek *{animation:none!important;transition:none!important}
  html.motion-preview-force #product-peek{transition-duration:.28s,.46s,0s!important}
  html.motion-preview-force #product-peek .product-peek-hero,html.motion-preview-force #product-peek .product-peek-divider,html.motion-preview-force #product-peek .product-hover-fields,html.motion-preview-force #product-peek .product-peek-note,html.motion-preview-force #product-peek .product-hover-actions{transition-duration:.25s,.38s!important}
  html.motion-preview-force #product-peek .product-peek-top i{animation-duration:2.5s!important;animation-iteration-count:infinite!important}
}

/* Show verified Persian product names without hiding the supplier's English name. */
.product-title:has(.product-title-en){display:flex;flex-direction:column;align-items:stretch;gap:2px}
.product-title-fa{display:block;width:100%;direction:rtl;text-align:right;font-family:"Vazirmatn",sans-serif}
.product-title-en{display:block;width:100%;direction:ltr;color:#536c80;font:600 11px/1.5 "DM Sans",sans-serif;text-align:left;overflow-wrap:anywhere}
.quote-inputs{display:grid;gap:4px;margin-top:8px}
.quote-inputs input{width:100%;min-width:0;min-height:34px;padding:5px 9px;border:1px solid #cbdbe1;border-radius:8px;background:#fff;color:#183750;font:12px "Vazirmatn","DM Sans",sans-serif}
.quote-inputs .quote-quantity-label{margin-top:4px;color:#506879;font-size:11px;font-weight:700}
.quote-item-info>.remove-item{margin-top:8px;padding:3px 10px;border:1px solid #d7e4e9;border-radius:7px;background:#fff;color:#546878}
.quote-copy{width:100%;min-height:38px;margin-top:8px}

/* Give request items a compact mobile layout and keep entry fields readable. */
@media(max-width:720px){
  .quote-drawer{padding:16px;max-height:100dvh}
  .drawer-head{padding-bottom:11px}
  .drawer-intro{margin:10px 0;font-size:11px;line-height:1.7}
  .quote-items{min-height:0}
  .quote-item{display:grid;grid-template-columns:46px minmax(0,1fr);gap:3px 9px;padding:11px 0}
  .quote-item-art{grid-column:1;grid-row:1 / span 2;width:46px;height:46px;border-radius:9px}
  .quote-item-art .product-illustration{width:42px;height:42px}
  .quote-item-info{display:contents}
  .quote-item-info>b{grid-column:2;min-width:0;color:var(--navy);font:700 12px/1.55 "Vazirmatn","DM Sans",sans-serif;direction:rtl;unicode-bidi:plaintext;text-align:right;overflow-wrap:anywhere}
  .quote-item-info>.quote-item-meta{grid-column:2;min-width:0;font-size:10px;line-height:1.45}
  .quote-inputs{grid-column:1/-1;gap:3px;margin-top:5px}
  .quote-inputs .quote-quantity-label{margin-top:2px;font-size:10px}
  .quote-inputs input{min-height:36px;padding:5px 9px;font-size:16px}
  .quote-item-info>.remove-item{grid-column:1/-1;justify-self:start;margin-top:4px}
  .quote-send{padding-top:10px}
  .quote-send textarea{width:100%;height:76px;max-height:108px;resize:vertical;font-size:16px;line-height:1.5}
  .quote-send>p{margin:6px 0;line-height:1.5}
  .quote-send .button{min-height:38px;margin-top:6px}
}

/* Make the desktop product taxonomy readable without an empty hover panel. */
@media(min-width:721px){
  .site-header > .nav .nav-dropdown-products .nav-dropdown-heading{width:auto;padding:0 0 12px;margin:0 0 14px;border-bottom:1px solid var(--line)}
  .site-header > .nav .nav-dropdown-products .nav-mega-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;width:100%;min-height:0;border:0}
  .site-header > .nav .nav-dropdown-products .nav-mega-group{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
  .site-header > .nav .nav-dropdown-products .nav-mega-title{min-height:0;padding:0;font-size:13px;font-weight:700}
  .site-header > .nav .nav-dropdown-products .nav-mega-title .nav-category-symbol{display:grid}
  .site-header > .nav .nav-dropdown-products .nav-mega-group .nav-subcategory-links{display:flex;position:static;inset:auto;flex-wrap:wrap;gap:5px;margin-top:9px;padding:0}
  .site-header > .nav .nav-dropdown-products .nav-mega-group .nav-category-description{display:block;margin-top:8px;color:#607889;font-size:11px}
  .site-header > .nav .nav-dropdown-products .nav-subcategory-links > a{padding:4px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:11px}
}
@media(min-width:1040px){
  .site-header > .nav .nav-dropdown-products .nav-mega-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Catalog mobile header: keep the count, sort and return link on a clear grid. */
.catalog-page .catalog-section .section-head .eyebrow{display:none}
@media(max-width:720px){
  .catalog-page .catalog-section .section-head{display:block;padding:18px}
  .catalog-page .catalog-section .section-head h2{margin:0;font-size:21px;line-height:1.55}
  .catalog-page .catalog-head-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:10px;margin-top:13px}
  .catalog-page .result-count{grid-column:1/-1;justify-self:start;padding:5px 11px;font-size:12px}
  .catalog-page .catalog-sort-label{grid-column:1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px;min-width:0;font-size:11px}
  .catalog-page .catalog-sort-label select{max-width:none;min-width:0;width:100%;padding-inline:5px;font-size:11px}
  .catalog-page .catalog-section .text-link{grid-column:2;display:flex;align-items:center;justify-content:center;min-width:0;padding:7px 8px;white-space:normal;text-align:center;font-size:11px;line-height:1.5}
  .catalog-page .catalog-section .text-link span{font-size:inherit}
}
@media(max-width:420px){
  .catalog-page .catalog-head-actions{grid-template-columns:1fr}
  .catalog-page .catalog-sort-label,.catalog-page .catalog-section .text-link{grid-column:1}
}

/* Show a local illustration while a remote product image loads or fails. */
.product-visual{position:relative}
.product-visual>.product-image-placeholder{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1}
.product-visual>.product-image-placeholder>.product-illustration{width:min(72%,100px);height:min(72%,100px);opacity:.85}
.product-visual>.product-photo{opacity:0}
.product-visual.has-loaded-image>.product-photo{opacity:1}
.product-visual.has-loaded-image>.product-image-placeholder{display:none}

/* Keep the mobile detail action visible above long product specifications. */
.detail-overlay:not([hidden]){animation:catalog-detail-fade .22s ease-out both}
.detail-overlay:not([hidden]) .detail-modal{animation:catalog-detail-enter .26s cubic-bezier(.2,.8,.2,1) both}
@keyframes catalog-detail-fade{from{opacity:0}to{opacity:1}}
@keyframes catalog-detail-enter{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.detail-content .detail-description,.detail-content .detail-brand,.detail-content .detail-note{color:color-mix(in srgb,var(--ink) 82%,var(--muted))!important}
.detail-fields span,.detail-fields b{color:color-mix(in srgb,var(--ink) 84%,var(--muted))!important}
.detail-fields b{font-weight:650}
@media(max-width:720px){
  .detail-overlay{padding:12px}
  .detail-modal{display:flex;flex-direction:column;gap:0;max-height:min(88vh,88dvh);overflow:hidden;padding:0}
  .detail-close{top:12px;left:12px}
  .detail-art{flex:0 0 auto;width:150px;height:118px;min-height:0;max-width:none;margin:14px auto 4px}
  .detail-art>.product-photo{max-height:116px}
  .detail-art .product-illustration{width:110px;height:110px}
  .detail-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 19px 15px;-webkit-overflow-scrolling:touch}
  .detail-content h2{font-size:18px;line-height:1.35}
  .detail-content .detail-description{font-size:12px;line-height:1.65}
  .detail-content>.button{position:sticky;bottom:0;z-index:2;display:flex;width:100%;min-height:48px;margin-top:15px;box-shadow:0 -8px 14px var(--surface);font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .detail-overlay:not([hidden]),.detail-overlay:not([hidden]) .detail-modal{animation:none}
}

/* Admin-controlled quick preview. Reduced-motion preferences remain authoritative. */
body #product-peek,body.catalog-page #product-peek{width:min(var(--peek-width,320px),calc(100vw - 28px));background:color-mix(in srgb,var(--peek-background,#fff) calc(var(--peek-opacity,.73)*100%),transparent);-webkit-backdrop-filter:blur(var(--peek-blur,4px));backdrop-filter:blur(var(--peek-blur,4px));transition-duration:var(--peek-duration,460ms),var(--peek-duration,460ms),0s}
#product-peek .product-peek-top{background:var(--peek-header,#143c55)}
body #product-peek .product-hover-name,body #product-peek .product-hover-row bdi,body.catalog-page #product-peek .product-hover-name,body.catalog-page #product-peek .product-hover-row bdi{color:var(--peek-text,#16354e)}
#product-peek [hidden]{display:none!important}
html[data-peek-image="false"] #product-peek .product-peek-media{display:none}
html[data-peek-image="false"] #product-peek .product-peek-hero{grid-template-columns:1fr}
html[data-peek-english="false"] #product-peek .product-title-en{display:none}
.searchbar input[type="search"],.header-search input[type="search"]{min-width:0;unicode-bidi:plaintext;letter-spacing:normal}
.searchbar input::placeholder,.header-search input::placeholder{letter-spacing:normal;opacity:1}
.info-page .quote-item-art>img{width:100%;height:100%;object-fit:contain;padding:5px}
@media(prefers-reduced-motion:reduce){#product-peek{transition:none!important}}
