:root{--blue:#123be3;--deep:#101827;--muted:#64748b;--line:#e2e8f0;--bg:#f7f9fc;--white:#fff;--green:#0a7e53}*{box-sizing:border-box}body{margin:0;font:16px/1.55 system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--deep);background:var(--bg)}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.wrap{width:min(1180px,calc(100% - 32px));margin:auto}.top{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.nav{display:flex;align-items:center;gap:20px;min-height:76px}.brand{display:flex;align-items:center;gap:9px;color:var(--deep);font-size:19px;font-weight:850;white-space:nowrap}.brand img{height:46px;width:46px;object-fit:contain}.blue{color:var(--blue)}.navsearch{display:flex;flex:1;max-width:650px;margin-left:auto;gap:6px}.navlink{font-weight:650;white-space:nowrap}.navsearch input{min-width:0;flex:1}.navsearch button,.btn,button{background:var(--blue);color:white;border:0;border-radius:10px;padding:12px 16px;min-height:44px;font:inherit;font-weight:650;cursor:pointer}.btn{display:inline-block;text-align:center}.btn:hover,button:hover{background:#0824a0;color:white;text-decoration:none}.secondary{background:white;border:1px solid var(--line);color:var(--deep)}input,textarea,select{display:block;width:100%;font:inherit;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:var(--deep);padding:12px;min-height:44px}textarea{min-height:100px}label{display:block;font-weight:650;margin:10px 0 5px}.hero{padding:38px 0 15px}.hero h1{font-size:clamp(27px,4vw,42px);line-height:1.15;margin:0 0 12px}.muted{color:var(--muted)}.small{font-size:13px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.chip{border:1px solid var(--line);background:#fff;padding:8px 12px;border-radius:999px;font-size:14px;color:var(--deep)}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:18px 0 40px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.product{display:flex;flex-direction:column}.photo{height:180px;display:flex;align-items:center;justify-content:center;background:#f1f5ff}.photo img{width:100%;height:100%;object-fit:contain}.placeholder{font-weight:850;letter-spacing:2px;color:#5570de}.prod-body{padding:16px;display:flex;flex:1;flex-direction:column;gap:12px}.prod-title{font-weight:700;color:var(--deep);line-height:1.35;min-height:52px;overflow-wrap:anywhere}.price{font-size:22px;font-weight:800;margin-top:auto}.prod-body button{width:100%}.panel{background:#fff;padding:22px;border:1px solid var(--line);border-radius:14px;margin:18px 0}.two{display:grid;grid-template-columns:1fr 1fr;gap:22px}.detail{display:grid;grid-template-columns:42% 1fr;gap:30px;margin:30px 0}.detail .photo{height:360px;border-radius:16px}.detail h1{font-size:clamp(26px,3vw,38px);line-height:1.22}.flow{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.notice{padding:14px;border-radius:10px;background:#eaf4ff}.success{background:#e9f8f0}.error{background:#fff1f0;color:#9b1c1c}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}td,th{border-bottom:1px solid var(--line);padding:12px;text-align:left;vertical-align:top}th{background:#f8fafc}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.full{grid-column:1/-1}.adminnav{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.adminnav a{padding:9px 12px;background:#fff;border:1px solid var(--line);border-radius:8px}.pagination a{padding:8px 12px;margin:4px;border:1px solid var(--line);display:inline-block;border-radius:8px}footer{border-top:1px solid var(--line);background:white;color:var(--muted);margin-top:40px;padding:24px 0}footer a{color:inherit}.qty{max-width:90px}.tag{font-size:12px;background:#eef2ff;color:#193db8;border-radius:5px;padding:3px 7px}.prose{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav{gap:9px;flex-wrap:wrap;padding:8px 0}.navsearch{order:3;flex-basis:100%;max-width:none;margin:0 0 7px}.navlink{margin-left:auto}.detail{grid-template-columns:1fr}.detail .photo{height:280px}}@media(max-width:540px){body{font-size:15px}.wrap{width:calc(100% - 24px)}.grid{gap:10px}.product .photo{height:130px}.prod-body{padding:12px;gap:9px}.prod-title{font-size:14px;min-height:0}.price{font-size:17px}.prod-body button{padding:9px;font-size:13px}.two,.formgrid{grid-template-columns:1fr}.full{grid-column:auto}.panel{padding:15px}.hero{padding-top:22px}h2{font-size:21px}.brand{font-size:17px}}
/* Minimal conversational storefront — other pages retain their existing layouts. */
body:has(.simple-search) .navsearch{display:none}
.simple-search{max-width:810px;margin:54px auto 36px;text-align:center;padding:0 8px}
.simple-eyebrow{color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.13em;margin-bottom:12px}
.simple-search h1{font-size:clamp(28px,calc(5vw - 2px),52px);line-height:1.12;letter-spacing:-.035em;margin:0 0 14px}
.simple-search>p{color:var(--muted);margin:0 auto 25px;max-width:580px}
.simple-search-box{display:flex;align-items:center;gap:8px;background:white;padding:7px;border:1.5px solid #cbd5e1;border-radius:17px;box-shadow:0 8px 30px rgba(16,24,39,.07)}
.simple-search-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #123be320}
.simple-search-box input{flex:1;min-width:0;border:0;box-shadow:none;outline:0;font-size:17px;padding:13px 10px;background:transparent}
.simple-search-box button{white-space:nowrap;border-radius:11px;min-height:48px;padding:12px 20px}
.simple-search .simple-examples{font-size:14px;margin-top:14px;color:var(--muted)}
.simple-examples a{color:#2541c7;font-weight:600}
.simple-results{margin-bottom:40px}
.simple-result-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.simple-result-head h2{margin:0;font-size:clamp(21px,3vw,27px)}
.simple-grid{margin-top:0}
.simple-empty{text-align:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:42px 22px;max-width:700px;margin:18px auto}
.simple-empty strong{font-size:20px}.simple-empty p{color:var(--muted)}
.simple-reset{display:inline-block;margin-left:18px}
.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}
@media(max-width:540px){.simple-search{margin:32px auto 28px}.simple-search-box{padding:5px;border-radius:13px}.simple-search-box input{font-size:16px;padding:12px 7px}.simple-search-box button{min-height:44px;padding:10px 13px}.simple-result-head{align-items:center}.simple-empty{padding:28px 16px}}

/* Browse-first discovery: displays only live database offerings. */
.discovery{margin:0 0 38px}.discovery-intro{margin:0 0 22px}.discovery-intro h2{font-size:clamp(22px,3vw,29px);margin:0 0 4px}.discovery-intro p{margin:0;color:var(--muted)}
.discovery-group{margin:0 0 23px}.discovery-group h3{font-size:17px;margin:0 0 10px}.discovery-scroll{display:flex;gap:10px;flex-wrap:wrap}
.discovery-pill{display:flex;flex-direction:column;gap:2px;padding:12px 16px;min-height:63px;min-width:133px;max-width:270px;border-radius:13px;background:#fff;border:1px solid var(--line);color:var(--deep);font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.discovery-pill:hover{border-color:#123be3;background:#f4f6ff;text-decoration:none}.discovery-pill small{color:var(--muted);font-weight:500;font-size:12px}.discovery-static{cursor:default}.discovery-products{margin:0 0 35px}
@media(max-width:540px){.discovery{margin-bottom:27px}.discovery-group{margin-bottom:20px}.discovery-scroll{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;padding:0 0 8px;scrollbar-width:thin}.discovery-pill{flex:0 0 154px;scroll-snap-align:start;min-width:0;padding:12px}.discovery-intro p{font-size:14px}.discovery-products{margin-bottom:24px}}

/* Stackinova 2026 mobile-first catalogue. Namespaced to avoid changing manage.php. */
:root{--primary:#173ce8;--ink:#15243a;--subtle:#66758d;--border:#e2e9f3;--surface:#fff;--canvas:#f7f9fd}
html{scroll-behavior:smooth}body{background:var(--canvas);color:var(--ink)}
.shell{width:min(1180px,calc(100% - 40px));margin-inline:auto}.visually-hidden,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{position:fixed;z-index:100;top:8px;left:8px;background:white;padding:12px}
.site-header{height:76px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:30}.topbar{display:flex;align-items:center;justify-content:space-between;height:100%;gap:14px}.site-brand{font-size:21px;font-weight:900;letter-spacing:-.045em;display:inline-flex;align-items:center;gap:12px;color:var(--ink);white-space:nowrap}.site-brand>span:last-child>span,.footer-inner strong span{color:var(--primary)}.site-brand:hover{text-decoration:none}.brand-symbol{display:grid;place-items:center;width:39px;height:39px;border:1px solid #bfd0ff;border-radius:13px;color:var(--primary);font-size:30px;font-weight:400}.header-right{display:flex;align-items:center;gap:22px}.header-link{font-size:14px;font-weight:600;color:var(--subtle)}.header-contact{display:inline-flex;align-items:center;gap:10px;color:white;background:var(--primary);padding:11px 17px;border-radius:12px;font-size:14px;font-weight:750;min-height:44px}.header-contact:hover{color:white;text-decoration:none;background:#0b2db7}
.search-hero{text-align:center;max-width:820px;margin:62px auto 48px}.hero-kicker,.section-kicker{color:var(--primary);font-size:11px;font-weight:850;letter-spacing:.13em}.search-hero h1{font-size:clamp(31px,5vw,53px);letter-spacing:-.045em;line-height:1.13;margin:12px 0}.search-hero>p{max-width:590px;margin:0 auto 24px;color:var(--subtle);font-size:16px}.search-form{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #cbd7e9;border-radius:18px;padding:7px;box-shadow:0 14px 38px #1c33850d}.search-form:focus-within{outline:3px solid #dce5ff;border-color:var(--primary)}.search-icon{width:36px;font-size:29px;color:#7e90ad;line-height:1}.search-form input{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none;background:transparent;min-height:49px;padding:9px 0;font-size:16px}.search-form button{border-radius:12px;padding:12px 23px;min-height:49px}.search-examples{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:15px;color:var(--subtle);font-size:13px}.search-examples a{border:1px solid #dfe7f6;border-radius:100px;padding:4px 10px;background:white;font-weight:600}.active-filters{margin:-16px 0 25px;display:flex;gap:12px;align-items:center;font-size:13px;color:var(--subtle)}.active-filters a{border:1px solid var(--border);border-radius:100px;padding:5px 12px;background:white}
.browse-section{margin:0 0 45px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:17px}.section-title h2{font-size:clamp(23px,3vw,29px);letter-spacing:-.03em;margin:4px 0 0;line-height:1.15}.section-hint{font-size:13px;color:var(--subtle)}.brand-grid,.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.brand-card,.category-card,.format-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--border);border-radius:17px;color:var(--ink);min-width:0;min-height:92px;padding:13px;transition:border-color .15s,box-shadow .15s,transform .15s}.brand-card:hover,.category-card:hover,.format-card:hover{border-color:#9bb0fe;box-shadow:0 8px 22px #1d35800e;text-decoration:none;transform:translateY(-1px)}.brand-graphic,.category-graphic,.format-icon{display:grid;place-items:center;flex:0 0 59px;width:59px;height:59px;background:#f6f8fe;border:1px solid #e6ebf5;border-radius:14px;overflow:hidden;color:var(--primary);font-size:26px;font-weight:800}.brand-graphic img,.category-graphic img,.format-icon img{display:block;width:100%;height:100%;max-width:48px;max-height:38px;object-fit:contain}.logo-fallback{font-size:16px;font-weight:850;letter-spacing:-.04em}.brand-copy,.category-copy,.format-card>span:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.brand-copy strong,.category-copy strong,.format-card strong{font-size:13px;font-weight:780;line-height:1.3;overflow-wrap:anywhere}.brand-copy small,.category-copy small,.format-card small{color:var(--subtle);font-size:12px}.card-arrow{align-self:flex-start;color:#8b99b3;font-size:14px}.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-card{align-items:flex-start;min-height:96px}.category-graphic{flex:0 0 49px;width:49px;height:49px;font-weight:500}.category-copy strong{font-size:13px;line-height:1.38}.format-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.format-icon{flex:0 0 54px;width:54px;height:54px}.format-card{min-height:88px}
.products-section{padding-top:7px;margin-bottom:65px}.product-section-title{margin-bottom:20px}.count-chip{font-size:12px;color:#4a5a74;padding:7px 11px;border:1px solid var(--border);background:white;border-radius:100px;white-space:nowrap}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.product-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:19px;box-shadow:0 4px 17px #1b295309}.product-visual{height:204px;background:linear-gradient(180deg,#f9fbff,#f1f5fe);display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid var(--border)}.product-visual>img{width:100%;height:100%;object-fit:contain;padding:15px}.product-placeholder{color:#8193c7;font-size:51px;font-weight:400}.image-pending{position:absolute;bottom:13px;font-size:11px;color:#66758d;background:#fff;border-radius:30px;padding:4px 9px}.product-content{padding:17px;display:flex;flex-direction:column;flex:1;min-width:0}.product-meta{display:flex;gap:5px;justify-content:space-between;align-items:center;font-size:11px;color:#536b9d;font-weight:650}.product-meta span:last-child{background:#eff3ff;border-radius:50px;padding:3px 7px}.product-card h3{font-size:15px;line-height:1.48;letter-spacing:-.006em;font-weight:780;margin:12px 0 5px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow-wrap:anywhere}.product-sku{font-size:12px;color:var(--subtle);margin-bottom:4px;overflow-wrap:anywhere}.product-description{font-size:13px;line-height:1.5;color:#63738b;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:9px 0}.gallery-thumbs{display:flex;gap:6px;overflow-x:auto;padding:6px 0 2px}.gallery-thumb{width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid var(--border);background:#fff;border-radius:9px;padding:4px}.gallery-thumb.selected{border:2px solid var(--primary)}.gallery-thumb img{width:100%;height:100%;object-fit:contain}.specs{margin-top:12px;border-top:1px solid var(--border);font-size:12px}.specs summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;list-style:none;min-height:42px;color:#2346af;font-weight:700}.specs summary::-webkit-details-marker{display:none}.spec-content{padding:0 0 10px;color:#52627c;max-height:235px;overflow-y:auto}.spec-content p{white-space:normal;overflow-wrap:anywhere}.spec-content dl{display:grid;grid-template-columns:minmax(75px,1fr) 1.4fr;gap:7px 10px;margin:10px 0}.spec-content dt{font-weight:700}.spec-content dd{margin:0;overflow-wrap:anywhere}.product-footer{margin-top:auto;padding-top:13px;border-top:1px solid var(--border)}.price-block{display:flex;flex-direction:column;gap:1px;margin-bottom:12px}.price-caption{color:var(--subtle);font-size:11px}.price-block strong{font-size:20px;letter-spacing:-.025em;color:#13213a;line-height:1.4}.price-block strong.quote-price{font-size:16px}.product-cta{display:flex;justify-content:center;align-items:center;gap:8px;min-height:44px;border-radius:11px;background:var(--primary);color:#fff;font-weight:750;font-size:14px}.product-cta:hover{text-decoration:none;color:#fff;background:#0c2cba}.empty-state{text-align:center;background:#fff;border:1px solid var(--border);border-radius:20px;padding:52px 20px}.empty-state>span{font-size:47px;color:#8497bc}.empty-state h3{margin:7px 0}.empty-state p{color:var(--subtle);max-width:410px;margin:0 auto 24px}.primary-link{display:inline-flex;padding:12px 20px;background:var(--primary);border-radius:10px;color:#fff}.pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:30px;font-size:14px}.pagination a{background:#fff;border:1px solid var(--border);padding:11px 16px;border-radius:10px;color:var(--primary)}.site-footer{border-top:1px solid var(--border);background:white;padding:24px 0}.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:12px;color:var(--subtle)}.footer-inner>span:first-child{display:flex;flex-direction:column;gap:2px}.footer-inner strong{font-size:15px;letter-spacing:-.035em;color:var(--ink)}
@media(max-width:1050px){.brand-grid,.category-grid,.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.site-header{height:66px}.header-link{display:none}.search-hero{margin:37px auto 33px}.brand-grid,.category-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.format-grid{grid-template-columns:1fr 1fr}.brand-card,.category-card{padding:11px}.brand-graphic{flex-basis:51px;width:51px;height:51px}.brand-graphic img{max-width:43px;max-height:31px}.product-visual{height:170px}.product-content{padding:13px}.product-card h3{font-size:14px}}
@media(max-width:490px){.shell{width:calc(100% - 28px)}.site-brand{font-size:18px;gap:7px}.brand-symbol{width:33px;height:33px;font-size:23px}.header-contact{padding:9px 11px;font-size:12px}.search-hero{margin:27px auto 31px}.search-hero h1{font-size:32px}.search-hero>p{font-size:14px;line-height:1.55}.search-form{padding:5px;border-radius:13px;gap:4px}.search-icon{display:none}.search-form input{font-size:14px;padding:11px 8px;min-height:44px}.search-form button{font-size:13px;padding:10px 13px;min-height:44px}.search-examples{gap:6px}.section-title h2{font-size:22px}.section-hint{display:none}.browse-section{margin-bottom:33px}.brand-grid,.category-grid{gap:9px}.brand-card{min-height:88px;gap:8px;flex-wrap:wrap;padding:10px}.brand-graphic{flex:0 0 42px;width:42px;height:42px;border-radius:11px}.brand-graphic img{max-width:35px;max-height:30px}.logo-fallback{font-size:13px}.brand-copy strong,.category-copy strong{font-size:12px}.brand-copy small,.category-copy small{font-size:11px}.card-arrow{display:none}.category-card{gap:8px;min-height:91px;padding:10px}.category-graphic{flex:0 0 37px;width:37px;height:37px;font-size:20px}.format-grid{grid-template-columns:1fr}.format-card{min-height:72px}.format-icon{width:46px;height:46px;flex-basis:46px}.product-grid{gap:10px}.product-visual{height:140px}.product-visual>img{padding:10px}.product-placeholder{font-size:36px}.image-pending{font-size:9px;bottom:9px}.product-content{padding:11px}.product-meta{font-size:10px;flex-wrap:wrap}.product-card h3{font-size:13px;line-height:1.4;margin:8px 0 6px;-webkit-line-clamp:3}.product-sku{font-size:10px}.product-description{font-size:11px}.price-block strong{font-size:17px}.product-cta{font-size:12px;gap:4px}.specs summary{font-size:11px}.product-section-title{align-items:center}.footer-inner{flex-direction:column;align-items:start}.pagination{gap:7px}.pagination a{padding:9px 12px}.count-chip{font-size:11px}}
@media(max-width:350px){.brand-grid,.category-grid{grid-template-columns:1fr 1fr}.brand-card,.category-card{align-items:flex-start}.brand-graphic,.category-graphic{display:none}.product-grid{grid-template-columns:1fr}.product-visual{height:210px}.product-card h3{font-size:15px}.product-content{padding:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Customer reviews, scoped to storefront pages. */
.customer-reviews{margin-top:28px}.review-score{font-size:17px}.review-score strong{font-size:28px}.review-stars{color:#b7791f;letter-spacing:2px;font-size:21px}.customer-review{border-top:1px solid var(--line);padding:15px 0}.customer-review h3{margin:5px 0}.customer-review p{overflow-wrap:anywhere;white-space:pre-line}.customer-review-form{max-width:760px}.review-form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.review-check{display:flex;align-items:flex-start;gap:10px;font-weight:400}.review-check input{width:19px;height:19px;min-height:0;flex:0 0 19px;margin-top:3px}.review-honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.review-actions{display:flex;gap:10px;flex-wrap:wrap}.review-admin-tabs{display:flex;gap:13px;margin:18px 0}.review-form-details summary{cursor:pointer;font-weight:700;margin-bottom:14px}@media(max-width:540px){.review-form-row{grid-template-columns:1fr}}

/* Stackinova catalogue discovery cards — matches current index.php markup.
   This section deliberately does not touch .product, .product-card, checkout or admin. */
.discovery .brand-directory,
.discovery .category-directory {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.discovery .brand-tile,
.discovery .category-tile {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:86px;
  padding:13px;
  border:1px solid var(--border,#e2e9f3);
  border-radius:15px;
  background:#fff;
  color:var(--ink,#15243a);
  text-decoration:none;
  overflow:hidden;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.discovery .brand-tile:hover,
.discovery .category-tile:hover {
  border-color:#a7baff;
  box-shadow:0 6px 20px rgba(22,48,125,.08);
  text-decoration:none;
}
.discovery .brand-tile[hidden],
.discovery .category-tile[hidden] {display:none!important;}
.discovery .brand-icon,
.discovery .category-symbol {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 60px;
  width:60px;
  height:60px;
  min-width:0;
  border-radius:12px;
  border:1px solid #e6ebf5;
  background:#f6f8fe;
  overflow:hidden;
}
.discovery .brand-icon img {
  display:block;
  width:100%;
  height:100%;
  max-width:52px;
  max-height:45px;
  object-fit:contain;
}
.discovery .brand-initials {
  font-size:19px;
  line-height:1;
  font-weight:800;
  color:var(--primary,#173ce8);
}
.discovery .brand-initials[hidden] {display:none!important;}
.discovery .brand-info,
.discovery .category-tile > span:last-child {
  display:flex;
  flex:1 1 0;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  min-width:0;
  overflow-wrap:anywhere;
}
.discovery .brand-info strong,
.discovery .category-tile strong {
  font-size:14px;
  line-height:1.35;
  font-weight:750;
  color:var(--ink,#15243a);
}
.discovery .brand-info small,
.discovery .category-tile small {
  display:block;
  color:var(--subtle,#66758d);
  font-size:12px;
  line-height:1.3;
  font-weight:400;
}
.discovery .category-symbol {
  flex-basis:48px;
  width:48px;
  height:48px;
  font-size:25px;
  color:var(--primary,#173ce8);
}
.discovery .reveal-toggle {
  display:inline-block;
  width:auto;
  margin-top:15px;
  padding:10px 16px;
  border-radius:10px;
  font-size:14px;
}
@media(max-width:1050px){
  .discovery .brand-directory,.discovery .category-directory {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:750px){
  .discovery .brand-directory,.discovery .category-directory {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .discovery .brand-tile,.discovery .category-tile {padding:11px;min-height:78px;gap:9px;}
  .discovery .brand-icon {flex-basis:48px;width:48px;height:48px;}
  .discovery .brand-icon img {max-width:42px;max-height:38px;}
  .discovery .category-symbol {flex-basis:40px;width:40px;height:40px;font-size:22px;}
  .discovery .brand-info strong,.discovery .category-tile strong {font-size:12px;}
  .discovery .brand-info small,.discovery .category-tile small {font-size:11px;}
}
@media(max-width:390px){
  .discovery .brand-tile,.discovery .category-tile {padding:9px;gap:7px;}
  .discovery .brand-icon {flex-basis:38px;width:38px;height:38px;}
  .discovery .brand-icon img {max-width:34px;max-height:30px;}
  .discovery .category-symbol {flex-basis:34px;width:34px;height:34px;font-size:19px;}
}

/* 2026-11-05 — Restore polished catalogue product cards.
   Matches the current product_card() HTML in includes/bootstrap.php.
   Scoped to catalogue results; does not change product detail, reviews or checkout. */
.simple-results .simple-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.simple-results .simple-grid > .product.card {
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  background:#fff;
  border:1px solid #e2e9f3;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 4px 16px rgba(23,46,92,.055);
  transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease;
}
.simple-results .simple-grid > .product.card:hover {
  border-color:#c4d1ed;
  box-shadow:0 10px 28px rgba(23,46,92,.11);
  transform:translateY(-2px);
}
.simple-results .simple-grid .product .photo {
  display:flex;
  align-items:center;
  justify-content:center;
  height:205px;
  padding:16px;
  flex-shrink:0;
  background:linear-gradient(180deg,#fafcff 0%,#f2f6fd 100%);
  border-bottom:1px solid #e8edf6;
  overflow:hidden;
}
.simple-results .simple-grid .product .photo img {
  width:100%;
  height:100%;
  object-fit:contain;
  mix-blend-mode:multiply;
}
.simple-results .simple-grid .product .placeholder {font-size:18px;text-align:center;overflow-wrap:anywhere;letter-spacing:.06em;}
.simple-results .simple-grid .product .prod-body {
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
  padding:17px;
  gap:9px;
}
.simple-results .simple-grid .product .product-meta {
  display:block;
  font-size:11px;
  font-weight:750;
  letter-spacing:.035em;
  color:#4461a5;
  text-transform:uppercase;
  background:transparent;
}
.simple-results .simple-grid .product .prod-title {
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:0;
  max-height:4.35em;
  font-size:15px;
  line-height:1.45;
  letter-spacing:-.01em;
  font-weight:750;
  color:#17243a;
  text-decoration:none;
  overflow-wrap:anywhere;
}
.simple-results .simple-grid .product .prod-title:hover {color:#173ce8;}
.simple-results .simple-grid .product .product-sku {
  font-size:11px;
  color:#738098;
  line-height:1.35;
  overflow-wrap:anywhere;
  margin:0;
}
.simple-results .simple-grid .product .product-teaser {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:2px 0 0;
  font-size:12px;
  line-height:1.5;
  color:#65758c;
  overflow-wrap:anywhere;
}
.simple-results .simple-grid .product .product-expand {
  margin:0;
  padding:8px 0;
  border-top:1px solid #edf1f6;
  font-size:12px;
  color:#3b5275;
}
.simple-results .simple-grid .product .product-expand summary {
  cursor:pointer;
  font-weight:650;
  color:#3552a4;
}
.simple-results .simple-grid .product .product-expand p {
  max-height:150px;
  overflow:auto;
  margin:10px 0;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.simple-results .simple-grid .product .product-bottom {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid #edf1f6;
}
.simple-results .simple-grid .product .price {
  margin:0;
  font-size:20px;
  line-height:1.3;
  font-weight:800;
  color:#16243d;
  overflow-wrap:anywhere;
}
.simple-results .simple-grid .product .product-bottom form {margin:0;width:100%;}
.simple-results .simple-grid .product .product-bottom button,
.simple-results .simple-grid .product .product-bottom .btn {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:750;
  line-height:1.3;
  text-align:center;
}
@media(max-width:1050px) {
  .simple-results .simple-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:750px) {
  .simple-results .simple-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .simple-results .simple-grid .product .photo {height:165px;padding:12px;}
  .simple-results .simple-grid .product .prod-body {padding:13px;gap:8px;}
  .simple-results .simple-grid .product .prod-title {font-size:13px;}
  .simple-results .simple-grid .product .price {font-size:17px;}
}
@media(max-width:390px) {
  .simple-results .simple-grid {gap:9px;}
  .simple-results .simple-grid .product .photo {height:130px;padding:9px;}
  .simple-results .simple-grid .product .prod-body {padding:10px;gap:7px;}
  .simple-results .simple-grid .product .prod-title {font-size:12px;}
  .simple-results .simple-grid .product .product-meta,
  .simple-results .simple-grid .product .product-sku {font-size:10px;}
  .simple-results .simple-grid .product .product-teaser {font-size:11px;}
  .simple-results .simple-grid .product .price {font-size:15px;}
  .simple-results .simple-grid .product .product-bottom button,
  .simple-results .simple-grid .product .product-bottom .btn {font-size:12px;min-height:42px;}
}
@media(prefers-reduced-motion:reduce) {
  .simple-results .simple-grid > .product.card {transition:none;}
  .simple-results .simple-grid > .product.card:hover {transform:none;}
}

/* Brand/category expand controls — centered, original blue-button style.
   Scoped to the homepage discovery groups; other buttons are unchanged. */
.discovery .discovery-group > .reveal-toggle {
  display:flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  max-width:calc(100% - 24px);
  min-height:44px;
  margin:16px auto 0;
  padding:11px 20px;
  border:0;
  border-radius:11px;
  background:#123be3;
  color:#fff;
  box-shadow:none;
  font-size:13px;
  font-weight:750;
  line-height:1.35;
  text-align:center;
  cursor:pointer;
  transition:background-color .15s ease,box-shadow .15s ease;
}
.discovery .discovery-group > .reveal-toggle::after {content:none;}
.discovery .discovery-group > .reveal-toggle:hover {
  background:#0824a0;
  color:#fff;
  box-shadow:0 4px 12px rgba(18,59,227,.14);
}
.discovery .discovery-group > .reveal-toggle:focus-visible {
  outline:3px solid #a8bcff;
  outline-offset:3px;
}
@media(max-width:540px) {
  .discovery .discovery-group > .reveal-toggle {
    min-height:44px;
    padding:10px 17px;
    font-size:12px;
  }
}


/* FINAL FIX — mobile discovery layout and filter bar (2026-11-05)
   The earlier high-specificity desktop rule overrode mobile grid columns.
   These rules apply only to the catalogue homepage elements. */
.discovery .brand-directory,
.discovery .category-directory {
  min-width:0;
  width:100%;
}
.discovery .brand-tile,
.discovery .category-tile {
  width:100%;
  min-width:0;
  max-width:100%;
}
.discovery .brand-info,
.discovery .category-tile > span:last-child {
  min-width:0;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:none;
}
.discovery .brand-info strong,
.discovery .category-tile strong,
.discovery .brand-info small,
.discovery .category-tile small {
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:none;
}
@media (max-width:1050px) and (min-width:751px) {
  .discovery .brand-directory,
  .discovery .category-directory {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:750px) {
  .discovery .brand-directory,
  .discovery .category-directory {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .discovery .brand-tile,
  .discovery .category-tile {
    flex-direction:row;
    align-items:center;
    gap:8px;
    min-height:76px;
    padding:9px;
  }
  .discovery .brand-icon {
    flex:0 0 40px;
    width:40px;
    height:40px;
  }
  .discovery .brand-icon img {max-width:35px;max-height:32px;}
  .discovery .category-symbol {
    flex:0 0 35px;
    width:35px;
    height:35px;
    font-size:19px;
  }
  .discovery .brand-info strong,
  .discovery .category-tile strong {font-size:11px;line-height:1.32;}
  .discovery .brand-info small,
  .discovery .category-tile small {font-size:10px;line-height:1.3;}
  .discovery .brand-info,
  .discovery .category-tile > span:last-child {gap:3px;}
}
@media (max-width:340px) {
  .discovery .brand-directory,
  .discovery .category-directory {grid-template-columns:1fr;}
  .discovery .brand-tile,
  .discovery .category-tile {min-height:68px;}
}

/* Filter state is separate from product cards and gets a real gap on phones. */
.catalog-filter-strip {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 16px;
  margin:0 0 20px;
  padding:12px 15px;
  border:1px solid #dfe7f6;
  border-radius:12px;
  background:#fff;
  font-size:13px;
  color:var(--subtle,#66758d);
}
.catalog-filter-strip > span {font-weight:650;min-width:0;}
.catalog-filter-strip > a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:34px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid #d8e2f5;
  background:#f6f8ff;
  color:var(--blue,#123be3);
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
}
.catalog-filter-strip > a:hover,
.catalog-filter-strip > a:focus-visible {
  background:#eaf0ff;
  border-color:#abc0ff;
  text-decoration:none;
}
@media (max-width:540px) {
  .catalog-filter-strip {margin:0 0 17px;padding:10px 12px;gap:8px;}
  .catalog-filter-strip > span {font-size:12px;}
  .catalog-filter-strip > a {font-size:11px;padding:6px 10px;}
}


/* Premium Pearl storefront refresh — homepage only, non-destructive overrides.
   Existing search, grids, product cards, buttons, filters and admin styles remain. */
body:has(.simple-search) {
  background-color:#ffffff;
  background-image:
    radial-gradient(ellipse 64% 385px at 50% 230px,rgba(218,231,255,.72) 0%,rgba(238,245,255,.42) 51%,rgba(255,255,255,0) 100%),
    linear-gradient(180deg,#ffffff 0%,#fbfdff 590px,#ffffff 890px);
  background-repeat:no-repeat;
  color:#15243a;
}
body:has(.simple-search) .top {
  background:rgba(255,255,255,.97);
  border-bottom:1px solid #e9eef6;
  box-shadow:0 1px 10px rgba(20,44,90,.025);
}
body:has(.simple-search) .simple-search {
  margin-top:62px;
  margin-bottom:44px;
}
body:has(.simple-search) .simple-eyebrow {
  color:#2446ca;
  letter-spacing:.17em;
}
body:has(.simple-search) .simple-search h1 {
  color:#11223d;
  letter-spacing:-.045em;
  font-weight:800;
  text-wrap:balance;
}
body:has(.simple-search) .simple-search>p {
  color:#5e718e;
  line-height:1.7;
}
body:has(.simple-search) .simple-search-box {
  border:1px solid #cfddf0;
  border-radius:19px;
  background:#fff;
  box-shadow:0 14px 42px rgba(23,54,112,.095),0 2px 6px rgba(23,54,112,.025);
  transition:border-color .2s ease,box-shadow .2s ease;
}
body:has(.simple-search) .simple-search-box:focus-within {
  border-color:#5175ed;
  box-shadow:0 0 0 4px rgba(18,59,227,.085),0 15px 38px rgba(23,54,112,.11);
}
body:has(.simple-search) .simple-search-box button {
  box-shadow:0 4px 11px rgba(18,59,227,.15);
}
body:has(.simple-search) .simple-examples a:hover {text-decoration:underline;}
body:has(.simple-search) .discovery {margin-bottom:44px;}
body:has(.simple-search) .discovery .discovery-group {margin-bottom:28px;}
body:has(.simple-search) .discovery .brand-tile,
body:has(.simple-search) .discovery .category-tile {
  border-color:#e4ebf5;
  border-radius:17px;
  box-shadow:0 3px 14px rgba(19,48,98,.035);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
body:has(.simple-search) .discovery .brand-tile:hover,
body:has(.simple-search) .discovery .category-tile:hover {
  border-color:#b6c9f5;
  box-shadow:0 11px 29px rgba(19,48,98,.085);
  transform:translateY(-2px);
}
body:has(.simple-search) .discovery .brand-icon,
body:has(.simple-search) .discovery .category-symbol {
  background:linear-gradient(145deg,#ffffff,#f3f7ff);
  border-color:#e5edf9;
}
body:has(.simple-search) .simple-result-head h2,
body:has(.simple-search) .discovery-group h3 {color:#15243a;letter-spacing:-.02em;}
body:has(.simple-search) .simple-results .simple-grid > .product.card {
  border-color:#e5ebf4;
  box-shadow:0 4px 20px rgba(21,47,95,.045);
}
body:has(.simple-search) .simple-results .simple-grid > .product.card:hover {
  border-color:#bdcff1;
  box-shadow:0 15px 35px rgba(21,47,95,.105);
}
@media(max-width:540px) {
  body:has(.simple-search) {
    background-image:radial-gradient(ellipse 110% 310px at 50% 150px,rgba(226,237,255,.72),rgba(255,255,255,0) 100%);
  }
  body:has(.simple-search) .simple-search {margin-top:35px;margin-bottom:30px;}
  body:has(.simple-search) .simple-search h1 {letter-spacing:-.035em;}
  body:has(.simple-search) .discovery {margin-bottom:30px;}
}
@media(prefers-reduced-motion:reduce) {
  body:has(.simple-search) .discovery .brand-tile,
  body:has(.simple-search) .discovery .category-tile {transition:none;}
  body:has(.simple-search) .discovery .brand-tile:hover,
  body:has(.simple-search) .discovery .category-tile:hover {transform:none;}
}
