/* Alpha Parts Search — final storefront visual layer.
 * Supplier Gateway owns data/behavior; the theme owns presentation.
 * Brand and semantic colors are inherited from the shared Alpha tokens.
 */

.alpha-site .alpha-page-shell:has(.aasg-search-box) {
    padding: 42px 0 72px;
    background: var(--alpha-bg);
}

.alpha-site .alpha-page-shell .alpha-content:has(.aasg-search-box) {
    width: 100%;
    max-width: none;
    padding: 0 var(--alpha-gutter);
    box-sizing: border-box;
}

.alpha-site .aasg-search-box {
    width: min(1180px, 100%);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    color: var(--alpha-text);
    font-family: var(--alpha-font);
}

.alpha-site .aasg-search-hero {
    position: relative;
    margin: 0;
    padding: 27px 28px 26px;
    overflow: hidden;
    border: 1px solid var(--alpha-line);
    border-radius: var(--alpha-radius-md);
    background: var(--alpha-surface);
    box-shadow: var(--alpha-shadow-card);
}

.alpha-site .aasg-search-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 42px;
    height: 3px;
    background: var(--alpha-accent);
}

.alpha-site .aasg-search-hero h1 {
    max-width: 800px;
    margin: 7px 0 7px;
    color: var(--alpha-ink);
    font-size: clamp(38px, 3.6vw, 48px);
    line-height: 1.02;
    font-weight: var(--alpha-font-weight-semibold);
    letter-spacing: -.042em;
}

.alpha-site .aasg-search-hero p {
    max-width: 780px;
    margin: 0 0 20px;
    color: var(--alpha-muted);
    font-size: 15px;
    line-height: 1.5;
}

.alpha-site .aasg-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 10px;
    width: min(920px, 100%);
    margin: 0;
}

.alpha-site .aasg-form input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--alpha-line-strong);
    border-radius: var(--alpha-radius-sm);
    background: var(--alpha-surface);
    color: var(--alpha-ink);
    font: inherit;
    font-size: 14px;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color var(--alpha-transition), box-shadow var(--alpha-transition);
}

.alpha-site .aasg-form input::placeholder { color: #98a1ac; }
.alpha-site .aasg-form input:hover { border-color: #b9c0c8; }
.alpha-site .aasg-form input:focus,
.alpha-site .aasg-form input:focus-visible {
    outline: 0;
    border-color: var(--alpha-accent);
    box-shadow: 0 0 0 3px var(--alpha-accent-ring);
}

.alpha-site .aasg-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    height: 52px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--alpha-accent);
    border-radius: var(--alpha-radius-sm);
    background: var(--alpha-accent);
    color: var(--alpha-accent-contrast);
    font: inherit;
    font-size: 13px;
    font-weight: var(--alpha-font-weight-semibold);
    cursor: pointer;
    transition: background var(--alpha-transition), border-color var(--alpha-transition), box-shadow var(--alpha-transition);
}

.alpha-site .aasg-form button:hover {
    border-color: var(--alpha-accent-hover);
    background: var(--alpha-accent-hover);
}

.alpha-site .aasg-form button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--alpha-accent-ring);
}

.alpha-site .aasg-examples {
    margin: 10px 0 0;
    color: var(--alpha-muted);
    font-size: 11px;
    line-height: 1.4;
}

/* Search feedback uses the same approved Alpha state as the vehicle catalogue. */
.alpha-site .aasg-status {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin: 12px 0 0;
    padding: 13px 15px;
    border: 1px solid var(--alpha-line);
    border-radius: var(--alpha-radius-sm);
    background: var(--alpha-account-surface-soft);
    color: var(--alpha-text);
    font-size: 12px;
    line-height: 1.45;
    font-weight: var(--alpha-font-weight-medium);
}
.alpha-site .aasg-status:empty { display: none; margin: 0; padding: 0; border: 0; }

.alpha-site .aasg-search-loading {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 20px;
}
.alpha-site .aasg-search-spinner {
    order: -1;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid var(--alpha-line-strong);
    border-top-color: var(--alpha-accent);
}

