/* The product search dialog (job W6, BC-057): the approved Codex dialog of 22 Oct 2026 (the draft's home.css and
   homepage-refinements.css, #search-dialog), on the tokens. Classes start with "hs". */

.hs { width: min(1120px, calc(100% - 50px)); max-width: none; max-height: calc(100dvh - 75px); margin: 38px auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--color-surface); color: var(--color-ink); box-shadow: 0 25px 100px rgba(0, 0, 0, .33); }
.hs::backdrop { background: rgba(23, 25, 26, .7); }
html.hs-open { overflow: hidden; }
.hs__top { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px 5px; font-size: 10px; font-weight: var(--weight-bold); letter-spacing: 1.1px; }
.hs__close { width: 35px; height: 35px; padding: 0; border: 0; background: none; font-size: 32px; line-height: 1; }
.hs__input { display: flex; align-items: center; gap: 15px; margin: 10px 28px 0; padding-bottom: 15px; border-bottom: 2px solid var(--color-ink); }
.hs__input:focus-within { border-color: var(--color-red); }
.hs__input > svg { flex-shrink: 0; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hs__input input[type="search"] { flex: 1; min-width: 0; height: auto; min-height: 0; padding: 0; border-radius: 0; border: 0; background: none; outline: none; box-shadow: none; color: var(--color-ink); font: inherit; font-size: 21px; font-weight: var(--weight-semibold); }
.hs__input input::-webkit-search-cancel-button { display: none; }
.hs__clear { padding: 0; border: 0; background: none; font-size: 11px; text-decoration: underline; }
.hs__submit { padding: 10px 20px; border: 0; border-radius: var(--radius); background: var(--color-red); color: var(--color-on-red); font-size: 12px; font-weight: var(--weight-bold); }
.hs__submit:hover { background: var(--color-red-dark); }
.hs__filters { display: flex; gap: 10px; padding: 20px 28px; }
.hs__filters button { padding: 7px 16px; border: 1px solid #ddd; border-radius: var(--radius); background: var(--color-surface); font-size: 11px; }
.hs__filters button[aria-pressed="true"] { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-on-red); }
.hs__layout { display: grid; grid-template-columns: 205px 1fr; min-height: 330px; border-top: 1px solid var(--color-line); }
.hs__suggestions { padding: 25px 22px; background: var(--color-cream); }
.hs__suggestions h3 { margin: 0 0 12px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.hs__links { display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }
.hs__links a, .hs__links button { padding: 0; border: 0; background: none; color: var(--color-ink); font-size: 11px; line-height: 1.7; text-align: left; text-decoration: none; }
.hs__links a:hover, .hs__links button:hover { color: var(--color-red-dark); }
.hs__products { min-width: 0; padding: 22px 26px; }
.hs__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.hs__title { margin: 0; font-size: 13px; letter-spacing: 0; }
.hs__status { font-size: 10px; white-space: nowrap; }
.hs__results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.hs-product { display: flex; flex-direction: column; min-width: 0; color: var(--color-ink); text-decoration: none; }
.hs-product:focus-visible { outline-offset: 6px; }
.hs-product__image { height: 140px; padding: 10px; overflow: hidden; border-radius: var(--radius); background: #f7f7f6; }
.hs-product__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hs-product__brand { margin-top: 11px; color: var(--color-muted); font-size: 9px; font-weight: var(--weight-semibold); text-transform: uppercase; }
.hs-product h3 { margin: 4px 0 0; font-size: 11px; line-height: 1.6; font-weight: var(--weight-semibold); }
.hs-product:hover h3 { color: var(--color-red-dark); }
.hs-product__price { margin-top: 8px; font-size: 15px; font-weight: var(--weight-bold); }
.hs-product__price small { margin-right: 3px; font-size: 10px; font-weight: var(--weight-regular); }
.hs-product__stock { margin-top: 4px; color: var(--color-success); font-size: 9px; }
.hs-product__stock.is-out { color: #757575; }
.hs__more { display: flex; align-items: center; justify-content: center; width: 100%; height: 34px; margin-top: 22px; border: 0; border-radius: var(--radius); background: var(--color-red); color: var(--color-on-red); font-size: 12px; font-weight: var(--weight-bold); }
.hs__more:hover { background: var(--color-red-dark); }
.hs__empty { grid-column: 1 / -1; padding: 40px 0; }
.hs__empty h3 { margin: 0; font-size: 19px; }
.hs__empty p { margin: 10px 0 0; color: var(--color-muted); font-size: 12px; }
.hs__empty button { margin-top: 20px; padding: 0; border: 0; background: none; color: var(--color-red); text-decoration: underline; }
.hs__empty .hs__retry { margin-top: 12px; padding: 12px 20px; border-radius: var(--radius); background: var(--color-red); color: var(--color-on-red); text-decoration: none; }
.hs__placeholder { height: 210px; border-radius: var(--radius); background: linear-gradient(100deg, #f4f4f4 25%, #fafafa 45%, #f4f4f4 65%); }

@media (max-width: 1100px) {
	.hs__layout { grid-template-columns: 175px 1fr; }
}

@media (max-width: 760px) {
	.hs { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
	.hs__top { padding: 15px 18px 3px; }
	.hs__input { gap: 10px; margin: 10px 18px 0; }
	.hs__input input[type="search"] { font-size: 15px; }
	.hs__input > svg { width: 18px; }
	.hs__submit { padding: 8px 12px; font-size: 10px; }
	.hs__filters { gap: 7px; padding: 16px 18px; }
	.hs__filters button { padding: 7px 12px; font-size: 10px; }
	.hs__layout { grid-template-columns: 1fr; }
	.hs__suggestions { display: flex; align-items: center; gap: 16px; padding: 16px 18px; overflow: auto; }
	.hs__suggestions h3 { margin: 0; font-size: 9px; white-space: nowrap; }
	.hs__links { flex-direction: row; flex-shrink: 0; gap: 16px; margin: 0; }
	.hs__links a, .hs__links button { font-size: 10px; white-space: nowrap; }
	.hs__extra { display: none; }
	.hs__products { padding: 20px 18px; }
	.hs__results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 15px; }
	.hs-product__image { height: 145px; }
	.hs__heading .hs__title { max-width: 65%; font-size: 12px; }
	.hs__status { font-size: 9px; }
	.hs-product__price { font-size: 14px; }
}

@media (max-width: 360px) {
	.hs__input input[type="search"] { font-size: 13px; }
	.hs__filters button { padding: 7px 9px; }
	.hs__submit { display: none; }
}
