.gsm-search-launcher { display: flex; gap: 8px; width: 100%; max-width: 520px; }
.gsm-search-launcher input[type="search"] { min-width: 0; flex: 1; border-radius: 10px; padding: 12px 14px; }
.gsm-search-launcher button { border-radius: 10px; }
.gsm-search-is-open { overflow: hidden; }
.gsm-search-dialog { --gsm-accent: var(--ast-global-color-0, #145c55); --gsm-ink: #182f36; --gsm-muted: #5d6b70; background: #fff; color: var(--gsm-ink); width: min(1080px, calc(100% - 48px)); max-width: none; max-height: 88vh; max-height: 88dvh; padding: 0; margin: auto; border: 0; border-radius: 24px; box-shadow: 0 24px 100px #071d3540; overflow: hidden; }
.gsm-search-dialog:not([open]) { display: none; }
.gsm-search-dialog::backdrop { background: #142b39a6; backdrop-filter: blur(4px); }
.gsm-search-dialog *, .gsm-search-dialog *::before, .gsm-search-dialog *::after { box-sizing: border-box; }
.gsm-search-shell { display: flex; flex-direction: column; max-height: 88vh; max-height: 88dvh; }
.gsm-search-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px 20px; }
.gsm-search-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--gsm-muted); margin-bottom: 6px; }
.gsm-search-dialog h2 { font-size: clamp(23px, 3vw, 32px); line-height: 1.2; margin: 0; color: var(--gsm-ink); font-weight: 650; }
.gsm-search-dialog .gsm-search-close { display: grid; place-items: center; padding: 0; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #dde4e4; border-radius: 50%; background: #f5f7f7; color: var(--gsm-ink); font-size: 20px; }
.gsm-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 230px) auto; gap: 10px; margin: 0; padding: 0 32px 24px; border-bottom: 1px solid #e5ebeb; }
.gsm-search-dialog .gsm-search-controls input[type="search"], .gsm-search-dialog .gsm-search-controls select { width: 100%; min-width: 0; height: 50px; padding: 10px 14px; border: 1px solid #cbd5d5; border-radius: 10px; background: #fff; color: var(--gsm-ink); font: inherit; font-size: 16px; }
.gsm-search-dialog .gsm-search-controls select { padding-right: 28px; }
.gsm-search-dialog .gsm-search-controls button, .gsm-search-dialog .gsm-search-more { padding: 12px 22px; min-height: 46px; border: 0; border-radius: 10px; background: var(--gsm-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.gsm-search-body { padding: 20px 32px 28px; overflow-y: auto; overscroll-behavior: contain; min-height: 150px; }
.gsm-search-status { color: var(--gsm-muted); font-size: 14px; margin: 0 0 20px; }
.gsm-search-dialog .gsm-search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.gsm-search-results li { margin: 0; min-width: 0; }
.gsm-search-dialog .gsm-search-card { display: flex; flex-direction: column; height: 100%; color: var(--gsm-ink); text-decoration: none; border: 1px solid #e2e9e8; border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.gsm-search-dialog .gsm-search-card:hover { border-color: var(--gsm-accent); box-shadow: 0 4px 16px #16392d12; }
.gsm-search-card img { display: block; width: 100%; height: 170px; object-fit: contain; padding: 16px; background: #f6f8f7; }
.gsm-search-card-details { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 16px; }
.gsm-search-dialog .gsm-search-card h3 { margin: 0; font-size: 16px; line-height: 1.4; color: var(--gsm-ink); overflow-wrap: anywhere; }
.gsm-search-price { margin-top: auto; font-size: 16px; font-weight: 650; line-height: 1.4; }
.gsm-search-price del { opacity: .65; font-size: 13px; margin-right: 5px; }
.gsm-search-price ins { background: transparent; text-decoration: none; }
.gsm-search-stock { color: var(--gsm-muted); font-size: 12px; }
.gsm-search-dialog .gsm-search-more { display: block; margin: 24px auto 0; }
.gsm-search-fallback { display: block; width: fit-content; margin: 24px auto 0; font-size: 13px; color: var(--gsm-muted); text-decoration: underline; text-underline-offset: 3px; }
.gsm-search-floating { position: fixed; right: 24px; bottom: 24px; z-index: 99990; padding: 15px 22px; border: 0; border-radius: 999px; background: var(--ast-global-color-0, #145c55); color: #fff; box-shadow: 0 6px 24px #18363130; cursor: pointer; }
.gsm-search-dialog [hidden], .gsm-search-floating[hidden] { display: none !important; }
.gsm-search-dialog :focus-visible, .gsm-search-launcher :focus-visible, .gsm-search-floating:focus-visible { outline: 3px solid var(--ast-global-color-0, #145c55); outline-offset: 3px; }
@media (max-width: 760px) {
    .gsm-search-dialog .gsm-search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gsm-search-controls { grid-template-columns: minmax(0, 1fr) auto; }
    .gsm-search-dialog .gsm-search-controls input[type="search"] { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
    .gsm-search-dialog { width: 100%; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh; border-radius: 0; }
    .gsm-search-shell { height: 100%; max-height: 100%; }
    .gsm-search-header { padding: max(20px, env(safe-area-inset-top)) 20px 18px; }
    .gsm-search-controls { padding: 0 20px 18px; }
    .gsm-search-body { padding: 18px 20px max(24px, env(safe-area-inset-bottom)); }
    .gsm-search-dialog .gsm-search-results { grid-template-columns: 1fr; gap: 12px; }
    .gsm-search-dialog .gsm-search-card { flex-direction: row; }
    .gsm-search-card img { width: 100px; height: 130px; flex: 0 0 100px; align-self: center; padding: 12px; }
    .gsm-search-card-details { padding: 14px; gap: 7px; }
    .gsm-search-dialog .gsm-search-card h3 { font-size: 15px; }
    .gsm-search-floating { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .gsm-search-dialog .gsm-search-card { transition: none; }
}