.alpha-site .aasg-part-selection {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 0;
    padding: 12px 13px 12px 16px;
    overflow: hidden;
    border: 1px solid var(--alpha-accent-border);
    border-radius: var(--alpha-radius-sm);
    background: var(--alpha-accent-soft);
    color: var(--alpha-text);
    font-size: 13px;
    line-height: 1.35;
}
.alpha-site .aasg-part-selection[hidden] { display: none !important; }
.alpha-site .aasg-part-selection::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--alpha-accent);
}
.alpha-site .aasg-part-selection strong,
.alpha-site .aasg-part-selection .aasg-query-code {
    color: var(--alpha-ink);
    font-weight: var(--alpha-font-weight-semibold);
}
.alpha-site .aasg-part-selection button {
    flex: 0 0 auto;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--alpha-accent-border);
    border-radius: var(--alpha-radius-sm);
    background: var(--alpha-surface);
    color: var(--alpha-accent-hover);
    font: inherit;
    font-size: 11px;
    font-weight: var(--alpha-font-weight-semibold);
    cursor: pointer;
    transition: background var(--alpha-transition), border-color var(--alpha-transition);
}
.alpha-site .aasg-part-selection button:hover {
    border-color: var(--alpha-accent);
    background: var(--alpha-accent-soft-hover);
}

.alpha-site .aasg-results-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 12px;
    padding: 13px;
    overflow: visible;
    border: 1px solid var(--alpha-line);
    border-radius: var(--alpha-radius-md);
    background: var(--alpha-surface);
    box-shadow: 0 6px 18px rgba(20, 28, 38, .025);
}
.alpha-site .aasg-results-toolbar[hidden] { display: none !important; }
.alpha-site .aasg-results-toolbar label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--alpha-muted);
    font-size: 9px;
    line-height: 1.2;
    font-weight: var(--alpha-font-weight-semibold);
    letter-spacing: .055em;
    text-transform: uppercase;
}

.alpha-site .aasg-results-toolbar .aasg-custom-select { min-width: 0; width: 100%; }
.alpha-site .aasg-results-toolbar .aasg-select-trigger {
    width: 100%;
    min-height: 42px;
    height: 42px;
    padding: 0 34px 0 11px;
    border: 1px solid var(--alpha-line-strong);
    border-radius: var(--alpha-radius-sm);
    background: var(--alpha-surface);
    color: var(--alpha-ink);
    font: inherit;
    font-size: 12px;
    font-weight: var(--alpha-font-weight-medium);
    text-align: left;
    box-shadow: none;
    box-sizing: border-box;
}
.alpha-site .aasg-results-toolbar .aasg-select-trigger:hover { border-color: #b8c0c8; }
.alpha-site .aasg-results-toolbar .aasg-select-trigger:focus,
.alpha-site .aasg-results-toolbar .aasg-select-trigger:focus-visible {
    outline: 0;
    border-color: var(--alpha-accent);
    box-shadow: 0 0 0 3px var(--alpha-accent-ring);
}
.alpha-site .aasg-results-toolbar .aasg-select-chevron { border-color: var(--alpha-muted); }
.alpha-site .aasg-select-menu {
    top: calc(100% + 5px);
    padding: 5px;
    border: 1px solid var(--alpha-line);
    border-radius: var(--alpha-radius-sm);
    background: var(--alpha-surface);
    box-shadow: 0 14px 34px rgba(17, 24, 33, .13);
}
.alpha-site .aasg-select-option {
    min-height: 36px;
    padding: 8px 9px;
    border-radius: 5px;
    color: var(--alpha-text);
    font-size: 12px;
}
.alpha-site .aasg-select-option:hover,
.alpha-site .aasg-select-option:focus-visible {
    outline: 0;
    background: var(--alpha-accent-soft);
    color: var(--alpha-accent-hover);
}
.alpha-site .aasg-select-option.is-selected {
    background: var(--alpha-account-surface-soft);
    color: var(--alpha-ink);
    font-weight: var(--alpha-font-weight-semibold);
}
.alpha-site .aasg-select-option.is-selected::before { color: var(--alpha-accent); }

.alpha-site .aasg-results {
    display: grid;
    gap: 10px;
    margin: 0;
}

.alpha-site .aasg-empty {
    position: relative;
    margin: 0;
    padding: 18px 18px 18px 50px;
    border: 1px solid var(--alpha-status-info-border);
    border-radius: var(--alpha-radius-md);
    background: var(--alpha-status-info-bg);
    color: var(--alpha-text);
    font-size: 13px;
    line-height: 1.5;
}
.alpha-site .aasg-empty::before {
    content: "i";
    position: absolute;
    top: 16px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid var(--alpha-status-info-border);
    border-radius: 50%;
    color: var(--alpha-status-info);
    font-size: 12px;
    font-weight: var(--alpha-font-weight-semibold);
}

.alpha-site .aasg-load-more-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--alpha-line);
    border-radius: var(--alpha-radius-md);
    background: var(--alpha-surface);
}
.alpha-site .aasg-load-more-wrap[hidden] { display: none !important; }
.alpha-site .aasg-load-more-count {
    justify-self: end;
    color: var(--alpha-muted);
    font-size: 11px;
    font-weight: var(--alpha-font-weight-medium);
}
.alpha-site .aasg-load-more {
    grid-column: 2;
    min-width: 160px;
    min-height: 40px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--alpha-line-strong);
    border-radius: var(--alpha-radius-sm);
    background: var(--alpha-surface);
    color: var(--alpha-ink);
    font: inherit;
    font-size: 12px;
    font-weight: var(--alpha-font-weight-semibold);
    cursor: pointer;
}
.alpha-site .aasg-load-more:hover {
    border-color: var(--alpha-accent-border);
    background: var(--alpha-accent-soft);
    color: var(--alpha-accent-hover);
}

