.mdc-buscador-repuestos,
.mdc-buscador-repuestos * {
    box-sizing: border-box;
}

.mdc-buscador-repuestos {
    --mdc-primary: #090C9B;
    --mdc-dark: #000000;
    --mdc-text: #111827;
    --mdc-muted: #5f6675;
    --mdc-border: #e7eaf0;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 52px rgba(15, 23, 42, .11);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mdc-buscador-head {
    margin: 0 0 22px;
    text-align: center;
}

.mdc-buscador-head h2 {
    margin: 0 0 10px;
    color: #07080d;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.035em;
}

.mdc-buscador-head p {
    margin: 0;
    color: var(--mdc-muted);
    font-size: 15.5px;
    line-height: 1.55;
}

.mdc-buscador-form {
    display: grid;
    grid-template-columns: minmax(180px, 1.35fr) repeat(5, minmax(120px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.mdc-field label {
    display: block;
    margin: 0 0 7px;
    color: #111827;
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 800;
}

.mdc-input-wrap {
    position: relative;
}

.mdc-field input,
.mdc-field select {
    width: 100%;
    height: 52px;
    margin: 0;
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    background-color: #fff;
    color: #111827;
    padding: 0 14px;
    font-size: 14.5px;
    line-height: 52px;
    outline: none;
    appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.mdc-field select {
    padding-right: 34px;
    background-image: linear-gradient(45deg, transparent 50%, #687083 50%), linear-gradient(135deg, #687083 50%, transparent 50%);
    background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.mdc-field select:disabled {
    background-color: #f7f8fb;
    color: #9aa1ad;
    cursor: not-allowed;
}

.mdc-field input:focus,
.mdc-field select:focus {
    border-color: var(--mdc-primary);
    box-shadow: 0 0 0 4px rgba(9, 12, 155, .10);
}

.mdc-live-indicator {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 999px;
    border: 2px solid rgba(9, 12, 155, .15);
    border-top-color: var(--mdc-primary);
    opacity: 0;
    transform: scale(.7);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.mdc-buscador-repuestos.is-loading .mdc-live-indicator {
    opacity: 1;
    transform: scale(1);
    animation: mdc-spin .7s linear infinite;
}

@keyframes mdc-spin {
    to { transform: rotate(360deg); }
}

.mdc-field-button button {
    width: 100%;
    height: 52px;
    min-width: 168px;
    border: 0;
    border-radius: 14px;
    padding: 0 24px;
    background: var(--mdc-primary);
    color: #fff;
    font-size: 14.5px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.mdc-field-button button:hover,
.mdc-field-button button:focus {
    background: var(--mdc-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.mdc-ajax-panel {
    display: none;
    margin-top: 18px;
    border: 1px solid var(--mdc-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.mdc-ajax-panel.has-content {
    display: block;
}

.mdc-ajax-empty {
    padding: 18px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.mdc-ajax-empty strong {
    display: block;
    color: #111827;
    margin-bottom: 4px;
}

.mdc-ajax-empty span {
    display: block;
}

.mdc-ajax-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--mdc-border);
    color: #111827;
    font-size: 14px;
}

.mdc-ajax-summary a {
    color: #111827;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mdc-ajax-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mdc-product-card,
.mdc-product-card:hover,
.mdc-product-card:visited,
.mdc-product-card:focus {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    color: #111827;
    text-decoration: none;
    border-right: 1px solid var(--mdc-border);
    border-bottom: 1px solid var(--mdc-border);
    background: #fff;
    transition: background-color .18s ease;
}

.mdc-product-card:hover {
    background: #f7f8ff;
}

.mdc-product-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f7f8fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mdc-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mdc-product-info {
    min-width: 0;
}

.mdc-product-info strong {
    display: block;
    color: #111827;
    font-size: 13.5px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mdc-product-info small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
}

.mdc-product-price {
    color: #111827;
    font-size: 13.5px;
    font-weight: 900;
    white-space: nowrap;
}

.mdc-product-price del {
    color: #6b7280;
    font-weight: 700;
    opacity: .75;
}

.mdc-product-price ins {
    color: #111827;
    text-decoration: none;
}

.mdc-ajax-skeleton {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mdc-skeleton-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-right: 1px solid var(--mdc-border);
    border-bottom: 1px solid var(--mdc-border);
}

.mdc-skeleton-img,
.mdc-skeleton-line {
    border-radius: 999px;
    background: linear-gradient(90deg, #f0f2f6 0%, #fafafa 50%, #f0f2f6 100%);
    background-size: 200% 100%;
    animation: mdc-shimmer 1.1s linear infinite;
}

.mdc-skeleton-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.mdc-skeleton-line {
    height: 12px;
    margin: 8px 0;
}

.mdc-skeleton-line.short {
    width: 62%;
}

@keyframes mdc-shimmer {
    to { background-position: -200% 0; }
}

.mdc-buscador-columna {
    padding: 22px;
    border-radius: 18px;
}

.mdc-buscador-columna .mdc-buscador-head {
    text-align: left;
    margin-bottom: 18px;
}

.mdc-buscador-columna .mdc-buscador-head h2 {
    font-size: 26px;
}

.mdc-buscador-columna .mdc-buscador-form {
    grid-template-columns: 1fr;
    gap: 12px;
}

.mdc-buscador-columna .mdc-field-button button {
    min-width: 0;
}

.mdc-buscador-columna .mdc-ajax-results,
.mdc-buscador-columna .mdc-ajax-skeleton {
    grid-template-columns: 1fr;
}

.mdc-buscador-columna .mdc-product-card {
    grid-template-columns: 58px minmax(0, 1fr);
}

.mdc-buscador-columna .mdc-product-price {
    grid-column: 2;
    justify-self: start;
}

@media (max-width: 1180px) {
    .mdc-buscador-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mdc-field-button {
        grid-column: 1 / -1;
    }

    .mdc-field-button button {
        min-width: 0;
    }

    .mdc-ajax-results,
    .mdc-ajax-skeleton {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .mdc-buscador-repuestos {
        padding: 20px;
        border-radius: 18px;
    }

    .mdc-buscador-form {
        grid-template-columns: 1fr;
    }

    .mdc-buscador-head h2 {
        font-size: 30px;
    }

    .mdc-ajax-results,
    .mdc-ajax-skeleton {
        grid-template-columns: 1fr;
    }

    .mdc-product-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .mdc-product-price {
        grid-column: 2;
        justify-self: start;
    }
}
