/* Header : aucune modification des colonnes de blockpixoheadernav. */
.pixo-ai-widget { width: 100%; min-width: 0; }
.pixo-ai-header-form { width: 100%; }
.pixo-ai-header-form .form-control { min-width: 0; font-size: 13px; }
.pixo-ai-header-form .btn { white-space: nowrap; font-size: 12px; }

/* Panneau de recherche inspire de l'ergonomie Doofinder, autonome du theme. */
body.pixo-ai-layer-open { overflow: hidden !important; }
.pixo-ai-layer[hidden] { display: none !important; }
.pixo-ai-layer { position: fixed; inset: 0; z-index: 10900; font-family: inherit; color: #292b30; }
.pixo-ai-layer * { box-sizing: border-box; }
.pixo-ai-layer-backdrop { position: absolute; inset: 0; background: rgba(10, 15, 25, .65); }
.pixo-ai-layer-panel { position: relative; display: flex; flex-direction: column; width: min(1320px, calc(100vw - 64px)); height: min(800px, calc(100vh - 72px)); margin: 36px auto; background: #fff; border-radius: 7px; overflow: hidden; box-shadow: 0 16px 65px rgba(0,0,0,.25); }
.pixo-ai-layer-header { display: flex; gap: 14px; align-items: center; min-height: 74px; padding: 14px 22px; border-bottom: 1px solid #e5e6eb; }
.pixo-ai-layer-form { display: flex; flex: 1 1 auto; align-items: center; gap: 14px; min-width: 0; height: 43px; border-bottom: 2px solid #c9cdd4; }
.pixo-ai-layer-form:focus-within { border-color: #b44b62; }
.pixo-ai-layer-form > .bi { flex: none; color: #515968; font-size: 19px; }
.pixo-ai-layer-form input { width: 100%; min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: inherit; font-size: 16px; box-shadow: none; }
.pixo-ai-layer-form input:focus { outline: none; box-shadow: none; }
.pixo-ai-layer-submit { flex: none; border: 0; border-radius: 4px; background: #ae435b; padding: 7px 14px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.pixo-ai-layer-submit:hover { background: #8e3148; }
.pixo-ai-layer-submit:disabled { opacity: .55; cursor: progress; }
.pixo-ai-layer-close { flex: none; width: 37px; height: 37px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #f4f5f7; color: #545961; font-size: 18px; cursor: pointer; }
.pixo-ai-layer-close:hover { background: #e8e8ed; color: #151515; }
.pixo-ai-layer-suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 49px; padding: 8px 24px; border-bottom: 1px solid #eff0f3; font-size: 12px; color: #777e88; }
.pixo-ai-layer-suggestions button { padding: 5px 10px; border-radius: 18px; border: 1px solid #e3e6eb; background: #f8f9fb; color: #434c59; font-size: 12px; cursor: pointer; }
.pixo-ai-layer-suggestions button:hover { border-color: #b44b62; color: #9e3c51; }
.pixo-ai-layer-main { min-height: 0; display: flex; flex: 1 1 auto; }
.pixo-ai-layer-sidebar { flex: 0 0 240px; width: 240px; padding: 22px 17px 26px 23px; border-right: 1px solid #eef0f3; overflow-y: auto; }
.pixo-ai-layer-sidebar h3 { margin: 0 0 23px; font-size: 15px; font-weight: 700; }
.pixo-ai-layer-sidebar h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.pixo-ai-sidebar-section { padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1px solid #eee; }
.pixo-ai-sidebar-hint { font-size: 12px; line-height: 1.6; color: #737a86; }
.pixo-ai-family-filters { display: grid; gap: 4px; }
.pixo-ai-family-filters button { display: flex; justify-content: space-between; width: 100%; gap: 8px; padding: 8px 9px; border: 0; border-radius: 4px; background: transparent; color: #4e5360; text-align: left; line-height: 1.3; font-size: 12px; cursor: pointer; }
.pixo-ai-family-filters button:hover, .pixo-ai-family-filters button[aria-pressed="true"] { background: #f8e9ed; color: #972f4b; }
.pixo-ai-family-filters .pixo-ai-family-count { color: #858b93; }
.pixo-ai-layer-content { min-width: 0; flex: 1 1 auto; padding: 22px 24px 28px; overflow-y: auto; }
.pixo-ai-layer-content-heading { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.pixo-ai-layer-content-heading h3 { margin: 0; font-size: 18px; font-weight: 700; }
.pixo-ai-layer-content-heading span { color: #737a86; font-size: 12px; }
.pixo-ai-layer-state { padding: 45px 10px; max-width: 550px; margin: auto; text-align: center; color: #737a86; font-size: 14px; line-height: 1.6; }
.pixo-ai-layer-state:empty { display: none; }
.pixo-ai-products-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px 16px; }
.pixo-ai-product-card { min-width: 0; }
.pixo-ai-product-image { display: flex; height: 165px; align-items: center; justify-content: center; background: #f9f9fa; border-radius: 3px; text-decoration: none; }
.pixo-ai-product-image img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.pixo-ai-product-image .bi { color: #c2c6cd; font-size: 45px; }
.pixo-ai-product-name { display: block; margin-top: 9px; color: #252a33; font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.pixo-ai-product-name:hover { color: #a23c55; text-decoration: underline; }
.pixo-ai-product-family { margin-top: 5px; font-size: 11px; color: #737a86; line-height: 1.35; }
.pixo-ai-product-view { display: inline-block; margin-top: 9px; font-size: 12px; color: #a33d58; text-decoration: underline; }
.pixo-ai-layer-loading { display: inline-flex; align-items: center; gap: 10px; }
.pixo-ai-layer-spinner { width: 20px; height: 20px; border: 2px solid #e0c5cd; border-top-color: #aa4058; border-radius: 50%; animation: pixo-ai-spin .8s linear infinite; }
@keyframes pixo-ai-spin { to { transform: rotate(360deg); } }
@media (max-width: 1150px) { .pixo-ai-products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .pixo-ai-layer-sidebar { flex-basis: 205px; width: 205px; } }
@media (max-width: 768px) { .pixo-ai-layer-panel { margin: 0; width: 100vw; height: 100dvh; max-height: none; border-radius: 0; } .pixo-ai-layer-header { min-height: 65px; padding: 12px; gap: 8px; } .pixo-ai-layer-form { gap: 8px; } .pixo-ai-layer-form input { font-size: 14px; } .pixo-ai-layer-submit { padding: 8px; font-size: 12px; } .pixo-ai-layer-suggestions { padding: 8px 12px; } .pixo-ai-layer-main { display: flex; flex-direction: column; } .pixo-ai-layer-sidebar { flex: none; width: 100%; max-height: 132px; padding: 12px; border-right: 0; border-bottom: 1px solid #eee; overflow: auto; } .pixo-ai-layer-sidebar h3 { margin-bottom: 8px; } .pixo-ai-sidebar-section { padding: 0; margin: 0; border: 0; } .pixo-ai-layer-sidebar h4, .pixo-ai-layer-sidebar > .pixo-ai-sidebar-hint { display: none; } .pixo-ai-family-filters { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 3px; } .pixo-ai-family-filters button { white-space: nowrap; width: auto; flex: none; } .pixo-ai-layer-content { padding: 15px 12px; } .pixo-ai-products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 12px; } .pixo-ai-product-image { height: 155px; } }
@media (max-width: 390px) { .pixo-ai-layer-submit { font-size: 0; } .pixo-ai-layer-submit::after { content: 'OK'; font-size: 12px; } .pixo-ai-layer-close { width: 28px; } }