/* Result cards — AASG-specific finishing layer on top of the shared search card system. */
.alpha-site .aasg-product-card {
    grid-template-columns: 96px minmax(0, 1fr) 220px !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 15px !important;
    border: 1px solid var(--alpha-line) !important;
    border-radius: var(--alpha-radius-md) !important;
    background: var(--alpha-surface) !important;
    box-shadow: 0 6px 18px rgba(20, 28, 38, .03) !important;
}
.alpha-site .aasg-product-card:hover {
    border-color: var(--alpha-line-strong) !important;
    box-shadow: 0 8px 22px rgba(20, 28, 38, .045) !important;
    transform: none !important;
}
.alpha-site .aasg-product-card.is-selected-offer {
    border-color: var(--alpha-accent-border) !important;
    box-shadow: inset 3px 0 0 var(--alpha-accent), 0 6px 18px rgba(20, 28, 38, .035) !important;
}

.alpha-site .aasg-product-card .aasg-card-image {
    width: 88px !important;
    height: 88px !important;
    align-self: start;
    border: 0 !important;
    border-radius: var(--alpha-radius-sm) !important;
    background: var(--alpha-account-surface-soft) !important;
}
.alpha-site .aasg-product-card .aasg-card-image img {
    width: 100% !important;
    height: 100% !important;
    padding: 7px !important;
    object-fit: contain !important;
    box-sizing: border-box;
}
.alpha-site .aasg-product-card .aasg-card-image img.is-placeholder,
.alpha-site .aasg-product-card .aasg-card-image .aasg-placeholder-image { padding: 0 !important; }

.alpha-site .aasg-product-card .aasg-card-main { min-width: 0; align-self: center; }
.alpha-site .aasg-product-card .aasg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 6px;
}
.alpha-site .aasg-product-card .aasg-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    border: 0;
    border-radius: 999px;
    background: var(--alpha-account-surface-soft);
    color: var(--alpha-muted);
    font-size: 8px;
    line-height: 20px;
    font-weight: var(--alpha-font-weight-semibold);
    letter-spacing: .035em;
    text-transform: uppercase;
}
.alpha-site .aasg-product-card .aasg-badge-stock {
    background: var(--alpha-status-success-bg);
    color: var(--alpha-status-success);
}
.alpha-site .aasg-product-card .aasg-badge-analog {
    background: var(--alpha-status-info-bg);
    color: var(--alpha-status-info);
}
.alpha-site .aasg-product-card .aasg-badge-selected {
    background: var(--alpha-accent-soft);
    color: var(--alpha-accent-hover);
}
.alpha-site .aasg-product-card .aasg-name {
    margin: 0 0 7px;
    color: var(--alpha-ink);
    font-size: 15px;
    line-height: 1.28;
    font-weight: var(--alpha-font-weight-semibold);
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.alpha-site .aasg-product-card .aasg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.alpha-site .aasg-product-card .aasg-tags span {
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--alpha-account-surface-soft);
    color: #5e6873;
    font-size: 10px;
    line-height: 1.3;
}
.alpha-site .aasg-product-card .aasg-tags strong { color: var(--alpha-text); font-weight: var(--alpha-font-weight-semibold); }
.alpha-site .aasg-product-card .aasg-muted {
    margin: 6px 0 0;
    color: var(--alpha-muted);
    font-size: 10px;
    line-height: 1.35;
}

.alpha-site .aasg-product-card .aasg-card-side {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 0 0 15px !important;
    border-top: 0 !important;
    border-left: 1px solid var(--alpha-line) !important;
    text-align: right !important;
    box-sizing: border-box;
}
.alpha-site .aasg-product-card .aasg-price {
    width: 100% !important;
    margin: 0 0 5px !important;
    color: var(--alpha-ink) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: var(--alpha-font-weight-semibold) !important;
    letter-spacing: -.025em;
    text-align: right !important;
}
.alpha-site .aasg-product-card .aasg-stock,
.alpha-site .aasg-product-card .aasg-delivery {
    width: 100% !important;
    margin: 3px 0 0 !important;
    color: var(--alpha-muted) !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    font-weight: var(--alpha-font-weight-medium) !important;
    text-align: right !important;
}
.alpha-site .aasg-product-card .aasg-stock.is-available {
    color: var(--alpha-status-success) !important;
    font-weight: var(--alpha-font-weight-semibold) !important;
}
.alpha-site .aasg-product-card .aasg-stock.is-empty {
    color: var(--alpha-status-danger) !important;
    font-weight: var(--alpha-font-weight-semibold) !important;
}
.alpha-site .aasg-product-card .aasg-buy-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
}
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    grid-template-columns: 36px minmax(44px, 1fr) 36px !important;
    border-color: var(--alpha-line-strong) !important;
    border-radius: var(--alpha-radius-sm) !important;
}
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity button,
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity input {
    height: 34px !important;
    min-height: 34px !important;
    line-height: 34px !important;
}
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity button {
    width: 36px !important;
    min-width: 36px !important;
    background: var(--alpha-account-surface-soft) !important;
    color: var(--alpha-ink) !important;
    font-size: 15px !important;
}
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity button:hover,
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity button:focus-visible {
    outline: 0 !important;
    background: var(--alpha-accent-soft) !important;
    color: var(--alpha-accent-hover) !important;
}
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-add {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--alpha-accent) !important;
    border-radius: var(--alpha-radius-sm) !important;
    background: var(--alpha-accent) !important;
    color: var(--alpha-accent-contrast) !important;
    font-size: 11px !important;
    font-weight: var(--alpha-font-weight-semibold) !important;
    line-height: 1 !important;
    box-shadow: none !important;
}
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-add:hover,
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-add:focus-visible {
    outline: 0 !important;
    border-color: var(--alpha-accent-hover) !important;
    background: var(--alpha-accent-hover) !important;
}
.alpha-site .aasg-product-card .aasg-buy-controls > .aasg-add:disabled {
    border-color: var(--alpha-line) !important;
    background: var(--alpha-account-surface-soft) !important;
    color: var(--alpha-muted) !important;
}

.alpha-site .aasg-product-card > .aasg-offers {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    padding: 9px 0 0 !important;
    border-top: 1px solid var(--alpha-line) !important;
}
.alpha-site .aasg-product-card > .aasg-offers > summary {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 7px 2px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--alpha-text) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: var(--alpha-font-weight-semibold) !important;
    list-style: none !important;
    cursor: pointer;
}
.alpha-site .aasg-product-card > .aasg-offers > summary:hover,
.alpha-site .aasg-product-card > .aasg-offers > summary:focus-visible,
.alpha-site .aasg-product-card > .aasg-offers[open] > summary {
    outline: 0 !important;
    color: var(--alpha-accent-hover) !important;
}
.alpha-site .aasg-product-card > .aasg-offers > summary::before {
    color: var(--alpha-accent) !important;
    font-size: 9px !important;
}
.alpha-site .aasg-product-card .aasg-offers-list {
    display: grid !important;
    gap: 6px !important;
    padding: 3px 0 1px !important;
}

.alpha-site .aasg-product-card .aasg-offer-row {
    display: grid !important;
    grid-template-columns: minmax(175px, 1.4fr) minmax(110px, .75fr) minmax(115px, .8fr) 112px 86px 112px !important;
    grid-template-areas: "part stock delivery quantity price action" !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 54px !important;
    padding: 8px 10px !important;
    border: 1px solid var(--alpha-line) !important;
    border-radius: var(--alpha-radius-sm) !important;
    background: var(--alpha-account-surface-soft) !important;
    color: var(--alpha-muted) !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    box-sizing: border-box;
}
.alpha-site .aasg-product-card .aasg-offer-part strong {
    color: var(--alpha-ink) !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: var(--alpha-font-weight-semibold) !important;
}
.alpha-site .aasg-product-card .aasg-offer-part span {
    color: var(--alpha-muted) !important;
    font-size: 9px !important;
}
.alpha-site .aasg-product-card .aasg-offer-stock,
.alpha-site .aasg-product-card .aasg-offer-delivery { color: var(--alpha-muted) !important; font-size: 10px !important; }
.alpha-site .aasg-product-card .aasg-offer-price {
    justify-content: flex-end !important;
    text-align: right !important;
}
.alpha-site .aasg-product-card .aasg-offer-price strong {
    color: var(--alpha-ink) !important;
    font-size: 16px !important;
    font-weight: var(--alpha-font-weight-semibold) !important;
}
.alpha-site .aasg-product-card .aasg-offer-row .aasg-buy-controls.is-compact { display: contents !important; }
.alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity {
    grid-area: quantity !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 36px !important;
    min-height: 36px !important;
    grid-template-columns: 35px 42px 35px !important;
}
.alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity button,
.alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity input {
    height: 34px !important;
    min-height: 34px !important;
    line-height: 34px !important;
}
.alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity button {
    width: 35px !important;
    min-width: 35px !important;
}
.alpha-site .aasg-product-card .aasg-offer-row .aasg-add {
    grid-area: action !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: var(--alpha-radius-sm) !important;
    font-size: 10px !important;
}

@media (max-width: 980px) {
    .alpha-site .alpha-page-shell:has(.aasg-search-box) { padding: 34px 0 58px; }
    .alpha-site .aasg-results-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .alpha-site .aasg-product-card {
        grid-template-columns: 76px minmax(0, 1fr) 210px !important;
        gap: 12px !important;
        padding: 13px !important;
    }
    .alpha-site .aasg-product-card .aasg-card-image {
        width: 68px !important;
        height: 68px !important;
    }
    .alpha-site .aasg-product-card .aasg-card-side {
        grid-column: 3 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 0 0 13px !important;
        border-top: 0 !important;
        border-left: 1px solid var(--alpha-line) !important;
        overflow: visible !important;
    }
    .alpha-site .aasg-product-card .aasg-card-side > .aasg-buy-controls {
        width: 100% !important;
        max-width: none !important;
        margin: 7px 0 0 !important;
        padding: 0 !important;
    }
    .alpha-site .aasg-product-card .aasg-card-side > .aasg-buy-controls > .aasg-quantity,
    .alpha-site .aasg-product-card .aasg-card-side > .aasg-buy-controls > .aasg-add {
        width: 100% !important;
        max-width: none !important;
    }

    .alpha-site .aasg-product-card .aasg-offer-row {
        grid-template-columns: minmax(0, 1fr) 188px !important;
        grid-template-areas:
            "part price"
            "stock delivery"
            "quantity action" !important;
        gap: 7px 12px !important;
        min-height: 0 !important;
        padding: 9px 10px !important;
    }
    .alpha-site .aasg-product-card .aasg-offer-price {
        justify-content: flex-end !important;
        text-align: right !important;
    }
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity,
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-add {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity {
        grid-template-columns: 36px minmax(44px, 1fr) 36px !important;
    }
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity button {
        width: 36px !important;
        min-width: 36px !important;
    }
}

@media (max-width: 680px) {
    .alpha-site .alpha-page-shell:has(.aasg-search-box) { padding: 24px 0 44px; }
    .alpha-site .alpha-page-shell .alpha-content:has(.aasg-search-box) { padding: 0 14px; }

    .alpha-site .aasg-search-hero { padding: 22px 17px 19px; }
    .alpha-site .aasg-search-hero::before { left: 17px; width: 34px; }
    .alpha-site .aasg-search-hero h1 {
        margin-top: 5px;
        font-size: clamp(30px, 9vw, 36px);
        line-height: 1.04;
    }
    .alpha-site .aasg-search-hero p { margin-bottom: 16px; font-size: 13px; }
    .alpha-site .aasg-form { grid-template-columns: 1fr; gap: 8px; width: 100%; }
    .alpha-site .aasg-form input,
    .alpha-site .aasg-form button { width: 100%; min-height: 48px; height: 48px; }
    .alpha-site .aasg-examples { font-size: 10px; }
    .alpha-site .aasg-status { margin-top: 12px; font-size: 11px; }

    .alpha-site .aasg-part-selection {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 12px 12px 12px 15px;
        font-size: 12px;
    }
    .alpha-site .aasg-part-selection button { width: 100%; }

    .alpha-site .aasg-results-toolbar {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 12px;
        padding: 12px;
    }
    .alpha-site .aasg-results-toolbar .aasg-select-trigger { min-height: 42px; height: 42px; }

    .alpha-site .aasg-product-card {
        grid-template-columns: 60px minmax(0, 1fr) !important;
        gap: 9px !important;
        padding: 11px !important;
    }
    .alpha-site .aasg-product-card .aasg-card-image {
        width: 54px !important;
        height: 54px !important;
    }
    .alpha-site .aasg-product-card .aasg-name { font-size: 14px; line-height: 1.2; }
    .alpha-site .aasg-product-card .aasg-badge { min-height: 18px; line-height: 18px; font-size: 7.5px; }

    .alpha-site .aasg-product-card .aasg-card-side {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        display: grid !important;
        grid-template-columns: 124px minmax(0, 1fr) !important;
        grid-template-areas:
            "stock price"
            "delivery price"
            "quantity action" !important;
        align-items: end !important;
        gap: 7px 9px !important;
        height: auto !important;
        padding: 10px 0 0 !important;
        border-top: 1px solid var(--alpha-line) !important;
        border-left: 0 !important;
        text-align: left !important;
    }
    .alpha-site .aasg-product-card .aasg-price {
        grid-area: price !important;
        align-self: start !important;
        justify-self: end !important;
        width: auto !important;
        margin: 0 !important;
        font-size: 21px !important;
        text-align: right !important;
    }
    .alpha-site .aasg-product-card .aasg-stock {
        grid-area: stock !important;
        margin: 0 !important;
        text-align: left !important;
    }
    .alpha-site .aasg-product-card .aasg-delivery {
        grid-area: delivery !important;
        margin: 0 !important;
        text-align: left !important;
    }
    .alpha-site .aasg-product-card .aasg-buy-controls { display: contents !important; margin: 0 !important; }
    .alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity {
        grid-area: quantity !important;
        width: 124px !important;
        min-width: 124px !important;
        max-width: 124px !important;
        height: 42px !important;
        min-height: 42px !important;
        grid-template-columns: 40px 44px 40px !important;
        margin: 0 !important;
    }
    .alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity button,
    .alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity input {
        height: 40px !important;
        min-height: 40px !important;
        line-height: 40px !important;
    }
    .alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity button {
        width: 40px !important;
        min-width: 40px !important;
    }
    .alpha-site .aasg-product-card .aasg-buy-controls > .aasg-add {
        grid-area: action !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
    }

    .alpha-site .aasg-product-card .aasg-offers > summary { font-size: 11px !important; }
    .alpha-site .aasg-product-card .aasg-offer-row {
        grid-template-columns: 124px minmax(0, 1fr) !important;
        grid-template-areas:
            "part part"
            "stock price"
            "delivery price"
            "quantity action" !important;
        grid-template-rows: auto auto auto 42px !important;
        align-items: end !important;
        gap: 7px 9px !important;
        padding: 9px !important;
    }
    .alpha-site .aasg-product-card .aasg-offer-price {
        justify-content: flex-end !important;
        align-self: start !important;
        text-align: right !important;
    }
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity {
        width: 124px !important;
        min-width: 124px !important;
        max-width: 124px !important;
        height: 42px !important;
        min-height: 42px !important;
        grid-template-columns: 40px 44px 40px !important;
    }
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity button,
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity input {
        height: 40px !important;
        min-height: 40px !important;
        line-height: 40px !important;
    }
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity button {
        width: 40px !important;
        min-width: 40px !important;
    }
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-add {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 42px !important;
        min-height: 42px !important;
    }

    .alpha-site .aasg-load-more-wrap { grid-template-columns: 1fr; gap: 9px; padding: 11px; }
    .alpha-site .aasg-load-more-count { grid-column: 1; justify-self: center; text-align: center; }
    .alpha-site .aasg-load-more { grid-column: 1; width: 100%; }
    .alpha-site .aasg-load-more-spacer { display: none; }
}

@media (max-width: 390px) {
    .alpha-site .aasg-product-card .aasg-card-side,
    .alpha-site .aasg-product-card .aasg-offer-row {
        grid-template-columns: 116px minmax(0, 1fr) !important;
    }
    .alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity,
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity {
        width: 116px !important;
        min-width: 116px !important;
        max-width: 116px !important;
        grid-template-columns: 36px 44px 36px !important;
    }
    .alpha-site .aasg-product-card .aasg-buy-controls > .aasg-quantity button,
    .alpha-site .aasg-product-card .aasg-offer-row .aasg-quantity button {
        width: 36px !important;
        min-width: 36px !important;
    }
}

/* v0.2.50 — reuse the approved Alpha progress bar for parts-search loading. */
.alpha-site .aasg-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 10px 12px;
    color: var(--alpha-muted);
    font-size: 11px;
    line-height: 1.4;
    font-weight: var(--alpha-font-weight-medium);
    text-align: left;
}
.alpha-site .aasg-status::before {
    content: "i";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--alpha-status-info-bg);
    color: var(--alpha-status-info);
    font-size: 10px;
    line-height: 1;
    font-weight: var(--alpha-font-weight-semibold);
}
.alpha-site .aasg-status:has(.aasg-search-progress) {
    display: block;
    padding: 13px 15px;
}
.alpha-site .aasg-status:has(.aasg-search-progress)::before { display: none; }
.alpha-site .aasg-search-progress {
    display: grid;
    gap: 10px;
    width: 100%;
}
.alpha-site .aasg-search-progress-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.alpha-site .aasg-search-progress-copy strong {
    color: var(--alpha-ink);
    font-size: 12px;
    line-height: 1.3;
    font-weight: var(--alpha-font-weight-semibold);
}
.alpha-site .aasg-search-progress-copy span {
    color: var(--alpha-muted);
    font-size: 11px;
    line-height: 1.45;
    font-weight: var(--alpha-font-weight-regular);
}
.alpha-site .aasg-search-progress-track {
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--alpha-line);
}
.alpha-site .aasg-search-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--alpha-accent);
    transition: width .22s ease;
}
.alpha-site .aasg-status:empty { display: none; }
@media (max-width: 680px) {
    .alpha-site .aasg-status { padding: 9px 10px; font-size: 10.5px; }
    .alpha-site .aasg-status:has(.aasg-search-progress) { padding: 11px 12px; }
}

/* Supplier Gateway: featured item uses the SAME Alpha product card foundation.
   Differences are restricted to slightly larger photo, qty and buy button. */
.alpha-site .aasg-results-toolbar:has(+ .aasg-featured-card) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.alpha-site .aasg-featured-card { margin-top: 12px !important; margin-bottom: 12px !important; grid-template-columns: 114px minmax(0, 1fr) 220px !important; }
.alpha-site .aasg-featured-card .aasg-card-image { width: 103px !important; height: 103px !important; display:grid; place-items:center; overflow:hidden; }
.alpha-site .aasg-featured-card .aasg-card-image img { width: 100% !important; height: 100% !important; grid-area:1/1; object-fit:contain; }
.alpha-site .aasg-featured-card .aasg-card-image img[hidden], .alpha-site .aasg-featured-card[hidden], .alpha-site .aasg-featured-card .aasg-card-side[hidden] { display:none !important; }
.alpha-site .aasg-featured-card .aasg-card-side .aasg-buy-controls > .aasg-add { min-height: 44px !important; height: 44px !important; font-size:12px !important; }
.alpha-site .aasg-featured-card .aasg-card-side .aasg-buy-controls > .aasg-quantity { min-height: 40px !important; height: 40px !important; grid-template-columns: 40px minmax(44px,1fr) 40px !important; }
.alpha-site .aasg-featured-card .aasg-card-side .aasg-buy-controls > .aasg-quantity button,
.alpha-site .aasg-featured-card .aasg-card-side .aasg-buy-controls > .aasg-quantity input { min-height:38px !important; height:38px !important; line-height:38px !important; }
.alpha-site .aasg-featured-card .aasg-card-side .aasg-buy-controls > .aasg-quantity button { width:40px !important; min-width:40px !important; }
.alpha-site .aasg-featured-card .aasg-featured-alternatives { grid-column:1 / -1; width:100%; }
.alpha-site .aasg-featured-card .aasg-featured-alternatives[hidden] { display:none !important; }
.alpha-site .aasg-featured-card .aasg-featured-details { grid-column: 1 / -1; grid-row: auto; width:100%; min-width:0; margin-top: 8px; padding-top:11px; border-top:1px solid var(--alpha-line); }
.alpha-site .aasg-featured-card .aasg-reference-sections { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; align-items:start; }
.alpha-site .aasg-featured-card .aasg-reference-section { min-width:0; }
.alpha-site .aasg-featured-card .aasg-reference-section-body { overflow-wrap:anywhere; }
.alpha-site .aasg-featured-card .aasg-reference-characteristics-block { margin:7px 0 0; }
.alpha-site .aasg-featured-card .aasg-reference-characteristics-heading { font-size:11px; color:var(--alpha-muted); font-weight:600; }
.alpha-site .aasg-featured-card .aasg-reference-muted, .alpha-site .aasg-featured-card .aasg-reference-name { color:var(--alpha-muted); font-size:11px; }
.alpha-site .aasg-featured-card .aasg-reference-name[hidden] {display:none!important;}
.alpha-site .aasg-featured-card .aasg-reference-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;}
.alpha-site .aasg-featured-card .aasg-reference-list-item {font-size:11px;display:flex;flex-wrap:wrap;gap:3px 6px;min-width:0;overflow-wrap:anywhere;}
.alpha-site .aasg-featured-card .aasg-reference-list-main {color:var(--alpha-muted);}
.alpha-site .aasg-featured-card .aasg-reference-list-detail {color:var(--alpha-text);font-weight:600;}
.alpha-site .aasg-featured-card .aasg-reference-section-body .aasg-reference-list { grid-template-columns:1fr; }
.alpha-site .aasg-featured-card .aasg-reference-more { border:0;padding:4px 0;background:transparent;color:var(--alpha-accent);font:inherit;cursor:pointer;text-decoration:underline;}
.alpha-site .aasg-featured-card .aasg-reference-more[hidden] {display:none!important;}
.alpha-site .aasg-featured-card .aasg-reference-request .alpha-photo-request {display:inline-block;width:fit-content;}
@media(max-width:960px){
  .alpha-site .aasg-results-toolbar:has(+ .aasg-featured-card){grid-template-columns:repeat(2,minmax(0,1fr));}
  .alpha-site .aasg-featured-card {grid-template-columns: 90px minmax(0,1fr) 210px !important;}
  .alpha-site .aasg-featured-card .aasg-card-image {width:80px!important;height:80px!important;}
}
@media(max-width:680px){
  .alpha-site .aasg-results-toolbar:has(+ .aasg-featured-card){grid-template-columns:1fr;}
  .alpha-site .aasg-featured-card {grid-template-columns: 70px minmax(0,1fr) !important;}
  .alpha-site .aasg-featured-card .aasg-card-image {width:64px!important;height:64px!important;}
  .alpha-site .aasg-featured-card .aasg-reference-sections {grid-template-columns:1fr;}
  .alpha-site .aasg-featured-card .aasg-reference-list {grid-template-columns:1fr;}
  .alpha-site .aasg-featured-card .aasg-card-side .aasg-add{min-height:44px!important;}
}
